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

Enhancement: ability to reset PXE boot on misconfigured servers #577

Open
nshalman opened this issue Jan 12, 2018 · 1 comment
Open

Enhancement: ability to reset PXE boot on misconfigured servers #577

nshalman opened this issue Jan 12, 2018 · 1 comment

Comments

@nshalman
Copy link

Ever found a bunch of machines that somehow got misconfigured and aren't set to PXE boot, but your IPMI access does appear to work?

Here's a gross hack. Pipe the list of affected asset tags to this abomination.
while read tag; do collins find -c ipmi -t $tag; done | awk '{print $9,$21}' | sed 's|[,)]||g' | awk '{print "ipmitool -I lanplus -H",$1,"-P",$2,"-U root chassis bootdev pxe"}' | bash -x

Much better would be if collins or consolr could easily issue that IPMI chassis bootdev pxe command to them in a more standard way.

Should be very easy to add to consolr. Having it go via the collins server would of course provide better logging.

@defect
Copy link
Contributor

defect commented May 4, 2018

Hey, sorry for not answering earlier. That does look like something that could be added to consolr (which now lives in it's own repo here: https://github.com/tumblr/consolr).

As for integration in collins i think the easiest would be to have it trigger on a state transition callback. Maybe have a state called Maintenance:FORCE_PXE and trigger the callback whenever an asset transitions in to that state? More info on callbacks here: http://tumblr.github.io/collins/configuration.html#callbacks

You could posisbly just add your ipmitool command there and not rely on consolr at all.

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