Bug 1512967

Summary: Smartstate Analysis Snapshot of Azure Managed Disks fails with "The value of parameter snapshot.name is invalid. (cause: 400 Bad Request) creating SSA Snapshot" if the disk name exceeds 60 characters.
Product: Red Hat CloudForms Management Engine Reporter: Satoe Imaishi <simaishi>
Component: SmartState AnalysisAssignee: Jerry Keselman <jkeselma>
Status: CLOSED ERRATA QA Contact: Satyajit Bulage <sbulage>
Severity: high Docs Contact:
Priority: high    
Version: 5.9.0CC: agrare, akarol, jhardy, jkeselma, obarenbo, simaishi
Target Milestone: GAKeywords: ZStream
Target Release: 5.8.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.8.3.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1508577 Environment:
Last Closed: 2018-02-28 13:09:19 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1508577    
Bug Blocks:    

Comment 2 CFME Bot 2017-11-14 14:22:58 UTC
New commit detected on ManageIQ/manageiq-providers-azure/fine:
https://github.com/ManageIQ/manageiq-providers-azure/commit/dd70691735386c387183f899e15d2ac47037ee3e

commit dd70691735386c387183f899e15d2ac47037ee3e
Author:     Daniel Berger <djberg96>
AuthorDate: Fri Nov 3 11:37:15 2017 -0600
Commit:     Satoe Imaishi <simaishi>
CommitDate: Tue Nov 14 09:15:35 2017 -0500

    Merge pull request #157 from jerryk55/snapshot_disknames_longer_than_60chars
    
    Smart state Snapshot Managed Disk Name 80 Char Limit
    (cherry picked from commit e6d33b9bec96a69f48e1a356dc2060765069a2a8)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1512967

 .../providers/azure/cloud_manager/vm_or_template_shared.rb     | 10 ++++++++--
 .../azure/cloud_manager/vm_or_template_shared/scanning.rb      |  2 +-
 2 files changed, 9 insertions(+), 3 deletions(-)

Comment 3 CFME Bot 2017-11-14 14:27:55 UTC
New commit detected on ManageIQ/manageiq-gems-pending/fine:
https://github.com/ManageIQ/manageiq-gems-pending/commit/9a76effbec67c302b852917251594237c4b3ad25

commit 9a76effbec67c302b852917251594237c4b3ad25
Author:     Richard Oliveri <oliveri.richard.github>
AuthorDate: Mon Nov 6 11:45:14 2017 -0500
Commit:     Satoe Imaishi <simaishi>
CommitDate: Tue Nov 14 09:26:47 2017 -0500

    Merge pull request #44 from jerryk55/diskname_longer_than_60chars_fails_snap
    
    Use the Smartstate Snapshot Name Built by the Provider
    (cherry picked from commit 02ebbc23a57ef8283c113199847cf4092c66466a)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1512967

 lib/gems/pending/MiqVm/miq_azure_vm.rb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comment 4 Satyajit Bulage 2018-01-10 08:41:31 UTC
As discussed with Jerry, counted disk/blob chars and perform SSA which retrieves required data.

Verified Version: 5.8.3.0.20171213193853_f1b4a89

Comment 7 errata-xmlrpc 2018-02-28 13:09:19 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2018:0374