Skip to content

Add parallel test for new baremetal resources#26541

Merged
openshift-merge-robot merged 1 commit intoopenshift:masterfrom
bfournie:bm-hfs-resources
Nov 16, 2021
Merged

Add parallel test for new baremetal resources#26541
openshift-merge-robot merged 1 commit intoopenshift:masterfrom
bfournie:bm-hfs-resources

Conversation

@bfournie
Copy link
Copy Markdown
Contributor

Add a test to check that the hostfirmwaresettings and firmwareschema resources are created and populated with BIOS configuration settings.

Copy link
Copy Markdown
Member

@ardaguclu ardaguclu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @bfournie, this looks good to me. I left some comments.

Comment thread test/extended/baremetal/hosts.go
Comment thread test/extended/baremetal/hosts.go Outdated
Comment thread test/extended/baremetal/hosts.go Outdated
Comment thread test/extended/baremetal/hosts.go Outdated
Comment thread test/extended/baremetal/hosts.go Outdated
Comment thread test/extended/baremetal/hosts.go Outdated
Comment thread test/extended/baremetal/hosts.go Outdated
Comment thread test/extended/baremetal/hosts.go Outdated
@bfournie bfournie force-pushed the bm-hfs-resources branch 4 times, most recently from 1ccbffa to af4e179 Compare October 27, 2021 13:05
Comment thread test/extended/baremetal/hosts.go Outdated
@bfournie
Copy link
Copy Markdown
Contributor Author

/retest

@ardaguclu
Copy link
Copy Markdown
Member

/lgtm
/test e2e-metal-ipi
/test e2e-metal-ipi-ovn-ipv6
/test e2e-metal-ipi-ovn-dualstack

@openshift-ci openshift-ci Bot added the lgtm Indicates that a PR is ready to be merged. label Nov 3, 2021
@andfasano
Copy link
Copy Markdown
Contributor

@bfournie looks like the tests failed in the latest run

@bfournie
Copy link
Copy Markdown
Contributor Author

bfournie commented Nov 3, 2021

@bfournie looks like the tests failed in the latest run

Yeah its looks like the resources were created but occasionally can get 0 bios config settings returned from the provisioner (I had seen this on masters but I guess its possible on workers too). I will have a fix for that in bmo, until then I'll remove the check for settings not empty

@openshift-ci openshift-ci Bot removed the lgtm Indicates that a PR is ready to be merged. label Nov 3, 2021
@bfournie
Copy link
Copy Markdown
Contributor Author

bfournie commented Nov 3, 2021

/test e2e-metal-ipi
/test e2e-metal-ipi-ovn-ipv6
/test e2e-metal-ipi-ovn-dualstack
/test e2e-gcp-upgrade

@bfournie bfournie force-pushed the bm-hfs-resources branch 2 times, most recently from 66b9a1a to d1e05f9 Compare November 4, 2021 13:13
@bfournie
Copy link
Copy Markdown
Contributor Author

bfournie commented Nov 4, 2021

/retest-required

@bfournie bfournie force-pushed the bm-hfs-resources branch 2 times, most recently from 7c44f8f to 18dd121 Compare November 4, 2021 14:17
@bfournie
Copy link
Copy Markdown
Contributor Author

bfournie commented Nov 4, 2021

/test e2e-aws-serial
/test e2e-gcp-upgrade
/test e2e-metal-ipi
/test e2e-metal-ipi-ovn-ipv6
/test e2e-metal-ipi-ovn-dualstack

@ardaguclu
Copy link
Copy Markdown
Member

/lgtm

