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

Fix StorageCluster is in error state for few minutes after installing #1786

Merged

Conversation

malayparida2000
Copy link
Contributor

@malayparida2000 malayparida2000 commented Aug 29, 2022

Resolve: https://bugzilla.redhat.com/show_bug.cgi?id=2004027

Stop setting storagecluster to error phase just after creation

While storageclasses are being created it's waiting till underlying
resources like cephBlockPool, cephFilesystem & NFS are created.
In this phase, we are returning an error which results in the phase of the
storagecluster to be in Error Phase creating confusion for the user.

So henceforth this particular error would be caught, A requeue
Reconcile result would be given and the storagecluster would be marked
as in the Progressing Phase.

@malayparida2000
Copy link
Contributor Author

malayparida2000 commented Aug 29, 2022

/cc @iamniting
/cc @jarrpa
/cc @ebenahar

@malayparida2000
Copy link
Contributor Author

/retest

controllers/storagecluster/reconcile.go Outdated Show resolved Hide resolved
controllers/storagecluster/storageclasses.go Outdated Show resolved Hide resolved
controllers/storagecluster/storageclasses.go Outdated Show resolved Hide resolved
@malayparida2000 malayparida2000 force-pushed the cluster_phase branch 3 times, most recently from 743977d to 5a7e02f Compare September 1, 2022 05:26
While storageclasses are being created it's waiting till underlying
resources like cephBlockPool, cephFilesystem & NFS are created.
In this phase, we are returning an error which results in the phase of
the storagecluster to be in Error, creating confusion for the user.

So henceforth this particular error would be caught, A requeue
Reconcile result would be given and the storagecluster would be marked
as in the Progressing Phase.

Signed-off-by: Malay Kumar Parida <mparida@redhat.com>
Copy link
Member

@iamniting iamniting 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 Sep 1, 2022
@malayparida2000
Copy link
Contributor Author

@agarwal-mudit need approve

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Sep 1, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: iamniting, malayparida2000, umangachapagain

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 Sep 1, 2022
@openshift-merge-robot openshift-merge-robot merged commit b0977f3 into red-hat-storage:main Sep 1, 2022
9 checks passed
@malayparida2000 malayparida2000 deleted the cluster_phase branch September 1, 2022 11:45
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

4 participants