[Bug 1380150] Re: novaclient: security groups, should fail when creating security groups with duplicate name
Yogesh Sharma
1380150 at bugs.launchpad.net
Fri Nov 11 02:43:34 UTC 2016
The same behavior is true for the other resources created as well like instances, networks, volumes, flavors.
Duplicate names are allowed and in that scenario, the UUIDs are used for the resource as it is unique.
It seems intentional to allow duplicate names for the resources. Is the fix required for this bug to deny duplicate names?
--
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:
New
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