MAAS doesn't automatically enable IPMI over LAN on UCSC-C240-M4
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Expired
|
Undecided
|
Unassigned |
Bug Description
Just as an enhancement request to MAAS, it would be nice if MAAS could talk to BMCs with SSH to enable IPMI protocol. Because some models have IPMI protocol disabled by default, but SSH is enabled by default. It's a chicken-and-egg problem, so it's fair if MAAS says IPMI is a hard prerequisite.
Background:
I saw some server models like Cisco UCSC-C240-M4 series in the field with IPMI is disabled by default. It's not realistic to enable those 10+ servers one by one with Web UI of BMC. I used SSH which is enabled by default with the following snippet.
$ for bmc in $BMC_IP_ADDRESSES; do
cat <<EOF | ssh \
admin@$bmc
scope ipmi
set enabled yes
commit
exit
exit
EOF
done
Also, most of the servers including Dell had SOL(Serial over LAN) with IPMI disabled. I had to enable it explicitly.
bmc-config -D LAN_2_0 -h $BMC_IP_ADDRESSES \
-u admin -P --commit \
-e 'SOL_Conf:
Overall it would be nice if MAAS had this kind of "helper" functions to interact with BMCs. SSH example requires some variations based on BMC vendors, but bmc-config example above could be run unconditionally.
Changed in maas: | |
status: | New → Triaged |
importance: | Undecided → Wishlist |
milestone: | none → 2.4.x |
Another example is to set UEFI as the default boot mode since some models have BIOS(Legacy) boot mode by default. Plus, boot-order=PXE.
$ for bmc in $BMC_IP_ADDRESSES; do
-oUserKnownHos tsFile= /dev/null -oStrictHostKey Checking= no \
cat <<EOF | ssh \
admin@$bmc
scope bios
set boot-mode Uefi
set boot-order PXE
commit
exit
exit
EOF
done