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

Ceph(fix): Updates given to StorageClass won't work. #590

Merged

Conversation

rajatsing
Copy link

@rajatsing rajatsing commented Jun 27, 2020

This PR fixes the issue, where the updates given on StorageClass were not working. Now, the cluster will delete the existing sc and create a new one when requested for updation.

Signed-off-by: RAJAT SINGH rajasing@redhat.com

This PR is dependent on #563 and will rebase it when that will get merged.
BZ id: https://bugzilla.redhat.com/show_bug.cgi?id=1846085

@rajatsing rajatsing changed the title Ceph(fix): Updates given to StorageClass will work. Ceph(fix): Updates given to StorageClass won't work. Jun 29, 2020
Copy link
Contributor

@umangachapagain umangachapagain left a comment

Choose a reason for hiding this comment

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

  • Commits are not clean.

  • Also, here's what this code seems to be doing:

    if StorageClass is found
       delete StorageClass
       create Default StorageClass
    if StorageClass is not found
       create Default StorageClass
    

We don't want to delete existing StorageClass on every reconcile. We want to recreate it iff an update is required.

@rajatsing
Copy link
Author

@umangachapagain , Thanks for the review, how can I check iff there's an update for the existing SC?. Thanks

@rajatsing rajatsing force-pushed the update-storageClass branch 2 times, most recently from b346166 to 2c039ad Compare June 30, 2020 20:51
@openshift-ci-robot openshift-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jun 30, 2020
@rajatsing
Copy link
Author

I will resolve the PR once #563 is merged.

@openshift-ci-robot openshift-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jun 30, 2020
This PR fixes the issue, where the updates given on StorageClass were not working.Now,the cluster will delete the existing sc and create a new one when requested for updation.

Signed-off-by: RAJAT SINGH <rajasing@redhat.com>
@jarrpa
Copy link
Member

jarrpa commented Jun 30, 2020

/lgtm
/retest

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jun 30, 2020
@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jarrpa, rajatsingh25aug

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-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 30, 2020
@openshift-ci-robot
Copy link

openshift-ci-robot commented Jun 30, 2020

@rajatsingh25aug: The following tests failed, say /retest to rerun all failed tests:

Test name Commit Details Rerun command
ci/prow/ocs-operator-e2e-aws 2c039ad link /test ocs-operator-e2e-aws
ci/prow/red-hat-storage-ocs-ci-e2e-aws 2c039ad link /test red-hat-storage-ocs-ci-e2e-aws
ci/prow/verify-latest-csv 6e22082 link /test verify-latest-csv

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

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.

@openshift-merge-robot openshift-merge-robot merged commit b1462f7 into red-hat-storage:master Jun 30, 2020
@humblec
Copy link
Contributor

humblec commented Jul 1, 2020

This need a backport PR to release-4.5 branch. @rajatsingh25aug @umangachapagain @jarrpa

@umangachapagain
Copy link
Contributor

ci/prow/verify-latest-csv is failing and ci/prow/ocs-operator-e2e-aws was re-triggered. how did this get merged?

@rajatsing
Copy link
Author

@umangachapagain ci/prow/verify-latest-csv fails sometimes and needs to be re-triggered in order to run it successfully.
Here's a screenshot of verify-latest-csv when triggered on my machine.
image

@umangachapagain
Copy link
Contributor

@umangachapagain ci/prow/verify-latest-csv fails sometimes and needs to be re-triggered in order to run it successfully.

I'd expect that to be done.

Here's a screenshot of verify-latest-csv when triggered on my machine.

If it passed on local machine, it should pass on CI too.

My point being, we shouldn't merge without understanding why the CI failed. And, if we are sure it's a constantly reappearing issue in CI, we need to fix it.

@rajatsing
Copy link
Author

@umangachapagain ci/prow/verify-latest-csv fails sometimes and needs to be re-triggered in order to run it successfully.

I'd expect that to be done.

Here's a screenshot of verify-latest-csv when triggered on my machine.

If it passed on local machine, it should pass on CI too.

My point being, we shouldn't merge without understanding why the CI failed. And, if we are sure it's a constantly reappearing issue in CI, we need to fix it.

Sure, Understood. Also, e2e CI (ci/prow/red-hat-storage-ocs-ci-e2e-aws and ci/prow/ocs-operator-e2e-aws )
fails all the time. And I've seen that on almost all the PRs.

@rajatsing rajatsing deleted the update-storageClass branch July 1, 2020 10:36
@jarrpa
Copy link
Member

jarrpa commented Jul 1, 2020

/cherrypick release-4.5

@openshift-cherrypick-robot

@jarrpa: #590 failed to apply on top of branch "release-4.5":

error: Failed to merge in the changes.
Using index info to reconstruct a base tree...
M	hack/latest-csv-checksum.md5
Falling back to patching base and 3-way merge...
Auto-merging hack/latest-csv-checksum.md5
CONFLICT (content): Merge conflict in hack/latest-csv-checksum.md5
Patch failed at 0001 Ceph(fix): Updates on StorageClass won't work.

In response to this:

/cherrypick release-4.5

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.

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.

None yet

7 participants