Skip to content

storage: don't select an SSVM that is removed#3668

Merged
yadvr merged 1 commit into
apache:masterfrom
shapeblue:ssvm-dont-use-removed
Nov 11, 2019
Merged

storage: don't select an SSVM that is removed#3668
yadvr merged 1 commit into
apache:masterfrom
shapeblue:ssvm-dont-use-removed

Conversation

@yadvr

@yadvr yadvr commented Nov 7, 2019

Copy link
Copy Markdown
Member

Fixes a rare bug - in case an older SSVM is removed without changing it's state from Up
to Destroyed/Removed etc, the SSVM may be randomly selected for image
store related operations. This fix ensures that endpoints for an image
store are found only from a set of SSVM hosts that are not removed.

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)

Needs testing and review.

In case an older SSVM is removed without changing it's state from Up
to Destroyed/Removed etc, the SSVM may be randomly selected for image
store related operations. This fix ensures that endpoints for an image
store are found only from a set of SSVM hosts that are not removed.

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
@yadvr

yadvr commented Nov 7, 2019

Copy link
Copy Markdown
Member Author

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

@yadvr
yadvr requested a review from borisstoyanov November 7, 2019 12:53

@nvazquez nvazquez left a comment

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.

Code LGTM

@blueorangutan

Copy link
Copy Markdown

Packaging result: ✖centos6 ✔centos7 ✔debian. JID-340

@yadvr

yadvr commented Nov 7, 2019

Copy link
Copy Markdown
Member Author

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

@rhtyd a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

@blueorangutan

Copy link
Copy Markdown

Trillian test result (tid-456)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 35610 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr3668-t456-kvm-centos7.zip
Intermittent failure detected: /marvin/tests/smoke/test_privategw_acl.py
Smoke tests completed. 77 look OK, 0 have error(s)
Only failed tests results shown below:

Test Result Time (s) Test File

@yadvr yadvr changed the title [WIP] storage: don't select an SSVM that is removed storage: don't select an SSVM that is removed Nov 11, 2019
@yadvr
yadvr requested a review from DaanHoogland November 11, 2019 16:25

@GabrielBrascher GabrielBrascher left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Code LGTM

@yadvr

yadvr commented Nov 11, 2019

Copy link
Copy Markdown
Member Author

Thanks @GabrielBrascher @nvazquez

@yadvr
yadvr merged commit 7f5096a into apache:master Nov 11, 2019
ustcweizhou pushed a commit to ustcweizhou/cloudstack that referenced this pull request Feb 28, 2020
In case an older SSVM is removed without changing it's state from Up
to Destroyed/Removed etc, the SSVM may be randomly selected for image
store related operations. This fix ensures that endpoints for an image
store are found only from a set of SSVM hosts that are not removed.

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
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.

4 participants