Netconf error: description must be the same

Bug #2064734 reported by Marius L
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
networking-baremetal
New
Undecided
Unassigned

Bug Description

Openconfig call fails for writing the port configuration to the Arista switch.

Arista EOS 4.22.3M

Error:

description for both interfaces/interface/Ethernet33/subinterfaces/subinterface/0/config/description and interfaces/interface/Ethernet33/config/description must be the same. '' != 'neutron-0b0ba45a-9fbc-4b6d-b1f1-b65ccf42f78e'

```
2024-05-03 14:34:25.719 23 INFO networking_baremetal.drivers.netconf.openconfig [req-3bb72662-89ae-46df-91bd-1125109f697d req-ccfbde1d-204a-4aba-847c-3fc2a1815797 8407c1caca924de28b7f5806682bc243 c922fa130d1545da8a1bf681d94cfc55 - - default default] Sending configuration to Netconf device lab_arista_1: <config><interfaces xmlns="http://openconfig.net/yang/interfaces"><interface><name>Ethernet33</name><config><description operation="merge">neutron-0b0ba45a-9fbc-4b6d-b1f1-b65ccf42f78e</description><enabled operation="merge">true</enabled><mtu operation="merge">1500</mtu></config><ethernet xmlns="http://openconfig.net/yang/interfaces/ethernet"><config operation="merge" /><switched-vlan xmlns="http://openconfig.net/yang/vlan"><config operation="replace"><interface-mode>ACCESS</interface-mode><access-vlan>214</access-vlan></config></switched-vlan></ethernet></interface></interfaces></config>

2024-05-03 14:34:25.978 23 ERROR networking_baremetal.drivers.netconf.openconfig [req-3bb72662-89ae-46df-91bd-1125109f697d req-ccfbde1d-204a-4aba-847c-3fc2a1815797 8407c1caca924de28b7f5806682bc243 c922fa130d1545da8a1bf681d94cfc55 - - default default] Netconf XML: <config><interfaces xmlns="http://openconfig.net/yang/interfaces"><interface><name>Ethernet33</name><config><description operation="merge">neutron-0b0ba45a-9fbc-4b6d-b1f1-b65ccf42f78e</description><enabled operation="merge">true</enabled><mtu operation="merge">1500</mtu></config><ethernet xmlns="http://openconfig.net/yang/interfaces/ethernet"><config operation="merge" /><switched-vlan xmlns="http://openconfig.net/yang/vlan"><config operation="replace"><interface-mode>ACCESS</interface-mode><access-vlan>214</access-vlan></config></switched-vlan></ethernet></interface></interfaces></config>: ncclient.operations.rpc.RPCError: description for both interfaces/interface/Ethernet33/subinterfaces/subinterface/0/config/description and interfaces/interface/Ethernet33/config/description must be the same. '' != 'neutron-0b0ba45a-9fbc-4b6d-b1f1-b65ccf42f78e'

2024-05-03 14:34:26.082 23 ERROR neutron.plugins.ml2.managers [req-3bb72662-89ae-46df-91bd-1125109f697d req-ccfbde1d-204a-4aba-847c-3fc2a1815797 8407c1caca924de28b7f5806682bc243 c922fa130d1545da8a1bf681d94cfc55 - - default default] Mechanism driver baremetal failed in bind_port: ncclient.operations.rpc.RPCError: description for both interfaces/interface/Ethernet33/subinterfaces/subinterface/0/config/description and interfaces/interface/Ethernet33/config/description must be the same. '' != 'neutron-0b0ba45a-9fbc-4b6d-b1f1-b65ccf42f78e'

2024-05-03 14:34:26.082 23 ERROR neutron.plugins.ml2.managers Traceback (most recent call last):
2024-05-03 14:34:26.082 23 ERROR neutron.plugins.ml2.managers File "/var/lib/kolla/venv/lib/python3.10/site-packages/neutron/plugins/ml2/managers.py", line 866, in _bind_port_level
2024-05-03 14:34:26.082 23 ERROR neutron.plugins.ml2.managers driver.obj.bind_port(context)
2024-05-03 14:34:26.082 23 ERROR neutron.plugins.ml2.managers File "/var/lib/kolla/venv/lib/python3.10/site-packages/neutron/plugins/ml2/drivers/mech_agent.py", line 135, in bind_port
2024-05-03 14:34:26.082 23 ERROR neutron.plugins.ml2.managers if self.try_to_bind_segment_for_agent(context, segment,
2024-05-03 14:34:26.082 23 ERROR neutron.plugins.ml2.managers File "/var/lib/kolla/venv/lib/python3.10/site-packages/networking_baremetal/plugins/ml2/baremetal_mech.py", line 507, in try_to_bind_segment_for_agent
2024-05-03 14:34:26.082 23 ERROR neutron.plugins.ml2.managers driver.create_port(context, segment, args['links'])
2024-05-03 14:34:26.082 23 ERROR neutron.plugins.ml2.managers File "/var/lib/kolla/venv/lib/python3.10/site-packages/networking_baremetal/drivers/netconf/openconfig.py", line 536, in create_port
2024-05-03 14:34:26.082 23 ERROR neutron.plugins.ml2.managers self.create_non_bond(context, switched_vlan, links)
2024-05-03 14:34:26.082 23 ERROR neutron.plugins.ml2.managers File "/var/lib/kolla/venv/lib/python3.10/site-packages/networking_baremetal/drivers/netconf/openconfig.py", line 572, in create_non_bond
2024-05-03 14:34:26.082 23 ERROR neutron.plugins.ml2.managers self.client.edit_config(ifaces)
2024-05-03 14:34:26.082 23 ERROR neutron.plugins.ml2.managers File "/var/lib/kolla/venv/lib/python3.10/site-packages/networking_baremetal/drivers/netconf/openconfig.py", line 329, in edit_config
2024-05-03 14:34:26.082 23 ERROR neutron.plugins.ml2.managers self.get_lock_and_configure(
2024-05-03 14:34:26.082 23 ERROR neutron.plugins.ml2.managers File "/var/lib/kolla/venv/lib/python3.10/site-packages/tenacity/__init__.py", line 289, in wrapped_f
2024-05-03 14:34:26.082 23 ERROR neutron.plugins.ml2.managers return self(f, *args, **kw)
2024-05-03 14:34:26.082 23 ERROR neutron.plugins.ml2.managers File "/var/lib/kolla/venv/lib/python3.10/site-packages/tenacity/__init__.py", line 379, in __call__
2024-05-03 14:34:26.082 23 ERROR neutron.plugins.ml2.managers do = self.iter(retry_state=retry_state)
2024-05-03 14:34:26.082 23 ERROR neutron.plugins.ml2.managers File "/var/lib/kolla/venv/lib/python3.10/site-packages/tenacity/__init__.py", line 314, in iter
2024-05-03 14:34:26.082 23 ERROR neutron.plugins.ml2.managers return fut.result()
2024-05-03 14:34:26.082 23 ERROR neutron.plugins.ml2.managers File "/usr/lib/python3.10/concurrent/futures/_base.py", line 451, in result
2024-05-03 14:34:26.082 23 ERROR neutron.plugins.ml2.managers return self.__get_result()
2024-05-03 14:34:26.082 23 ERROR neutron.plugins.ml2.managers File "/usr/lib/python3.10/concurrent/futures/_base.py", line 403, in __get_result
2024-05-03 14:34:26.082 23 ERROR neutron.plugins.ml2.managers raise self._exception
2024-05-03 14:34:26.082 23 ERROR neutron.plugins.ml2.managers File "/var/lib/kolla/venv/lib/python3.10/site-packages/tenacity/__init__.py", line 382, in __call__
2024-05-03 14:34:26.082 23 ERROR neutron.plugins.ml2.managers result = fn(*args, **kwargs)
2024-05-03 14:34:26.082 23 ERROR neutron.plugins.ml2.managers File "/var/lib/kolla/venv/lib/python3.10/site-packages/networking_baremetal/drivers/netconf/openconfig.py", line 301, in get_lock_and_configure
2024-05-03 14:34:26.082 23 ERROR neutron.plugins.ml2.managers raise err
2024-05-03 14:34:26.082 23 ERROR neutron.plugins.ml2.managers File "/var/lib/kolla/venv/lib/python3.10/site-packages/networking_baremetal/drivers/netconf/openconfig.py", line 286, in get_lock_and_configure
2024-05-03 14:34:26.082 23 ERROR neutron.plugins.ml2.managers client.edit_config(target=source, config=xml_config)
2024-05-03 14:34:26.082 23 ERROR neutron.plugins.ml2.managers File "/var/lib/kolla/venv/lib/python3.10/site-packages/ncclient/manager.py", line 257, in execute
2024-05-03 14:34:26.082 23 ERROR neutron.plugins.ml2.managers return cls(self._session,
2024-05-03 14:34:26.082 23 ERROR neutron.plugins.ml2.managers File "/var/lib/kolla/venv/lib/python3.10/site-packages/ncclient/operations/edit.py", line 76, in request
2024-05-03 14:34:26.082 23 ERROR neutron.plugins.ml2.managers return self._request(node)
2024-05-03 14:34:26.082 23 ERROR neutron.plugins.ml2.managers File "/var/lib/kolla/venv/lib/python3.10/site-packages/ncclient/operations/rpc.py", line 375, in _request
2024-05-03 14:34:26.082 23 ERROR neutron.plugins.ml2.managers raise self._reply.error
2024-05-03 14:34:26.082 23 ERROR neutron.plugins.ml2.managers ncclient.operations.rpc.RPCError: description for both interfaces/interface/Ethernet33/subinterfaces/subinterface/0/config/description and interfaces/interface/Ethernet33/config/description must be the same. '' != 'neutron-0b0ba45a-9fbc-4b6d-b1f1-b65ccf42f78e'

```

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.