Bug 1577943 - Adding interface to a router cause Unexpected error
Summary: Adding interface to a router cause Unexpected error
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Providers
Version: 5.9.0
Hardware: x86_64
OS: Linux
high
high
Target Milestone: GA
: 5.10.0
Assignee: Sam Lucidi
QA Contact: Ido Ovadia
URL:
Whiteboard: openstack:sdn
Depends On:
Blocks: 1580520
TreeView+ depends on / blocked
 
Reported: 2018-05-14 13:31 UTC by Ido Ovadia
Modified: 2019-02-11 14:10 UTC (History)
10 users (show)

Fixed In Version: 5.10.0.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1580520 (view as bug list)
Environment:
Last Closed: 2019-02-11 14:10:15 UTC
Category: ---
Cloudforms Team: Openstack
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
screenshot_unexpected (95.85 KB, image/png)
2018-05-14 13:32 UTC, Ido Ovadia
no flags Details
production log (14.81 KB, text/plain)
2018-05-14 13:38 UTC, Ido Ovadia
no flags Details
evm log (16.45 KB, text/plain)
2018-05-14 13:39 UTC, Ido Ovadia
no flags Details

Description Ido Ovadia 2018-05-14 13:31:45 UTC
Description of problem:
=======================
Adding interface to a router cause Unexpected error

Adding interface to a router cause Unexpected error

FATAL -- : Error caught: [NoMethodError] undefined method `cloud_subnets' for nil:NilClass


Version-Release number of selected component:
=============================================
RHOS13 CFME 5.9.2.4


How reproducible:
=================
100%


Steps to Reproduce:
===================
1. Deploy RHOS 10 SSL HA (Undercloud, 3*Controller, 2*Compute)
2. Add Undercloud as Infrastructure Provider 
3. Add Ovrercloud as Cloud Provider
4. Create a External Network and Subnet
5. Create a private Network and Subnet
6. Create a Router with External Gateway using the network you have created on step 4
7. Select the router you have created on step 6 click Configuration --> 'Add Interface to this Router'


Actual results:
===============
Unexpected error encountered

FATAL -- : Error caught: [NoMethodError] undefined method `cloud_subnets' for nil:NilClass
/opt/rh/cfme-gemset/bundler/gems/cfme-ui-classic-cbe46a84e127/app/controllers/network_router_controller.rb:261:in `add_interface_select'


Expected results:
=================
Interface add successfully 


Additional info:
===============
Screenshot and log are enclosed

Comment 1 Ido Ovadia 2018-05-14 13:32:46 UTC
Created attachment 1436185 [details]
screenshot_unexpected

Comment 2 Ido Ovadia 2018-05-14 13:38:48 UTC
Created attachment 1436190 [details]
production log

Comment 3 Ido Ovadia 2018-05-14 13:39:11 UTC
Created attachment 1436191 [details]
evm log

Comment 4 Ido Ovadia 2018-05-14 15:27:48 UTC
Sorry for typo  on Steps to Reproduce, step 1 should be --> Deploy RHOS 13

Comment 5 Sam Lucidi 2018-05-15 17:49:17 UTC
Ido, does the router you used when discovering this bug have a network manager associated with it? This only seems to reproduce on routers that don't have a network manager due to a refresh bug that was fixed by https://github.com/ManageIQ/manageiq-providers-openstack/pull/290 (not yet backported to 5.9)

Comment 6 Ido Ovadia 2018-05-21 11:30:47 UTC
(In reply to Sam Lucidi from comment #5)
> Ido, does the router you used when discovering this bug have a network
> manager associated with it? This only seems to reproduce on routers that
> don't have a network manager due to a refresh bug that was fixed by
> https://github.com/ManageIQ/manageiq-providers-openstack/pull/290 (not yet
> backported to 5.9)

Correct. Routers don't have a network manager

Comment 7 Sam Lucidi 2018-05-21 16:59:33 UTC
Fixed by https://github.com/ManageIQ/manageiq-providers-openstack/pull/290 in the sense that Routers won't appear without network managers, which is how the scenario described in this bug is possible.

Comment 9 Jad Haj Yahya 2018-07-02 16:58:46 UTC
Verified on 5.10.0.2


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