30-maas-01-bmc-config failing on commissioning Cisco UCSC-C220-M4L

Bug #1917652 reported by Rod Smith
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Medium
Lee Trager
2.9
Won't Fix
Medium
Lee Trager

Bug Description

I recently tried re-commissioning feebas, a Cisco UCS-C220-M4L server, using MAAS 2.9.2 (9164-g.ac176b5c4-0ubuntu1~20.04.1). This server had previously been successfully commissioned using earlier versions of MAAS (we had MAAS 2.6 installed most recently, but it's possible it was last successfully commissioned with 2.4 or earlier). The re-commissioning failed with the following output shown for 30-maas-01-bmc-config:

ERROR: Unable to get all current IPMI settings!
INFO: Loading IPMI kernel modules...
INFO: Checking for HP Moonshot...
INFO: Checking for IPMI...
INFO: IPMI detected!
INFO: Reading current IPMI BMC values...
Traceback (most recent call last):
  File "/tmp/user_data.sh.a3oqvC/scripts/commissioning/30-maas-01-bmc-config", line 1222, in <module>
    main()
  File "/tmp/user_data.sh.a3oqvC/scripts/commissioning/30-maas-01-bmc-config", line 1218, in main
    detect_and_configure(args, bmc_config_path)
  File "/tmp/user_data.sh.a3oqvC/scripts/commissioning/30-maas-01-bmc-config", line 1111, in detect_and_configure
    bmc.configure()
  File "/tmp/user_data.sh.a3oqvC/scripts/commissioning/30-maas-01-bmc-config", line 752, in configure
    self._bmc_get_config()
  File "/tmp/user_data.sh.a3oqvC/scripts/commissioning/30-maas-01-bmc-config", line 174, in _bmc_get_config
    proc = run(
  File "/usr/lib/python3.8/subprocess.py", line 491, in run
    stdout, stderr = process.communicate(input, timeout=timeout)
  File "/usr/lib/python3.8/subprocess.py", line 1024, in communicate
    stdout, stderr = self._communicate(input, endtime, timeout)
  File "/usr/lib/python3.8/subprocess.py", line 1867, in _communicate
    self._check_timeout(endtime, orig_timeout, stdout, stderr)
  File "/usr/lib/python3.8/subprocess.py", line 1068, in _check_timeout
    raise TimeoutExpired(
subprocess.TimeoutExpired: Command '['bmc-config', '--checkout']' timed out after 60 seconds

Related branches

Revision history for this message
Lee Trager (ltrager) wrote :

MAAS 2.9 verifies that an IPMI BMC has been properly configured for MAAS usage. MAAS has always used "bmc-config --checkout" however it previously polled specific sections as needed. MAAS 2.9 pulls all BMC config at once and caches it. I'm wondering if that is just taking much longer than expected.

Could you run the following and tell me how long it takes? I suspect we just need to increase the timeout.

time bmc-config --checkout

Changed in maas:
status: New → Incomplete
Revision history for this message
Rod Smith (rodsmith) wrote :

Lee, I assume you wanted this run from the server itself (I had to use sudo), and are interested only in the time measurements, not the bmc-config output per se. What I got for the time output was:

Command exited with non-zero status 1
0.06user 0.01system 1:18.04elapsed 0%CPU (0avgtext+0avgdata 7112maxresident)k
1072inputs+0outputs (4major+567minor)pagefaults 0swaps

If you need something else, please tell me.

Lee Trager (ltrager)
Changed in maas:
status: Incomplete → In Progress
assignee: nobody → Lee Trager (ltrager)
Changed in maas:
milestone: none → 3.0-beta2
status: In Progress → Fix Committed
Changed in maas:
milestone: 3.0-beta2 → 3.0-beta1
importance: Undecided → Medium
Changed in maas:
status: Fix Committed → Fix Released
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.