This tutorial is intended as an introduction to working with os-brick.
Before we start, make sure that you have the os-brick distribution installed. In the Python shell, the following should run without raising an exception:
>>> import os_brick
An example of how to collect the initiator information that is needed to export a volume to this host.
from os_brick.initiator import connector
# what helper do you want to use to get root access?
root_helper = "sudo"
# The ip address of the host you are running on
my_ip = "192.168.1.1"
# Do you want to support multipath connections?
multipath = True
# Do you want to enforce that multipath daemon is running?
enforce_multipath = False
initiator = connector.get_connector_properties(root_helper, my_ip,
multipath,
enforce_multipath)
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.