-
Notifications
You must be signed in to change notification settings - Fork 3
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
add hhfab switch reinstall and power subcommands #256
Conversation
6c20b0e
to
417d628
Compare
cdbbd27
to
7617a54
Compare
09bf259
to
cf15cf1
Compare
224d6be
to
ed33f61
Compare
1c4a0c2
to
5b326db
Compare
c1618fd
to
7d00253
Compare
9cbd18f
to
7dae6ca
Compare
7dae6ca
to
7bdfb87
Compare
After discussing, the default behavior needs to change and reinstall must leave the switches in the ONIE install loop. This way one can trigger the reinstall and then do the The initial behavior will be preserved with a flag |
I tried this but hhfab requires vlab up:
Shall we go with the original approach, @Frostman ? |
66499ee
to
c6ca534
Compare
5f15cd7
to
1cb3c00
Compare
add vlab switch power suboptions for PDU power management based on annotations the pdu IPs and credentials are stored in a file named .pdu.yaml in the same folder as fab.yaml Signed-off-by: Pau Capdevila <[email protected]>
different reinstall modes are available, reload mode uses credentials to log into the switch (current default) soft-reset uses an agent based power reset hard-reset uses a PDU based power reset verbose option allows to monitor parallel reinstall process. Opens in byobu if exists Signed-off-by: Pau Capdevila <[email protected]> Co-authored-by: Emanuele Di Pascale <[email protected]>
Signed-off-by: Pau Capdevila <[email protected]>
Signed-off-by: Pau Capdevila <[email protected]>
Signed-off-by: Pau Capdevila <[email protected]>
rename reload mode to reboot Signed-off-by: Pau Capdevila <[email protected]>
Signed-off-by: Pau Capdevila <[email protected]>
Reinstall now will not wait until switches are ready This allows requesting reinstall and letting switches enter the ONIE discovery loop This way you can trigger reinstall and then do vlab up Original behavior is preserver using --wait-ready flag Signed-off-by: Pau Capdevila <[email protected]> Signed-off-by: Sergei Lukianov <[email protected]>
Use Opts Struct Pattern and improve error handling Signed-off-by: Pau Capdevila <[email protected]>
3f8983c
to
4f79e2b
Compare
Adds capability to run hhfab whole hardware test: hhfab vlab up -v --ready switch-reinstall --ready \ setup-vpcs --ready test-connectivity --ready exit switch-reinstall is equivalent to run hhfab vlab switch reinstall --all --yes -mode hard-reset Signed-off-by: Pau Capdevila <[email protected]>
Signed-off-by: Sergei Lukianov <[email protected]>
Signed-off-by: Sergei Lukianov <[email protected]>
121b0f0
to
5f54e35
Compare
Signed-off-by: Pau Capdevila <[email protected]>
5f54e35
to
5440cbf
Compare
Adds
switch power|reinstall
suboptions tovlab
inhhfab
.vlab switch power
enables power management via external PDU servers. For example:A new annotation structure (
power:
) is supported:The pdu credentials are configured in a YAML file in the same folder as
fab.yaml
with the following structure:vlab switch reinstall
enables automated NOS reinstall of switches. For example:The default mode (
reboot
) logs into the switch console, reboots and goes into ONIE NOS install mode to reboot once more and let the switch ready to be managed by the Control node.The
hard-reset
mode relies on the power CYCLE operation to cut power briefly for the given switch(es).Depends On githedgehog/fabric#689