Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jul 20 20:54

    agrare on master

    Removing Memoization Merge pull request #813 from Me… (compare)

  • Jul 20 20:54
    agrare closed #813
  • Jul 20 20:41
    miq-bot commented #813
  • Jul 20 20:35
    miq-bot assigned #813
  • Jul 20 20:35
    miq-bot labeled #813
  • Jul 20 20:35
    miq-bot labeled #813
  • Jul 20 20:34
    MelsHyrule review_requested #813
  • Jul 20 20:34
    MelsHyrule review_requested #813
  • Jul 20 20:34
    MelsHyrule opened #813
  • Jul 14 22:11

    Fryguy on najdorf-1.3

    (compare)

  • Jul 14 19:21

    agrare on master

    Use let for host tests move supports standby from core… Merge pull request #809 from kb… (compare)

  • Jul 14 19:21
    agrare closed #809
  • Jul 13 17:52

    Fryguy on najdorf-1.2

    (compare)

  • Jul 13 16:10

    Fryguy on najdorf-1.1

    (compare)

  • Jul 12 21:38

    Fryguy on najdorf-1

    (compare)

  • Jul 12 16:50

    Fryguy on master

    Move associations from Vmware::… Merge pull request #812 from ag… (compare)

  • Jul 12 16:50
    Fryguy closed #812
  • Jul 12 16:41
    kbrock commented #809
  • Jul 12 14:20
    agrare commented #812
  • Jul 11 19:14
    Fryguy assigned #812
Keenan Brock
@kbrock
huh - ManageIQ::Providers::MiddlewareManager doesn't look to be defined anywhere :(
ok, I'll just delete it and move on
Miha Pleško
@miha-plesko
sounds like test coverage is going to jump :clap:
Keenan Brock
@kbrock
a side tool "report-sanity-checker" looks at a view or report and lets me know if we're doing something stupid
blowing up (many times it is the tools fault), but looks like this time around we'll just clean up some old yml files not being used (or blowing up screens ;) )
Jason Frey
@Fryguy
Awesome @kbrock
Keenan Brock
@kbrock
@Fryguy squirrel :(
but it is all good :)
Jason Frey
@Fryguy
Haha
Keenan Brock
@kbrock
I only have to improve 1 file. you know?
but I run on the whole thing to get my barrings and other files are blowing up
what is SniaLocalFileSystem ? (besides not defined anywhere :( )
Jason Frey
@Fryguy
:sparkles:
It's a part of the ontap stuff
But I thought that was removed ages ago
Keenan Brock
@kbrock
ikr?
thnx
never heard of it - I'll remove the view. thanks
Jason Frey
@Fryguy
Can you grep for Snia and Ontap in core just to be sure...I may be mistaken
Keenan Brock
@kbrock
a bunch of localization files
but no ruby files
Jason Frey
@Fryguy
Ah ok
Keenan Brock
@kbrock
and of course a view... which is why <kaboom>
Jason Frey
@Fryguy
Yeah localization will auto clear itself once @mzazrivec does his magic
Keenan Brock
@kbrock
nice
Jason Frey
@Fryguy
Keenan Brock
@kbrock
that one wasn't so bad. Hawkular still has factories :)
ooh sorry all - thought this was providers room. not providers-vmware
Fabien Dupont
@fdupont-redhat

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 ?

Miha Pleško
@miha-plesko
for cloud providers it would be
all_ips = nic.cloud_subnet_network_ports.map(&:address)
but you're into infra provider so not sure
Fabien Dupont
@fdupont-redhat
Thanks @miha-plesko, but indeed it's not the same for infra provider. I would have expected each NIC to have to IP addresses attached to it, not to the network...
Adam Grare
@agrare
@fdupont-redhat that's interesting, let me look into this
I agree all of the networks should have an associated device
Fabien Dupont
@fdupont-redhat
Does it seem easy to fix in Hammer ?
Adam Grare
@agrare
I have to find out what's wrong first ;)
Fabien Dupont
@fdupont-redhat
Sure... :wink:
Adam Grare
@agrare
so we model it as a nice has_one network
so if there are more than one network with the same nic it overwrites it
which is why you're seeing only one with a device_id
Fabien Dupont
@fdupont-redhat
Oops. Means a schema change, doesn't it ?
Adam Grare
@agrare
so the device_id is on the network, which allows for has_many
we'd have to change the association though from a has_one :network to has_many :networks and idk what else that might break
we'd have to update the refresher also to handle this
Fabien Dupont
@fdupont-redhat
Not a small change then... Any chance to have it in 5.10.0 ? Or rather 5.10.1 ?
Adam Grare
@agrare
what's 5.10? :wink: you mean hammer-1 / hammer-2?
hammer is rc1, I doubt we'd be able to do this for hammer- without this being a severe blocker
Fabien Dupont
@fdupont-redhat
Yes hammer-1 / hammer-2...
Jared Deubel
@jdeubel
Anyone here seen an issue where we get 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.]
Adam Grare
@agrare
@jdeubel do you have any workers running in that zone?