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

add -boot-mode argument to make-bm-worker #605

Merged
merged 1 commit into from
Jul 27, 2020

Conversation

dhellmann
Copy link
Member

metal3-dev-env uses this program to create host resources. In order to
let metal3-dev-env change the boot mode for hosts, we need to add an
option to pass the value through to the template.

@metal3-io-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dhellmann

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

@metal3-io-bot metal3-io-bot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jul 27, 2020
@stbenjam
Copy link
Member

/lgtm

@metal3-io-bot metal3-io-bot added the lgtm Indicates that a PR is ready to be merged. label Jul 27, 2020
@stbenjam
Copy link
Member

/test-integration

@maelk
Copy link
Member

maelk commented Jul 27, 2020

This failed because the boot mode is not specified in the command line :

go run /home/****/tested_repo/cmd/make-bm-worker/main.go -address ipmi://192.168.111.1:6230 -password password -user admin -boot-mac 00:6a:7d:7c:4c:98 node-0
Invalid boot mode "", use "UEFI" or "legacy"
exit status 1

Should it default to legacy ?

metal3-dev-env uses this program to create host resources. In order to
let metal3-dev-env change the boot mode for hosts, we need to add an
option to pass the value through to the template.

Signed-off-by: Doug Hellmann <dhellmann@redhat.com>
@metal3-io-bot metal3-io-bot removed the lgtm Indicates that a PR is ready to be merged. label Jul 27, 2020
@dhellmann
Copy link
Member Author

This failed because the boot mode is not specified in the command line :

go run /home/****/tested_repo/cmd/make-bm-worker/main.go -address ipmi://192.168.111.1:6230 -password password -user admin -boot-mac 00:6a:7d:7c:4c:98 node-0
Invalid boot mode "", use "UEFI" or "legacy"
exit status 1

Should it default to legacy ?

I assumed the variable would be nil if not specified on the command line. I've fixed the test.

We want the default to be empty here, to allow the baremetal-operator to control the default. The plan there is to use UEFI as the default, which is why metal3-io/metal3-dev-env#395 sets the value to legacy explicitly so our CI will work.

@stbenjam
Copy link
Member

/test-integration

@maelk
Copy link
Member

maelk commented Jul 27, 2020

/lgtm

@metal3-io-bot metal3-io-bot added the lgtm Indicates that a PR is ready to be merged. label Jul 27, 2020
@metal3-io-bot metal3-io-bot merged commit 8caaeaa into metal3-io:master Jul 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants