Skip to content

pdcsi rox workflow fix #869

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

Merged
merged 2 commits into from
Dec 15, 2021
Merged

pdcsi rox workflow fix #869

merged 2 commits into from
Dec 15, 2021

Conversation

leiyiz
Copy link
Contributor

@leiyiz leiyiz commented Nov 19, 2021

turn on controller-publish-readonly flag and add validation in pd-csi driver for when readonly is on

if mounting a read-only ext3 or ext4 disk, use noload to prevent mount failure caused by journal replay

What type of PR is this?
/kind feature

What this PR does / why we need it:
when ROX accessMode is specified, csi.Readonly is currently not set. this PR fix that, and at the same time validate that a content source is set when readonly modes are specified at provision time.

Which issue(s) this PR fixes:

Fixes #872

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

Dynamically provisioning for Read only PVs will fail now unless a volume source (either restore from snapshot or volume cloning) is specified. 

@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/feature Categorizes issue or PR as related to a new feature. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Nov 19, 2021
@k8s-ci-robot
Copy link
Contributor

Hi @leiyiz. Thanks for your PR.

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

@k8s-ci-robot k8s-ci-robot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Nov 19, 2021
@k8s-ci-robot k8s-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Nov 19, 2021
@verult
Copy link
Contributor

verult commented Nov 22, 2021

/ok-to-test

@k8s-ci-robot k8s-ci-robot 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 Nov 22, 2021
@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Nov 24, 2021
@mattcary
Copy link
Contributor

/approved
/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Nov 24, 2021
@mattcary
Copy link
Contributor

/approve

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 24, 2021
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: leiyiz, mattcary

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 24, 2021
@k8s-ci-robot k8s-ci-robot removed lgtm "Looks good to me", indicates that a PR is ready to be merged. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Dec 2, 2021
@leiyiz
Copy link
Contributor Author

leiyiz commented Dec 2, 2021

/hold
repro of #872 shows that creating from snapshot either don't have filesystem copied over, or filesystem is not correctly recognized by mounter. hold until we figure things out more

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Dec 2, 2021
@leiyiz
Copy link
Contributor Author

leiyiz commented Dec 2, 2021

either don't have filesystem copied over, or filesystem is not correctly recognized by mounter. hold until we figure things out more

actually it's not issue with filesystem not there, mounter is not trying to setup a new filesystem. the mount failed at mount step with cannot mount /dev/sdb read-only.

@leiyiz
Copy link
Contributor Author

leiyiz commented Dec 8, 2021

/hold cancel

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Dec 8, 2021
@mattcary
Copy link
Contributor

Can you enumerate what overlays we use in upstream testing (both presubmit & periodic) & internally?

I'm wondering if we want to change stable-master now, or wait until this bakes, but I forget which test jobs use which overlay.

@leiyiz
Copy link
Contributor Author

leiyiz commented Dec 15, 2021

Internally most prow tests are using stable-master, a few are using prow-gke-release-staging-head and prow-gke-release-staging-rc-master.

Upstream postsubmits are using stable-master and dev overlays

@mattcary
Copy link
Contributor

/lgtm

Okay. Let's let this run through the postsubmits using dev, then in a day or two when we see things are green you can push a PR to update stable-master?

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 15, 2021
@k8s-ci-robot k8s-ci-robot merged commit bb31c9b into kubernetes-sigs:master Dec 15, 2021
@leiyiz
Copy link
Contributor Author

leiyiz commented Dec 17, 2021

migration testgrid is red but the driver latest grid looks green with csi-provisioner v3.0.0 picked up.

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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/feature Categorizes issue or PR as related to a new feature. lgtm "Looks good to me", 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. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't use ReadOnlyMany volume restored from Snapshot with controller-publish-readonly provisioner option
4 participants