[Bug 1380150] Re: novaclient: security groups, should fail when creating security groups with duplicate name
Chuck Short
chuck.short at canonical.com
Mon Dec 12 13:26:00 UTC 2016
** Changed in: python-novaclient (Ubuntu)
Status: New => Confirmed
--
You received this bug notification because you are a member of Ubuntu
OpenStack, 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
Status in python-novaclient:
Confirmed
Status in python-novaclient package in Ubuntu:
Confirmed
Bug description:
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
To manage notifications about this bug go to:
https://bugs.launchpad.net/python-novaclient/+bug/1380150/+subscriptions
More information about the Ubuntu-openstack-bugs
mailing list