Public bug reported:
env:
neutron version: victoria
/etc/neutron/plugins/ml2/openvswitch_agent.ini:firewall_driver=openvswitch
reproduce the problem:
$ openstack server delete xxx
Reason for error:
The port update and port remove events with very close timing.
When the update event is processed, the ovs port has been deleted. When
get_or_create_ofport reads the ovs port information from ovsdb, the port still
exists but the obtained ofport=-1.
Using ofport=-1 to call _update_flows_for_port or _set_port_filters to handle
the openflow table will report the following error
error log:
INFO neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent [None
req-984032db-a239-47ef-b80e-9064f5788a8b - - - - -] Port
61a04bae-b608-47cf-bb77-3e3a63def50c updated. Details: {'device':
'61a04bae-b608-47cf-bb77-3e3a63def50c', 'device_id':
'9a158b27-8ae8-4afd-ba8e-8e56247ac868', 'network_id':
'b225d077-0558-4b64-b32a-36217767e54f', 'port_id':
'61a04bae-b608-47cf-bb77-3e3a63def50c', 'mac_address': 'fa:16:3e:ae:77:28',
'admin_state_up': True, 'network_type': 'vxlan', 'segmentation_id': 57,
'physical_network': None, 'fixed_ips': [{'subnet_id':
'557d4d98-5e51-480b-8db5-a7f6adc615d7', 'ip_address': '172.31.16.184'}],
'device_owner': 'compute:az-x86-up-1', 'allowed_address_pairs': [],
'port_security_enabled': True, 'qos_policy_id': None, 'network_qos_policy_id':
None, 'profile': {}, 'vif_type': 'ovs', 'vnic_type': 'normal',
'security_groups': ['05a2d0ca-df71-4ef4-92d3-1464a94c8e11']}
INFO neutron.agent.securitygroups_rpc [None
req-984032db-a239-47ef-b80e-9064f5788a8b - - - - -] Refresh firewall rules
ERROR neutron.agent.linux.utils [None req-984032db-a239-47ef-b80e-9064f5788a8b
- - - - -] Exit code: 1; Cmd: ['ovs-ofctl', 'add-flows', '-O', 'OpenFlow10',
'br-int', '--bundle', '-']; Stdin:
hard_timeout=0,idle_timeout=0,priority=100,table=60,in_port=-1,cookie=6616235460093723383,actions=set_field:-1->reg5,set_field:9->reg6,resubmit(,71)
hard_timeout=0,idle_timeout=0,priority=90,table=60,dl_dst=fa:16:3e:ae:77:28,dl_vlan=0x9,cookie=6616235460093723383,actions=set_field:-1->reg5,set_field:9->reg6,strip_vlan,resubmit(,81)
hard_timeout=0,idle_timeout=0,priority=95,table=71,in_port=-1,dl_type=0x86dd,nw_proto=58,icmp_type=130,reg5=-1,cookie=6616235460093723383,actions=resubmit(,94)
hard_timeout=0,idle_timeout=0,priority=95,table=71,in_port=-1,dl_type=0x86dd,nw_proto=58,icmp_type=133,reg5=-1,cookie=6616235460093723383,actions=resubmit(,94)
hard_timeout=0,idle_timeout=0,priority=95,table=71,in_port=-1,dl_type=0x86dd,nw_proto=58,icmp_type=135,reg5=-1,cookie=6616235460093723383,actions=resubmit(,94)
hard_timeout=0,idle_timeout=0,priority=95,table=71,in_port=-1,dl_type=0x86dd,nw_proto=58,icmp_type=136,reg5=-1,cookie=6616235460093723383,actions=resubmit(,94)
hard_timeout=0,idle_timeout=0,priority=95,table=71,in_port=-1,dl_src=fa:16:3e:ae:77:28,dl_type=0x0806,arp_spa=172.31.16.184,reg5=-1,cookie=6616235460093723383,actions=resubmit(,94)
hard_timeout=0,idle_timeout=0,priority=77,dl_type=0x0800,table=72,nw_proto=6,ct_state=+new-est,reg5=-1,cookie=6616235460093723383,actions=resubmit(,73);
Stdout: ; Stderr: 2022-03-25T01:41:27Z|00001|ofp_port|WARN|Negative value -1
is not a valid port number.
ovs-ofctl: -:1: -1: invalid or unknown port for in_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/1966383
Title:
ovs-agent: value -1 is not a valid port number when _set_port_filters
Status in neutron:
New
Bug description:
env:
neutron version: victoria
/etc/neutron/plugins/ml2/openvswitch_agent.ini:firewall_driver=openvswitch
reproduce the problem:
$ openstack server delete xxx
Reason for error:
The port update and port remove events with very close timing.
When the update event is processed, the ovs port has been deleted. When
get_or_create_ofport reads the ovs port information from ovsdb, the port still
exists but the obtained ofport=-1.
Using ofport=-1 to call _update_flows_for_port or _set_port_filters to handle
the openflow table will report the following error
error log:
INFO neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent [None
req-984032db-a239-47ef-b80e-9064f5788a8b - - - - -] Port
61a04bae-b608-47cf-bb77-3e3a63def50c updated. Details: {'device':
'61a04bae-b608-47cf-bb77-3e3a63def50c', 'device_id':
'9a158b27-8ae8-4afd-ba8e-8e56247ac868', 'network_id':
'b225d077-0558-4b64-b32a-36217767e54f', 'port_id':
'61a04bae-b608-47cf-bb77-3e3a63def50c', 'mac_address': 'fa:16:3e:ae:77:28',
'admin_state_up': True, 'network_type': 'vxlan', 'segmentation_id': 57,
'physical_network': None, 'fixed_ips': [{'subnet_id':
'557d4d98-5e51-480b-8db5-a7f6adc615d7', 'ip_address': '172.31.16.184'}],
'device_owner': 'compute:az-x86-up-1', 'allowed_address_pairs': [],
'port_security_enabled': True, 'qos_policy_id': None, 'network_qos_policy_id':
None, 'profile': {}, 'vif_type': 'ovs', 'vnic_type': 'normal',
'security_groups': ['05a2d0ca-df71-4ef4-92d3-1464a94c8e11']}
INFO neutron.agent.securitygroups_rpc [None
req-984032db-a239-47ef-b80e-9064f5788a8b - - - - -] Refresh firewall rules
ERROR neutron.agent.linux.utils [None
req-984032db-a239-47ef-b80e-9064f5788a8b - - - - -] Exit code: 1; Cmd:
['ovs-ofctl', 'add-flows', '-O', 'OpenFlow10', 'br-int', '--bundle', '-'];
Stdin:
hard_timeout=0,idle_timeout=0,priority=100,table=60,in_port=-1,cookie=6616235460093723383,actions=set_field:-1->reg5,set_field:9->reg6,resubmit(,71)
hard_timeout=0,idle_timeout=0,priority=90,table=60,dl_dst=fa:16:3e:ae:77:28,dl_vlan=0x9,cookie=6616235460093723383,actions=set_field:-1->reg5,set_field:9->reg6,strip_vlan,resubmit(,81)
hard_timeout=0,idle_timeout=0,priority=95,table=71,in_port=-1,dl_type=0x86dd,nw_proto=58,icmp_type=130,reg5=-1,cookie=6616235460093723383,actions=resubmit(,94)
hard_timeout=0,idle_timeout=0,priority=95,table=71,in_port=-1,dl_type=0x86dd,nw_proto=58,icmp_type=133,reg5=-1,cookie=6616235460093723383,actions=resubmit(,94)
hard_timeout=0,idle_timeout=0,priority=95,table=71,in_port=-1,dl_type=0x86dd,nw_proto=58,icmp_type=135,reg5=-1,cookie=6616235460093723383,actions=resubmit(,94)
hard_timeout=0,idle_timeout=0,priority=95,table=71,in_port=-1,dl_type=0x86dd,nw_proto=58,icmp_type=136,reg5=-1,cookie=6616235460093723383,actions=resubmit(,94)
hard_timeout=0,idle_timeout=0,priority=95,table=71,in_port=-1,dl_src=fa:16:3e:ae:77:28,dl_type=0x0806,arp_spa=172.31.16.184,reg5=-1,cookie=6616235460093723383,actions=resubmit(,94)
hard_timeout=0,idle_timeout=0,priority=77,dl_type=0x0800,table=72,nw_proto=6,ct_state=+new-est,reg5=-1,cookie=6616235460093723383,actions=resubmit(,73);
Stdout: ; Stderr: 2022-03-25T01:41:27Z|00001|ofp_port|WARN|Negative value -1
is not a valid port number.
ovs-ofctl: -:1: -1: invalid or unknown port for in_port
...
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1966383/+subscriptions
--
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to : [email protected]
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help : https://help.launchpad.net/ListHelp