]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
defaults: change monitor|radosgw_address default values
authorGuillaume Abrioux <gabrioux@redhat.com>
Mon, 9 Dec 2019 17:23:15 +0000 (18:23 +0100)
committerGuillaume Abrioux <gabrioux@redhat.com>
Tue, 14 Jan 2020 16:22:35 +0000 (17:22 +0100)
To avoid confusion, let's change the default value from `0.0.0.0` to
`x.x.x.x`.
Users might think setting `0.0.0.0` will make the daemon binding on all
interfaces.

Fixes: #4827
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit fc02fc98ebce0f99e81628e76ad28e7bf65435de)

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-docker-common/tasks/check_mandatory_vars.yml
roles/ceph-handler/templates/restart_rgw_daemon.sh.j2
roles/ceph-mon/tasks/docker/main.yml
roles/ceph-mon/templates/ceph-mon.service.j2
roles/ceph-validate/tasks/main.yml

index 3703c5614e6330b3d06cc76aa4b40e11b1883b84..a8e2d66cf87fd3dbac4e8d916b412e1543fd3398 100644 (file)
@@ -340,7 +340,7 @@ dummy:
 # Eg. If you want to specify for each monitor which address the monitor will bind to you can set it in your **inventory host file** by using 'monitor_address' variable.
 # Preference will go to monitor_address if both monitor_address and monitor_interface are defined.
 #monitor_interface: interface
-#monitor_address: 0.0.0.0
+#monitor_address: x.x.x.x
 #monitor_address_block: subnet
 # set to either ipv4 or ipv6, whichever your network is using
 #ip_version: ipv4
@@ -408,7 +408,7 @@ dummy:
 # Eg. If you want to specify for each radosgw node which address the radosgw will bind to you can set it in your **inventory host file** by using 'radosgw_address' variable.
 # Preference will go to radosgw_address if both radosgw_address and radosgw_interface are defined.
 #radosgw_interface: interface
-#radosgw_address: 0.0.0.0
+#radosgw_address: x.x.x.x
 #radosgw_address_block: subnet
 #radosgw_keystone_ssl: false # activate this when using keystone PKI keys
 # Rados Gateway options
index dbef7afb376c0a7eacf43fffcaf81864a6f2735f..36d29b3bfa697614e9636470ea083a3288cfde8f 100644 (file)
@@ -340,7 +340,7 @@ ceph_rhcs_version: 3
 # Eg. If you want to specify for each monitor which address the monitor will bind to you can set it in your **inventory host file** by using 'monitor_address' variable.
 # Preference will go to monitor_address if both monitor_address and monitor_interface are defined.
 #monitor_interface: interface
-#monitor_address: 0.0.0.0
+#monitor_address: x.x.x.x
 #monitor_address_block: subnet
 # set to either ipv4 or ipv6, whichever your network is using
 #ip_version: ipv4
@@ -408,7 +408,7 @@ ceph_rhcs_version: 3
 # Eg. If you want to specify for each radosgw node which address the radosgw will bind to you can set it in your **inventory host file** by using 'radosgw_address' variable.
 # Preference will go to radosgw_address if both radosgw_address and radosgw_interface are defined.
 #radosgw_interface: interface
-#radosgw_address: 0.0.0.0
+#radosgw_address: x.x.x.x
 #radosgw_address_block: subnet
 #radosgw_keystone_ssl: false # activate this when using keystone PKI keys
 # Rados Gateway options
index a6c0ccb3714ada5c7e6f6df6c844a8c20ceeff71..09d32664409a163beb0ad6cff3b5b9faeb9767a0 100644 (file)
@@ -46,7 +46,7 @@ mon host = {% if nb_mon > 0 %}
       {%- elif ip_version == 'ipv6' -%}
         [{{ hostvars[host]['ansible_all_' + ip_version + '_addresses'] | ipaddr(hostvars[host]['monitor_address_block']) | last }}]
       {%- endif %}
-    {% elif hostvars[host]['monitor_address'] is defined and hostvars[host]['monitor_address'] != '0.0.0.0' -%}
+    {% elif hostvars[host]['monitor_address'] is defined and hostvars[host]['monitor_address'] != 'x.x.x.x' -%}
       {% if ip_version == 'ipv4' -%}
         {{ hostvars[host]['monitor_address'] }}
       {%- elif ip_version == 'ipv6' -%}
@@ -86,7 +86,7 @@ mon host = {% if nb_mon > 0 %}
       {%- elif ip_version == 'ipv6' -%}
         [{{ hostvars[host]['ansible_all_' + ip_version + '_addresses'] | ipaddr(hostvars[host]['monitor_address_block']) | last }}]
       {%- endif %}
-    {% elif hostvars[host]['monitor_address'] is defined and hostvars[host]['monitor_address'] != '0.0.0.0' -%}
+    {% elif hostvars[host]['monitor_address'] is defined and hostvars[host]['monitor_address'] != 'x.x.x.x' -%}
       {% if ip_version == 'ipv4' -%}
         {{ hostvars[host]['monitor_address'] }}
       {%- elif ip_version == 'ipv6' -%}
@@ -188,13 +188,13 @@ rgw frontends = {{ radosgw_frontend_type }} {{ 'port' if radosgw_frontend_type =
     {% elif ip_version == 'ipv6' %}
 rgw frontends = {{ radosgw_frontend_type }} {{ 'port' if radosgw_frontend_type == 'civetweb' else 'endpoint' }}=[{{ radosgw_address_block | ipaddr(radosgw_address_block) | last }}]:{{ radosgw_frontend_port }} {{ radosgw_frontend_options }}
     {% endif %}
-{% elif hostvars[host]['radosgw_address'] is defined and hostvars[host]['radosgw_address'] != '0.0.0.0' -%}
+{% elif hostvars[host]['radosgw_address'] is defined and hostvars[host]['radosgw_address'] != 'x.x.x.x' -%}
     {% if ip_version == 'ipv4' %}
 rgw frontends = {{ radosgw_frontend_type }} {{ 'port' if radosgw_frontend_type == 'civetweb' else 'endpoint' }}={{ hostvars[host]['radosgw_address'] }}:{{ radosgw_frontend_port }} {{ radosgw_frontend_options }}
     {% elif ip_version == 'ipv6' %}
 rgw frontends = {{ radosgw_frontend_type }} {{ 'port' if radosgw_frontend_type == 'civetweb' else 'endpoint' }}=[{{ hostvars[host]['radosgw_address'] }}]:{{ radosgw_frontend_port }} {{ radosgw_frontend_options }}
     {% endif %}
-{% elif radosgw_address is defined and radosgw_address != '0.0.0.0' -%}
+{% elif radosgw_address is defined and radosgw_address != 'x.x.x.x' -%}
     {% if ip_version == 'ipv4' %}
 rgw frontends = {{ radosgw_frontend_type }} {{ 'port' if radosgw_frontend_type == 'civetweb' else 'endpoint' }}={{ radosgw_address }}:{{ radosgw_frontend_port }} {{ radosgw_frontend_options }}
     {% elif ip_version == 'ipv6' %}
index 014406067118fcbe3ed0514fc977c6ff0d0e6bff..cb7714152b85c30b2abb2cbc94128168795a7f63 100644 (file)
@@ -332,7 +332,7 @@ rbd_client_admin_socket_path: /var/run/ceph # must be writable by QEMU and allow
 # Eg. If you want to specify for each monitor which address the monitor will bind to you can set it in your **inventory host file** by using 'monitor_address' variable.
 # Preference will go to monitor_address if both monitor_address and monitor_interface are defined.
 monitor_interface: interface
-monitor_address: 0.0.0.0
+monitor_address: x.x.x.x
 monitor_address_block: subnet
 # set to either ipv4 or ipv6, whichever your network is using
 ip_version: ipv4
@@ -400,7 +400,7 @@ radosgw_thread_pool_size: 512
 # Eg. If you want to specify for each radosgw node which address the radosgw will bind to you can set it in your **inventory host file** by using 'radosgw_address' variable.
 # Preference will go to radosgw_address if both radosgw_address and radosgw_interface are defined.
 radosgw_interface: interface
-radosgw_address: 0.0.0.0
+radosgw_address: x.x.x.x
 radosgw_address_block: subnet
 radosgw_keystone_ssl: false # activate this when using keystone PKI keys
 # Rados Gateway options
index 0114157bd1b075ac331eff47803d66548b83399c..79e78f21d76697585b7613bdd4a52860a6745efc 100644 (file)
@@ -5,7 +5,7 @@
   when:
     - mon_group_name in group_names
     - monitor_interface == 'interface'
-    - monitor_address == "0.0.0.0"
+    - monitor_address == "x.x.x.x"
     - monitor_address_block == 'subnet'
 
 - name: make sure radosgw_interface, radosgw_address or radosgw_address_block is defined
@@ -14,5 +14,5 @@
   when:
     - rgw_group_name in group_names
     - radosgw_interface == 'interface'
-    - radosgw_address == '0.0.0.0'
+    - radosgw_address == 'x.x.x.x'
     - radosgw_address_block == 'subnet'
index cda59d1f4a964aea38e5031190ae1144fd9398c7..8ab89a3d5df69b26e47dc0e7ac3d9078b471de4e 100644 (file)
@@ -29,7 +29,7 @@ RGW_IP={{ hostvars[inventory_hostname]['radosgw_address'] }} \
     {% elif ip_version == 'ipv6' %}
 RGW_IP=[{{ hostvars[inventory_hostname]['radosgw_address'] }}] \
     {% endif %}
-{% elif radosgw_address is defined and radosgw_address != '0.0.0.0' -%}
+{% elif radosgw_address is defined and radosgw_address != 'x.x.x.x' -%}
     {% if ip_version == 'ipv4' %}
 RGW_IP={{ radosgw_address }} \
     {% elif ip_version == 'ipv6' %}
index c240116edff0c009ef7c7a48bd89b05fd1c52014..e5b9435153afb4753aac118e31a5d41a2a337c6d 100644 (file)
@@ -34,7 +34,7 @@
     - not containerized_deployment_with_kv
     - ip_version == 'ipv4'
     - hostvars[groups[mon_group_name][0]]['monitor_address'] is defined
-    - hostvars[groups[mon_group_name][0]]['monitor_address'] != '0.0.0.0'
+    - hostvars[groups[mon_group_name][0]]['monitor_address'] != 'x.x.x.x'
 
 - name: ipv4 - force peer addition as potential bootstrap peer for cluster bringup - monitor_address_block
   command: "{{ docker_exec_cmd }} ceph --admin-daemon /var/run/ceph/{{ cluster }}-mon.{{ monitor_name }}.asok add_bootstrap_peer_hint {{ hostvars[groups[mon_group_name][0]]['ansible_all_' + ip_version + '_addresses'] | ipaddr(monitor_address_block) | first }}"
@@ -64,7 +64,7 @@
     - not containerized_deployment_with_kv
     - ip_version == 'ipv6'
     - hostvars[groups[mon_group_name][0]]['monitor_address'] is defined
-    - hostvars[groups[mon_group_name][0]]['monitor_address'] != '0.0.0.0'
+    - hostvars[groups[mon_group_name][0]]['monitor_address'] != 'x.x.x.x'
 
 - name: ipv6 - force peer addition as potential bootstrap peer for cluster bringup - monitor_address_block
   command: "{{ docker_exec_cmd }} ceph --admin-daemon /var/run/ceph/{{ cluster }}-mon.{{ monitor_name }}.asok add_bootstrap_peer_hint [{{ hostvars[groups[mon_group_name][0]]['ansible_all_' + ip_version + '_addresses'] | ipaddr(monitor_address_block) | first }}]"
index 922f61677fe5e8f163e0ef01fd556aebc0f49af6..f0aebf2c03d84c1a58c3b13ec99f61cf6d191b9a 100644 (file)
@@ -36,7 +36,7 @@ ExecStart=/usr/bin/docker run --rm --name ceph-mon-%i \
     {% elif ip_version == 'ipv6' -%}
   -e MON_IP=[{{ hostvars[inventory_hostname]['ansible_all_' + ip_version + '_addresses'] | ipaddr(monitor_address_block) | last }}] \
     {% endif -%}
-{% elif hostvars[inventory_hostname]['monitor_address'] is defined and hostvars[inventory_hostname]['monitor_address'] != '0.0.0.0' %}
+{% elif hostvars[inventory_hostname]['monitor_address'] is defined and hostvars[inventory_hostname]['monitor_address'] != 'x.x.x.x' %}
     {% if ip_version == 'ipv4' -%}
   -e MON_IP={{ hostvars[inventory_hostname]['monitor_address'] }} \
     {% elif ip_version == 'ipv6' -%}
index 0bf0dfe6d44f443e7e601064996a0132246fe0b7..b9c8434d1deda16fc42bb097db1be07df387d28c 100644 (file)
@@ -40,7 +40,7 @@
     msg: "Either monitor_address, monitor_address_block or monitor_interface must be provided"
   when:
     - mon_group_name in group_names
-    - monitor_address == '0.0.0.0'
+    - monitor_address == 'x.x.x.x'
     - monitor_address_block == 'subnet'
     - monitor_interface == 'interface'
 
@@ -49,7 +49,7 @@
     msg: "Either radosgw_address, radosgw_address_block or radosgw_interface must be provided"
   when:
     - rgw_group_name in group_names
-    - radosgw_address == '0.0.0.0'
+    - radosgw_address == 'x.x.x.x'
     - radosgw_address_block == 'subnet'
     - radosgw_interface == 'interface'
 
   when:
     - mon_group_name in group_names
     - monitor_interface != "dummy"
-    - monitor_address == "0.0.0.0"
+    - monitor_address == "x.x.x.x"
     - monitor_address_block == "subnet"
 
 - name: include check_ipaddr_mon.yml
   when:
     - mon_group_name in group_names
     - monitor_interface == "interface"
-    - monitor_address == "0.0.0.0"
+    - monitor_address == "x.x.x.x"
     - monitor_address_block != "subnet"
 
 - name: include check_eth_rgw.yml
   when:
     - rgw_group_name in group_names
     - radosgw_interface != "dummy"
-    - radosgw_address == "0.0.0.0"
+    - radosgw_address == "x.x.x.x"
     - radosgw_address_block == "subnet"
 
 - name: include check_rgw_multisite.yml