Fryguy on najdorf
Merge pull request #813 from Me… (compare)
agrare on master
Removing Memoization Merge pull request #813 from Me… (compare)
Fryguy on najdorf-1.3
Hi. I'm facing a weird behavior of the inventory for a VMware VM. I have an RHEL 7 VM with 3 IP addresses configured on the same NIC: 2 x IPv4 and 1 x IPv6. I've followed https://access.redhat.com/solutions/8672 to configure the additional IPv4 address. VMware UI reports the 3 IP addresses, as well as ManageIQ. However, looking at the objects, I can't get all the IP addresses by NIC.
The GuestDevice id is 42000000000032:
irb> Vm.find_by(name: 'fdupont-test-migration').hardware.nics
=> #<ActiveRecord::Associations::CollectionProxy [#<GuestDevice id: 42000000000032, device_name: "Network adapter 1", device_type: "ethernet", location: nil, filename: nil, hardware_id: 42000000000024, mode: nil, controller_type: "ethernet", size: nil, free_space: nil, size_on_disk: nil, address: "00:50:56:a5:6b:9a", switch_id: nil, lan_id: 42000000000001, model: "VirtualVmxnet3", iscsi_name: nil, iscsi_alias: nil, present: true, start_connected: true, auto_detect: nil, uid_ems: "00:50:56:a5:6b:9a", chap_auth_enabled: nil, manufacturer: nil, field_replaceable_unit: nil, parent_device_id: nil, vlan_key: nil, vlan_enabled: nil, peer_mac_address: nil>]>
When looking at the networks, only one has the device_id
set:
irb> Vm.find_by(name: 'fdupont-test-migration').hardware.networks
=> #<ActiveRecord::Associations::CollectionProxy [#<Network id: 42000000000112, hardware_id: 42000000000024, device_id: 42000000000032, description: nil, guid: nil, dhcp_enabled: nil, ipaddress: "10.19.2.32", subnet_mask: nil, lease_obtained: nil, lease_expires: nil, default_gateway: nil, dhcp_server: nil, dns_server: nil, hostname: "fdupont-test.example.com", domain: nil, ipv6address: nil>, #<Network id: 42000000000113, hardware_id: 42000000000024, device_id: nil, description: nil, guid: nil, dhcp_enabled: nil, ipaddress: "10.19.2.31", subnet_mask: nil, lease_obtained: nil, lease_expires: nil, default_gateway: nil, dhcp_server: nil, dns_server: nil, hostname: "fdupont-test.example.com", domain: nil, ipv6address: "fe80::250:56ff:fea5:6b9a">]>
Shouldn't all the network objects have a device_id
? If no, how could I collect all the IP addresses per NIC ?
hammer-
without this being a severe blocker
Timed out stalled task
?[----] I, [2019-03-21T22:21:56.010309 #6433:4cb1ea8] INFO -- : MIQ(MiqTask.generic_action_with_callback) Task: [1000000000128] Queued the action: [Validate EMS Provider Credentials] being run for user: [admin]
[----] I, [2019-03-21T22:22:26.012863 #6433:4cb1ea8] INFO -- : MIQ(MiqTask#update_status) Task: [1000000000128] [Finished] [Timeout] [Timed out stalled task.]