Skip to content

Bug 2003113: Improve host role management during assets creation#5205

Merged
openshift-merge-robot merged 2 commits intoopenshift:masterfrom
andfasano:fix-baremetal-hosts-order
Nov 10, 2021
Merged

Bug 2003113: Improve host role management during assets creation#5205
openshift-merge-robot merged 2 commits intoopenshift:masterfrom
andfasano:fix-baremetal-hosts-order

Conversation

@andfasano
Copy link
Copy Markdown
Contributor

@andfasano andfasano commented Sep 10, 2021

The current patch provides a fix for the issue BZ 2003113.
The logic for generating baremetal manifests and Terraform variables now takes into account the host role tag properly, if defined.
To remain backward compatible, if an host doesn not have any role defined (or supported value), it's considered eligible for the ControlPlane or Compute respectively, based on the configured requirements.
For that, the validation rule has been enhanced to verify that the correct number of hosts have been configured.

@openshift-ci openshift-ci Bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 10, 2021
@openshift-ci openshift-ci Bot requested review from markmc and stbenjam September 10, 2021 15:53
@andfasano
Copy link
Copy Markdown
Contributor Author

/retest

@hardys
Copy link
Copy Markdown

hardys commented Sep 13, 2021

/label platform/baremetal

@openshift-ci openshift-ci Bot added the platform/baremetal IPI bare metal hosts platform label Sep 13, 2021
@andfasano andfasano changed the title [WIP] Skip workers while generating TF vars [WIP] BZ 2003113: Skip workers while generating TF vars Sep 13, 2021
@andfasano andfasano changed the title [WIP] BZ 2003113: Skip workers while generating TF vars [WIP] Bug 2003113: Skip workers while generating TF vars Sep 13, 2021
@openshift-ci openshift-ci Bot added the bugzilla/severity-medium Referenced Bugzilla bug's severity is medium for the branch this PR is targeting. label Sep 13, 2021
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Sep 13, 2021

@andfasano: This pull request references Bugzilla bug 2003113, which is invalid:

  • expected the bug to target the "4.10.0" release, but it targets "---" instead

Comment /bugzilla refresh to re-evaluate validity if changes to the Bugzilla bug are made, or edit the title of this pull request to link to a different bug.

Details

In response to this:

[WIP] Bug 2003113: Skip workers while generating TF vars

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.

@openshift-ci openshift-ci Bot added the bugzilla/invalid-bug Indicates that a referenced Bugzilla bug is invalid for the branch this PR is targeting. label Sep 13, 2021
@andfasano
Copy link
Copy Markdown
Contributor Author

/bugzilla refresh

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Sep 13, 2021

@andfasano: This pull request references Bugzilla bug 2003113, which is invalid:

  • expected the bug to target the "4.10.0" release, but it targets "---" instead

Comment /bugzilla refresh to re-evaluate validity if changes to the Bugzilla bug are made, or edit the title of this pull request to link to a different bug.

Details

In response to this:

/bugzilla refresh

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.

@andfasano
Copy link
Copy Markdown
Contributor Author

/bugzilla refresh

@openshift-ci openshift-ci Bot added bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. and removed bugzilla/invalid-bug Indicates that a referenced Bugzilla bug is invalid for the branch this PR is targeting. labels Sep 13, 2021
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Sep 13, 2021

@andfasano: This pull request references Bugzilla bug 2003113, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.10.0) matches configured target release for branch (4.10.0)
  • bug is in the state NEW, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

No GitHub users were found matching the public email listed for the QA contact in Bugzilla (augol@redhat.com), skipping review request.

Details

In response to this:

/bugzilla refresh

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.

@andfasano andfasano force-pushed the fix-baremetal-hosts-order branch 2 times, most recently from 1302c54 to 606f3f0 Compare September 14, 2021 12:57
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Sep 14, 2021

