Comment 20 for bug 2024160

Revision history for this message
Mohammed Naser (mnaser) wrote (last edit ):

So in this case, it seems that for some reason, the maintenance task seems to 'unset' the state of the port:

2023-09-26 05:59:37.812 27 DEBUG neutron.plugins.ml2.drivers.ovn.mech_driver.ovsdb.maintenance [None req-30eb5d90-11a4-422f-b017-a4c4099c8722 - - - - - -] Maintenance task: Fixing resource 34c341e5-3eb6-47d7-bc96-54a9a1aca61f (type: ports) at create/update check_for_inconsistencies /var/lib/openstack/lib/python3.10/site-packages/neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/maintenance.py:384
2023-09-26 05:59:37.855 27 DEBUG ovsdbapp.backend.ovs_idl.transaction [-] Running txn n=1 command(idx=0): CheckRevisionNumberCommand(name=34c341e5-3eb6-47d7-bc96-54a9a1aca61f, resource={'id': '34c341e5-3eb6-47d7-bc96-54a9a1aca61f', 'name': 'compute-fa2ffcfd-a6d6-4baa-918e-cb5c67823f6a-20', 'network_id': '16b4d11e-6734-4058-814e-7d22c4c9a8da', 'tenant_id': '4b633c451ac74233be3721a3635275e5', 'mac_address': 'fa:16:3e:30:c1:41', 'admin_state_up': True, 'status': 'ACTIVE', 'device_id': '', 'device_owner': 'trunk:subport', 'standard_attr_id': 64968243, 'fixed_ips': [], 'allowed_address_pairs': [], 'extra_dhcp_opts': [], 'security_groups': [], 'description': '', 'binding:vnic_type': 'normal', 'binding:profile': {}, 'binding:host_id': '', 'binding:vif_type': 'unbound', 'binding:vif_details': {}, 'dns_name': '', 'dns_assignment': [], 'dns_domain': '', 'port_security_enabled': False, 'qos_policy_id': None, 'qos_network_policy_id': None, 'resource_request': None, 'ip_allocation': 'none', 'tags': [], 'created_at': '2023-09-26T05:54:30Z', 'updated_at': '2023-09-26T05:54:36Z', 'revision_number': 4, 'project_id': '4b633c451ac74233be3721a3635275e5'}, resource_type=ports, if_exists=True) do_commit /var/lib/openstack/lib/python3.10/site-packages/ovsdbapp/backend/ovs_idl/transaction.py:89
2023-09-26 05:59:37.856 27 DEBUG ovsdbapp.backend.ovs_idl.transaction [-] Running txn n=1 command(idx=1): SetLSwitchPortCommand(lport=34c341e5-3eb6-47d7-bc96-54a9a1aca61f, external_ids_update=None, columns={'external_ids': {'neutron:port_name': 'compute-fa2ffcfd-a6d6-4baa-918e-cb5c67823f6a-20', 'neutron:device_id': '', 'neutron:project_id': '4b633c451ac74233be3721a3635275e5', 'neutron:cidrs': '', 'neutron:device_owner': 'trunk:subport', 'neutron:subnet_pool_addr_scope4': '', 'neutron:subnet_pool_addr_scope6': '', 'neutron:network_name': 'neutron-16b4d11e-6734-4058-814e-7d22c4c9a8da', 'neutron:security_group_ids': '', 'neutron:revision_number': '4'}, 'parent_name': [], 'tag': [], 'options': {'requested-chassis': ''}, 'enabled': True, 'port_security': [], 'dhcpv4_options': [], 'dhcpv6_options': [], 'type': '', 'addresses': ['fa:16:3e:30:c1:41', 'unknown'], 'ha_chassis_group': []}, if_exists=False) do_commit /var/lib/openstack/lib/python3.10/site-packages/ovsdbapp/backend/ovs_idl/transaction.py:89
2023-09-26 05:59:37.857 27 DEBUG ovsdbapp.backend.ovs_idl.transaction [-] Running txn n=1 command(idx=2): PgDelPortCommand(port_group=neutron_pg_drop, lsp=['34c341e5-3eb6-47d7-bc96-54a9a1aca61f'], if_exists=False) do_commit /var/lib/openstack/lib/python3.10/site-packages/ovsdbapp/backend/ovs_idl/transaction.py:89
2023-09-26 05:59:38.117 11 DEBUG ovsdbapp.backend.ovs_idl.event [None req-c92127e4-2312-41be-9705-97f45cfcd374 - - - - - -] Matched DELETE: PortBindingUpdateVirtualPortsEvent(events=('update', 'delete'), table='Port_Binding', conditions=None, old_conditions=None), priority=20 to row=Port_Binding(parent_port=['7703365a-b55a-4856-a223-8ee5115e8400'], mac=['unknown'], chassis=[<ovs.db.idl.Row object at 0x7f3fe8ae89d0>], options={'requested-chassis': ''}, ha_chassis_group=[], type=, additional_encap=[], tag=[20], requested_additional_chassis=[], up=[True], tunnel_key=4, requested_chassis=[], additional_chassis=[], logical_port=34c341e5-3eb6-47d7-bc96-54a9a1aca61f, encap=[], gateway_chassis=[], external_ids={'name': 'compute-fa2ffcfd-a6d6-4baa-918e-cb5c67823f6a-20', 'neutron:cidrs': '', 'neutron:device_id': '', 'neutron:device_owner': 'trunk:subport', 'neutron:network_name': 'neutron-16b4d11e-6734-4058-814e-7d22c4c9a8da', 'neutron:port_name': 'compute-fa2ffcfd-a6d6-4baa-918e-cb5c67823f6a-20', 'neutron:project_id': '4b633c451ac74233be3721a3635275e5', 'neutron:revision_number': '2', 'neutron:security_group_ids': '', 'neutron:subnet_pool_addr_scope4': '', 'neutron:subnet_pool_addr_scope6': ''}, nat_addresses=[], virtual_parent=[], port_security=[], datapath=dc18c51f-d011-41ff-8c0e-1cd6a778bd28, mirror_rules=[]) old= matches /var/lib/openstack/lib/python3.10/site-packages/ovsdbapp/backend/ovs_idl/event.py:43
2023-09-26 05:59:38.197 9 DEBUG ovsdbapp.backend.ovs_idl.event [None req-9666c623-0fb0-4e73-b6fa-5b2bc7d5f754 - - - - - -] Matched UPDATE: LogicalSwitchPortUpdateDownEvent(events=('update',), table='Logical_Switch_Port', conditions=(('up', '=', False),), old_conditions=(('up', '=', True),)), priority=20 to row=Logical_Switch_Port(name=34c341e5-3eb6-47d7-bc96-54a9a1aca61f, parent_name=[], options={'requested-chassis': ''}, ha_chassis_group=[], type=, enabled=[True], dhcpv6_options=[], addresses=['fa:16:3e:30:c1:41', 'unknown'], tag=[], up=[False], external_ids={'neutron:cidrs': '', 'neutron:device_id': '', 'neutron:device_owner': 'trunk:subport', 'neutron:network_name': 'neutron-16b4d11e-6734-4058-814e-7d22c4c9a8da', 'neutron:port_name': 'compute-fa2ffcfd-a6d6-4baa-918e-cb5c67823f6a-20', 'neutron:project_id': '4b633c451ac74233be3721a3635275e5', 'neutron:revision_number': '4', 'neutron:security_group_ids': '', 'neutron:subnet_pool_addr_scope4': '', 'neutron:subnet_pool_addr_scope6': ''}, port_security=[], tag_request=[], mirror_rules=[], dynamic_addresses=[], dhcpv4_options=[]) old=Logical_Switch_Port(up=[True]) matches /var/lib/openstack/lib/python3.10/site-packages/ovsdbapp/backend/ovs_idl/event.py:43