@openshift-ci openshift-ci Bot added the lgtm Indicates that a PR is ready to be merged. label Nov 8, 2021
Comment thread test/extended/baremetal/hosts.go Outdated
for _, h := range hosts.Items {
hostName := getStringField(h, "baremetalhost", "metadata.name")

g.By("check that each baremetalhost has a corresponding hostfirmwaresettings")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This message will be printed for each host, but it does not show any information about that. It could be improved by also adding the current hostname for more clarity

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. Included the hostname in the debug output.


// Reenable this when fix to prevent settings with 0 entries is in BMO
// g.By("check that hostfirmwaresettings settings have been populated")
// expectStringMapField(*hfs, "hostfirmwaresettings", "status.settings").ToNot(o.BeEmpty())
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we still need to keep this commented code?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, per comment, the code should be uncommented when metal3-io/baremetal-operator#995 merges that will prevent empty settings fields.

Comment thread test/extended/baremetal/hosts.go Outdated
// expectStringMapField(*hfs, "hostfirmwaresettings", "status.settings").ToNot(o.BeEmpty())

g.By("check that hostfirmwaresettings conditions show resource is valid")
expectSliceField(*hfs, "hostfirmwaresettings", "status.conditions").ToNot(o.BeEmpty())
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't something already somehow addressed within the checkConditionStatus method?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think its necessary to check that conditions is not empty but I've moved this check to checkConditionStatus and simplified it.

Add a test to check that the hostfirmwaresettings and firmwareschema
resources are created and populated with BIOS configuration settings.
@openshift-ci openshift-ci Bot removed the lgtm Indicates that a PR is ready to be merged. label Nov 8, 2021
@andfasano
Copy link
Copy Markdown
Contributor

/test e2e-metal-ipi
/test e2e-metal-ipi-ovn-ipv6
/test e2e-metal-ipi-ovn-dualstack
/test e2e-metal-ipi-virtualmedia
/test e2e-metal-ipi-serial

Changes look fine to me, let's see first a run on the various e2e-metal-ipi configurations

@bfournie
Copy link
Copy Markdown
Contributor Author

bfournie commented Nov 8, 2021

/test e2e-metal-ipi
/test e2e-metal-ipi-ovn-ipv6
/test e2e-metal-ipi-ovn-dualstack
/test e2e-metal-ipi-virtualmedia
/test e2e-metal-ipi-serial
/test e2e-gcp

@bfournie
Copy link
Copy Markdown
Contributor Author

bfournie commented Nov 8, 2021

/test e2e-metal-ipi-ovn-ipv6
/test e2e-metal-ipi-virtualmedia
/test e2e-agnostic-cmd
/test e2e-gcp-upgrade

@bfournie
Copy link
Copy Markdown
Contributor Author

bfournie commented Nov 8, 2021

/test e2e-metal-ipi-ovn-ipv6
/test e2e-agnostic-cmd

@bfournie
Copy link
Copy Markdown
Contributor Author

bfournie commented Nov 9, 2021

/retest

@bfournie
Copy link
Copy Markdown
Contributor Author

bfournie commented Nov 9, 2021

/test e2e-metal-ipi-ovn-ipv6

@andfasano
Copy link
Copy Markdown
Contributor

/lgtm

@openshift-ci openshift-ci Bot added the lgtm Indicates that a PR is ready to be merged. label Nov 9, 2021
@bfournie
Copy link
Copy Markdown
Contributor Author

bfournie commented Nov 9, 2021

/test e2e-metal-ipi-ovn-ipv6

@bfournie
Copy link
Copy Markdown
Contributor Author

bfournie commented Nov 9, 2021

/assign @derekwaynecarr

@andfasano
Copy link
Copy Markdown
Contributor

cc @ardaguclu

@ardaguclu
Copy link
Copy Markdown
Member

/approve

@bfournie
Copy link
Copy Markdown
Contributor Author

cc @bparees

@bparees
Copy link
Copy Markdown
Contributor

bparees commented Nov 15, 2021

/approve

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Nov 15, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: andfasano, ardaguclu, bfournie, bparees, elfosardo

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

The pull request process is described here

Details 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

@openshift-ci openshift-ci Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 15, 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.

@bfournie
Copy link
Copy Markdown
Contributor Author

/test e2e-gcp

@openshift-bot
Copy link
Copy Markdown
Contributor

/retest-required

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

1 similar comment
@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 5f2fd6c into openshift:master Nov 16, 2021
@bfournie bfournie deleted the bm-hfs-resources branch November 16, 2021 11:33
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants