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: throw error if volume is down state and with pending status, it might not recover #2383

Merged
merged 2 commits into from
Dec 15, 2023

Conversation

Glitchfix
Copy link
Contributor

@Glitchfix Glitchfix commented Dec 12, 2023

What this PR does / why we need it:
In case the underlying storage driver fails to create the volume and puts it in down state and keep it pending forever due to kvdb miss, it could also be that it is unable to rollback too since the kvdb is down.
the check added helps us break out of that loop.

Which issue(s) this PR fixes (optional)
PWX-35130

Testing Notes
While creating a volume if the kvdb is unavailable and the volume enters a down state
CSI should throw an error

@Glitchfix Glitchfix force-pushed the fix/vol-down-dont-wait branch from 7a46045 to c0358f7 Compare December 13, 2023 10:38
@Glitchfix Glitchfix force-pushed the fix/vol-down-dont-wait branch from c0358f7 to 8eb7d36 Compare December 13, 2023 10:49
@Glitchfix Glitchfix merged commit beecab6 into libopenstorage:master Dec 15, 2023
2 checks passed
Glitchfix added a commit to Glitchfix/openstorage that referenced this pull request Dec 15, 2023
…might not recover (libopenstorage#2383)

* fix: throw error if volume is down state and with pending status, it might not recover

Signed-off-by: Shivanjan Chakravorty <[email protected]>

* refactor: update error message for volume state down and pending

Signed-off-by: Shivanjan Chakravorty <[email protected]>

---------

Signed-off-by: Shivanjan Chakravorty <[email protected]>
Glitchfix added a commit that referenced this pull request Dec 15, 2023
…might not recover (#2383)

* fix: throw error if volume is down state and with pending status, it might not recover

Signed-off-by: Shivanjan Chakravorty <[email protected]>

* refactor: update error message for volume state down and pending

Signed-off-by: Shivanjan Chakravorty <[email protected]>

---------

Signed-off-by: Shivanjan Chakravorty <[email protected]>
Glitchfix added a commit that referenced this pull request Jan 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants