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

W/A for KubeVirt provider with RHCOS 9.2 #2373

Closed

Conversation

orenc1
Copy link
Contributor

@orenc1 orenc1 commented Apr 4, 2023

Due to changes in RHCOS 9.2, the ignition config is not able to be fetched with the openstack provider. However, it works with kubevirt ignition provider. Adding a workaround that uses a modified RHCOS containerdisk that sets the kernel command line parameter of ignition.platform.id=kubevirt instead of ignition.platform.id=openstack

This is needed until coreos/fedora-coreos-tracker#1126 is resolved and we'll have our kubevirt artifact shipped with RHCOS.

What this PR does / why we need it:

Which issue(s) this PR fixes (optional, use fixes #<issue_number>(, fixes #<issue_number>, ...) format, where issue_number might be a GitHub issue, or a Jira story:
Fixes #

Checklist

  • Subject and description added to both, commit and PR.
  • Relevant issues have been referenced.
  • This change includes docs.
  • This change includes unit tests.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Apr 4, 2023

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: orenc1
Once this PR has been reviewed and has the lgtm label, please assign csrwng for approval. For more information see the Kubernetes Code Review Process.

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@@ -41,6 +41,25 @@ func TestCreateCluster(t *testing.T) {

hostedCluster := e2eutil.CreateCluster(t, ctx, client, &clusterOpts, globalOpts.Platform, globalOpts.ArtifactDir, globalOpts.ServiceAccountSigningKey)

// Test W/A until https://github.com/coreos/fedora-coreos-tracker/issues/1126 is resolved
Copy link
Contributor

Choose a reason for hiding this comment

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

@orenc1 orenc1 force-pushed the workaround_for_rhcos_kubevirt_platform branch 2 times, most recently from 6fb35c3 to dd49859 Compare April 4, 2023 11:32
@@ -86,7 +86,7 @@ func NewParams(hcp *hyperv1.HostedControlPlane, version string, images map[strin
WhereaboutsCNI: images["multus-whereabouts-ipam-cni"],
RouteOverrideCNI: images["multus-route-override-cni"],
MultusNetworkPolicy: images["multus-networkpolicy"],
OVN: images["ovn-kubernetes"],
OVN: images["ovn-kubernetes-rhel-9"],
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is just for CI to check it works, since currently we're testing with ocp 4.13 and there the release payload references ovn-kubernetes with the rhel-9 suffix

@openshift-ci openshift-ci bot added area/control-plane-operator Indicates the PR includes changes for the control plane operator - in an OCP release and removed do-not-merge/needs-area labels Apr 4, 2023
@orenc1 orenc1 force-pushed the workaround_for_rhcos_kubevirt_platform branch from dd49859 to 7403836 Compare April 4, 2023 14:47
Due to changes in RHCOS 9.2, the ignition config is not able to be fetched with the openstack provider.
However, it works with kubevirt ignition provider.
Adding a workaround that uses a modified RHCOS containerdisk that sets the kernel command line parameter of 'ignition.platform.id=kubevirt' instead of 'ignition.platform.id=openstack'

Signed-off-by: Oren Cohen <ocohen@redhat.com>
@orenc1 orenc1 force-pushed the workaround_for_rhcos_kubevirt_platform branch from 7403836 to e84ef13 Compare April 4, 2023 15:37
@@ -148,6 +148,8 @@ func WaitForNReadyNodes(t *testing.T, ctx context.Context, client crclient.Clien
switch platform {
case hyperv1.PowerVSPlatform:
waitTimeout = 60 * time.Minute
case hyperv1.KubevirtPlatform:
waitTimeout = 60 * time.Minute
Copy link
Contributor Author

Choose a reason for hiding this comment

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

looks like with RHCOS 9.2 the boot time is longer, 30 minutes are not enough for the VM to fully boot twice. extending to 60.

@qinqon
Copy link
Contributor

qinqon commented Apr 4, 2023

/test foo

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Apr 4, 2023

@qinqon: The specified target(s) for /test were not found.
The following commands are available to trigger required jobs:

  • /test e2e-aws
  • /test images
  • /test kubevirt-images
  • /test unit
  • /test verify

The following commands are available to trigger optional jobs:

  • /test e2e-aws-4-12
  • /test e2e-aws-4-13
  • /test e2e-aws-metrics
  • /test e2e-conformance
  • /test e2e-ibmcloud-iks
  • /test e2e-ibmcloud-roks
  • /test kubevirt-e2e-kubevirt-aws-ovn

Use /test all to run the following jobs that were automatically triggered:

  • pull-ci-openshift-hypershift-main-e2e-aws
  • pull-ci-openshift-hypershift-main-images
  • pull-ci-openshift-hypershift-main-kubevirt-images
  • pull-ci-openshift-hypershift-main-unit
  • pull-ci-openshift-hypershift-main-verify

In response to this:

/test foo

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.

@qinqon
Copy link
Contributor

qinqon commented Apr 4, 2023

/test kubevirt-e2e-kubevirt-aws-ovn

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Apr 4, 2023

@orenc1: The following test 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-aws e84ef13 link true /test e2e-aws

Full PR test history. Your PR dashboard.

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.

@orenc1
Copy link
Contributor Author

orenc1 commented Apr 16, 2023

closing in favor of #2399 , that blocks the metadata server by EgressFirewall rule.
/close

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Apr 16, 2023

@orenc1: Closed this PR.

In response to this:

closing in favor of #2399 , that blocks the metadata server by EgressFirewall rule.
/close

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 closed this Apr 16, 2023
@orenc1 orenc1 deleted the workaround_for_rhcos_kubevirt_platform branch April 18, 2023 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/control-plane-operator Indicates the PR includes changes for the control plane operator - in an OCP release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants