]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commit
ceph-handler: Fix radosgw_address default value
authorDimitri Savineau <dsavinea@redhat.com>
Thu, 4 Jul 2019 15:19:00 +0000 (11:19 -0400)
committerGuillaume Abrioux <gabrioux@redhat.com>
Sun, 7 Jul 2019 05:24:38 +0000 (07:24 +0200)
commit9cc5d1e903f45a580f5cd941de220731f7993e75
tree5590d98af7f886285c715e896be96d46ba109a23
parent9c31811c33057a206ccc3ae334b046d85a4f190e
ceph-handler: Fix radosgw_address default value

The rgw restart script set the RGW_IP variable depending on ansible
variables:
  - radosgw_address
  - radosgw_address_block
  - radosgw_interface

Those variables have default values defined in ceph-defaults role:

radosgw_interface: interface
radosgw_address: 0.0.0.0
radosgw_address_block: subnet

But in the rgw restart script we always use the radosgw_address value
instead of the radosgw_interface when defined because we aren't testing
the right default value.
As a consequence, the RGW_IP variable will be set to 0.0.0.0 even if
the ip address associated to the radosgw_interface variable is set
correctly. This causes the check_rest function to fail.

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
roles/ceph-handler/templates/restart_rgw_daemon.sh.j2