Add my_ip option in cinder.conf
Then cinder installed in multinode environment with more than one interface,
it's better to use CINDER_SERVICE_HOST option for cinder ip address.
Change-Id: I775b70407379d9c97696f536f5f89cecb33657be
diff --git a/lib/cinder b/lib/cinder
index 826b958..aed3004 100644
--- a/lib/cinder
+++ b/lib/cinder
@@ -226,6 +226,7 @@
iniset $CINDER_CONF DEFAULT volume_group $VOLUME_GROUP
iniset $CINDER_CONF DEFAULT volume_name_template ${VOLUME_NAME_PREFIX}%s
fi
+ iniset $CINDER_CONF DEFAULT my_ip "$CINDER_SERVICE_HOST"
iniset $CINDER_CONF DEFAULT iscsi_helper tgtadm
iniset $CINDER_CONF DEFAULT sql_connection `database_connection_url cinder`
iniset $CINDER_CONF DEFAULT api_paste_config $CINDER_API_PASTE_INI