Bug 1222642 - RHOS: VM Fleecing throws " ERROR -- : Q-task_id([4bef2b1a-fd6e-11e4-9b8c-0050569674e2]) <Fog> excon.error #<Excon::Errors::NotFound: Expected([200, 203]) <=> Actual(404 Not Found)"
Summary: RHOS: VM Fleecing throws " ERROR -- : Q-task_id([4bef2b1a-fd6e-11e4-9b8c-0050...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: SmartState Analysis
Version: 5.4.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: GA
: 5.5.0
Assignee: Hui Song
QA Contact: Ramesh A
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-05-18 17:19 UTC by Ramesh A
Modified: 2015-12-08 13:10 UTC (History)
9 users (show)

Fixed In Version: 5.5.0.8
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-12-08 13:10:17 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:2551 0 normal SHIPPED_LIVE Moderate: CFME 5.5.0 bug fixes and enhancement update 2015-12-08 17:58:09 UTC

Description Ramesh A 2015-05-18 17:19:25 UTC
Description of problem:
Initiating a vm fleece for an instance in RHOS4 throws fog error stating -  " ERROR -- : Q-task_id([4bef2b1a-fd6e-11e4-9b8c-0050569674e2]) <Fog> excon.error     #<Excon::Errors::NotFound: Expected([200, 203]) <=> Actual(404 Not Found)"

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

How reproducible:
Very

Steps to Reproduce:
1. Install a fresh appliance
2. Install VDDK kit and reboot the appliance
3. Manage RHOS provider
4. Create a policy to use a default analysis profile when performing smart state analysis is started
5. From Cloud/Instance, choose an instance and add the above created control policy via Manage Policies
6. Perform a smart state analysis on this Instance

Actual results:
Throws fog error stating "ERROR -- : Q-task_id([4bef2b1a-fd6e-11e4-9b8c-0050569674e2]) <Fog> excon.error     #<Excon::Errors::NotFound: Expected([200, 203]) <=> Actual(404 Not Found)".

Refer the log file for more details.

Expected results:
Should not throw any error message

Additional info:

evm.log:
========
[----] E, [2015-05-18T10:58:25.740177 #4911:f3fea8] ERROR -- : Q-task_id([4bef2b1a-fd6e-11e4-9b8c-0050569674e2]) <Fog> excon.error     #<Excon::Errors::NotFound: Expected([200, 203]) <=> Actual(404 Not Found)
excon.error.response
  :body          => "{\"itemNotFound\": {\"message\": \"Metadata item was not found\", \"code\": 404}}"
  :headers       => {
    "Content-Length"       => "73"
    "Content-Type"         => "application/json; charset=UTF-8"
    "Date"                 => "Mon, 18 May 2015 14:58:25 GMT"
    "X-Compute-Request-Id" => "req-c44af02a-2967-4638-8216-223956025cce"
  }
  :local_address => "10.8.59.177"
  :local_port    => 52416
  :reason_phrase => "Not Found"
  :remote_ip     => "10.16.4.62"
  :status        => 404
  :status_line   => "HTTP/1.1 404 Not Found\r\n"
>

Comment 2 CFME Bot 2015-10-27 17:01:33 UTC
New commit detected on cfme/5.4.z:
https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=3dd50ecb0466d2b1cecf2a3a4a0269506aa09dd7

commit 3dd50ecb0466d2b1cecf2a3a4a0269506aa09dd7
Merge: a94be79 06ce30a
Author:     Richard Oliveri <roliveri>
AuthorDate: Tue Oct 27 12:51:37 2015 -0400
Commit:     Richard Oliveri <roliveri>
CommitDate: Tue Oct 27 12:51:37 2015 -0400

    Merge branch 'fog_error_1222642' into '5.4.z'
    
    Checked if metadata is empty before retrieving snapshot info
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1222642
    
    The FOG exception was raised because Fog::Compute::OpenStack::Metadata was empty. Added a check before to use it to retrieve snapshot information. The corresponding PR is #5034 and has been merged into upstream.
    
    See merge request !300

 lib/OpenStackExtract/MiqOpenStackVm/MiqOpenStackInstance.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comment 3 Ramesh A 2015-11-17 17:21:33 UTC
The above mention issue is not observed in the latest build.  However seeing another issue which is logged in BZ#1282878.  Not sure if it is the result of this issue.

Comment 4 Ramesh A 2015-11-17 17:21:57 UTC
Hui Song,
Can you please confirm it?

Thanks,
Ramesh

Comment 7 Ramesh A 2015-11-18 17:53:10 UTC
Good to go. Verified and working fine in 5.5.0.10-beta2.1.20151110134042_d6f5459.

Comment 9 errata-xmlrpc 2015-12-08 13:10:17 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-2015:2551


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