remove sg when network detach

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

Bug 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.

$ 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'] |

The field 'security_groups' does not contain 'testsg'

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.