@andfasano: This pull request references Bugzilla bug 2003113, which is valid.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.10.0) matches configured target release for branch (4.10.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

No GitHub users were found matching the public email listed for the QA contact in Bugzilla (augol@redhat.com), skipping review request.

Details

In response to this:

[WIP] Bug 2003113: Skip workers while generating TF vars

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.

@andfasano andfasano force-pushed the fix-baremetal-hosts-order branch from a5a2030 to b503624 Compare September 14, 2021 13:25
Comment thread pkg/tfvars/baremetal/baremetal_test.go Outdated
Comment thread pkg/types/baremetal/validation/platform.go Outdated
Comment thread pkg/types/validation/installconfig_test.go Outdated
@andfasano andfasano force-pushed the fix-baremetal-hosts-order branch from b503624 to c7c6e07 Compare September 14, 2021 16:40
@andfasano
Copy link
Copy Markdown
Contributor Author

/retest

@andfasano andfasano force-pushed the fix-baremetal-hosts-order branch from c7c6e07 to 10706ab Compare September 15, 2021 08:11
@andfasano andfasano changed the title [WIP] Bug 2003113: Skip workers while generating TF vars Bug 2003113: Skip workers while generating TF vars Sep 15, 2021
@openshift-ci openshift-ci Bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 15, 2021
@andfasano andfasano changed the title Bug 2003113: Skip workers while generating TF vars [WIP] Bug 2003113: Skip workers while generating TF vars Sep 16, 2021
@openshift-bot
Copy link
Copy Markdown
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

3 similar comments
@openshift-bot
Copy link
Copy Markdown
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Copy Markdown
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Copy Markdown
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Nov 10, 2021

@andfasano: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-ovirt 59908ee link false /test e2e-ovirt
ci/prow/e2e-aws-workers-rhel7 59908ee link false /test e2e-aws-workers-rhel7
ci/prow/e2e-aws-workers-rhel8 59908ee link false /test e2e-aws-workers-rhel8
ci/prow/okd-e2e-aws-upgrade 59908ee link false /test okd-e2e-aws-upgrade
ci/prow/e2e-crc 59908ee link false /test e2e-crc

Full PR test history. Your PR dashboard.

Details

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. I understand the commands that are listed here.

@openshift-bot
Copy link
Copy Markdown
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

12 similar comments
@openshift-bot
Copy link
Copy Markdown
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Copy Markdown
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Copy Markdown
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Copy Markdown
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Copy Markdown
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Copy Markdown
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Copy Markdown
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Copy Markdown
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Copy Markdown
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Copy Markdown
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Copy Markdown
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Copy Markdown
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-merge-robot openshift-merge-robot merged commit c88793c into openshift:master Nov 10, 2021
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Nov 10, 2021

@andfasano: All pull requests linked via external trackers have merged:

Bugzilla bug 2003113 has been moved to the MODIFIED state.

Details

In response to this:

Bug 2003113: Improve host role management during assets creation

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.

@andfasano
Copy link
Copy Markdown
Contributor Author

/cherrypick 4.9

@openshift-cherrypick-robot
Copy link
Copy Markdown

@andfasano: cannot checkout 4.9: error checking out 4.9: exit status 1. output: error: pathspec '4.9' did not match any file(s) known to git

Details

In response to this:

/cherrypick 4.9

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.

@andfasano
Copy link
Copy Markdown
Contributor Author

/cherrypick release-4.9

@openshift-cherrypick-robot
Copy link
Copy Markdown

@andfasano: #5205 failed to apply on top of branch "release-4.9":

Applying: baremetal: improve host role management during assets creation
Using index info to reconstruct a base tree...
M	pkg/asset/cluster/tfvars.go
M	pkg/asset/machines/baremetal/hosts.go
M	pkg/asset/machines/baremetal/hosts_test.go
M	pkg/types/baremetal/validation/platform.go
M	pkg/types/baremetal/validation/platform_test.go
M	pkg/types/validation/installconfig_test.go
Falling back to patching base and 3-way merge...
Auto-merging pkg/types/validation/installconfig_test.go
Auto-merging pkg/types/baremetal/validation/platform_test.go
Auto-merging pkg/types/baremetal/validation/platform.go
Auto-merging pkg/asset/machines/baremetal/hosts_test.go
CONFLICT (content): Merge conflict in pkg/asset/machines/baremetal/hosts_test.go
Auto-merging pkg/asset/machines/baremetal/hosts.go
Auto-merging pkg/asset/cluster/tfvars.go
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 baremetal: improve host role management during assets creation
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".

Details

In response to this:

/cherrypick release-4.9

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.

@andfasano
Copy link
Copy Markdown
Contributor Author

/cherrypick release-4.8

@openshift-cherrypick-robot
Copy link
Copy Markdown

@andfasano: #5205 failed to apply on top of branch "release-4.8":

Applying: baremetal: improve host role management during assets creation
Using index info to reconstruct a base tree...
M	pkg/asset/cluster/tfvars.go
M	pkg/asset/machines/baremetal/hosts.go
M	pkg/asset/machines/baremetal/hosts_test.go
M	pkg/types/baremetal/platform.go
M	pkg/types/baremetal/validation/platform.go
M	pkg/types/baremetal/validation/platform_test.go
M	pkg/types/validation/installconfig_test.go
Falling back to patching base and 3-way merge...
Auto-merging pkg/types/validation/installconfig_test.go
Auto-merging pkg/types/baremetal/validation/platform_test.go
Auto-merging pkg/types/baremetal/validation/platform.go
Auto-merging pkg/types/baremetal/platform.go
Auto-merging pkg/asset/machines/baremetal/hosts_test.go
CONFLICT (content): Merge conflict in pkg/asset/machines/baremetal/hosts_test.go
Auto-merging pkg/asset/machines/baremetal/hosts.go
Auto-merging pkg/asset/cluster/tfvars.go
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 baremetal: improve host role management during assets creation
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".

Details

In response to this:

/cherrypick release-4.8

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.

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. bugzilla/severity-medium Referenced Bugzilla bug's severity is medium for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. lgtm Indicates that a PR is ready to be merged. platform/baremetal IPI bare metal hosts platform

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants