Bug 1581855

Summary: [Embedded Ansible] Server Error on EmbeddedAnsible Add Catalog Item page
Product: Red Hat CloudForms Management Engine Reporter: Kedar Kulkarni <kkulkarn>
Component: AutomateAssignee: Greg McCullough <gmccullo>
Status: CLOSED WONTFIX QA Contact: Dave Johnson <dajohnso>
Severity: high Docs Contact:
Priority: high    
Version: 5.9.0CC: cpelland, dclarizi, gmccullo, hkataria, jprause, kkulkarn, lavenel, mkanoor, mpovolny, obarenbo, tfitzger
Target Milestone: GA   
Target Release: 5.9.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: ansible_embed
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-06-08 21:39:52 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Screenshot
none
Screenshot2 none

Description Kedar Kulkarni 2018-05-23 19:26:59 UTC
Created attachment 1440717 [details]
Screenshot

Description of problem:
Server error shown in screenshot attached here.

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

How reproducible:
Only appeared very first time I navigated to Add Catalog Item screen

Steps to Reproduce:
1. Enable Embedded Ansible Role
2. Navigate to Services->Catalogs->Add a New Catalog Item 
3. Select Ansible Playbook Catalog Item Type

Actual results:
Screenshot

Expected results:
Should not show error  

Additional info:

Comment 2 Kedar Kulkarni 2018-05-23 19:27:31 UTC
Created attachment 1440718 [details]
Screenshot2

Comment 7 Greg McCullough 2018-06-01 17:37:23 UTC
The logic was added to only add Catalog Item types that have a backing Provider registered with the system.

In this case the there are no Repos or Credential created and that may be leading to the API error shown in the attached screenshots.

Along with validating if any repos or credentials exist we may also need to validate that the EmbeddedAnsible service is running and reachable.  We may need a provider methods to validate this status of the provider.

Need to review more with the providers team.

Comment 9 Greg McCullough 2018-06-08 21:39:52 UTC
This is a temporary error that is resolved once EmbeddedAnsible is running.  As per PM discussion I am changing to Closed - Won't Fix.