-
Notifications
You must be signed in to change notification settings - Fork 69
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
Support update VM snapshot #205
Conversation
cc @miha-plesko |
@sasoc can you please add a simple unit test for this? Otherwise it looks good to me - was really strange that snapshoting got disabled after user created the first snapshot. |
ca71cda
to
0651d7a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sasoc one spec case more please, then my thumb is up.
|
||
it 'supports snapshot create' do | ||
expect(vm.supports_snapshot_create?).to be_truthy | ||
end | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add another test case where you first manually add one snapshot to the vm
prior checking for supports_snapshot_create?
. Just to make sure your supports
did override the one from core.
0651d7a
to
6e2cb29
Compare
expect(vm.supports_snapshot_create?).to be_truthy | ||
end | ||
|
||
it 'supports snapshot update' do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it 'supports snapshot create (for second snapshot)' do
Create new snapshot was disabled when VM already had an existing snapshot. VCloud only supports having one snapshot per VM, but you can still create new snapshot, which updates the existing one. So now VM supports `snapshot_create` even when it already has a snapshot. Signed-off-by: sasoc <[email protected]>
6e2cb29
to
3073ae5
Compare
Checked commit sasoc@3073ae5 with ruby 2.3.3, rubocop 0.52.0, haml-lint 0.20.0, and yamllint 1.10.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1567760 @miq-bot add_label gaprindashvili/yes |
Support update VM snapshot (cherry picked from commit ba01933) https://bugzilla.redhat.com/show_bug.cgi?id=1567962
Gaprindashvili backport details:
|
…approval2 Auto approval for instance resize operation.
Create new snapshot was disabled when VM already had an existing snapshot. VCloud only supports having one snapshot per VM, but you can still create new snapshot, which updates the existing one. So now VM supports
snapshot_create
even when it already has a snapshot.BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1567760