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. |
|