diff --git a/kayobe/cli/commands.py b/kayobe/cli/commands.py index a0007d887..315c787bf 100644 --- a/kayobe/cli/commands.py +++ b/kayobe/cli/commands.py @@ -993,7 +993,8 @@ class OvercloudInventoryDiscover(KayobeAnsibleMixin, VaultMixin, Command): "overcloud-inventory-discover")) # If necessary, allocate IP addresses for the discovered hosts. self.run_kayobe_playbook(parsed_args, - _get_playbook_path("ip-allocation")) + _get_playbook_path("ip-allocation"), + limit="overcloud") # Now populate the Kolla Ansible inventory. self.generate_kolla_ansible_config(parsed_args, service_config=False) diff --git a/kayobe/tests/unit/cli/test_commands.py b/kayobe/tests/unit/cli/test_commands.py index 582b6fe58..c86671815 100644 --- a/kayobe/tests/unit/cli/test_commands.py +++ b/kayobe/tests/unit/cli/test_commands.py @@ -1172,6 +1172,7 @@ class TestCase(unittest.TestCase): mock.call( mock.ANY, utils.get_data_files_path("ansible", "ip-allocation.yml"), + limit="overcloud", ), ] self.assertListEqual(expected_calls, mock_run_one.call_args_list)