Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Michael Butak
@mikebutak
When you go to Compute-->Infrastructure-->hosts you see nothing?
I added vCenter to MIQ for the first time about a week ago and did not have this experience
I can only think: are you sure you have hosts set up with your vcenter?
Luis Sanchez Garcia
@gotechhost_twitter
I mean, I can add vcenter with the administrator credentials, but as it is in this image it doesn't show the hosts or the vm
Michael Butak
@mikebutak
Oh i see you're referring to the "0's" on the provider icon.
Luis Sanchez Garcia
@gotechhost_twitter
yes
Michael Butak
@mikebutak
You've tried a manual refresh?
Luis Sanchez Garcia
@gotechhost_twitter
yes,
I'm new to manageIQ, is there anything else I need to do in Vcenter first ?
Michael Butak
@mikebutak
I don't know.
Luis Sanchez Garcia
@gotechhost_twitter
:(
Michael Butak
@mikebutak
I can ask my teammates who are vcenter gurus
Adam Grare
@agrare
Hey @gotechhost_twitter try going to the provider list view where you can see the last refresh date and last refresh error
You can switch from dashboard to list view on the top right corner of the provider page
If you don't see any error try kicking a full refresh by hitting configuration->refresh relationships and power states
Luis Sanchez Garcia
@gotechhost_twitter
Adam Grare
@agrare
If you gave it admin level creds that's all you should need
Luis Sanchez Garcia
@gotechhost_twitter
Last Refresh
Error - Less Than A Minute Ago
invalid length
Default Credentials Valid
Adam Grare
@agrare
There we go
Luis Sanchez Garcia
@gotechhost_twitter
But say:
Hosts 0
Adam Grare
@agrare
Can you go to the evm.log on the appliance in /var/www/miq/vmdb/log/evm.log
And try to find that error in the log, it should have a more informative error message
And what version do you have ?
Luis Sanchez Garcia
@gotechhost_twitter
one one sec, ManageIQ Jansa ?
ERROR -- : [IPAddr::InvalidPrefixError]: invalid length Method:[block (2 levels) in <class:LogProxy>]
ERROR -- : MIQ(ManageIQ::Providers::Vmware::InfraManager::Inventory::Collector#vim_collector) EMS: [vcenter], id: [4] Refresh fail
Adam Grare
@agrare
Hopefully there's a line number to a source file somewhere
Luis Sanchez Garcia
@gotechhost_twitter
/opt/manageiq/manageiq-gemset/bundler/gems/manageiq-providers-vmware-70f087a9f7bf/app/models/manageiq/providers/vmware/infra_manager/inventory/parser/virtual_machine.rb:448:in `subnet_v4'
Adam Grare
@agrare
Luis Sanchez Garcia
@gotechhost_twitter
Thank you
zigaSRC
@zigaSRC
@mikebutak I'm aware things can be very time consuming but still here I am :D How do you go about that then? Do you have a link to some documentation? :)
riaz181
@riaz181
Hi, Is there any possible way to Integrate Huawei/HP STORAGES and EsXi Hosts In ManageIQ? ManageIQ is Just Giving Two Options of "RedFish" and "Lenovo XClarity" in Physical Infrastructure Provider.
Peter McGowan
@pemcg
@zigaSRC Just adding a new approval process for an existing request type isn’t that arduous, there’s an example of doing it for automation request approval here: https://pemcg.gitbooks.io/mastering-automation-in-cloudforms-4-2-and-manage/content/automation_request_approval/chapter.html. I think @mikebutak was referring to implementing a whole new multi-level approval process which is definitely non-trivial.
Implementing a new back-end request & task type would be a lot more work
zigaSRC
@zigaSRC
Hi @pemcg, yes I've seen that example before and from what I understand that's just adding an approval process for all automation requests. There's no way to have multiple/different approval proceses for different state machines/instances, is that correct?
Also what values need to be entered to create an automation request from a button? I haven't managed to find an example for it.
Peter McGowan
@pemcg
@zigaSRC From a button the easiest thing to do is write a short Ruby method that calls $evm.execute(‘create_automation_request’,…), for example:
options = {}
options[:namespace]     = 'Stuff'
options[:class_name]    = 'Methods'
options[:instance_name] = 'MyInstance'
options[:user_id]       = $evm.vmdb(:user).find_by_userid('pemcg').id
# options[:attrs]       = attrs
# options[:miq_zone]    = zone
auto_approve            = true

$evm.execute('create_automation_request', options, 'admin', auto_approve)
the options[:user_id] value you could take from the logged in user, something like $evm.root['user'].id
Peter McGowan
@pemcg
You could try creating the /System/Policy/AutomationRequest_created instance and call something like InspectMe or object_walker and see what’s available. You might find that the requested namespace, class and instance_name are available, in which case you could implement your own approval process per state machine
zigaSRC
@zigaSRC
image.png
@pemcg Okay, thanks! Just thought there would be an easier way to do it since automation is available from the button process dropdown:
That could work...
Thank you for the info for now :)
Peter McGowan
@pemcg
@zigaSRC That list in the drop-down is just the list of instances under /System/Process in the Automation datastore
zigaSRC
@zigaSRC
Oh, ok...
Peter McGowan
@pemcg
zigaSRC
@zigaSRC
Thanks for the hint! :)