[Bug 1380150] Re: novaclient: security groups, should fail when creating security groups with duplicate name
Takashi NATSUME
natsume.takashi at lab.ntt.co.jp
Tue Apr 3 06:09:09 UTC 2018
The security_groups APIs have been removed since https://review.openstack.org/#/c/447716/.
And the related command have been removed since https://review.openstack.org/#/c/437145/.
So it is no longer necessary to fix it.
** Changed in: python-novaclient
Status: Confirmed => Won't Fix
--
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:
Won't Fix
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