-
Notifications
You must be signed in to change notification settings - Fork 260
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
🌱 E2E vbmctl and ssh boot check refactor #2223
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Lennart Jern <[email protected]>
Rename confusing variables. Mostly "hostname" -> "name", because it didn't have anything to do with the hostname. It is just the name of the VM we create, and that happens to also become the hostname unless changed elsewhere. Simplify LoadBMCConfig and vbmctl main. Signed-off-by: Lennart Jern <[email protected]>
Initialize the connection once and reuse, instead of constantly creating new connections. Signed-off-by: Lennart Jern <[email protected]>
Skipping CI for Draft Pull Request. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/test metal3-ubuntu-e2e-integration-main |
@tuminoid: The specified target(s) for
The following commands are available to trigger optional jobs:
Use
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
/test metal3-centos-e2e-integration-test-main |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. This is imo a good improvement. Just have a small question regarding the implementation details.
Otherwise lgtm.
/test metal3-ubuntu-e2e-integration-test-main |
What this PR does / why we need it:
This refactors and simplifies vbmctl by:
This all comes from trying to switch e2e to UEFI. It has grown too large so to avoid a monster PR, I'm now trying to push one piece at a time.
There is still a lot that could be done for vbmctl. In particular, reusing the same config struct for the tests and for creating the VMs is not ideal. We end up entangling the way we emulate bare metal with the actual test code, which should not care, nor know about it. It is also easy to get confused when some of the fields are ignored by either part of the system.