]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Add required radosgw_interface due to ceph-ansible upstream changes 1110/head
authorVasu Kulkarni <vasu@redhat.com>
Fri, 15 Sep 2017 17:53:01 +0000 (10:53 -0700)
committerVasu Kulkarni <vasu@redhat.com>
Thu, 21 Sep 2017 02:36:30 +0000 (19:36 -0700)
Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
teuthology/task/ceph_ansible.py
teuthology/test/task/test_ceph_ansible.py

index 03147b874b9de2fd2a61ff50c51f7f76738bc043..34885a587d8b22dbcb3bd904931f7fe42f9a84cc 100644 (file)
@@ -248,6 +248,8 @@ class CephAnsible(Task):
             host_vars['devices'] = get_scratch_devices(remote)[0:dev_needed]
         if 'monitor_interface' not in extra_vars:
             host_vars['monitor_interface'] = remote.interface
+        if 'radosgw_interface' not in extra_vars:
+            host_vars['radosgw_interface'] = remote.interface
         if 'public_network' not in extra_vars:
             host_vars['public_network'] = remote.cidr
         return host_vars
index 8314b73f68be1d33bc3d4948fb5eb3fe7aa030b7..85ae129a3e47096a0f9c341918fbe894e445d372 100644 (file)
@@ -79,6 +79,7 @@ class TestCephAnsibleTask(TestTask):
             vars=dict(
                 osd_auto_discovery=True,
                 monitor_interface='eth0',
+                radosgw_interface='eth0',
                 public_network='172.21.0.0/20',
             ),
         ))
@@ -110,6 +111,7 @@ class TestCephAnsibleTask(TestTask):
             playbook=[],
             vars=dict(
                 monitor_interface='eth0',
+                radosgw_interface='eth0',
                 public_network='172.21.0.0/20',
             ),
         ))
@@ -157,11 +159,11 @@ class TestCephAnsibleTask(TestTask):
         hosts_file_obj.seek(0)
         assert hosts_file_obj.read() == '\n'.join([
             '[mdss]',
-            "remote2 monitor_interface='eth0' public_network='172.21.0.0/20'",
+            "remote2 monitor_interface='eth0' public_network='172.21.0.0/20' radosgw_interface='eth0'",
             '',
             '[mons]',
-            "remote1 monitor_interface='eth0' public_network='172.21.0.0/20'",
+            "remote1 monitor_interface='eth0' public_network='172.21.0.0/20' radosgw_interface='eth0'",
             '',
             '[osds]',
-            "remote3 monitor_interface='eth0' public_network='172.21.0.0/20'",
+            "remote3 monitor_interface='eth0' public_network='172.21.0.0/20' radosgw_interface='eth0'",
         ])