Activity log for bug #1985741

Date Who What changed Old value New value Message
2022-08-11 20:21:37 Alan Baghumian bug added bug
2022-08-11 20:21:37 Alan Baghumian attachment added Example Problematic Network Configuration https://bugs.launchpad.net/bugs/1985741/+attachment/5607922/+files/Screenshot%20from%202022-08-11%2012-00-57.png
2022-08-11 20:23:18 Alan Baghumian description If an existing MAAS node is configured to use bonding or bridging + bonding, re-commissioning attempts fail at the "maas-kernel-cmdline" step if "Retain Network Configuration" is selected. Inspecting region controller logs show the following trace: 2022-08-11 19:27:06 metadataserver.api: [critical] os-node-1.alannet(wp8t7q): commissioning script 'maas-kernel-cmdline' failed during post-processing. Traceback (most recent call last): File "/snap/maas/23178/lib/python3.8/site-packages/metadataserver/api.py", line 866, in signal target_status = process(node, request, status) File "/snap/maas/23178/lib/python3.8/site-packages/metadataserver/api.py", line 690, in _process_commissioning self._store_results( File "/snap/maas/23178/lib/python3.8/site-packages/metadataserver/api.py", line 575, in _store_results script_result.store_result( File "/snap/maas/23178/lib/python3.8/site-packages/metadataserver/models/scriptresult.py", line 372, in store_result signal_status = try_or_log_event( --- <exception caught here> --- File "/snap/maas/23178/lib/python3.8/site-packages/metadataserver/api.py", line 493, in try_or_log_event func(*args, **kwargs) File "/snap/maas/23178/lib/python3.8/site-packages/metadataserver/builtin_scripts/hooks.py", line 207, in update_boot_interface node.boot_interface = node.current_config.interface_set.get( File "/snap/maas/23178/usr/lib/python3/dist-packages/django/db/models/manager.py", line 82, in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) File "/snap/maas/23178/usr/lib/python3/dist-packages/django/db/models/query.py", line 410, in get raise self.model.MultipleObjectsReturned( maasserver.models.interface.MultipleObjectsReturned: get() returned more than one Interface -- it returned 2! You can re-commission the machine by unchecking "Retain Network Configuration" however that obviously wipes the network configuration. Steps to reproduce: 1. Commission a multi-interface machine in MAAS. 2. Configure the network to use bonding. 3. Attempt to re-commission the machine. 4. The attempt fails at the "maas-kernel-cmdline" step. Attached a sample network configuration. Thank you. If an existing MAAS node is configured to use bonding or bridging + bonding, re-commissioning attempts fail at the "maas-kernel-cmdline" step if "Retain Network Configuration" is selected. Inspecting region controller logs show the following trace: 2022-08-11 19:27:06 metadataserver.api: [critical] os-node-1.alannet(wp8t7q): commissioning script 'maas-kernel-cmdline' failed during post-processing.     Traceback (most recent call last):       File "/snap/maas/23178/lib/python3.8/site-packages/metadataserver/api.py", line 866, in signal         target_status = process(node, request, status)       File "/snap/maas/23178/lib/python3.8/site-packages/metadataserver/api.py", line 690, in _process_commissioning         self._store_results(       File "/snap/maas/23178/lib/python3.8/site-packages/metadataserver/api.py", line 575, in _store_results         script_result.store_result(       File "/snap/maas/23178/lib/python3.8/site-packages/metadataserver/models/scriptresult.py", line 372, in store_result         signal_status = try_or_log_event(     --- <exception caught here> ---       File "/snap/maas/23178/lib/python3.8/site-packages/metadataserver/api.py", line 493, in try_or_log_event         func(*args, **kwargs)       File "/snap/maas/23178/lib/python3.8/site-packages/metadataserver/builtin_scripts/hooks.py", line 207, in update_boot_interface         node.boot_interface = node.current_config.interface_set.get(       File "/snap/maas/23178/usr/lib/python3/dist-packages/django/db/models/manager.py", line 82, in manager_method         return getattr(self.get_queryset(), name)(*args, **kwargs)       File "/snap/maas/23178/usr/lib/python3/dist-packages/django/db/models/query.py", line 410, in get         raise self.model.MultipleObjectsReturned(     maasserver.models.interface.MultipleObjectsReturned: get() returned more than one Interface -- it returned 2! You can re-commission the machine by unchecking "Retain Network Configuration" however that obviously wipes the network configuration. Steps to reproduce: 1. Commission a multi-interface machine in MAAS. 2. Configure the network to use bonding. 3. Attempt to re-commission the machine. 4. The attempt fails at the "maas-kernel-cmdline" step. Tested Version: 3.2.2-12005-g.f0f96fa78 (Snap). Attached a sample network configuration. Thank you.
2022-08-11 21:14:43 Alexsander de Souza maas: status New Triaged
2022-08-11 21:14:49 Alexsander de Souza maas: importance Undecided High
2022-08-11 21:15:25 Alexsander de Souza maas: milestone 3.3.0
2022-09-02 17:38:54 Cooper Hopkin bug task added charm-deployment-guide
2022-09-22 20:25:48 Srdjan Macak bug added subscriber Srdjan Macak
2022-10-06 11:29:17 Adam Collard maas: assignee Adam Collard (adam-collard)
2022-10-06 11:32:16 Adam Collard merge proposal linked https://code.launchpad.net/~adam-collard/maas/+git/maas/+merge/431119
2022-10-06 13:19:26 MAAS Lander maas: status Triaged Fix Committed
2022-10-20 17:51:00 Alexsander de Souza maas: milestone 3.3.0 3.3.0-beta1
2022-10-20 18:40:44 Alexsander de Souza maas: status Fix Committed Fix Released
2023-02-23 17:42:44 Peter Matulis bug task deleted charm-deployment-guide