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 support to update iso file for set_boot_order #2216

Merged

Conversation

bkopilov
Copy link
Contributor

Added iso file path when user change the boot order. It will allow us in a cluster to boot nodes with different iso files uscases:

  • Day2 master must be in the same network as day1 masters, we can re-use one of the existing nodes to become a day2 master by overriding iso file
  • Static network changes requires to download the iso again but we dont want to override all nodes iso path
  • Validate re-download iso file when different configurations (proxy)
  • Add support for re-usable nodes plus check how we manage multiple iso in a cluster deployment

In case we want to re-use the node with same network params. node.set_boot_order(cd_first=True, cdrom_iso_path="/tmp/test.iso) node.start()

@openshift-ci openshift-ci bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Jun 28, 2023
@openshift-ci openshift-ci bot requested review from omertuc and osherdp June 28, 2023 08:50
@openshift-ci openshift-ci bot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Jun 28, 2023
@openshift-ci
Copy link

openshift-ci bot commented Jun 28, 2023

Hi @bkopilov. Thanks for your PR.

I'm waiting for a openshift 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.

@bkopilov
Copy link
Contributor Author

@adriengentil
Copy link
Contributor

/ok-to-test
/test ?

@openshift-ci openshift-ci bot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Jun 28, 2023
@openshift-ci
Copy link

openshift-ci bot commented Jun 28, 2023

@adriengentil: The following commands are available to trigger required jobs:

  • /test e2e-metal-assisted
  • /test e2e-metal-assisted-kube-api-net-suite
  • /test e2e-metal-single-node-live-iso
  • /test e2e-metal-single-node-with-worker-live-iso
  • /test images
  • /test lint

The following commands are available to trigger optional jobs:

  • /test e2e-metal-assisted-4-10
  • /test e2e-metal-assisted-4-11
  • /test e2e-metal-assisted-4-12
  • /test e2e-metal-assisted-4-13
  • /test e2e-metal-assisted-4-14
  • /test e2e-metal-assisted-4-9
  • /test e2e-metal-assisted-cnv
  • /test e2e-metal-assisted-day2
  • /test e2e-metal-assisted-day2-arm-workers
  • /test e2e-metal-assisted-day2-single-node
  • /test e2e-metal-assisted-ha-kube-api
  • /test e2e-metal-assisted-ha-kube-api-ipv4
  • /test e2e-metal-assisted-ha-kube-api-ipv6
  • /test e2e-metal-assisted-ipv4v6
  • /test e2e-metal-assisted-ipv6
  • /test e2e-metal-assisted-ipxe
  • /test e2e-metal-assisted-kube-api-late-binding-single-node
  • /test e2e-metal-assisted-kube-api-late-unbinding-single-node
  • /test e2e-metal-assisted-kube-api-reclaim
  • /test e2e-metal-assisted-kube-api-reclaim-single-node
  • /test e2e-metal-assisted-lvm
  • /test e2e-metal-assisted-mce
  • /test e2e-metal-assisted-mce-sno
  • /test e2e-metal-assisted-metallb
  • /test e2e-metal-assisted-none
  • /test e2e-metal-assisted-odf
  • /test e2e-metal-assisted-onprem
  • /test e2e-metal-assisted-prod
  • /test e2e-metal-assisted-single-node
  • /test e2e-metal-assisted-static-ip-suite
  • /test e2e-metal-assisted-tang
  • /test e2e-metal-assisted-tpmv2
  • /test e2e-metal-assisted-upgrade-agent
  • /test e2e-nutanix-assisted
  • /test e2e-oci-assisted
  • /test e2e-vsphere-assisted
  • /test e2e-vsphere-assisted-4-12
  • /test e2e-vsphere-assisted-4-13
  • /test e2e-vsphere-assisted-kube-api
  • /test e2e-vsphere-assisted-umn

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

  • pull-ci-openshift-assisted-test-infra-master-e2e-metal-assisted
  • pull-ci-openshift-assisted-test-infra-master-e2e-metal-assisted-ipv4v6
  • pull-ci-openshift-assisted-test-infra-master-e2e-metal-assisted-ipv6
  • pull-ci-openshift-assisted-test-infra-master-e2e-metal-assisted-kube-api-late-binding-single-node
  • pull-ci-openshift-assisted-test-infra-master-e2e-metal-assisted-kube-api-net-suite
  • pull-ci-openshift-assisted-test-infra-master-e2e-metal-assisted-none
  • pull-ci-openshift-assisted-test-infra-master-e2e-metal-assisted-static-ip-suite
  • pull-ci-openshift-assisted-test-infra-master-e2e-metal-single-node-live-iso
  • pull-ci-openshift-assisted-test-infra-master-images
  • pull-ci-openshift-assisted-test-infra-master-lint

In response to this:

/ok-to-test
/test ?

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.

@adriengentil
Copy link
Contributor

/test e2e-nutanix-assisted
/test e2e-metal-assisted-day2-arm-workers

@bkopilov
Copy link
Contributor Author

/retest

Copy link
Contributor

@adriengentil adriengentil left a comment

Choose a reason for hiding this comment

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

okay, it looks like the nutanix passed the boot order and failed later in the process.
late-binding and metal-assisted are failing for known flakes.

@openshift-ci openshift-ci bot added lgtm Indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Jun 29, 2023
@openshift-ci-robot
Copy link

/retest-required

Remaining retests: 0 against base HEAD 30f6591 and 2 for PR HEAD 0cbe084 in total

@eliorerz
Copy link
Contributor

/lgtm cancel

Copy link
Contributor

@eliorerz eliorerz left a comment

Choose a reason for hiding this comment

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

/hold

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jun 29, 2023
@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Jun 29, 2023
@bkopilov bkopilov force-pushed the iso_image_per_node branch from 0cbe084 to 2a86e68 Compare July 2, 2023 06:18
Added iso file path when user change the boot order.
It will allow us in a cluster to boot nodes with different iso files
uscases:
 - Day2 master must be in the same network as day1 masters, we can re-use
   one of the existing nodes to become a day2 master by overriding iso file
 - Static network changes requires to download the iso again but we dont want
    to override all nodes iso path
 - Validate re-download iso file when different configurations (proxy)
 - Add support for re-usable nodes plus check how we manage multiple iso in
   a cluster deployment

In case we want to re-use the node with same network params.
node.set_boot_order(cd_first=True, cdrom_iso_path="/tmp/test.iso)
node.start()
@bkopilov bkopilov force-pushed the iso_image_per_node branch from 2a86e68 to 5a6cf5e Compare July 2, 2023 06:24
@bkopilov
Copy link
Contributor Author

bkopilov commented Jul 2, 2023

Hi Elior ,
There are many places in the code that annotation should be updated ... maybe in a seperate effort ? i changed related code to the fix

@eliorerz
Copy link
Contributor

eliorerz commented Jul 2, 2023

Hi Elior , There are many places in the code that annotation should be updated ... maybe in a seperate effort ? i changed related code to the fix

I know, our approach on that is if we touch some code that is not annotated we add the annotation in the relevant PR. anyway, we usually not blocking PRs on those stuff.

@eliorerz
Copy link
Contributor

eliorerz commented Jul 2, 2023

/retest

@eliorerz
Copy link
Contributor

eliorerz commented Jul 2, 2023

/test e2e-vsphere-assisted e2e-nutanix-assisted-4.13

Copy link
Contributor

@eliorerz eliorerz left a comment

Choose a reason for hiding this comment

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

LGTM

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jul 2, 2023
@openshift-ci
Copy link

openshift-ci bot commented Jul 2, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: adriengentil, bkopilov, eliorerz

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:
  • OWNERS [adriengentil,eliorerz]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@eliorerz
Copy link
Contributor

eliorerz commented Jul 2, 2023

/retest

@openshift-ci
Copy link

openshift-ci bot commented Jul 2, 2023

@bkopilov: 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-nutanix-assisted 0cbe084 link false /test e2e-nutanix-assisted

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.

@eliorerz
Copy link
Contributor

eliorerz commented Jul 3, 2023

/override ci/prow/e2e-metal-assisted-ipv4v6
Doesn't seem to be related to the failure

@openshift-ci
Copy link

openshift-ci bot commented Jul 3, 2023

@eliorerz: Overrode contexts on behalf of eliorerz: ci/prow/e2e-metal-assisted-ipv4v6

In response to this:

/override ci/prow/e2e-metal-assisted-ipv4v6
Doesn't seem to be related to the failure

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.

@eliorerz
Copy link
Contributor

eliorerz commented Jul 3, 2023

/unhold

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jul 3, 2023
@openshift-merge-robot openshift-merge-robot merged commit 26aa823 into openshift:master Jul 3, 2023
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/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.

5 participants