summaryrefslogtreecommitdiffstats
path: root/nova/flags.py
diff options
context:
space:
mode:
authorEwan Mellor <ewan.mellor@citrix.com>2011-11-30 10:34:42 -0800
committerEwan Mellor <ewan.mellor@citrix.com>2011-11-30 13:21:22 -0800
commitf6c74d6563e48df6a8a7ff09a27d812840f23d02 (patch)
tree4d60f587c17b7b6e6654ad21d1bd8f8078e8318c /nova/flags.py
parent486e6fb517a407d63bd1459518df92eb282fb733 (diff)
downloadnova-f6c74d6563e48df6a8a7ff09a27d812840f23d02.tar.gz
nova-f6c74d6563e48df6a8a7ff09a27d812840f23d02.tar.xz
nova-f6c74d6563e48df6a8a7ff09a27d812840f23d02.zip
Bug #898290: iSCSI volume backend treats FLAGS.host as a hostname
Change ISCSIDriver to set volume.provider_location during create_export. This records the location of the LUN, so that nova-compute does not need to run the iSCSI discovery code itself. As part of this, include the IP address of the target (--iscsi_ip_address) in the provider_location. This means that we don't use volume's host identifier (which could be an opaque ID) when trying to connect to the iSCSI target -- we use the admin-specified IP address instead. The string-join to set provider_location is shared with ZadaraBEDriver, which was doing something similar. I've brought that into a helper function. The docstring for the --host flag has been clarified. Change-Id: I8402da86345e786a46a4d222ad4d8a4449d2bd3f
Diffstat (limited to 'nova/flags.py')
-rw-r--r--nova/flags.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/nova/flags.py b/nova/flags.py
index c47c77ab1..e0f1ceded 100644
--- a/nova/flags.py
+++ b/nova/flags.py
@@ -440,7 +440,8 @@ DEFINE_string('image_service', 'nova.image.glance.GlanceImageService',
'The service to use for retrieving and searching for images.')
DEFINE_string('host', socket.gethostname(),
- 'name of this node')
+ 'Name of this node. This can be an opaque identifier. It is '
+ 'not necessarily a hostname, FQDN, or IP address.')
DEFINE_string('node_availability_zone', 'nova',
'availability zone of this node')