Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1490416 - Unexpected error message while adding new Cloud Subnet
Unexpected error message while adding new Cloud Subnet
Status: CLOSED ERRATA
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: UI - OPS (Show other bugs)
5.8.0
Unspecified Linux
high Severity high
: GA
: 5.8.3
Assigned To: Gilles Dubreuil
Jan Krocil
: ZStream
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-09-11 09:49 EDT by Patrik Holop
Modified: 2018-02-28 08:04 EST (History)
7 users (show)

See Also:
Fixed In Version: 5.8.3.0
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2018-02-28 08:04:49 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Error message (66.61 KB, image/png)
2017-09-11 09:49 EDT, Patrik Holop
no flags Details
evm.log file (12.13 KB, text/plain)
2017-09-13 04:27 EDT, Patrik Holop
no flags Details


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2018:0374 normal SHIPPED_LIVE Important: Red Hat CloudForms security, bug fix, and enhancement update 2018-02-28 13:04:37 EST

  None (edit)
Description Patrik Holop 2017-09-11 09:49:23 EDT
Created attachment 1324468 [details]
Error message

Description of problem:
While attempting to add new cloud subnet, selecting specific network manager and then selecting <Choose> option again causes unexpected error.

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


How reproducible:
Always

Steps to Reproduce:
1. Navigate to Networks -> Subnets
2. Choose configuration -> Add a new Cloud Subnet
3. Select specific network manager
4. Select <Choose> option again

Actual results:
Server error (screenshot as attachment)

Expected results:
No error

Additional info:
Comment 3 Tzu-Mainn Chen 2017-09-12 16:00:23 EDT
Hi! Would it be possible to get a snippet of evm.log with the relevant error?
Comment 5 Patrik Holop 2017-09-13 04:27 EDT
Created attachment 1325271 [details]
evm.log file

Adding part of evm.log file, I don't see any error there.
Comment 6 Gilles Dubreuil 2017-09-18 00:53:54 EDT
I confirm the issue. 

This is Javascript related, therefore nothing to appear in the log. 
  
Looking forward to provide a patch. 

Thanks
Comment 7 Gilles Dubreuil 2017-10-05 04:31:59 EDT
This issue happens only on Fine branch, the logs actually shows:
"FATAL -- : Error caught: [ActiveRecord::RecordNotFound] Couldn't find ExtManag
ementSystem with 'id'=undefined"

The reason is because the "External Management System ID (ems_id) gets reset to undefined and there fails the following API search"

A backport can't be done because the upstream/master branch is too far apart from fine branch because the javascript controller has been re-factored (Using 'this' instead of '$scope') which involve other dependent UI components (buttons). 

Meanwhile a specific patch for fine branch fixes the issue:
https://github.com/ManageIQ/manageiq-ui-classic/pull/2301
Comment 10 Gilles Dubreuil 2017-11-21 18:41:17 EST
PR#2301 merged
Comment 11 Jan Krocil 2018-01-17 04:28:12 EST
Verified fixed in 5.8.3.1 (5.8.3.1.20180115183240_323eabe) since I can no longer see this _specific_ issue but I just opened up 2 other issues related to this 'new cloud subnet' form. The first one might not be that big a deal but the second one still blocks subnet creation:
https://bugzilla.redhat.com/show_bug.cgi?id=1535369
https://bugzilla.redhat.com/show_bug.cgi?id=1535376
Comment 14 errata-xmlrpc 2018-02-28 08:04:49 EST
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-2018:0374

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