Merge "Fix IP allocation limit in overcloud inventory discover"

This commit is contained in:
Zuul 2022-08-29 14:37:41 +00:00 committed by Gerrit Code Review
commit 6e2f5a1884
2 changed files with 3 additions and 1 deletions

View File

@ -993,7 +993,8 @@ class OvercloudInventoryDiscover(KayobeAnsibleMixin, VaultMixin, Command):
"overcloud-inventory-discover")) "overcloud-inventory-discover"))
# If necessary, allocate IP addresses for the discovered hosts. # If necessary, allocate IP addresses for the discovered hosts.
self.run_kayobe_playbook(parsed_args, self.run_kayobe_playbook(parsed_args,
_get_playbook_path("ip-allocation")) _get_playbook_path("ip-allocation"),
limit="overcloud")
# Now populate the Kolla Ansible inventory. # Now populate the Kolla Ansible inventory.
self.generate_kolla_ansible_config(parsed_args, service_config=False) self.generate_kolla_ansible_config(parsed_args, service_config=False)

View File

@ -1172,6 +1172,7 @@ class TestCase(unittest.TestCase):
mock.call( mock.call(
mock.ANY, mock.ANY,
utils.get_data_files_path("ansible", "ip-allocation.yml"), utils.get_data_files_path("ansible", "ip-allocation.yml"),
limit="overcloud",
), ),
] ]
self.assertListEqual(expected_calls, mock_run_one.call_args_list) self.assertListEqual(expected_calls, mock_run_one.call_args_list)