Bug 1463780 - Smart state analysis on a running vm on Azure doesn't work
Smart state analysis on a running vm on Azure doesn't work
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: SmartState Analysis (Show other bugs)
Unspecified Unspecified
high Severity high
: GA
: 5.9.0
Assigned To: Jerry Keselman
Satyajit Bulage
: TestOnly, ZStream
Depends On:
Blocks: 1491310
  Show dependency treegraph
Reported: 2017-06-21 14:17 EDT by mlessard
Modified: 2017-12-18 19:18 EST (History)
8 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1491310 (view as bug list)
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description mlessard 2017-06-21 14:17:39 EDT
Description of problem:
When we launch a smart state analysis on a running vm on Azure, we are getting an error and the smart state analysis doesn't retrieve vm information. If we shutdown the vm, the smart state analysis works. 

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Launch a RHEL vm on Azure
2. In Cloudforms, launch a smart state analysis

Actual results:

The error we are getting is : 
Unable to mount filesystem. Reason:[[409]    <?xml version="1.0" encoding="utf-8"?> <Error><Code>SystemInUse</Code><Message>This blob is being used by the system. RequestId:33b30ab1-001c-0065-3098-eaba42000000 Time:2017-06-21T14:16:00.6238188Z</Message></Error> (cause: 409 Conflict) - https://mlessarddisks645.blob.core.windows.net/vhds/RHEL7320170621095236.vhd

Expected results:

This should run without any error 

Additional info:
Comment 7 Jerry Keselman 2017-09-11 14:20:26 EDT


support fixing this issue.  They are in the process of being reviewed.
Comment 8 Jerry Keselman 2017-09-12 09:14:48 EDT
The last PR above should be https://github.com/ManageIQ/manageiq/pull/15960
Comment 9 Jerry Keselman 2017-09-12 14:42:43 EDT
All PRs are merged.  This fix will be back-ported to Fine and a Hotfix released.
Comment 11 Satoe Imaishi 2017-09-13 09:38:30 EDT
Putting back to ON_DEV as new version of manageiq-smartstate gem needs to be released for this.
Comment 12 Jerry Keselman 2017-09-13 09:50:13 EDT
We also need to put similar wait functionality in for the blob snapshot as in the managed disk scenario.  Testing now.
Comment 13 Jerry Keselman 2017-09-13 13:33:09 EDT
https://github.com/ManageIQ/manageiq/pull/15970 bumps the manageiq-smartstate gem version to 0.1.4.  Not needed for FINE since that functionality lives in manageiq-gems-pending at that point.  Already merged.

https://github.com/ManageIQ/manageiq-providers-azure/pull/125 has been pushed to add the wait functionality specified above.  Waiting for review and merge.
Comment 15 CFME Bot 2017-09-15 17:08:07 EDT
New commit detected on ManageIQ/manageiq-providers-azure/master:

commit dda46b223ee4f3123662d3297e9c859b49e893f2
Author:     Richard Oliveri <roliveri@redhat.com>
AuthorDate: Fri Sep 15 16:36:34 2017 -0400
Commit:     Richard Oliveri <roliveri@redhat.com>
CommitDate: Fri Sep 15 16:36:34 2017 -0400

    Changes to wait for snapshot completion.
    Loosened check for success. Added debugging to help determine the problem.

 app/models/manageiq/providers/azure/cloud_manager.rb | 17 ++++++++++++-----
 1 file changed, 12 insertions(+), 5 deletions(-)
Comment 16 Satyajit Bulage 2017-11-29 10:00:59 EST
Able to perform SSA on Power ON as well as Power OFF instance.

Verified Version:

Note You need to log in before you can comment on or make changes to this bug.