'maas-run-scripts report-results' uses Debian tooling and is not distro-agnostic
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Alberto Donato |
Bug Description
How to reproduce:
0) install 3 VMs. All 3 VMs are connected to the same virt bridge. I disable the virt dhcp and assign 3 static IPs to 3 VMs(same subnet)
A: CentOS7
B: Ubuntu 20.04
C: Ubuntu 20.04 (install the latest MAAS 3.1.0-10901-
1) enlist CentOS7 following [1].
After running 'maas-run-scripts report-results', machines read show "status_message": "Script - 50-maas-
Detail steps are in enlist-
2) enlist Ubuntu 20.04 following same procedures. Results look good to me.
Detail steps are in enlist-
maas logs are in maas-log.txt
[1] https:/
Related branches
- MAAS Lander: Approve
- Adam Collard (community): Approve
-
Diff: 93 lines (+33/-6)3 files modifiedsrc/metadataserver/user_data/templates/snippets/maas_run_remote_scripts.py (+3/-5)
src/provisioningserver/refresh/40-maas-01-machine-resources (+15/-1)
src/provisioningserver/refresh/maas_api_helper.py (+15/-0)
Changed in maas: | |
assignee: | nobody → Adam Collard (adam-collard) |
summary: |
- [3.1 new feature] 'maas-run-scripts report-results' return - '50-maas-01-commissioning failed' when enlist a deployed CentOS + 'maas-run-scripts report-results' returns '50-maas-01-commissioning + failed' when enlist a deployed CentOS |
summary: |
- 'maas-run-scripts report-results' returns '50-maas-01-commissioning - failed' when enlist a deployed CentOS + 'maas-run-scripts report-results' uses Debian tooling and is not distro- + agnostic |
Changed in maas: | |
assignee: | Adam Collard (adam-collard) → nobody |
assignee: | nobody → Alberto Donato (ack) |
milestone: | next → 3.2.0 |
Changed in maas: | |
status: | Triaged → In Progress |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
milestone: | 3.2.0 → 3.2.0-beta5 |
status: | Fix Committed → Fix Released |
This seems to be the culprit:
2022-02-24 08:31:48 metadataserver.api: [critical] mymachine. maas(aka44t) : commissioning script '50-maas- 01-commissionin g' failed during post-processing. python3/ dist-packages/ metadataserver/ api.py" , line 817, in signal python3/ dist-packages/ metadataserver/ api.py" , line 641, in _process_ commissioning _store_ results( python3/ dist-packages/ metadataserver/ api.py" , line 529, in _store_results result. store_result( python3/ dist-packages/ metadataserver/ models/ scriptresult. py", line 376, in store_result python3/ dist-packages/ metadataserver/ api.py" , line 447, in try_or_log_event python3/ dist-packages/ metadataserver/ builtin_ scripts/ hooks.py" , line 932, in process_lxd_results ValueError: Expecting value: line 1 column 1 (char 0): b''
Traceback (most recent call last):
File "/usr/lib/
target_status = process(node, request, status)
File "/usr/lib/
self.
File "/usr/lib/
script_
File "/usr/lib/
signal_status = try_or_log_event(
--- <exception caught here> ---
File "/usr/lib/
func(*args, **kwargs)
File "/usr/lib/
raise ValueError(f"{e}: {output}")
builtins.