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

BUG 2007202: Update conditions to reflect degraded and resyncing #10

Merged
merged 2 commits into from Sep 24, 2021

Conversation

Madhu-1
Copy link
Member

@Madhu-1 Madhu-1 commented Sep 23, 2021

Backport of csi-addons#113 and csi-addons#116

ShyamsundarR and others added 2 commits September 23, 2021 17:03
The condition updates are when processing as secondary

- Resyncing
  - Is false on any errors
  - Is false if degraded is false
  - Is true, if resync is successful and volume is not
    yet "ready" to use
- Degraded
  - Is true on errors
  - Is true UNTIL resync returns "ready" response
  - Is false ONLY when resync returns "ready"

As Degraded moves to false, resyncing will move to
false as well, other than cases where there are
errors, or resync status is not yet determined. Resync
status is, for example, undetermined if we issued a
demote volume request, from markVolAsSecondary.

Resyncing: denotes if resync is active
Degraded: denotes local secondary contents are not
in full sync with remote, and that happens only when
remote is marked Secondary and local is also Secondary
and the final sync is complete.

Hence, Resyncing is false when degraded is false, as
there is no more data to sync.

Completed is always the initial condition to check before
looking at other conditions, to ensure operation was a
success. IOW, Completed being false, currently negates
any value in the other 2 conditions, and should typically
be Resync: false and Degraded: true.

Fixes: csi-addons#101

Signed-off-by: Shyamsundar Ranganathan <srangana@redhat.com>
(cherry picked from commit d33dbd5)
secondary

when the VR is marked as secondary the current
instance object still contains the status.State
as primary not secondary. we need to set the
status.State to secondary when the volume
is demoted successfully.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit 597f3f8)
@openshift-ci
Copy link

openshift-ci bot commented Sep 23, 2021

@Madhu-1: No Bugzilla bug is referenced in the title of this pull request.
To reference a bug, add 'Bug XXX:' to the title of this pull request and request another bug refresh with /bugzilla refresh.

In response to this:

BUG: 2007202 : Update conditions to reflect degraded and resyncing

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.

@Madhu-1 Madhu-1 changed the title BUG: 2007202 : Update conditions to reflect degraded and resyncing BUG 2007202: Update conditions to reflect degraded and resyncing Sep 23, 2021
@openshift-ci
Copy link

openshift-ci bot commented Sep 23, 2021

@Madhu-1: This pull request references Bugzilla bug 2007202, which is invalid:

  • expected the bug to target the "OCS 4.9.0" release, but it targets "---" instead

Comment /bugzilla refresh to re-evaluate validity if changes to the Bugzilla bug are made, or edit the title of this pull request to link to a different bug.

In response to this:

BUG 2007202: Update conditions to reflect degraded and resyncing

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.

@Madhu-1
Copy link
Member Author

Madhu-1 commented Sep 23, 2021

/assign @agarwal-mudit
/assign @ShyamsundarR

@openshift-ci
Copy link

openshift-ci bot commented Sep 23, 2021

@Madhu-1: GitHub didn't allow me to assign the following users: ShyamsundarR.

Note that only red-hat-storage members, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time.
For more information please see the contributor guide

In response to this:

/assign @agarwal-mudit
/assign @ShyamsundarR

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.

@openshift-ci
Copy link

openshift-ci bot commented Sep 23, 2021

@ShyamsundarR: changing LGTM is restricted to collaborators

In response to this:

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.

@openshift-ci
Copy link

openshift-ci bot commented Sep 23, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Madhu-1, ShyamsundarR

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

@agarwal-mudit
Copy link
Member

/bugzilla refresh
/lgtm

@openshift-ci
Copy link

openshift-ci bot commented Sep 24, 2021

@agarwal-mudit: This pull request references Bugzilla bug 2007202, which is valid.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (OCS 4.9.0) matches configured target release for branch (OCS 4.9.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

No GitHub users were found matching the public email listed for the QA contact in Bugzilla (ratamir@redhat.com), skipping review request.

In response to this:

/bugzilla refresh
/lgtm

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.

@openshift-merge-robot openshift-merge-robot merged commit c5e9db4 into red-hat-storage:release-4.9 Sep 24, 2021
@openshift-ci
Copy link

openshift-ci bot commented Sep 24, 2021

@Madhu-1: All pull requests linked via external trackers have merged:

Bugzilla bug 2007202 has been moved to the MODIFIED state.

In response to this:

BUG 2007202: Update conditions to reflect degraded and resyncing

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
Projects
None yet
4 participants