Handle my_ip option
Configure the my_ip option to bind storage traffic on chosen
interface/network, otherwise by default cinder-volume selects
the first available one.
Change-Id: I3927a875b1f446cb6986bc4b74a2288c7a30f198
diff --git a/README.rst b/README.rst
index 6f74af9..2afa980 100644
--- a/README.rst
+++ b/README.rst
@@ -77,7 +77,8 @@
cinder_internal_tenant_user_id: f46924c112a14c80ab0a24a613d95eef
cinder_internal_tenant_project_id: b7455b8974bb4064ad247c8f375eae6c
default_volume_type: 7k2SaS
- nable_force_upload: true
+ enable_force_upload: true
+ my_ip: 192.168.0.254
database:
engine: mysql
host: 127.0.0.1
diff --git a/cinder/files/queens/cinder.conf.volume.Debian b/cinder/files/queens/cinder.conf.volume.Debian
index fc9c7f4..f8a34bd 100644
--- a/cinder/files/queens/cinder.conf.volume.Debian
+++ b/cinder/files/queens/cinder.conf.volume.Debian
@@ -310,6 +310,9 @@
# IP address of this host (host address value)
#my_ip = <HOST_IP_ADDRESS>
+{%- if volume.my_ip is defined %}
+my_ip = {{ volume.my_ip }}
+{%- endif %}
# A list of the URLs of glance API servers available to cinder
# ([http[s]://][hostname|ip]:port). If protocol is not specified it defaults to