Bug 1771044

Summary: ping endpoint fails with "Error caught: [ActionView::MissingTemplate] Missing template ping/index"
Product: Red Hat CloudForms Management Engine Reporter: Jason Frey <jfrey>
Component: ApplianceAssignee: Jason Frey <jfrey>
Status: CLOSED CURRENTRELEASE QA Contact: Sudhir Mallamprabhakara <smallamp>
Severity: high Docs Contact: Red Hat CloudForms Documentation <cloudforms-docs>
Priority: high    
Version: 5.11.0CC: abellott, dmetzger, obarenbo
Target Milestone: GAKeywords: TestOnly, ZStream
Target Release: 5.12.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1771737 (view as bug list) Environment:
Last Closed: 2020-10-26 16:13:45 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: Bug
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1771737    

Description Jason Frey 2019-11-11 18:58:43 UTC
Description of problem:

Hit the /ping endpoint and it fails with a 500 error and the following in the log:

  Error caught: [ActionView::MissingTemplate] Missing template ping/index


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


How reproducible:
Always


Steps to Reproduce:
1. Hit the /ping endpoint
2. ???
3. Profit?


Actual results:
500 error


Expected results:
"pong"


Additional info:

Comment 3 CFME Bot 2019-11-12 09:46:59 UTC
New commit detected on ManageIQ/manageiq-ui-classic/master:

https://github.com/ManageIQ/manageiq-ui-classic/commit/a001212005bd3f6d92677e257e31ed8afa999cfc
commit a001212005bd3f6d92677e257e31ed8afa999cfc
Author:     Jason Frey <jfrey>
AuthorDate: Mon Nov 11 13:45:10 2019 -0500
Commit:     Jason Frey <jfrey>
CommitDate: Mon Nov 11 13:45:10 2019 -0500

    Fix PingController

    With `render :text`, this fails with the following error:

        Error caught: [ActionView::MissingTemplate] Missing template ping/index, application/index with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:raw, :erb, :html, :builder, :ruby, :coffee, :haml, :rjs]}.

    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1771044

 app/controllers/ping_controller.rb | 2 +-
 spec/controllers/ping_controller_spec.rb | 10 +
 2 files changed, 11 insertions(+), 1 deletion(-)