]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
config: remove any spaces in public_network or cluster_network
authorSébastien Han <seb@redhat.com>
Tue, 30 Jan 2018 13:39:58 +0000 (14:39 +0100)
committerGuillaume Abrioux <gabrioux@redhat.com>
Tue, 30 Jan 2018 16:47:15 +0000 (17:47 +0100)
With two public networks configured - we found that with
"NETWORK_ADDR_1, NETWORK_ADDR_2" install process consistently became
broken, trying to find docker registry on second network, and not
finding mon container.

but without spaces
"NETWORK_ADDR_1,NETWORK_ADDR_2" install succeeds
so, containerized install is more peculiar with formatting of this line

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1534003
Signed-off-by: Sébastien Han <seb@redhat.com>
group_vars/all.yml.sample
group_vars/rhcs.yml.sample
roles/ceph-config/templates/ceph.conf.j2
roles/ceph-defaults/defaults/main.yml
roles/ceph-mon/templates/ceph-mon.service.j2

index 5c2e35c2144a22e415bde2163ae150f850eb12d6..e1c4035e74917f39cfe929113180e866ca6a3be3 100644 (file)
@@ -348,7 +348,7 @@ dummy:
 #
 #journal_size: 5120 # OSD journal size in MB
 #public_network: 0.0.0.0/0
-#cluster_network: "{{ public_network }}"
+#cluster_network: "{{ public_network | regex_replace(' ', '') }}"
 #osd_mkfs_type: xfs
 #osd_mkfs_options_xfs: -f -i size=2048
 #osd_mount_options_xfs: noatime,largeio,inode64,swalloc
index f9b5da70e1f0f368aa47ee4e3256508876e74dd1..b18a9f76599d2d9620b7e3f043cf6655b148f0bd 100644 (file)
@@ -348,7 +348,7 @@ ceph_repository: rhcs
 #
 #journal_size: 5120 # OSD journal size in MB
 #public_network: 0.0.0.0/0
-#cluster_network: "{{ public_network }}"
+#cluster_network: "{{ public_network | regex_replace(' ', '') }}"
 #osd_mkfs_type: xfs
 #osd_mkfs_options_xfs: -f -i size=2048
 #osd_mount_options_xfs: noatime,largeio,inode64,swalloc
index 57a1df06e76976ee3a027ee92f952ea35e39d6b8..9c551444106c28d9745d9981e70b383f9a36ebfa 100644 (file)
@@ -112,10 +112,10 @@ mon host = {% if nb_mon > 0 %}
 {% endif %}
 
 {% if public_network is defined %}
-public network = {{ public_network }}
+public network = {{ public_network | regex_replace(' ', '') }}
 {% endif %}
 {% if cluster_network is defined %}
-cluster network = {{ cluster_network }}
+cluster network = {{ cluster_network | regex_replace(' ', '') }}
 {% endif %}
 {% if rgw_override_bucket_index_max_shards is defined %}
 rgw override bucket index max shards = {{ rgw_override_bucket_index_max_shards }}
index 1486bc50adb98279c4b2bd7684524ce7048fe6ff..1368189ed3aebc76023a8358516e1281243eebf0 100644 (file)
@@ -340,7 +340,7 @@ mon_use_fqdn: false # if set to true, the MON name used will be the fqdn in the
 #
 journal_size: 5120 # OSD journal size in MB
 public_network: 0.0.0.0/0
-cluster_network: "{{ public_network }}"
+cluster_network: "{{ public_network | regex_replace(' ', '') }}"
 osd_mkfs_type: xfs
 osd_mkfs_options_xfs: -f -i size=2048
 osd_mount_options_xfs: noatime,largeio,inode64,swalloc
index 14f168dcb35e5bca1b4f77ed2bd75de398d1db4f..9fe9d6774d7630087796409a21283948ec08c043 100644 (file)
@@ -58,7 +58,7 @@ ExecStart=/usr/bin/docker run --rm --name ceph-mon-%i --net=host \
 {%- endif %}
   -e CLUSTER={{ cluster }} \
   -e FSID={{ fsid }} \
-  -e CEPH_PUBLIC_NETWORK={{ public_network }} \
+  -e CEPH_PUBLIC_NETWORK={{ public_network | regex_replace(' ', '') }} \
   -e CEPH_DAEMON=MON \
   {{ ceph_mon_docker_extra_env }} \
   {{ceph_docker_registry }}/{{ ceph_docker_image }}:{{ ceph_docker_image_tag }}