juju-core duplicates quantum security groups

Bug #1189507 reported by David Britton
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
juju-core
Fix Released
High
Ian Booth

Bug Description

When doing a bootstrap or deploy on a quantum enabled security group openstack. juju-core will duplicate the main security group (in my case, juju-precise)

ubuntu@davidpbritton-bastion:~$ nova secgroup-list
+--------------+-------------+
| Name | Description |
+--------------+-------------+
| default | default |
| juju-precise | juju group |
| juju-precise | juju group |
+--------------+-------------+

Since juju operates on security group names, this behavior should be avoided. In pyjuju, the security group is checked explicitly, however in juju-core it appears that the ensure group function in environs/openstack/provider.go around line 1172 should be a bit more intelligent about checking for security groups with the proper name and using those, instead of trying to create a group and relying on errors to determine if the group exists.

Revision history for this message
David Britton (dpb) wrote :

Attaching a sample solution to this bug. I'm sure there is a test that also needs to be modified, but this gets around the problem on my openstack deployment.

Revision history for this message
David Britton (dpb) wrote :
James Page (james-page)
tags: added: serverstack
Revision history for this message
William Reade (fwereade) wrote :

John, would you take a look at this and see if you can get it tested and landed please?

Changed in juju-core:
status: New → Triaged
importance: Undecided → High
assignee: nobody → John A Meinel (jameinel)
tags: added: openstack
Revision history for this message
Mark Ramm (mark-ramm) wrote :

Ian can you take over for John on this one?

Changed in juju-core:
assignee: John A Meinel (jameinel) → Ian Booth (wallyworld)
Ian Booth (wallyworld)
Changed in juju-core:
status: Triaged → In Progress
Ian Booth (wallyworld)
Changed in juju-core:
milestone: none → 1.11.4
status: In Progress → Fix Committed
Changed in juju-core:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.