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

Refactor to enable local storage #1313

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

hardys
Copy link

@hardys hardys commented Nov 24, 2021

Refactor code from assisted_deployment.sh to enable_local_storage.sh
so that the local-storage operator can be enabled for deployed clusters
independent of the other assisted dependencies.

This also now works for CI/nightly builds, not only GA by installing the LSO from source.

Also fix the default for VM_EXTRADISKS_LIST - this is wrong so just specifying VM_EXTRADISKS=true doesn't work with this script (the operator ends up looking for vdb but the disk actually shows up as vda

@openshift-ci openshift-ci bot requested review from flaper87 and markmc November 24, 2021 16:52
@hardys hardys removed the request for review from markmc November 24, 2021 16:52
Copy link
Contributor

@flaper87 flaper87 left a comment

Choose a reason for hiding this comment

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

🍝

enable_local_storage.sh Outdated Show resolved Hide resolved
@ardaguclu
Copy link
Contributor

Is this change still only for assisted deployments?, because deploy_local_storage is called only in

function install_prerequisites_assisted_service() {

@hardys
Copy link
Author

hardys commented Dec 8, 2021

Is this change still only for assisted deployments?, because deploy_local_storage is called only in

function install_prerequisites_assisted_service() {

The point of this PR is to make it possible to enable local storage on a dev-scripts deployed cluster independent of the assisted stuff - so someone can run make then run enable_local_storage.sh if it's needed (for example if you want to try hypershift on a deployed cluster, or anything else which requires persistent storage)

@ardaguclu
Copy link
Contributor

That makes sense, thanks @hardys
/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Dec 8, 2021
@bfournie
Copy link
Contributor

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

@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Feb 17, 2022
Steven Hardy added 2 commits February 17, 2022 18:14
Refactor code from assisted_deployment.sh to enable_local_storage.sh
so that the local-storage operator can be enabled for deployed clusters
independent of the other assisted dependencies.

This also now works for pre-release builds by installing LSO from source.
Currently this is wrong, since the primary disk shows up as sda
due to using virtio-scsi, but then the single additional disk
uses virtio and shows up as vda, not vdb.
@hardys
Copy link
Author

hardys commented Feb 23, 2022

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

@hardys
Copy link
Author

hardys commented Feb 23, 2022

/test e2e-metal-ipi-ovn-ipv6

@hardys
Copy link
Author

hardys commented Feb 24, 2022

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

Copy link
Contributor

@flaper87 flaper87 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 Feb 25, 2022
@ardaguclu
Copy link
Contributor

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

1 similar comment
@ardaguclu
Copy link
Contributor

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

@hardys
Copy link
Author

hardys commented Mar 4, 2022

/override ci/prow/e2e-metal-ipi-serial-ovn-ipv6

@openshift-ci
Copy link

openshift-ci bot commented Mar 4, 2022

@hardys: Overrode contexts on behalf of hardys: ci/prow/e2e-metal-ipi-serial-ovn-ipv6

In response to this:

/override ci/prow/e2e-metal-ipi-serial-ovn-ipv6

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
Member

Given that the patch seems ok, wouldn't be recommended to have an assisted related job in the CI dev-scripts repo just to ensure that the change is not breaking anything?

oc project openshift-local-storage
LSO_PATH=${LOCAL_STORAGE_OPERATOR_PATH:-$GOPATH/src/github.com/openshift/local-storage-operator}
if [ ! -d $LSO_PATH ]; then
echo "Did not find $LSO_PATH" 1>&2
Copy link
Member

Choose a reason for hiding this comment

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

Follow-up idea: just clone or go get it?

Copy link
Author

Choose a reason for hiding this comment

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

Yeah good idea, cloning when not present similar to other repos seems like the most consistent option

@hardys
Copy link
Author

hardys commented Mar 4, 2022

Given that the patch seems ok, wouldn't be recommended to have an assisted related job in the CI dev-scripts repo just to ensure that the change is not breaking anything?

I checked with @flaper87 and he said the script I'm changing here isn't used in AI CI (which presumably explains why we don't have any gating coverage) - IIUC https://github.com/openshift/assisted-test-infra is used instead, but I admit I'm not at all familiar with exactly how the AI CI jobs are implemented

@dtantsur
Copy link
Member

dtantsur commented Mar 4, 2022

/approve

@openshift-ci
Copy link

openshift-ci bot commented Mar 4, 2022

[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

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 4, 2022
@lranjbar
Copy link
Contributor

lranjbar commented Mar 7, 2022

Given that the patch seems ok, wouldn't be recommended to have an assisted related job in the CI dev-scripts repo just to ensure that the change is not breaking anything?

I checked with @flaper87 and he said the script I'm changing here isn't used in AI CI (which presumably explains why we don't have any gating coverage) - IIUC https://github.com/openshift/assisted-test-infra is used instead, but I admit I'm not at all familiar with exactly how the AI CI jobs are implemented

There are some CI tests that have a dev-scripts base for AI. I'll look into it today

@hardys
Copy link
Author

hardys commented Mar 8, 2022

/retest-required

@hardys
Copy link
Author

hardys commented Mar 9, 2022

/test e2e-metal-ipi-serial-ipv4

@hardys
Copy link
Author

hardys commented Mar 14, 2022

/retest-required

2 similar comments
@hardys
Copy link
Author

hardys commented Mar 15, 2022

/retest-required

@hardys
Copy link
Author

hardys commented Mar 30, 2022

/retest-required

@hardys
Copy link
Author

hardys commented Apr 8, 2022

/test e2e-metal-ipi-ovn-ipv6

1 similar comment
@hardys
Copy link
Author

hardys commented Apr 11, 2022

/test e2e-metal-ipi-ovn-ipv6

@ardaguclu ardaguclu removed their assignment May 5, 2022
@hardys
Copy link
Author

hardys commented May 10, 2022

/retest-required

@elfosardo
Copy link
Member

/retest

@hardys
Copy link
Author

hardys commented Jun 15, 2022

/retest-required

1 similar comment
@hardys
Copy link
Author

hardys commented Jul 7, 2022

/retest-required

@hardys
Copy link
Author

hardys commented Jul 25, 2022

/override ci/prow/e2e-metal-ipi-proxy-ipv6
/override ci/prow/e2e-metal-ipi-proxy-ipv4

@openshift-ci
Copy link

openshift-ci bot commented Jul 25, 2022

@hardys: Overrode contexts on behalf of hardys: ci/prow/e2e-metal-ipi-proxy-ipv4, ci/prow/e2e-metal-ipi-proxy-ipv6

In response to this:

/override ci/prow/e2e-metal-ipi-proxy-ipv6
/override ci/prow/e2e-metal-ipi-proxy-ipv4

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.

@hardys
Copy link
Author

hardys commented Jul 25, 2022

/test e2e-metal-ipi

@openshift-ci
Copy link

openshift-ci bot commented Sep 8, 2022

@hardys: 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-metal-ipi-proxy-ipv6 75a147b link true /test e2e-metal-ipi-proxy-ipv6
ci/prow/e2e-metal-ipi-proxy-ipv4 75a147b link true /test e2e-metal-ipi-proxy-ipv4
ci/prow/e2e-metal-ipi-serial-ovn-ipv6 75a147b link true /test e2e-metal-ipi-serial-ovn-ipv6
ci/prow/e2e-metal-ipi-ovn-ipv6 75a147b link true /test e2e-metal-ipi-ovn-ipv6
ci/prow/e2e-metal-ipi 75a147b link true /test e2e-metal-ipi
ci/prow/e2e-metal-ipi-bm 75a147b link true /test e2e-metal-ipi-bm

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.

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