Port status becomes active after updating network/subnet

Bug #1834979 reported by yanghongyu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Won't Fix
Medium
yanghongyu

Bug Description

Pre-conditions:
    Neutron (Pike),firewall_driver=openvswitch

Reproduction steps:
    1.create vm-A with net-A
    2.shutoff vm-A
    3.show port status of vm-A
    4.update net-A ,change its name to 'net-A-rename'
    5.show port status of vm-A

Description:
    After step 2,we can find the port status of vm-A is down,and at this moment there is no related tap device in br-int.This make sense.
    But,after step 4,the status became active,there is still no tap device,and vm-A still shutoff.This doesn't make any sense.We just change network name.This behavior has no relation to port status .
    According to code,we find that DHCP agent (_dhcp_ready_ports_loop->dhcp_ready_on_ports)will notify neutron server to make ports active each time after network,subnet,port,updated.Why this logic?

Any ideas?

Revision history for this message
Li Zhouzhou (lizhouzhou) wrote :

I haven't reproduced this problem. Shutoff(nova stop) vm won't cause port DOWN and tap device was still exsit. So I suspect it may other issues exists.

Revision history for this message
yanghongyu (yanghongyu614) wrote :

if firewall_driver choose iptables ,if vm shutoff, tap device will still exist.

Revision history for this message
LIU Yulong (dragon889) wrote :

It's an interesting phenomenon, tested in local stable/queens environment.
http://paste.openstack.org/show/753798/

Changed in neutron:
status: New → Confirmed
huang liujie (ljhuang)
Changed in neutron:
status: Confirmed → Opinion
Changed in neutron:
status: Opinion → Invalid
status: Invalid → Opinion
huang liujie (ljhuang)
Changed in neutron:
status: Opinion → Confirmed
Changed in neutron:
importance: Undecided → Critical
importance: Critical → Medium
summary: - port status became active after update network,subnet
+ Port status becomes active after updating network/subnet
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (stable/pike)

Fix proposed to branch: stable/pike
Review: https://review.opendev.org/669608

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

Fix proposed to branch: master
Review: https://review.opendev.org/669793

Changed in neutron:
assignee: nobody → YHyu (yhyu)
status: Confirmed → In Progress
Changed in neutron:
assignee: YHyu (yhyu) → yanghongyu (yanghongyu)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on neutron (stable/pike)

Change abandoned by yanghongyu (yang.hongyu@99cloud.net) on branch: stable/pike
Review: https://review.opendev.org/669608

Changed in neutron:
status: In Progress → Won't Fix
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on neutron (master)

Change abandoned by "Rodolfo Alonso <email address hidden>" on branch: master
Review: https://review.opendev.org/c/openstack/neutron/+/669793

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.