ceph-csi icon indicating copy to clipboard operation
ceph-csi copied to clipboard

Enable AnnotateFSResize featuregate

Open humblec opened this issue 2 years ago • 25 comments

  • [x] Helm deployment have been updated to have this featuregate
  • [x] Deployment manifests are also updated to have this featuregate enabled ~~- E2E added for RBD for validation of the annotation~~

AnnotateFsResize store current size of pvc in pv's annotation, so as if pvc is deleted while expansion was pending on the node, the size of pvc can be restored to old value.

Signed-off-by: Humble Chirammal [email protected]

humblec avatar May 09 '22 11:05 humblec

The commitlint still fails ?

fatal: unsafe repository ('/go/src/github.com/ceph/ceph-csi' is owned by someone else)
To add an exception for this directory, call:

	git config --global --add safe.directory /go/src/github.com/ceph/ceph-csi
make: *** [Makefile:153: commitlint] Error 128
make: *** [Makefile:201: containerized-test] Error 2
Error: Process completed with exit code 2.

@Madhu-1 even after https://github.com/ceph/ceph-csi/pull/3102 ?

humblec avatar May 09 '22 11:05 humblec

The commitlint still fails ?

fatal: unsafe repository ('/go/src/github.com/ceph/ceph-csi' is owned by someone else)
To add an exception for this directory, call:

	git config --global --add safe.directory /go/src/github.com/ceph/ceph-csi
make: *** [Makefile:153: commitlint] Error 128
make: *** [Makefile:201: containerized-test] Error 2
Error: Process completed with exit code 2.

@Madhu-1 even after #3102 ?

@humblec i don't think you have rebased this PR on top of my changes. https://github.com/ceph/ceph-csi/runs/6350701526?check_suite_focus=true#step:3:35

Madhu-1 avatar May 09 '22 11:05 Madhu-1

@mergifyio rebase

Madhu-1 avatar May 09 '22 11:05 Madhu-1

rebase

✅ Branch has been successfully rebased

mergify[bot] avatar May 09 '22 11:05 mergify[bot]

@Mergifyio rebase

humblec avatar May 10 '22 06:05 humblec

@Mergifyio refresh

humblec avatar May 10 '22 06:05 humblec

rebase

✅ Branch has been successfully rebased

mergify[bot] avatar May 10 '22 06:05 mergify[bot]

refresh

✅ Pull request refreshed

mergify[bot] avatar May 10 '22 06:05 mergify[bot]

/retest ci/centos/mini-e2e-helm/k8s-1.23

humblec avatar May 10 '22 07:05 humblec

the commit messages, and maybe comments in the code should indicate what version of Kubernetes is needed for this. It would also be good to reference any documentation/KEP in the commit message(s).

I have added the above details to commits.. ptal. thanks @nixpanic

humblec avatar May 11 '22 10:05 humblec

Is it needed that this gets tested for each CSI-driver? Should it not be part of the k8s-e2e-external-storage suite, or some other Kubernetes specific test?

nixpanic avatar May 12 '22 07:05 nixpanic

Is it needed that this gets tested for each CSI-driver? Should it not be part of the k8s-e2e-external-storage suite, or some other Kubernetes specific test?

not necessarily for all CSI drivers. For ceph csi, we are enabling it with the sidecar , so adding a test as well to make sure, we get the expected string in the annotation. @nixpanic , ptal.. thanks.

humblec avatar May 13 '22 10:05 humblec

/retest ci/centos/mini-e2e-helm/k8s-1.21 /retest ci/centos/mini-e2e-helm/k8s-1.23

humblec avatar May 13 '22 12:05 humblec

Is it needed that this gets tested for each CSI-driver? Should it not be part of the k8s-e2e-external-storage suite, or some other Kubernetes specific test?

I Agree here. this is nothing to do with the CSI driver. any CSI driver which supports Resize will be tested for this one. IMO k8s-e2e-external-storage is the best place for this one.

Madhu-1 avatar May 17 '22 05:05 Madhu-1

