Bug 1612921
| Summary: | Getting error "Oops, we're sorry but something went wrong undefined method `port' for #<RbVmomi::VIM::VirtualEthernetCardLegacyNetworkBackingInfo:0x00007f61dd1f2750>" while associating VMs to compute resource | ||
|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Gauravi <gapatil> |
| Component: | Compute Resources - VMWare | Assignee: | Chris Roberts <chrobert> |
| Status: | CLOSED ERRATA | QA Contact: | Sanket Jagtap <sjagtap> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 6.3.2 | CC: | ahumbe, avroy, chrobert, inecas, mhulan, sjagtap |
| Target Milestone: | 6.5.0 | Keywords: | Reopened, Triaged |
| Target Release: | Unused | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| URL: | https://github.com/fog/fog-vsphere/pull/157 | ||
| Whiteboard: | |||
| Fixed In Version: | fog-vsphere v2.4.0 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2019-05-14 12:37:41 UTC | 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: | |||
|
Description
Gauravi
2018-08-06 14:20:08 UTC
Works in 6.4 I used 3 vms 1 being the satellite on 1 subnet with a vmxnet3 nic. The other 2 vms were on a different subnet 1 with an e1000 nic and 1 with the vmxnet3 and all 3 got associated correctly. Marking this as working current release. 2018-09-18T11:39:53 [I|aud|2c682] update event for Host::Base with id 1 2018-09-18T11:39:53 [I|aud|2c682] update event for Host::Base with id 3 2018-09-18T11:39:53 [I|aud|2c682] update event for Host::Base with id 2 Screenshots showing hosts are associated: http://nimb.ws/nTPldX http://nimb.ws/5bsZVh I know Ivan was looking into this. The theory was, this was some vm created on old version of vmware - see the VirtualEthernetCardLegacyNetworkBackingInf object class. I think to ptiperly reproduce, we'd need to figure out, how to create such vm first. Ivan, was there some fix planned to ignore/skip such interfaces, so we don't hard fail on unsupported nics? Should we reopen? After quick chat with Ivan, I'm reopening. The solution should be some "rescue" call, so we ignore the problematic interface but don't fail hard. We have the trace, so it should be easy patch to fog-vsphere. This fix should be trivial and belongs here https://github.com/fog/fog-vsphere/blob/master/lib/fog/vsphere/requests/compute/list_vm_interfaces.rb#L68 It would be good to test how it behaves when you manually enforce network to be nil, if you don't have reproducer. Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/20302 has been resolved. Build: Satellite 6.5 snap9
Was able to associate the VM to Vmware resource successfully.
Production Log:
2018-12-31T08:12:14 [I|app|] Started PUT "/compute_resources/2-vmware/associate?compute_resource_id=2-vmware" for 0.67.116.48 at 2018-12-31 08:12:14 -0500
2018-12-31T08:12:14 [I|app|b8f60] Processing by ComputeResourcesController#associate as HTML
2018-12-31T08:12:14 [I|app|b8f60] Parameters: {"authenticity_token"=>"0r9s88XX+I8OCCtCnckDVB+tMMIXr59E7SACH9Txec1ld9yJSlRhce4EgCf260VbSqM6lhjsd+uX2GgLSFDDtw==", "compute_resource_id"=>"2-vmware", "id"=>"2-vmware"}
2018-12-31T08:12:14 [I|app|b8f60] Current user set to admin (admin)
2018-12-31T08:12:14 [D|app|b8f60] Current location set to none
2018-12-31T08:12:14 [D|app|b8f60] Current organization set to Default Organization
2018-12-31T08:12:28 [I|aud|b8f60] Host::Base (19) update event on uuid , 501e5762-d2af-67b3-12f7-b9337b540f2
2018-12-31T08:12:28 [I|aud|b8f60] Host::Base (19) update event on compute_resource_id , 2
2018-12-31T08:12:29 [I|app|b8f60] Redirected to https://qe-sat6-feature-rhel7.domain/compute_resources/2-vmware
2018-12-31T08:12:29 [I|app|b8f60] Completed 302 Found in 14551ms (ActiveRecord: 322.7ms)
2018-12-31T08:12:29 [I|app|] Started GET "/compute_resources/2-vmware" for 0.67.116.48 at 2018-12-31 08:12:29 -0500
2018-12-31T08:12:29 [I|app|26d30] Processing by ComputeResourcesController#show as HTML
2018-12-31T08:12:29 [I|app|26d30] Parameters: {"id"=>"2-vmware"}
2018-12-31T08:12:29 [I|app|26d30] Current user set to admin (admin)
2018-12-31T08:12:29 [D|app|26d30] Current location set to none
2018-12-31T08:12:29 [D|app|26d30] Current organization set to Default Organization
2018-12-31T08:12:29 [D|app|26d30] Deface: 2 overrides found for 'compute_resources/show'
2018-12-31T08:12:29 [D|app|26d30] Deface: 'rename_virtual_machines_containers' matched 1 times with 'erb[loud]:contains('Virtual Machines')'
2018-12-31T08:12:29 [I|app|26d30] Deface: [WARNING] No :original defined for 'rename_virtual_machines_containers', you should change its definition to include:
:original => 'adff190a5a6ab59b88f6cf9956f23cd53db53248'
2018-12-31T08:12:29 [D|app|26d30] Deface: 'remove_compute_profiles_tab' matched 1 times with 'a[href="#compute_profiles"]'
2018-12-31T08:12:29 [I|app|26d30] Deface: [WARNING] No :original defined for 'remove_compute_profiles_tab', you should change its definition to include:
:original => 'aecbf94e43770bf29957263a987790f7873c4fd6'
2018-12-31T08:12:29 [I|app|26d30] Rendering compute_resources/show.html.erb within layouts/application
2018-12-31T08:12:29 [I|app|26d30] Rendered compute_resources/show/_vmware.html.erb (1.4ms)
2018-12-31T08:12:29 [I|app|26d30] Rendered compute_resources/show.html.erb within layouts/application (22.0ms)
2018-12-31T08:12:29 [I|app|26d30] Rendered layouts/_application_content.html.erb (1.9ms)
2018-12-31T08:12:29 [I|app|26d30] Rendering layouts/base.html.erb
2018-12-31T08:12:29 [I|app|26d30] Rendered layouts/base.html.erb (38.7ms)
2018-12-31T08:12:29 [I|app|26d30] Completed 200 OK in 04ms (Views: 58.5ms | ActiveRecord: 12.8ms)
2018-12-31T08:12:32 [I|app|] Started GET "/notification_recipients" for 0.67.116.48 at 2018-12-31 08:12:32 -0500
2018-12-31T08:12:32 [I|app|4176c] Processing by NotificationRecipientsController#index as JSON
2018-12-31T08:12:32 [I|app|4176c] Current user set to admin (admin)
2018-12-31T08:12:32 [D|app|4176c] Current location set to none
2018-12-31T08:12:32 [D|app|4176c] Current organization set to Default Organization
2018-12-31T08:12:32 [D|not|4176c] Cache Hit: notification, reading cache for notification-4
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-2019:1222 |