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

Clean up funcs around power on and off: #7512

Merged
merged 2 commits into from
Feb 7, 2024

Conversation

jacobweinstock
Copy link
Member

Issue #, if available:

Description of changes:
Removed skipped tinkerbell tests that used power on or off. Removed power on and off from all other tests. We should not be powering on or off machines manually. ValidateHardwareDecommissioned will now validate machines are off and then if any are not off we call powerOffHardware and fail the test. We power off so that subsequent runs won't have issues with multiple Boots DHCP servers running.

Also updated the logic around checking the response from bmclib for power state. Depending on the provider the power state comes back different. For example, with ipmitool the result will be "Chassis Power is off", while with redfish the result will be "off".

Testing (if applicable):

Documentation added/planned (if applicable):

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Removed skipped tinkerbell tests that used power
on or off. Removed power on and off from all other
tests. We should not be powering on or off machines
manually. ValidateHardwareDecommissioned will now
validate machines are off and then if any are not
off we call powerOffHardware and fail the test. We
power off so that subsequent runs won't have issues
with multiple Boots DHCP servers running.

Also updated the logic around checking the response
from bmclib for power state. Depending on the provider
the power state comes back different. For example, with
ipmitool the result will be "Chassis Power is off", while
with redfish the result will be "off".

Signed-off-by: Jacob Weinstock <[email protected]>
@eks-distro-bot eks-distro-bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Feb 7, 2024
Copy link

codecov bot commented Feb 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (4583834) 73.48% compared to head (c9c3204) 73.49%.
Report is 5 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7512   +/-   ##
=======================================
  Coverage   73.48%   73.49%           
=======================================
  Files         579      579           
  Lines       36357    36362    +5     
=======================================
+ Hits        26718    26723    +5     
  Misses       7875     7875           
  Partials     1764     1764           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jacobweinstock
Copy link
Member Author

/approve

@eks-distro-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jacobweinstock

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@chrisdoherty4
Copy link
Contributor

/lgtm

@eks-distro-bot eks-distro-bot merged commit c084194 into aws:main Feb 7, 2024
12 checks passed
@mimcdevitt
Copy link
Member

/lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants