diff --git a/rally/plugins/openstack/wrappers/network.py b/rally/plugins/openstack/wrappers/network.py index b2785422..64749136 100644 --- a/rally/plugins/openstack/wrappers/network.py +++ b/rally/plugins/openstack/wrappers/network.py @@ -137,7 +137,7 @@ class NovaNetworkWrapper(NetworkWrapper): cidr = self._generate_cidr() label = utils.generate_random_name("rally_net_") network = self.client.networks.create( - tenant_id=tenant_id, cidr=cidr, label=label) + project_id=tenant_id, cidr=cidr, label=label) return self._marshal_network_object(network) def delete_network(self, network): diff --git a/tests/unit/plugins/openstack/wrappers/test_network.py b/tests/unit/plugins/openstack/wrappers/test_network.py index 961095ba..db29374f 100644 --- a/tests/unit/plugins/openstack/wrappers/test_network.py +++ b/tests/unit/plugins/openstack/wrappers/test_network.py @@ -79,7 +79,7 @@ class NovaNetworkWrapperTestCase(test.TestCase): mock_generate_random_name.assert_called_once_with("rally_net_") service._generate_cidr.assert_called_once_with() service.client.networks.create.assert_called_once_with( - tenant_id="foo_tenant", cidr="foo_cidr", label="foo_name") + project_id="foo_tenant", cidr="foo_cidr", label="foo_name") def test_delete_network(self): service = self.get_wrapper()