diff --git a/kayobe/cli/commands.py b/kayobe/cli/commands.py index 325a67aea..110bc9b3d 100644 --- a/kayobe/cli/commands.py +++ b/kayobe/cli/commands.py @@ -991,7 +991,8 @@ def take_action(self, parsed_args): "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 5986de76b..7e4f440dd 100644 --- a/kayobe/tests/unit/cli/test_commands.py +++ b/kayobe/tests/unit/cli/test_commands.py @@ -1166,6 +1166,7 @@ def test_overcloud_inventory_discover(self, mock_run_one, mock_run): mock.call( mock.ANY, utils.get_data_files_path("ansible", "ip-allocation.yml"), + limit="overcloud", ), ] self.assertEqual(expected_calls, mock_run_one.call_args_list)