Bug 1803745

Summary: RHV Networks in CloudForms to tag
Product: Red Hat CloudForms Management Engine Reporter: Khushbu Borole <kborole>
Component: ApplianceAssignee: Roberto Ciatti <rciatti>
Status: CLOSED NOTABUG QA Contact: Devidas Gaikwad <dgaikwad>
Severity: high Docs Contact: Red Hat CloudForms Documentation <cloudforms-docs>
Priority: high    
Version: 5.11.0CC: abellott, bmidwood, dmetzger, duhlmann, gtanzill, hkataria, jfrey, jhardy, lavenel, mperina, mpovolny, nansari, obarenbo, rciatti, smallamp, wfitzger, yrudman
Target Milestone: GAFlags: mfeifer: mirror+
Target Release: 5.11.6   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-04-16 09:53:15 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Tenants.jpg : Compute->Cloud->Tenants
none
Networks.jpg : Network -> Networks
none
CFME cloud network list
none
rhv cloud network list none

Description Khushbu Borole 2020-02-17 11:00:11 UTC
CU has created a user with a tenant assigned to it.
While Lifecycle provisioning the RHV VM with the user, he wants to segregate the Network adapters on the basis of User -> Tenants.

I believe, this could be done using Tags but RHV environment networks can't be seen at Network -> Networks as that of OpenStack or AWS is seen. So tagging option is omitted.

Is there any other workaround to segregate the Networks while provisioning VM on tenant basis ?
Or
Could this be taken as a Bugzilla to display the networks in CloudForms.

Comment 2 Dave Johnson 2020-02-17 11:01:50 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.

Comment 4 Khushbu Borole 2020-02-18 11:03:39 UTC
Hello, 

do we have any workaround for this ?

Comment 9 drew uhlmann 2020-03-20 11:12:56 UTC
so possibly this: 

irb(main):010:0> ExtManagementSystem.find(36).name
=> "drew-rhev Network Manager"
irb(main):011:0> ExtManagementSystem.find(36).last_refresh_error
=> "undefined method `address' for nil:NilClass"

Comment 10 drew uhlmann 2020-03-20 11:42:13 UTC
plenty of shiny log things:


