Merge "Fix IP allocation limit in overcloud inventory discover"
This commit is contained in:
commit
6e2f5a1884
@ -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)
|
||||||
|
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user