Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Power and boot device control #10

Open
richiejp opened this issue May 27, 2020 · 1 comment
Open

Power and boot device control #10

richiejp opened this issue May 27, 2020 · 1 comment
Milestone

Comments

@richiejp
Copy link

Everybody has scripts like the following:

# Ensure the power is set to on or off; wait and retry if necessary
# Usage: ./lib/ipmi/power.sh <on/off>

STATUS=$1
status=

while true; do
    $IPMI power $1
    sleep 3
    status=$($IPMI power status)
    case $status in
	"Chassis Power is $STATUS") exit 0;;
	"Chassis Power is"*) continue;;
	*) break;;
    esac
done

echo "power.sh: IPMI returned an unrecognized message:" $status

and

export IPMI="ipmitool -I lanplus -H frodo-sp.qa.suse.de"
say "Using IPMI command: " $IPMI

say "Ensuring PXE boot"
$IPMI chassis bootdev pxe "options=verbose=yes"
$IPMI chassis bootparam get 5

and the equivalent in os-autoinst.

Basically wrapping IPMI to reboot into PXE to do an unattended installation. Perhaps this could be implemented in support service? Assuming there is actual common ground. Also may abstract away none PXE/IPMI control methods.

@frankenmichl
Copy link
Member

I actually like the idea. This may mean we need to add some non-volatile configuration for the machines. We could also try supporting redfish here, which most of our machines also support.

I think we should implement this.

@frankenmichl frankenmichl modified the milestones: next release, future May 28, 2020
@frankenmichl frankenmichl modified the milestones: next release, v0.3.0 Jun 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants