Bug 1527209

Summary: Nuage Networks provider does not handle empty AMQP details
Product: Red Hat CloudForms Management Engine Reporter: Jerome Marc <jmarc>
Component: ProvidersAssignee: Nobody <nobody>
Status: ON_QA --- QA Contact: Gregor Berginc <gregor.berginc>
Severity: high Docs Contact:
Priority: high    
Version: 5.9.0CC: cpelland, gblomqui, jhardy, jmarc, simaishi
Target Milestone: GAKeywords: TestOnly, ZStream
Target Release: 5.10.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.10.0.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1563358 (view as bug list) Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1563358    
Attachments:
Description Flags
evm.log for Nuage Networks provider when AMQP is not configured none

Description Jerome Marc 2017-12-18 20:09:06 UTC
Created attachment 1369660 [details]
evm.log for Nuage Networks provider when AMQP is not configured

Description of problem:
The UI lets you create a Nuage Networks provider without specifying the AMQP details (which is set to AMQP by default with no values). Once saved (without AMPQ details), the Nuage Networks provider re-attempts to start a event monitoring thread every second (see evm log attached), for ever. This seems to cause issues, see below (Too many open files).

Restart every second:

[----] I, [2017-12-18T14:49:31.335468 #3407:f5f140]  INFO -- : MIQ(ManageIQ::Providers::Nuage::NetworkManager::EventCatcher::Runner#do_work) EMS [5a365c72735c8f00018e4722.labs.nuagex.io] as [admin] Event Monitor Thread gone. Restarting...
[----] I, [2017-12-18T14:49:31.335888 #3407:f5f140]  INFO -- : MIQ(ManageIQ::Providers::Nuage::NetworkManager::EventCatcher::Runner#start_event_monitor) EMS [5a365c72735c8f00018e4722.labs.nuagex.io] as [admin] Validating Connection/Credentials
[----] I, [2017-12-18T14:49:31.336098 #3407:f5f140]  INFO -- : MIQ(ManageIQ::Providers::Nuage::NetworkManager#with_provider_connection) Connecting through ManageIQ::Providers::Nuage::NetworkManager: [ Network Manager]
[----] I, [2017-12-18T14:49:31.336615 #3407:f5f140]  INFO -- : MIQ(ManageIQ::Providers::Nuage::NetworkManager.raw_connect) Connecting to Nuage VSD with url https://5a365c72735c8f00018e4722.labs.nuagex.io:8443/nuage/api/v4_0
[----] I, [2017-12-18T14:49:31.733034 #3407:f5f140]  INFO -- : MIQ(ManageIQ::Providers::Nuage::NetworkManager::EventCatcher::Runner#start_event_monitor) EMS [5a365c72735c8f00018e4722.labs.nuagex.io] as [admin] Starting Event Monitor Thread
[----] E, [2017-12-18T14:49:31.737913 #3407:4b40b78] ERROR -- : MIQ(ManageIQ::Providers::Nuage::NetworkManager::EventCatcher::Runner#start_event_monitor) EMS [5a365c72735c8f00018e4722.labs.nuagex.io] as [admin] Event Monitor Thread aborted because [Transport error]
[----] E, [2017-12-18T14:49:31.738104 #3407:4b40b78] ERROR -- : [MiqException::MiqHostError]: Transport error  Method:[block in method_missing]
[----] I, [2017-12-18T14:49:31.738243 #3407:f5f140]  INFO -- : MIQ(ManageIQ::Providers::Nuage::NetworkManager::EventCatcher::Runner#start_event_monitor) EMS [5a365c72735c8f00018e4722.labs.nuagex.io] as [admin] Started Event Monitor Thread

Too many files opened:

[----] I, [2017-12-18T14:58:01.077847 #3407:f5f140]  INFO -- : MIQ(ManageIQ::Providers::Nuage::NetworkManager#with_provider_connection) Connecting through ManageIQ::Providers::Nuage::NetworkManager: [ Network Manager]
[----] I, [2017-12-18T14:58:01.078114 #3407:f5f140]  INFO -- : MIQ(ManageIQ::Providers::Nuage::NetworkManager.raw_connect) Connecting to Nuage VSD with url https://5a365c72735c8f00018e4722.labs.nuagex.io:8443/nuage/api/v4_0
[----] E, [2017-12-18T14:58:01.078973 #3407:f5f140] ERROR -- : MIQ(ManageIQ::Providers::Nuage::NetworkManager.connection_rescue_block) Error Class=Errno::EMFILE, Message=Failed to open TCP connection to 5a365c72735c8f00018e4722.labs.nuagex.io:8443 (Too many open files - getaddrinfo)
[----] E, [2017-12-18T14:58:01.079101 #3407:f5f140] ERROR -- : MIQ(ManageIQ::Providers::Nuage::NetworkManager.connection_rescue_block) Error Class=MiqException::MiqEVMLoginError, Message=Unexpected response returned from system: Failed to open TCP connection to 5a365c72735c8f00018e4722.labs.nuagex.io:8443 (Too many open files - getaddrinfo)



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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 Jerome Marc 2017-12-18 20:11:39 UTC
Version-Release number of selected component (if applicable):
5.9.0.13.20171212214416_f4f190a

Comment 3 Dave Johnson 2017-12-18 20:45:23 UTC
Please assess the impact of this issue and update the severity accordingly.  Please refer to https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity for a reminder on each severity's definition.

If it's something like a tracker bug where it doesn't matter, please set the severity to Low.