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 | |
---|---|---|---|---|---|
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'
To post a comment you must log in.
Fix proposed to branch: master /review. openstack. org/535695
Review: https:/