-
Notifications
You must be signed in to change notification settings - Fork 60
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
Smart state Snapshot Managed Disk Name 80 Char Limit #157
Smart state Snapshot Managed Disk Name 80 Char Limit #157
Conversation
Changes required since there is an 80 character limit on the name of the snapshot for a managed disk - 1) Use the VM name instead of the OS DIsk name. 2) Shorten the suffix for the snapshot from 20 to 13 characters. 3) If the above is still longer than 80 characters truncate the VM name to 80-13 characters. 4) Always pass the snapshot name to MiqAzureVm so that it does not have to compute the name as well.
@miq-bot add_label fine/yes |
@miq-bot add_label gaprindashvili/yes |
@miq-bot add_label bug |
@miq-bot add_label "smart state" |
@jerryk55 Cannot apply the following label because they are not recognized: "smart state" |
Checked commit jerryk55@9a1b8d3 with ruby 2.3.3, rubocop 0.47.1, and haml-lint 0.20.0 |
Will we need to migrate existing data? |
@djberg96 no - the snapshot is removed after the Smartstate scan is finished. So any old names shouldn't exist anymore. |
ok, LGTM. 👍 |
…60chars Smart state Snapshot Managed Disk Name 80 Char Limit (cherry picked from commit e6d33b9)
Gaprindashvili backport details:
|
…60chars Smart state Snapshot Managed Disk Name 80 Char Limit (cherry picked from commit e6d33b9) https://bugzilla.redhat.com/show_bug.cgi?id=1512967
Fine backport details:
|
Changes required since there is an 80 character limit on the name
of the snapshot for a managed disk -
as well.
This PR goes hand-in-hand with ManageIQ/manageiq-smartstate#44 which receives the name of the snapshot to use when communicating with Azure. Both PRs fix the issue https://bugzilla.redhat.com/show_bug.cgi?id=1508577.
The two PRs can be merged in any order. The GEMfile for this provider must be updated after the smartstate gem is updated.
This PR should be back ported to both FINE and Gaprindashvili.
@roliveri @hsong-rh @bronaghs @djberg96 please review and merge. Thanks.