Is it needed that this gets tested for each CSI-driver? Should it not be part of the k8s-e2e-external-storage suite, or some other Kubernetes specific test?

I Agree here. this is nothing to do with the CSI driver. any CSI driver which supports Resize will be tested for this one. IMO k8s-e2e-external-storage is the best place for this one.

@Madhu-1 @nixpanic is it that, just enable the featuregate and drop the sepcific e2e test in this PR ?

humblec avatar May 17 '22 07:05 humblec

Is it needed that this gets tested for each CSI-driver? Should it not be part of the k8s-e2e-external-storage suite, or some other Kubernetes specific test?

I Agree here. this is nothing to do with the CSI driver. any CSI driver which supports Resize will be tested for this one. IMO k8s-e2e-external-storage is the best place for this one.

@Madhu-1 @nixpanic is it that, just enable the featuregate and drop the sepcific e2e test in this PR ?

Yes please, that should be enough for us

Madhu-1 avatar May 17 '22 07:05 Madhu-1

Is it needed that this gets tested for each CSI-driver? Should it not be part of the k8s-e2e-external-storage suite, or some other Kubernetes specific test?

I Agree here. this is nothing to do with the CSI driver. any CSI driver which supports Resize will be tested for this one. IMO k8s-e2e-external-storage is the best place for this one.

@Madhu-1 @nixpanic is it that, just enable the featuregate and drop the sepcific e2e test in this PR ?

Yes please, that should be enough for us

@Madhu-1 done.. ptal.. thanks

humblec avatar May 17 '22 07:05 humblec

changes LGTM, please adjust the commit message to be the same in both commits. and update the PR description.

@Madhu-1 unifiied the commit header..

humblec avatar May 17 '22 07:05 humblec

@nixpanic ptal.. thanks.

humblec avatar May 17 '22 07:05 humblec

On Tue, May 17, 2022 at 12:30:10AM -0700, Humble Devassy Chirammal wrote:

Is it needed that this gets tested for each CSI-driver? Should it not be part of the k8s-e2e-external-storage suite, or some other Kubernetes specific test?

I Agree here. this is nothing to do with the CSI driver. any CSI driver which supports Resize will be tested for this one. IMO k8s-e2e-external-storage is the best place for this one.

@Madhu-1 @nixpanic is it that, just enable the featuregate and drop the sepcific e2e test in this PR ?

Yes, I guess so. And validate that the testing is included in the k8s-e2e-external-storage suite.

nixpanic avatar May 17 '22 07:05 nixpanic

On Tue, May 17, 2022 at 12:30:10AM -0700, Humble Devassy Chirammal wrote: > > Is it needed that this gets tested for each CSI-driver? Should it not be part of the k8s-e2e-external-storage suite, or some other Kubernetes specific test? > > I Agree here. this is nothing to do with the CSI driver. any CSI driver which supports Resize will be tested for this one. IMO k8s-e2e-external-storage is the best place for this one. @Madhu-1 @nixpanic is it that, just enable the featuregate and drop the sepcific e2e test in this PR ? Yes, I guess so. And validate that the testing is included in the k8s-e2e-external-storage suite.

Sure.. will do.

humblec avatar May 17 '22 08:05 humblec

@nixpanic can you please dismiss the review requested and approve ?

humblec avatar May 17 '22 08:05 humblec

This pull request now has conflicts with the target branch. Could you please resolve conflicts and force push the corrected changes? 🙏

mergify[bot] avatar May 25 '22 18:05 mergify[bot]

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in two weeks if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Jun 24 '22 21:06 github-actions[bot]

This pull request has been automatically closed due to inactivity. Please re-open if these changes are still required.

github-actions[bot] avatar Jul 08 '22 21:07 github-actions[bot]

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in two weeks if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Aug 26 '22 21:08 github-actions[bot]

This pull request has been automatically closed due to inactivity. Please re-open if these changes are still required.

github-actions[bot] avatar Sep 10 '22 21:09 github-actions[bot]