machine 2.0 schema check failed: hardware_info: expected map, got nothing
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
High
|
Simon Richardson | ||
2.9 |
Fix Released
|
High
|
Unassigned | ||
3.1 |
Fix Released
|
High
|
Unassigned |
Bug Description
When trying to add a new machine (in ready state in maas) to the juju model using `juju add-unit --to foo.maas ubuntu`, the machine stays in pending state
$ juju show-machine 31
model: XXXX
machines:
"31":
juju-status:
current: pending
since: 02 Mar 2023 15:06:49Z
instance-id: pending
machine-status:
current: pending
since: 02 Mar 2023 15:06:49Z
modificatio
current: idle
since: 02 Mar 2023 15:06:49Z
series: focal
constraints: arch=amd64
According to the logs, juju is receiving a response from maas that's missing the hardware info section, this is a violation to the schema as its defined by juju at https:/
Our maas is a fairly old installation that has been receiving upgrades over time:
$ stat /var/log/
File: '/var/log/
Size: 55916 Blocks: 112 IO Block: 4096 regular file
Device: 801h/2049d Inode: 13107220 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2017-06-06 11:22:43.380602193 +0000
Modify: 2012-07-21 03:10:24.874111020 +0000
Change: 2012-07-21 03:10:24.874111020 +0000
Birth: -
[Environment]
juju 2.9.35
MAAS version: 2.3.7 (6529-g49c39fc-
Relevant log:
machine-0: 17:19:51 DEBUG juju.worker.
machine-0: 17:19:54 DEBUG juju.worker.
rdware_info: expected map, got nothing
stack trace:
hardware_info: expected map, got nothing
github.
github.
github.
github.
github.
github.
github.
machine-0: 17:19:54 ERROR juju.worker.
a check failed: hardware_info: expected map, got nothing
tags: | added: add-machine maas-provider |
Changed in juju: | |
assignee: | Joseph Phillips (manadart) → Simon Richardson (simonrichardson) |
Changed in juju: | |
status: | In Progress → Fix Committed |
Changed in juju: | |
status: | Fix Committed → Fix Released |
Compatibility was probably broken here https:/ /github. com/juju/ gomaasapi/ commit/ cd944ef8b321681 e529c369491902e 1a9f30f892