Bug 1612946

Summary: Missing Flavor cause OSP provider refresh to fail.
Product: Red Hat CloudForms Management Engine Reporter: Saif Ali <saali>
Component: ProvidersAssignee: Scott Seago <sseago>
Status: CLOSED DUPLICATE QA Contact: Dave Johnson <dajohnso>
Severity: medium Docs Contact:
Priority: high    
Version: 5.8.5CC: dmetzger, gblomqui, jfrey, jhardy, jprause, maufart, obarenbo
Target Milestone: GA   
Target Release: 5.8.5   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-08-17 14:11:28 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Saif Ali 2018-08-06 15:18:17 UTC
Description of problem:
Error refreshing Openstack provider because of deleted flavors.

[----] E, [2018-07-25T11:49:48.093023 #22499:86f13c] ERROR -- : [EmsRefresh::Refreshers::EmsRefresherMixin::PartialRefreshError]: Expected([200, 203]) <=> Actual(404 Not Fo
und)
excon.error.response
  :body          => "{\"itemNotFound\": {\"message\": \"Flavor 5dcd5add-1e3c-4678-bf54-2bc4325b1198 could not be found.\", \"code\": 404}}"
  :cookies       => [
  ]
  :headers       => {
    "Content-Length"               => "109"
    "Content-Type"                 => "application/json; charset=UTF-8"
    "Date"                         => "Wed, 25 Jul 2018 15:49:48 GMT"
    "Openstack-Api-Version"        => "compute 2.1"
    "Vary"                         => "OpenStack-API-Version, X-OpenStack-Nova-API-Version"
    "X-Compute-Request-Id"         => "req-1b90f620-362c-420f-8c4a-d627173fadf5"
    "X-Openstack-Nova-Api-Version" => "2.1"
  }
  :host          => "cloudapimtl.desjardins.com"
  :local_address => "xxx.xxx.xxx.xxx"
  :local_port    => 54424
  :path          => "/v2.1/flavors/5dcd5add-1e3c-4678-bf54-2bc4325b1198/os-flavor-access"
  :port          => 8774
  :reason_phrase => "Not Found"
  :remote_ip     => "xxx.xxx.xxx.xxx"
  :status        => 404
  :status_line   => "HTTP/1.1 404 Not Found\r\n"
  Method:[rescue in deliver]

Version-Release number of selected component (if applicable):
CloudForms 5.8.3.4
OSP 10

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 6 Scott Seago 2018-08-17 14:11:28 UTC
This seems to be the caused by the same error handling bug that was fixed in https://bugzilla.redhat.com/show_bug.cgi?id=1460683

This bug was found in CloudForms 5.8.3.4. I checked the backport of the prior fix and it's not found in 5.8.3.4, which is why it's showing up here. However, it was included in 5.8.4, so I'm closing this as a duplicate.

*** This bug has been marked as a duplicate of bug 1460683 ***