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

irmc: change the return value of NeedsMAC() to true #1033

Merged
merged 1 commit into from
Dec 3, 2021

Conversation

zhouhao3
Copy link
Member

@zhouhao3 zhouhao3 commented Nov 19, 2021

When adding iRMC type BMH in OCP environment, if bootMACAddress is not specified, the following error will occur:

Events:                              
  Type    Reason             Age   From                         Message
  ----    ------             ----  ----                         -------
  Normal  RegistrationError  47s   metal3-baremetal-controller  MAC address  conflicts with existing node openshift-machine-api~master-0
  Normal  RegistrationError  47s   metal3-baremetal-controller  MAC address  conflicts with existing node openshift-machine-api~master-0

So modify the return value of NeedsMAC so that bootMACAddress must be specified when creating a BMH.

Signed-off-by: Zhou Hao zhouhao@fujitsu.com

@metal3-io-bot
Copy link
Contributor

Hi @zhouhao3. Thanks for your PR.

I'm waiting for a metal3-io member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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/test-infra repository.

@metal3-io-bot metal3-io-bot added needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Nov 19, 2021
@zhouhao3 zhouhao3 closed this Nov 19, 2021
@zhouhao3 zhouhao3 reopened this Nov 22, 2021
@andfasano
Copy link
Member

Hi @zhouhao3,
can you please add some description to the PR (and link an issue if present)? Thanks.

@zhouhao3
Copy link
Member Author

zhouhao3 commented Nov 23, 2021

@andfasano Updated, thanks.

@hardys
Copy link
Member

hardys commented Nov 30, 2021

/ok-to-test
/lgtm

@metal3-io-bot metal3-io-bot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. lgtm Indicates that a PR is ready to be merged. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Nov 30, 2021
@hardys
Copy link
Member

hardys commented Dec 1, 2021

lgtm but seems like the test failure is real

$ go test .
--- FAIL: TestStaticDriverInfo (0.00s)
    --- FAIL: TestStaticDriverInfo/irmc (0.00s)
        access_test.go:657: MAC needed: true , expected false
FAIL
FAIL	github.com/metal3-io/baremetal-operator/pkg/ironic/bmc	0.005s
FAIL

@metal3-io-bot metal3-io-bot added the needs-rebase Indicates that a PR cannot be merged because it has merge conflicts with HEAD. label Dec 1, 2021
@metal3-io-bot metal3-io-bot removed lgtm Indicates that a PR is ready to be merged. needs-rebase Indicates that a PR cannot be merged because it has merge conflicts with HEAD. labels Dec 2, 2021
When adding iRMC type BMH in OCP environment, if bootMACAddress is not specified, the following error will occur:

```
Events:
  Type    Reason             Age   From                         Message
  ----    ------             ----  ----                         -------
  Normal  RegistrationError  47s   metal3-baremetal-controller  MAC address  conflicts with existing node openshift-machine-api~master-0
  Normal  RegistrationError  47s   metal3-baremetal-controller  MAC address  conflicts with existing node openshift-machine-api~master-0

```

So modify the return value of NeedsMAC so that bootMACAddress must be specified when creating a BMH.

Signed-off-by: Zhou Hao <zhouhao@fujitsu.com>
@zhouhao3
Copy link
Member Author

zhouhao3 commented Dec 2, 2021

updated, PTAL.

@zhouhao3
Copy link
Member Author

zhouhao3 commented Dec 2, 2021

/test-v1b1-centos-integration
/test-v1b1-integration

@dtantsur
Copy link
Member

dtantsur commented Dec 3, 2021

/approve

@metal3-io-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dtantsur

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 the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 3, 2021
@hardys
Copy link
Member

hardys commented Dec 3, 2021

/lgtm

@metal3-io-bot metal3-io-bot added the lgtm Indicates that a PR is ready to be merged. label Dec 3, 2021
@metal3-io-bot metal3-io-bot merged commit 3572353 into metal3-io:master Dec 3, 2021
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. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants