[Bug 1380150] [NEW] novaclient: security groups, should fail when creating security groups with duplicate name
Behzad
bdastur at cisco.com
Sat Oct 11 18:03:16 UTC 2014
Public bug reported:
When creating a security group using the novaclient.security_groups
create API, there is not check which avoids creating security group if
one already exist. This later on poses a problem when trying to delete,
find the security group, which results in a NoUniqueMatch exception as
below.
It would be better if the API returned an error when creating a security
group with the same name.
======================================================================
ERROR: test_network_scenarios (__main__.NetworkScenarioTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/xyz/code/install_oct10/pns/vmtp.py", line 359, in tearDown
self.comp.security_group_delete()
File "/home/xyz/code/install_oct10/pns/compute.py", line 183, in security_group_delete
group = self.novaclient.security_groups.find(name=self.config.security_group_name)
File "/home/xyz/env/env1/lib/python2.7/site-packages/novaclient/base.py", line 140, in find
raise exceptions.NoUniqueMatch
NoUniqueMatch
** Affects: python-novaclient (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to python-novaclient in Ubuntu.
https://bugs.launchpad.net/bugs/1380150
Title:
novaclient: security groups, should fail when creating security groups
with duplicate name
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-novaclient/+bug/1380150/+subscriptions
More information about the Ubuntu-server-bugs
mailing list