From 9ee1426847569637346610512fb8c9cd7bbefbb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Dulko?= Date: Fri, 3 Jun 2016 15:34:50 +0200 Subject: [PATCH] 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 --- lib/cinder | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/cinder b/lib/cinder index de67593f72..bcf240953b 100644 --- a/lib/cinder +++ b/lib/cinder @@ -270,6 +270,7 @@ function configure_cinder { iniset $CINDER_CONF DEFAULT state_path $CINDER_STATE_PATH iniset $CINDER_CONF oslo_concurrency lock_path $CINDER_STATE_PATH iniset $CINDER_CONF DEFAULT periodic_interval $CINDER_PERIODIC_INTERVAL + iniset $CINDER_CONF DEFAULT my_ip "$HOST_IP" iniset $CINDER_CONF DEFAULT os_region_name "$REGION_NAME"