30-maas-01-bmc-config commissioning script fails on Power9 (ppc64le)

Bug #2022082 reported by Patricia Domingues
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Triaged
High
Unassigned
3.4
New
Undecided
Unassigned
The Ubuntu-power-systems project
New
Undecided
Unassigned

Bug Description

30-maas-01-bmc-config commissioning script fails on Power9 (ppc64le):

```
modprobe: ERROR: could not insert 'ipmi_si': No such device
Unable to get Number of Users
Unable to get Number of Users
Unable to get Number of Users
ERROR: Unable to add BMC user!
INFO: Loading IPMI kernel modules...
INFO: Checking for HP Moonshot...
INFO: Checking for Redfish...
ERROR: Redfish [Errno 2] No such file or directory: 'dmidecode'
Traceback (most recent call last):
  File "/tmp/user_data.sh.F9eJDS/scripts/commissioning/30-maas-01-bmc-config", line 1103, in detect_and_configure
    if bmc.detected():
  File "/tmp/user_data.sh.F9eJDS/scripts/commissioning/30-maas-01-bmc-config", line 1036, in detected
    self._detect()
  File "/tmp/user_data.sh.F9eJDS/scripts/commissioning/30-maas-01-bmc-config", line 1000, in _detect
    data = self._get_smbios_data()
  File "/tmp/user_data.sh.F9eJDS/scripts/commissioning/30-maas-01-bmc-config", line 939, in _get_smbios_data
    smbios_data = check_output(
  File "/usr/lib/python3.10/subprocess.py", line 420, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/usr/lib/python3.10/subprocess.py", line 501, in run
    with Popen(*popenargs, **kwargs) as process:
  File "/usr/lib/python3.10/subprocess.py", line 969, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.10/subprocess.py", line 1845, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'dmidecode'
```

The server is a POWER9 Witherspoon AC922 (8335-GTC)
MAAS: version 3.2.6 (3.2.6-12016-g.19812b4da-0ubuntu1~20.04.1)

I've noticed this issue with Ubuntu 22.04 Jammy as the default release used for commissioning.

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

We need to run an alternative command to fetch hardware info on IBM POWER architecture as it lacks DMI table.

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

I can finish commissioning if I select this option `Skip configuring supported BMC controllers with a MAAS generated username and password` so the script `30-maas-01-bmc-config` is skipped.

Changed in maas:
status: New → Triaged
importance: Undecided → Low
Revision history for this message
Anton Troyanov (troyanov) wrote :

Hello Patricia,

> We need to run an alternative command to fetch hardware info on IBM POWER architecture as it lacks DMI table.

Do you know what kind of alternative do we need to run to fetch hardware info and detect BMC?

Regarding the Traceback, I will add a check if dmidecode exists before doing Redfish detection.

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

Hello Anton, let me address this directly with IBM.

`lshw` will give details about the hardware. Other option could be device-tree files, but some information differs in each model of IBM nodes, for instance:

one POWER9 bare metal system:
ubuntu@baltar:~$ cat /proc/device-tree/vendor
IBM

one POWER10-PowerVM partition:
ubuntu@P10d-LPAR01:~$ cat /proc/device-tree/vendor
cat: /proc/device-tree/vendor: No such file or directory

ubuntu@P10d-LPAR01:~$ cat /proc/device-tree/model
IBM,9080-HEX

Changed in maas:
status: Incomplete → Triaged
importance: Undecided → High
milestone: none → 3.5.0
bugproxy (bugproxy)
tags: added: architecture-ppc64le bugnameltc-202858 severity-medium targetmilestone-inin---
Revision history for this message
bugproxy (bugproxy) wrote : Comment bridged from LTC Bugzilla

------- Comment From <email address hidden> 2023-07-25 10:56 EDT-------
Hi Mahesh,

Would something like lscfg from the lsvpd package be a viable alternative to dmidecode for POWER systems? Thanks.

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

Hello MAAS team, please, could you check these ^ commands outputs (attached) - lscfg and lshw - Power9 bare metal and Power10 PowerVM LPARs. If that helps as an alternative for DMIdecode. Let me know if you need any extra info.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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