-
Notifications
You must be signed in to change notification settings - Fork 545
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 & e2e for mountOptions & efficient selinux relabelling support #3902
Conversation
/test ci/centos/mini-e2e-helm/k8s-1.27 |
/test ci/centos/mini-e2e/k8s-1.27 |
f0d886c
to
65116e4
Compare
/test ci/centos/mini-e2e/k8s-1.27 |
/test ci/centos/mini-e2e-helm/k8s-1.27 |
65116e4
to
fc363bd
Compare
/test ci/centos/mini-e2e/k8s-1.27 |
fc363bd
to
219d81f
Compare
/test ci/centos/mini-e2e/k8s-1.27 |
/test ci/centos/mini-e2e-helm/k8s-1.26 |
219d81f
to
4818110
Compare
/test ci/centos/mini-e2e-helm/k8s-1.26 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to remove WIP from PR title
pv.Spec.MountOptions = []string{mountOption} | ||
|
||
// update PV | ||
_, err = f.ClientSet.CoreV1().PersistentVolumes().Update(context.TODO(), pv, metav1.UpdateOptions{}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
create one ctx and reuse it.
4818110
to
8ec8aa7
Compare
/test ci/centos/mini-e2e-helm/k8s-1.26 |
e2e/utils.go
Outdated
} | ||
if len(mountOptions) > 0 { | ||
// modify PV spec.MountOptions | ||
pv, err := getBoundPV(f.ClientSet, pvc) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
e2e/utils.go:786:7: shadow: declaration of "err" shadows declaration at line 774 (govet)
pv, err := getBoundPV(f.ClientSet, pvc)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
e2e/utils.go:786:7: shadow: declaration of "err" shadows declaration at line 774 (govet) pv, err := getBoundPV(f.ClientSet, pvc)
Current version of pr does not suffer from this error.
ptal.
8ec8aa7
to
4818110
Compare
Raised issue for the failed ci. It is not related to this pr. |
Signed-off-by: Rakshith R <rar@redhat.com>
42f0f4c
to
2e43cb9
Compare
Pull request has been modified.
// TODO: remove this once the ceph-csi driver release-v3.9 is completed | ||
// and upgrade tests are done from v3.9 to devel. | ||
// The mountOptions from previous are not compatible with NodeStageVolume | ||
// request. | ||
sc.MountOptions = []string{} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CephFS upgrade tests pick up cephfs sc from previous release branches which still
have debug
mountoption in sc yamls.
Adding this workaround untill we set upgrade test from 3.9 to devel.
I'll add a note regarding this breaking change in release notes too.
(users will need to recreate cephfs storage without debug option and
remove it from pvs too.)
added issue to track this one #3911
I'll ask re-review requests after all the ci is green.
(:sweat_smile: this pr seems to be giving more ci issues than expected.)
/test ci/centos/k8s-e2e-external-storage/1.25 |
/test ci/centos/k8s-e2e-external-storage/1.26 |
/test ci/centos/k8s-e2e-external-storage/1.27 |
/test ci/centos/mini-e2e-helm/k8s-1.25 |
/test ci/centos/mini-e2e-helm/k8s-1.26 |
/test ci/centos/mini-e2e-helm/k8s-1.27 |
/test ci/centos/mini-e2e/k8s-1.25 |
/test ci/centos/mini-e2e/k8s-1.26 |
/test ci/centos/mini-e2e/k8s-1.27 |
/test ci/centos/upgrade-tests-cephfs |
/test ci/centos/upgrade-tests-rbd |
/retest ci/centos/mini-e2e-helm/k8s-1.26 |
reported a new issue with logs here #3913 |
Ci is finally green! 🎊 |
SeLinuxMount: true
option is set in csidriver object.Note:
is not selinux enabled.
refer: https://kubernetes.io/blog/2023/04/18/kubernetes-1-27-efficient-selinux-relabeling-beta/
Resolves: #3855 #757