Bug 1482270

Summary: prov.set_host fails on 4.5.1 (5.8.1.5.20170725160636_e433fc0)
Product: Red Hat CloudForms Management Engine Reporter: Saif Ali <saali>
Component: AutomateAssignee: Lucy Fu <lufu>
Status: CLOSED CURRENTRELEASE QA Contact: Leo Khomenko <lkhomenk>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 5.8.0CC: agrare, cpelland, fdewaley, jhardy, jocarter, kmorey, lufu, mkanoor, obarenbo, tfitzger
Target Milestone: GAKeywords: TestOnly, ZStream
Target Release: 5.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.9.0.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1482668 (view as bug list) Environment:
Last Closed: 2018-03-06 15:09:28 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:
Bug Depends On:    
Bug Blocks: 1482668    

Description Saif Ali 2017-08-16 23:04:24 UTC
Description of problem:
prov.set_host starting failing for us in 4.5.1 (see attached automation.log), we believe it may be related to eligible_hosts returning an empty array in 4.5.1 (see below)

I have attached a logs.tar.gz which has the automation and evm logs from todays attempts. You should be able to see a working 4.5.0 provision of "cf45test28", the upgrade to 4.5.1, and the failing 4.5.1 provision of "cf45test29".

# 4.5.0 (5.8.0.17.20170525183055_6317a22)
> prov = $evm.vmdb(:miq_provision).find(100000000000057)
> prov.eligible_hosts
=> [#<MiqAeServiceManageIQ_Providers_Vmware_InfraManager_HostEsx:0x9d9d7b8 @object=#<ManageIQ::Providers::Vmware::InfraManager::HostEsx id: 100000000000002, name: "dc-esx02.ied.cbnms.com", hostname: "dc-esx02.ied.cbnms.com", ipaddress: "172.20.214.50", vmm_vendor: "vmware", vmm_version: "6.0.0", vmm...]

Version-Release number of selected component (if applicable):
5.8.1.5.20170725160636_e433fc0

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 4 CFME Bot 2017-08-17 01:53:38 UTC
New commit detected on ManageIQ/manageiq-providers-vmware/master:
https://github.com/ManageIQ/manageiq-providers-vmware/commit/3032d51502d19e7200e1b0609d131602f392f2d9

commit 3032d51502d19e7200e1b0609d131602f392f2d9
Author:     Lucy Fu <lufu>
AuthorDate: Wed Aug 16 20:30:54 2017 -0400
Commit:     Lucy Fu <lufu>
CommitDate: Wed Aug 16 21:31:07 2017 -0400

    Fix the issue where dvs_ prefix is removed from :vlan in provision's options.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1482270

 .../manageiq/providers/vmware/infra_manager/provision_workflow.rb     | 4 ++--
 .../providers/vmware/infra_manager/provision_workflow_spec.rb         | 1 +
 2 files changed, 3 insertions(+), 2 deletions(-)

Comment 8 Lucy Fu 2017-09-18 13:28:40 UTC
*** Bug 1490630 has been marked as a duplicate of this bug. ***

Comment 9 Greg McCullough 2017-09-21 14:31:37 UTC
*** Bug 1491341 has been marked as a duplicate of this bug. ***