[----] I, [2020-03-20T07:36:08.031555 #7282:2adc680345c0]  INFO -- : Q-task_id([job_dispatcher]) MIQ(MiqQueue#deliver) Message id: [65432], Delivering...
[----] I, [2020-03-20T07:36:08.032989 #7282:2adc680345c0]  INFO -- : Q-task_id([job_dispatcher]) MIQ(InfraConversionThrottler.pending_conversion_jobs) Pending InfraConversionJob: 0
[----] I, [2020-03-20T07:36:08.034580 #7282:2adc680345c0]  INFO -- : Q-task_id([job_dispatcher]) MIQ(InfraConversionThrottler.running_conversion_jobs) Running InfraConversionJob: 0
[----] I, [2020-03-20T07:36:08.038979 #7282:2adc680345c0]  INFO -- : Q-task_id([job_dispatcher]) MIQ(JobProxyDispatcher#dispatch) Complete - Timings: {:v2v_dispatching=>0.001970529556274414, :v2v_limits=>0.0015985965728759766, :pending_container_jobs=>0.001829385757446289, :container_jobs_to_dispatch_count=>0, :container_dispatching=>0.0018467903137207031, :pending_vm_jobs=>0.0005903244018554688, :vm_jobs_to_dispatch_count=>0, :total_time=>0.007154941558837891}
[----] I, [2020-03-20T07:36:08.039144 #7282:2adc680345c0]  INFO -- : Q-task_id([job_dispatcher]) MIQ(MiqQueue#delivered) Message id: [65432], State: [ok], Delivered in [0.007604539] seconds
[----] I, [2020-03-20T07:36:08.122793 #24147:2adc680345c0]  INFO -- : Exception in realtime_block :ems_refresh - Timings: {:collect_inventory_for_targets=>0.05573606491088867, :parse_targeted_inventory=>6.446277856826782, :ems_refresh=>6.502214431762695}
[----] E, [2020-03-20T07:36:08.123067 #24147:2adc680345c0] ERROR -- : MIQ(ManageIQ::Providers::Redhat::NetworkManager::Refresher#refresh) EMS: [drew-rhev Network Manager], id: [36] Refresh failed
[----] E, [2020-03-20T07:36:08.124529 #24147:2adc680345c0] ERROR -- : [NoMethodError]: undefined method `address' for nil:NilClass  Method:[block (2 levels) in <class:LogProxy>]
[----] E, [2020-03-20T07:36:08.124664 #24147:2adc680345c0] ERROR -- : /opt/rh/cfme-gemset/bundler/gems/cfme-providers-openstack-832ea29bd175/app/models/manageiq/providers/openstack/refresh_parser_common/helper_methods.rb:55:in `rescue in safe_call'
/opt/rh/cfme-gemset/bundler/gems/cfme-providers-openstack-832ea29bd175/app/models/manageiq/providers/openstack/refresh_parser_common/helper_methods.rb:50:in `safe_call'
/opt/rh/cfme-gemset/bundler/gems/cfme-providers-openstack-832ea29bd175/app/models/manageiq/providers/openstack/refresh_parser_common/helper_methods.rb:78:in `safe_list'
/opt/rh/cfme-gemset/bundler/gems/cfme-providers-openstack-832ea29bd175/app/models/manageiq/providers/openstack/inventory/collector/network_manager.rb:11:in `cloud_networks'
/opt/rh/cfme-gemset/bundler/gems/cfme-providers-openstack-832ea29bd175/app/models/manageiq/providers/openstack/inventory/parser/network_manager.rb:15:in `cloud_networks'
/opt/rh/cfme-gemset/bundler/gems/cfme-providers-openstack-832ea29bd175/app/models/manageiq/providers/openstack/inventory/parser/network_manager.rb:5:in `parse'
/opt/rh/cfme-gemset/bundler/gems/cfme-providers-ovirt-9ebbfaac4497/app/models/manageiq/providers/redhat/inventory/parser/network_manager.rb:3:in `parse'
/var/www/miq/vmdb/app/models/manageiq/providers/inventory.rb:42:in `block in parse'
/var/www/miq/vmdb/app/models/manageiq/providers/inventory.rb:39:in `each'
/var/www/miq/vmdb/app/models/manageiq/providers/inventory.rb:39:in `parse'
/var/www/miq/vmdb/app/models/manageiq/providers/base_manager/refresher.rb:141:in `parse_targeted_inventory'
/var/www/miq/vmdb/app/models/manageiq/providers/base_manager/refresher.rb:92:in `block in refresh_targets_for_ems'
/opt/rh/cfme-gemset/bundler/gems/cfme-gems-pending-771d8977b041/lib/gems/pending/util/extensions/miq-benchmark.rb:11:in `realtime_store'
/opt/rh/cfme-gemset/bundler/gems/cfme-gems-pending-771d8977b041/lib/gems/pending/util/extensions/miq-benchmark.rb:28:in `realtime_block'
/var/www/miq/vmdb/app/models/manageiq/providers/base_manager/refresher.rb:91:in `refresh_targets_for_ems'
/var/www/miq/vmdb/app/models/manageiq/providers/base_manager/refresher.rb:41:in `block (2 levels) in refresh'
/opt/rh/cfme-gemset/bundler/gems/cfme-gems-pending-771d8977b041/lib/gems/pending/util/extensions/miq-benchmark.rb:11:in `realtime_store'
/opt/rh/cfme-gemset/bundler/gems/cfme-gems-pending-771d8977b041/lib/gems/pending/util/extensions/miq-benchmark.rb:35:in `realtime_block'
/var/www/miq/vmdb/app/models/manageiq/providers/base_manager/refresher.rb:41:in `block in refresh'
/var/www/miq/vmdb/app/models/manageiq/providers/base_manager/refresher.rb:31:in `each'
/var/www/miq/vmdb/app/models/manageiq/providers/base_manager/refresher.rb:31:in `refresh'
/var/www/miq/vmdb/app/models/manageiq/providers/base_manager/refresher.rb:11:in `refresh'



[----] E, [2020-03-20T07:36:08.124712 #24147:2adc680345c0] ERROR -- : MIQ(ManageIQ::Providers::Redhat::NetworkManager::Refresher#refresh) EMS: [drew-rhev Network Manager], id: [36] Unable to perform refresh for the following targets:
[----] E, [2020-03-20T07:36:08.124808 #24147:2adc680345c0] ERROR -- : MIQ(ManageIQ::Providers::Redhat::NetworkManager::Refresher#refresh)  --- ManageIQ::Providers::Redhat::NetworkManager [drew-rhev Network Manager] id [36]
[----] I, [2020-03-20T07:36:08.143181 #24147:2adc680345c0]  INFO -- : MIQ(ManageIQ::Providers::Redhat::NetworkManager::Refresher#refresh) Refreshing all targets...Complete
[----] E, [2020-03-20T07:36:08.143331 #24147:2adc680345c0] ERROR -- : MIQ(MiqQueue#deliver) Message id: [65430], Error: [undefined method `address' for nil:NilClass]
[----] E, [2020-03-20T07:36:08.143486 #24147:2adc680345c0] ERROR -- : [ManageIQ::Providers::BaseManager::Refresher::PartialRefreshError]: undefined method `address' for nil:NilClass  Method:[block (2 levels) in <class:LogProxy>]
[----] E, [2020-03-20T07:36:08.143647 #24147:2adc680345c0] ERROR -- : /var/www/miq/vmdb/app/models/manageiq/providers/base_manager/refresher.rb:67:in `refresh'
/var/www/miq/vmdb/app/models/manageiq/providers/base_manager/refresher.rb:11:in `refresh'
/var/www/miq/vmdb/app/models/ems_refresh.rb:103:in `block in refresh'
/var/www/miq/vmdb/app/models/ems_refresh.rb:102:in `each'
/var/www/miq/vmdb/app/models/ems_refresh.rb:102:in `refresh'
/var/www/miq/vmdb/app/models/miq_queue.rb:479:in `block in dispatch_method'

Comment 11 drew uhlmann 2020-03-20 11:48:34 UTC
@agrare I'm tempted to give this to you but if you're willing to help debug it I'd love to fix it, capiche?

Comment 12 Adam Grare 2020-03-20 12:36:02 UTC
@Drew looks like you found a new bug but I don't think it is related to this issue

Comment 17 Khushbu Borole 2020-04-03 04:45:17 UTC
Created attachment 1675906 [details]
Tenants.jpg : Compute->Cloud->Tenants

Comment 18 Khushbu Borole 2020-04-03 04:46:33 UTC
Created attachment 1675907 [details]
Networks.jpg : Network -> Networks

Comment 20 drew uhlmann 2020-04-07 19:43:48 UTC
Created attachment 1677063 [details]
CFME cloud network list

Comment 21 drew uhlmann 2020-04-07 19:44:21 UTC
Created attachment 1677064 [details]
rhv cloud network list

Comment 22 drew uhlmann 2020-04-07 19:44:48 UTC
Per conversation with Yuri, Tina, Billy, Dan, on Tuesday afternoon eastern time, we consensus'd and have come to the decision that this is functioning as expected on the following:
RHV 4.2.8.2, CFME 5.11.1.2. 

Attached are screenshots of the RHV networks and those networks showing up inside CFME.

We'd like to know the RHV version the CU is on, please, and we would also like a reproducing environment that matches that of the CU.

Comment 23 Khushbu Borole 2020-04-08 05:57:23 UTC
The Cu environment has CFME version 5.11.1.2 and RHV version 4.3  .