-
Notifications
You must be signed in to change notification settings - Fork 36
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
Snapshot Support for Non-Managed Disks #26
Conversation
In the case of non-Managed (Blob) disks, append the snapshot name (which is in all actuality the date tag returned from azure-armrest for the snapshot) to the URI to be used to read the disk.
Since the MiqAzureVm now expects a ResourceGroup Object rather than the string representing its name, the tests need to be fixed to expect the modified parameter.
lib/MiqVm/miq_azure_vm.rb
Outdated
# | ||
@uri = os_disk.vhd.uri | ||
@uri << "?snapshot=" << args[:snapshot] if args[:snapshot] |
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.
Is
@uri << "?snapshot=#{args[:snapshot]}" if args[:snapshot]
preferred?
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.
Sure makes sense.
Change string concatenation statement for snapshot URI.
Checked commits jerryk55/manageiq-smartstate@eacb131~...b003c9d with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 |
@miq-bot add_label fine/yes |
@jerryk55 Cannot apply the following label because they are not recognized: fine/yes |
Fine backport (to manageiq-gems-pending repo) details:
|
In the case of non-Managed (Blob) disks, append the snapshot
name (which is in all actuality the date tag returned from
azure-armrest for the snapshot) to the URI to be used to read
the disk.
This is one of several PRs required to fix https://bugzilla.redhat.com/show_bug.cgi?id=1463780.
The PR against ManageIQ/manageiq is ManageIQ/manageiq#15960, and one against ManageIQ/manageiq-providers-azure will be noted here when it is added.
This PR can be merged in any order since it checks for a tag to be passed in and only uses that snapshot tag if it is there.
@roliveri @hsong-rh please review. I'm not sure if we need to back port this to Fine but it wouldn't be a bad idea.