Bug 1440796

Summary: SyntaxError when clicking on Refresh button for OpenStack Infra at Dashboard view
Product: Red Hat CloudForms Management Engine Reporter: Petr Blaho <pblaho>
Component: UI - OPSAssignee: Martin Povolny <mpovolny>
Status: CLOSED CURRENTRELEASE QA Contact: Ola Pavlenko <opavlenk>
Severity: high Docs Contact:
Priority: high    
Version: 5.8.0CC: ademicev, dclarizi, hkataria, jhardy, mpovolny, obarenbo, simaishi
Target Milestone: GAKeywords: TestOnly
Target Release: 5.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: rhos:infra
Fixed In Version: 5.9.0.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1443082 (view as bug list) Environment:
Last Closed: 2018-03-06 14:48:52 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: Openstack Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1443082    

Description Petr Blaho 2017-04-10 13:35:06 UTC
Description of problem:

Having OpenStack Infra provider and being on Dashboard view (http://localhost:3000/ems_infra/35?display=dashboard).

When I click on "Configuration" -> "Refresh Relationships and Power State" I got "exception caught evaling RJS" and "SyntaxError: expected expression, got '>'" as MIQ notifications and no refresh is triggered.

Server returns HTML when browser expects js.


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

Master of upstream repos for manageiq, manageiq-ui-classic and manageiq-providers-openstack.

How reproducible:

Easy.

Steps to Reproduce:
1. Go to Dashboard view of OpenStack Infra provider.
2. Click on "Configuration" -> "Refresh Relationships and Power State"
3. See notifications with errors - "exception caught evaling RJS" and "SyntaxError: expected expression, got '>'"

Actual results:

Notification with errors, html returned from server to browser instead of js and no refresh event scheduled/triggered for the provider.

Expected results:

No notification with error, probably notification with information that refresh is scheduled and actual refresh scheduled.

Additional info: