diff options
author | Drew Thorstensen <thorst@us.ibm.com> | 2014-09-09 07:27:56 -0500 |
---|---|---|
committer | Drew Thorstensen <thorst@us.ibm.com> | 2014-10-07 14:50:48 -0500 |
commit | 35008c0d16e41fdae6e868626477f361392aa923 (patch) | |
tree | 97589034942955399a75a8c0e6a956f9582446c3 /nova/tests/db/fakes.py | |
parent | 211cc40a306d823b4bea177ea10bf30d5d27bd25 (diff) | |
download | nova-35008c0d16e41fdae6e868626477f361392aa923.tar.gz |
Update NoMoreFixedIps message description
The exception NoMoreFixedIps within Nova is a generic exception.
It is used to indicate that the subnets within the network no longer
have any available fixed IPs for use.
The original message was non specific. This change set provides an
updated message that indicates which network has exhausted its fixed
IP set.
This is important for operators that are deploying instances with
multiple networks.
Change-Id: Ib8b854381b616f83e82bc573f85e109f019897dc
Closes-Bug: #1366982
Diffstat (limited to 'nova/tests/db/fakes.py')
-rw-r--r-- | nova/tests/db/fakes.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nova/tests/db/fakes.py b/nova/tests/db/fakes.py index 37e965c2df..2b93d610f4 100644 --- a/nova/tests/db/fakes.py +++ b/nova/tests/db/fakes.py @@ -168,7 +168,7 @@ def stub_out_db_network_api(stubs): ips = filter(lambda i: i['address'] == address, fixed_ips) if not ips: - raise exception.NoMoreFixedIps() + raise exception.NoMoreFixedIps(net='fake_net') ips[0]['instance'] = True ips[0]['instance_id'] = instance_id @@ -177,7 +177,7 @@ def stub_out_db_network_api(stubs): i['network_id'] is None) and not i['instance'], fixed_ips) if not ips: - raise exception.NoMoreFixedIps() + raise exception.NoMoreFixedIps(net=network_id) ips[0]['instance'] = True ips[0]['instance_id'] = instance_id return ips[0]['address'] |