Browse code

Set my_ip in cinder.conf

Cinder uses my_ip config option to provide iscsi_targets. It gets
defaulted to the IP of the first interface in the system, which is fine
for some cases, but for example with Vagrant first interface can be used
only to contact with host machine.

To get over it we should set my_ip to HOST_IP from local.conf and this
commit implements that.

Change-Id: I4d2960d92f388ac689dfa6b436dc8bfc1e129fbf
Closes-Bug: 1588825

MichaƂ Dulko authored on 2016/06/03 22:34:50
Showing 1 changed files
... ...
@@ -270,6 +270,7 @@ function configure_cinder {
270 270
     iniset $CINDER_CONF DEFAULT state_path $CINDER_STATE_PATH
271 271
     iniset $CINDER_CONF oslo_concurrency lock_path $CINDER_STATE_PATH
272 272
     iniset $CINDER_CONF DEFAULT periodic_interval $CINDER_PERIODIC_INTERVAL
273
+    iniset $CINDER_CONF DEFAULT my_ip "$HOST_IP"
273 274
 
274 275
     iniset $CINDER_CONF DEFAULT os_region_name "$REGION_NAME"
275 276