When Neutron-server request for port, some attributes cannot be populated in the Netvirt like "standard_attr_id", "allowed_address_pairs".
Versions:
Neutron server: 20.1.0-0ubuntu2
networking-odl: 20.0.0
Netvirt on Magnesium or Aluminium.
The Json and the error is attached.
2022-08-24 04:03:58.606 39791 INFO networking_odl.journal.journal [req-2281c258-0f9d-484d-bd8e-3ade3997a7b0 - - - - -] Processing (Entry ID: 609) - update port 17e1c67d-ee8f-4030-b9df-0b95fffd0206 (Time stamp: 63796910638.60599)
2022-08-24 04:03:58.633 39791 ERROR networking_odl.common.client [req-2281c258-0f9d-484d-bd8e-3ade3997a7b0 - - - - -] REST request ( put ) to url ( ports/17e1c67d-ee8f-4030-b9df-0b95fffd0206 ) is failed. Request body : [{'port': {'name': '', 'mac_address': 'fa:16:3e:ee:47:80', 'admin_state_up': True, 'device_id': 'dhcp8b9eed7e-02df-5e44-aadb-f9cf6c1a9c71-8b1f0733-3ccd-446a-8822-96381fdfb1a8', 'device_owner': 'network:dhcp', 'standard_attr_id': 183, 'fixed_ips': [{'subnet_id': 'f8c45ac8-e8c6-4fc9-932b-2a62a648dc68', 'ip_address': '10.10.15.2'}], 'allowed_address_pairs': [], 'extra_dhcp_opts': [], 'security_groups': [], 'description': '', 'binding:vnic_type': 'normal', 'binding:profile': '{}', 'binding:host_id': 'controler01', 'binding:vif_type': 'vhostuser', 'binding:vif_details': {'uuid': 'd7674aa4-3870-42f3-867e-89d8d6d9d4a0', 'host_addresses': ['controler01'], 'has_datapath_type_netdev': True, 'support_vhost_user': True, 'port_prefix': 'vhu', 'vhostuser_socket_dir': '/var/run/openvswitch', 'vhostuser_ovs_plug': True, 'vhostuser_mode': 'client', 'vhostuser_socket': '/var/run/openvswitch/vhu17e1c67d-ee', 'bound_drivers': {'0': 'opendaylight_v2'}}, 'port_security_enabled': False, 'tags': [], 'created_at': '2022-08-23T23:04:58Z', 'updated_at': '2022-08-23T23:05:00Z', 'revision_number': 3}}] service: requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://10.10.13.70:8181/controller/nb/v2/neutron/ports/17e1c67d-ee8f-4030-b9df-0b95fffd0206
2022-08-24 04:03:58.634 39791 ERROR networking_odl.journal.journal [req-2281c258-0f9d-484d-bd8e-3ade3997a7b0 - - - - -] Error while processing (Entry ID: 609) - update port 17e1c67d-ee8f-4030-b9df-0b95fffd0206 (Time stamp: 63796910638.634056): requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://10.10.13.70:8181/controller/nb/v2/neutron/ports/17e1c67d-ee8f-4030-b9df-0b95fffd0206
2022-08-24 04:03:58.634 39791 ERROR networking_odl.journal.journal Traceback (most recent call last):
2022-08-24 04:03:58.634 39791 ERROR networking_odl.journal.journal File "/usr/local/lib/python3.10/dist-packages/networking_odl/journal/journal.py", line 281, in _sync_entry
2022-08-24 04:03:58.634 39791 ERROR networking_odl.journal.journal self.client.sendjson(method, urlpath, to_send)
2022-08-24 04:03:58.634 39791 ERROR networking_odl.journal.journal File "/usr/local/lib/python3.10/dist-packages/networking_odl/common/client.py", line 94, in sendjson
2022-08-24 04:03:58.634 39791 ERROR networking_odl.journal.journal with excutils.save_and_reraise_exception():
2022-08-24 04:03:58.634 39791 ERROR networking_odl.journal.journal File "/usr/lib/python3/dist-packages/oslo_utils/excutils.py", line 227, in __exit__
2022-08-24 04:03:58.634 39791 ERROR networking_odl.journal.journal self.force_reraise()
2022-08-24 04:03:58.634 39791 ERROR networking_odl.journal.journal File "/usr/lib/python3/dist-packages/oslo_utils/excutils.py", line 200, in force_reraise
2022-08-24 04:03:58.634 39791 ERROR networking_odl.journal.journal raise self.value
2022-08-24 04:03:58.634 39791 ERROR networking_odl.journal.journal File "/usr/local/lib/python3.10/dist-packages/networking_odl/common/client.py", line 91, in sendjson
2022-08-24 04:03:58.634 39791 ERROR networking_odl.journal.journal return self._check_response(
2022-08-24 04:03:58.634 39791 ERROR networking_odl.journal.journal File "/usr/local/lib/python3.10/dist-packages/networking_odl/common/client.py", line 107, in _check_response
2022-08-24 04:03:58.634 39791 ERROR networking_odl.journal.journal with excutils.save_and_reraise_exception():
2022-08-24 04:03:58.634 39791 ERROR networking_odl.journal.journal File "/usr/lib/python3/dist-packages/oslo_utils/excutils.py", line 227, in __exit__
2022-08-24 04:03:58.634 39791 ERROR networking_odl.journal.journal self.force_reraise()
2022-08-24 04:03:58.634 39791 ERROR networking_odl.journal.journal File "/usr/lib/python3/dist-packages/oslo_utils/excutils.py", line 200, in force_reraise
2022-08-24 04:03:58.634 39791 ERROR networking_odl.journal.journal raise self.value
2022-08-24 04:03:58.634 39791 ERROR networking_odl.journal.journal File "/usr/local/lib/python3.10/dist-packages/networking_odl/common/client.py", line 105, in _check_response
2022-08-24 04:03:58.634 39791 ERROR networking_odl.journal.journal response.raise_for_status()
2022-08-24 04:03:58.634 39791 ERROR networking_odl.journal.journal File "/usr/lib/python3/dist-packages/requests/models.py", line 943, in raise_for_status
2022-08-24 04:03:58.634 39791 ERROR networking_odl.journal.journal raise HTTPError(http_error_msg, response=self)
2022-08-24 04:03:58.634 39791 ERROR networking_odl.journal.journal requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://10.10.13.70:8181/controller/nb/v2/neutron/ports/17e1c67d-ee8f-4030-b9df-0b95fffd0206
2022-08-24 04:03:58.634 39791 ERROR networking_odl.journal.journal