Failed 50-maas-01-commissioning on a Power9 PowerVM LPAR

Bug #1971754 reported by Patricia Domingues
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
High
Alberto Donato
The Ubuntu-power-systems project
Fix Released
Critical
Unassigned
lxd
New
Undecided
Unassigned

Bug Description

the commissioning script `50-maas-01-commissioning` is failing:
```
ERROR: Failed to retrieve CPU information: Failed to read "/sys/devices/system/cpu/cpu0/topology/physical_package_id": strconv.ParseUint: parsing "-1": invalid syntax
```
On a Power9 LPAR.

Deb-based MAAS:
MAAS version: 2.9.2 (9164-g.ac176b5c4-0ubuntu1~20.04.1)

Tags: regression
Revision history for this message
Patricia Domingues (patriciasd) wrote :

All other scripts have worked with `PASSED` except `50-maas-01-commissioning` and the skipped one `30-maas-01-bmc-config`.

Marking as a regression as POWER8 PowerVM LPAR were commissioned in the past (not sure with which MAAS version) and although I see there wasn't the current failed script `50-maas-01-commissioning` back then.

tags: added: regression
Changed in ubuntu-power-systems:
importance: Undecided → Critical
Revision history for this message
Alexsander de Souza (alexsander-souza) wrote :

Hi, could you please test this with MAAS 3.1? (2.9 is no longer maintained by maas team)

also, can you copy /usr/share/maas/machine-resources/ppc64el from the maas server to this machine and run it? You can do this enabling "Allow SSH access and prevent machine powering off" in the Commissioning form. This option tells MAAS to copy SSH keys to the ephemeral OS and to keep the machine on after the commissioning tests, so you can connect to it and run additional actions.

Changed in maas:
status: New → Incomplete
Revision history for this message
Patricia Domingues (patriciasd) wrote :

Hi.
trying to run that script on the LPAR gives me the same output from the commissioning script:
```
ubuntu@P9garro-LPAR2:~$ ./ppc64el
ERROR: Failed to retrieve CPU information: Failed to read "/sys/devices/system/cpu/cpu0/topology/physical_package_id": strconv.ParseUint: parsing "-1": invalid syntax
```

as
`ubuntu@P9garro-LPAR2:~$ cat /sys/devices/system/cpu/cpu0/topology/physical_package_id`
-1

Revision history for this message
Alexsander de Souza (alexsander-souza) wrote :

Thanks Patricia,

we rely on a LXD go module to get the machine information, so I need to put them in the loop to get this fixed.

Changed in maas:
status: Incomplete → Triaged
importance: Undecided → High
milestone: none → next
Revision history for this message
Alexsander de Souza (alexsander-souza) wrote :

Patricia,

please show us the output of the following commands:

$ uname -a

$ lscpu

$ cat /proc/cpuinfo

Revision history for this message
Patricia Domingues (patriciasd) wrote :

ok. I was commissioning the LPAR with Focal.
Attaching the outputs.

Revision history for this message
Patricia Domingues (patriciasd) wrote :

same script failing when trying to add a new POWER8 LPAR `ERROR: Failed to retrieve CPU information: Failed to read "/sys/devices/system/cpu/cpu0/topology/physical_package_id": strconv.ParseUint: parsing "-1": invalid syntax`

Changed in maas:
assignee: nobody → Alberto Donato (ack)
milestone: next → 3.2.0
status: Triaged → In Progress
Revision history for this message
Alberto Donato (ack) wrote :

This should be fixed in MAAS on 1e898d49e due to updated LXD code.

Changed in maas:
status: In Progress → Fix Committed
Changed in maas:
milestone: 3.2.0 → 3.2.0-beta5
status: Fix Committed → Fix Released
Changed in ubuntu-power-systems:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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