Bug 1490416 - Unexpected error message while adding new Cloud Subnet
Summary: Unexpected error message while adding new Cloud Subnet
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: UI - OPS
Version: 5.8.0
Hardware: Unspecified
OS: Linux
high
high
Target Milestone: GA
: 5.8.3
Assignee: Gilles Dubreuil
QA Contact: Jan Krocil
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-09-11 13:49 UTC by Patrik Holop
Modified: 2022-07-09 09:07 UTC (History)
7 users (show)

Fixed In Version: 5.8.3.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-02-28 13:04:49 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


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


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2018:0374 0 normal SHIPPED_LIVE Important: Red Hat CloudForms security, bug fix, and enhancement update 2018-02-28 18:04:37 UTC

Description Patrik Holop 2017-09-11 13:49:23 UTC
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 20:00:23 UTC
Hi! Would it be possible to get a snippet of evm.log with the relevant error?

Comment 5 Patrik Holop 2017-09-13 08:27:56 UTC
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 04:53:54 UTC
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 08:31:59 UTC
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 23:41:17 UTC
PR#2301 merged

Comment 11 Jan Krocil 2018-01-17 09:28:12 UTC
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 13:04:49 UTC
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.