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

PWX-37811: Ignoring witness node during clusterdomain activate/deactivate with failover/failback. #1829

Merged
merged 3 commits into from
Aug 20, 2024

Conversation

diptiranjanpx
Copy link
Contributor

@diptiranjanpx diptiranjanpx commented Aug 12, 2024

Signed-Off-By: Diptiranjan

What type of PR is this?
bug

What this PR does / why we need it:
Sometimes the witness clusterdomain can get deactivated instead of source clusterdomain as part of the failover workflow.

Does this PR change a user-facing CRD or CLI?:
no

Is a release note needed?:
TBD

Issue: During storkctl perform failover in Sync clusters, witness node may get deactivated sometimes instead of the source cluster.
User Impact: After failover as the source cluster remains activated, the PX volumes can still be mounted and used from source after failover.
Resolution: After failover, source cluster will get deactivated by default and witness node should remain unaffected.

Does this change need to be cherry-picked to a release branch?:
yes, 24.3.0

Test:

Manual verification and with the integration tests as mentioned in https://github.com/libopenstorage/stork/pull/1828 

Copy link
Collaborator

@strivedi-px strivedi-px left a comment

Choose a reason for hiding this comment

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

Added couple of minor nits. Rest, looks good.

drivers/volume/volume.go Outdated Show resolved Hide resolved
drivers/volume/portworx/portworx.go Outdated Show resolved Hide resolved
Copy link

codecov bot commented Aug 20, 2024

Codecov Report

Attention: Patch coverage is 19.51220% with 33 lines in your changes missing coverage. Please review.

Project coverage is 34.45%. Comparing base (2171835) to head (74f2ae6).
Report is 1 commits behind head on master.

Files Patch % Lines
drivers/volume/portworx/portworx.go 0.00% 25 Missing ⚠️
pkg/action/drutils.go 50.00% 7 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1829      +/-   ##
==========================================
- Coverage   38.07%   34.45%   -3.62%     
==========================================
  Files          51       55       +4     
  Lines       11477    12706    +1229     
==========================================
+ Hits         4370     4378       +8     
- Misses       6713     7933    +1220     
- Partials      394      395       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@diptiranjanpx diptiranjanpx merged commit c7f9fe5 into master Aug 20, 2024
3 of 5 checks passed
diptiranjanpx added a commit that referenced this pull request Aug 21, 2024
…vate with failover/failback. (#1829)

* PWX-37811: Ignoring witness node during clusterdomain activate/deactivate with failover/failback.

* Addressed the review comments.

* Added UT for getRemoteNodeName.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants