Page MenuHomePhabricator
Paste P32313

Reimage cookbook error (elastic1063 and 1065)
ActivePublic

Authored by bking on Aug 8 2022, 5:06 PM.
Exception raised while initializing the Cookbook sre.hosts.reimage:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/spicerack/ipmi.py", line 86, in command
output = run(command + command_parts, env=self.env.copy(), stdout=PIPE, check=True).stdout.decode() File "/usr/lib/python3.9/subprocess.py", line 528, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['ipmitool', '-I', 'lanplus', '-H', 'elastic1065.mgmt.eqiad.wmnet', '-U', 'root', '-E', 'chassis', 'power', 'status']' ret
urned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/spicerack/_menu.py", line 219, in run
runner = self.instance.get_runner(args)
File "/srv/deployment/spicerack/cookbooks/sre/hosts/reimage.py", line 85, in get_runner
return ReimageRunner(args, self.spicerack)
File "/srv/deployment/spicerack/cookbooks/sre/hosts/reimage.py", line 165, in __init__
self._validate()
File "/srv/deployment/spicerack/cookbooks/sre/hosts/reimage.py", line 212, in _validate
self.ipmi.check_connection() # Will raise if unable to connect
File "/usr/lib/python3/dist-packages/spicerack/ipmi.py", line 101, in check_connection
self.power_status()
File "/usr/lib/python3/dist-packages/spicerack/ipmi.py", line 111, in power_status
status = self.command(["chassis", "power", "status"], is_safe=True)
File "/usr/lib/python3/dist-packages/spicerack/ipmi.py", line 88, in command
raise IpmiError(f"Remote IPMI for {self._mgmt_fqdn} failed (exit={e.returncode}): {e.output}") from e
spicerack.ipmi.IpmiError: Remote IPMI for elastic1065.mgmt.eqiad.wmnet failed (exit=1): b''

Event Timeline