Zun

remove sg when network detach

Bug #1744264 reported by feng.shengqin@zte.com.cn
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zun
In Progress
Undecided
feng.shengqin@zte.com.cn

Bug Description

Description
===========
We create a container with port(s), which has security group. Then we detach the network from the container, the security groups info are still recorded in contaier_table.

Reproduce
=========
$ openstack security group create testsg
$ openstack port create --security-group testsg --network private testport
$ zun create --net port=testport --name testcontainer nginx
$ networkid = $(zun show testcontainer |grep network)
$ zun network-detach testcontainer $networkid
$ zun show testcontainer
...
| security_groups | ['xxxxxxxxxxx'] |
...

Expect
======
The field 'security_groups' does not contain 'testsg'

Actual
======
The field 'security_groups still contains 'testsg'

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to zun (master)

Fix proposed to branch: master
Review: https://review.openstack.org/535695

Changed in zun:
assignee: nobody → feng.shengqin@zte.com.cn (feng-shengqin)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on zun (master)

Change abandoned by feng.shengqin (<email address hidden>) on branch: master
Review: https://review.openstack.org/535695

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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