Skip to content

PWX-22971 : Fix application clone failure at resource stage#1046

Merged
ram-infrac merged 4 commits intomasterfrom
PWX-22971
Feb 25, 2022
Merged

PWX-22971 : Fix application clone failure at resource stage#1046
ram-infrac merged 4 commits intomasterfrom
PWX-22971

Conversation

@ram-infrac
Copy link
Copy Markdown
Contributor

@ram-infrac ram-infrac commented Feb 21, 2022

What type of PR is this?

bug

What this PR does / why we need it:
ApplicationClone fails with error -

Error cloning resources: VolumeDriver with UID/Name:  not found

This PR fix issue where driverName is always empty for non backup/restore, PrepareResourceForApply call

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

Is a release note needed?:
no

Does this change need to be cherry-picked to a release branch?:
yes2.9
2.8 -> in case of backup release of 2.8.x

Jenkins Job :

healthmonitor : http://jenkins.pwx.dev.purestorage.com/job/Stork/view/Stork%202.9-dev%20%20C7/job/stork-master-px-2.9-dev-healthmonitor/45/console
dev job from 43-45 : http://jenkins.pwx.dev.purestorage.com/job/Stork/job/stork-dev-test-2/
application clone : http://jenkins.pwx.dev.purestorage.com/job/Stork/job/stork-dev-test-2/48/console

  - get volume driverName by looking at pv object
in case of non backup/restore prepareresource calls

Signed-off-by: Ram <rsuradkar@purestorage.com>
Signed-off-by: Ram <rsuradkar@purestorage.com>
// node offline timeout just above 4.5 minutes
// which is the max time stork could take to delete a app pod.
nodeOfflineTimeout = 271 * time.Second
nodeOfflineTimeout = 295 * time.Second
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Did performance degrade?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

No, health monitor switch period is still 4.5 mins.
Torpedo StopDriver() labels node to stop Portworx driver, but does not actually waits for driver to shutdown only grace period of 10 Secs for some reason. that's why this increase timeout is needed

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@ram-infrac ram-infrac merged commit 7ad5271 into master Feb 25, 2022
@ram-infrac ram-infrac deleted the PWX-22971 branch February 25, 2022 06:12
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