maas-run-scripts report-results fails with `No script returned`

Bug #1976516 reported by Junien F
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
High
Alberto Donato
3.1
Won't Fix
High
Unassigned
3.2
Fix Released
High
Alberto Donato
3.3
Fix Released
High
Alberto Donato

Bug Description

Hi,

Using MAAS snap 3.1.0-10901-g.f1f8f1505.

I tried to update the networking configuration of a running machine (a LXD KVM host that got added to MAAS after the OS was installed on it, ie MAAS didn't install it) by running maas-run-scripts as per https://maas.io/docs/whats-new-in-maas#heading--enlist-deployed-machines

However, no matter what I tried, it failed as follows :

$ ./maas-run-scripts --debug report-results --config ./creds.yaml
* Fetching scripts from http://REDACTED:5240/MAAS/metadata/2012-03-01/ to /tmp/tmprinmrm2y/scripts
No script returned

Thanks

Related branches

Revision history for this message
Alberto Donato (ack) wrote :

This issues specifically happens with machines that are VM hosts

Changed in maas:
status: New → Triaged
importance: Undecided → High
milestone: none → 3.2.0
Revision history for this message
Alberto Donato (ack) wrote :

@axino could you please paste the output of the following query (replacing the MACHINE_HOSTNAME for the LXD host) and paste the result?

select sr.id, sr.script_name, sr.script_id, s.name from metadataserver_scriptresult sr left join metadataserver_script s on sr.script_id = s.id join metadataserver_scriptset ss on sr.script_set_id = ss.id join maasserver_node n on ss.node_id = n.id where n.hostname = 'MACHINE_HOSTNAME';

Revision history for this message
Junien F (axino) wrote :

maas=# select sr.id, sr.script_name, sr.script_id, s.name from
maas-# metadataserver_scriptresult sr left join metadataserver_script s on
maas-# sr.script_id = s.id join metadataserver_scriptset ss on sr.script_set_id
maas-# = ss.id join maasserver_node n on ss.node_id = n.id where n.hostname =
maas-# 'REDACTED';
 id | script_name | script_id | name
-----+--------------------------+-----------+------
 653 | 50-maas-01-commissioning | |
(1 row)

Changed in maas:
milestone: 3.2.0 → 3.2.0-rc1
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.