FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Rbd snapshot rollback by GabrielBrascher · Pull Request #3502 · apache/cloudstack · GitHub

Repository navigation

Rbd snapshot rollback - #3502

Merged
yadvr merged 5 commits into
apache:masterfrom
CLDIN:rbd-snapshot-rollback
Jul 23, 2019
Merged

yadvr merged 5 commits into
apache:masterfrom
CLDIN:rbd-snapshot-rollback

Conversation

Copy link
Copy Markdown
Member

Description

Add CephSnapshotStrategy to handle RBD revert (rollback) snapshot. In order to support RBD revert (rbd_rollback), this PR adds a CephSnapshotStrategy class to handle Ceph/RBD snapshot actions.

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)

Screenshots (if appropriate):

How Has This Been Tested?

(i) set snapshot.backup.to.secondary to false and restart ACS, ensuring that snapshots are stored directly on primary storage (Ceph/RBD)
(ii) create multiple snapshots with changes (e.g. new files) and stop the VM
(iii) revert to a given snapshot
(iv) assert that rbd_snap_rollback is successfuly executed (remote debug evaulating the code)
(v) start the VM and check that the VM disk content is as expected

GabrielBrascher added 3 commits July 11, 2019 18:55
The snapshotRelPath contains a string such as:
"poolName/volumeUuid/snapshotUuid"; thus, this commit splits the string
and retrieves the necessary data for open and rollback snapshot.

Copy link
Copy Markdown
Member Author

This PR addresses issue #3498.

yadvr commented Jul 18, 2019

Copy link
Copy Markdown
Member

@blueorangutan package

Copy link
Copy Markdown

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

Copy link
Copy Markdown

Packaging result: ✖centos6 ✖centos7 ✖debian. JID-151

Copy link
Copy Markdown
Member Author

@rhtyd rados-java 0.5.0 should be pushed to Maven Central tonight; therefore we need to wait a few hours so we can reckick Travis and blueorangutan. I will ping when rados-java gets updated, thanks!

yadvr commented Jul 18, 2019

Copy link
Copy Markdown
Member

Okay @GabrielBrascher ping me when you want regression testing kicked.

wido commented Jul 19, 2019

Copy link
Copy Markdown
Contributor

@rhtyd rados java 0.5.0 is in maven central now

yadvr commented Jul 19, 2019

Copy link
Copy Markdown
Member

@blueorangutan package

Copy link
Copy Markdown

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

Copy link
Copy Markdown

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

yadvr commented Jul 19, 2019

Copy link
Copy Markdown
Member

@blueorangutan package

Copy link
Copy Markdown

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

Copy link
Copy Markdown

Packaging result: ✔centos6 ✔centos7 ✔debian. JID-154

yadvr commented Jul 22, 2019

Copy link
Copy Markdown
Member

@blueorangutan test

Copy link
Copy Markdown

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

Copy link
Copy Markdown

Trillian test result (tid-186)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 29023 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr3502-t186-kvm-centos7.zip
Smoke tests completed. 77 look OK, 0 have error(s)
Only failed tests results shown below:

Test Result Time (s) Test File

yadvr commented Jul 22, 2019

Copy link
Copy Markdown
Member

Left a minor remark, tests also LGTM.
We can merge this as soon as any outstanding issues are fixed and we've another lgtm @GabrielBrascher

borisstoyanov 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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM based on test results

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

6 participants


Back | FazBrowse Home | New Git URL