Public bug reported:

I have a VM with multiple ports, assume port_one and port_two. Both port
have QoS. When i hard reboot my VM, port_two still has QoS, port_one
loses.

https://review.opendev.org/#/c/690098/11
https://github.com/openstack/neutron/blob/master/neutron/plugins/ml2/drivers/openvswitch/agent/ovs_neutron_agent.py#L1630
It because both ports are located in ports_re_added. It will loop through the 
ports. port_one is iterated first, events ['re_added'] is assigned port_one, 
events ['removed'] is assigned port_two. In the second loop, events 
['re_added'] is set to port_two instead of adding port_two to list. So after 
the loop, only port_two is left in events ['re_added'].

Reproduce:
- Create VM with multi port
- Hard Reboot Server
- Check QoS with command ovs-vsctl list interface <port>

** Affects: neutron
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1864630

Title:
  Hard Reboot VM with multiple port lost QoS

Status in neutron:
  New

Bug description:
  I have a VM with multiple ports, assume port_one and port_two. Both
  port have QoS. When i hard reboot my VM, port_two still has QoS,
  port_one loses.

  https://review.opendev.org/#/c/690098/11
  
https://github.com/openstack/neutron/blob/master/neutron/plugins/ml2/drivers/openvswitch/agent/ovs_neutron_agent.py#L1630
  It because both ports are located in ports_re_added. It will loop through the 
ports. port_one is iterated first, events ['re_added'] is assigned port_one, 
events ['removed'] is assigned port_two. In the second loop, events 
['re_added'] is set to port_two instead of adding port_two to list. So after 
the loop, only port_two is left in events ['re_added'].

  Reproduce:
  - Create VM with multi port
  - Hard Reboot Server
  - Check QoS with command ovs-vsctl list interface <port>

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1864630/+subscriptions

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to