Bug 1333193

Summary: Service : Service Provisioning on RHEV fails with error "'[NoMethodError]: undefined method `create_vm' for #<Array:0x000000162cfb30>')]"
Product: Red Hat CloudForms Management Engine Reporter: Shveta <sshveta>
Component: ProvisioningAssignee: Brandon Dunne <bdunne>
Status: CLOSED ERRATA QA Contact: Shveta <sshveta>
Severity: high Docs Contact:
Priority: high    
Version: 5.6.0CC: jhardy, obarenbo, simaishi, sshveta
Target Milestone: GA   
Target Release: 5.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: service
Fixed In Version: 5.6.0.6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-06-29 15:57:35 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:
Attachments:
Description Flags
automation log
none
automation log none

Description Shveta 2016-05-04 22:05:05 UTC
Created attachment 1154018 [details]
automation log

Description of problem:


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


How reproducible:


Steps to Reproduce:
1. Create a catalog item for RHEV 
2. Order Service
3.

Actual results:


Expected results:


Additional info:
Logs
=============
/Provisioning/StateMachines]
[----] I, [2016-05-04T17:55:02.594727 #20931:b51990]  INFO -- : Q-task_id([miq_provision_12]) Invoking [inline] method [/ManageIQ/Infrastructure/VM/Provisioning/StateMachines/Methods/check_provisioned] with inputs [{}]
[----] I, [2016-05-04T17:55:02.596347 #20931:b51990]  INFO -- : Q-task_id([miq_provision_12]) <AEMethod [/ManageIQ/Infrastructure/VM/Provisioning/StateMachines/Methods/check_provisioned]> Starting
[----] I, [2016-05-04T17:55:03.420451 #20931:b30038]  INFO -- : Q-task_id([miq_provision_12]) <AEMethod check_provisioned> ProvisionCheck returned <error> for state <finished> and status <Error>
[----] I, [2016-05-04T17:55:03.479216 #20931:b51990]  INFO -- : Q-task_id([miq_provision_12]) <AEMethod [/ManageIQ/Infrastructure/VM/Provisioning/StateMachines/Methods/check_provisioned]> Ending
[----] I, [2016-05-04T17:55:03.479481 #20931:b51990]  INFO -- : Q-task_id([miq_provision_12]) Method exited with rc=MIQ_OK
[----] I, [2016-05-04T17:55:03.480297 #20931:b51990]  INFO -- : Q-task_id([miq_provision_12]) Followed  Relationship [miqaedb:/Infrastructure/VM/Provisioning/StateMachines/Methods/CheckProvisioned#create]
[----] I, [2016-05-04T17:55:03.480534 #20931:b51990]  INFO -- : Q-task_id([miq_provision_12]) Processed  State=[CheckProvisioned] with Result=[error]
[----] W, [2016-05-04T17:55:03.480786 #20931:b51990]  WARN -- : Q-task_id([miq_provision_12]) Error in State=[CheckProvisioned]
[----] I, [2016-05-04T17:55:03.481230 #20931:b51990]  INFO -- : Q-task_id([miq_provision_12]) In State=[CheckProvisioned], invoking [on_error] method=[update_provision_status(status => '[NoMethodError]: undefined method `create_vm' for #<Array:0x000000162cfb30>')]
[----] I, [2016-05-04T17:55:03.486926 #20931:b51990]  INFO -- : Q-task_id([miq_provision_12]) Updated namespace [Infrastructure/VM/Provisioning/StateMachines/VMProvision_vm/update_provision_status  ManageIQ/Infrastructure/VM/Provisioning/StateMachines]
[----] I, [2016-05-04T17:55:03.498813 #20931:b51990]  INFO -- : Q-task_id([miq_provision_12]) Invoking [inline] method [/ManageIQ/Infrastructure/VM/Provisioning/StateMachines/VMProvision_VM/update_provision_status] with inputs [{"status"=>"[NoMethodError]: undefined method `create_vm"}]

Comment 2 Greg McCullough 2016-05-05 14:23:02 UTC
Brandon - We need to look into this one see if we can recreate.
shveta - Can we connect to user env to take a look?

Comment 3 Shveta 2016-05-05 15:34:53 UTC
Please access https://10.16.5.86

Comment 5 Shveta 2016-05-05 17:52:39 UTC
Forgot to mention build : 5.6.0.5-beta2.4.20160503153816_1fb554f

Comment 6 CFME Bot 2016-05-05 20:00:45 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/977fe889a75a13544c0184a7e6a1e770e59f28ee

commit 977fe889a75a13544c0184a7e6a1e770e59f28ee
Author:     Brandon Dunne <bdunne>
AuthorDate: Thu May 5 12:05:39 2016 -0400
Commit:     Brandon Dunne <bdunne>
CommitDate: Thu May 5 12:05:39 2016 -0400

    Fixes get_resource_by_ems_ref (provider_object) returning an Array
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1333193

 gems/pending/Gemfile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comment 7 Shveta 2016-05-13 00:10:32 UTC
Request fails with new error now : [Ovirt::Error]: [Image does not exist in domain]')].

I have checked Image exists in the provider .
tried with different images.

Comment 8 Shveta 2016-05-13 00:23:44 UTC
Created attachment 1156955 [details]
automation log

Comment 11 Brandon Dunne 2016-05-16 22:06:27 UTC
Satoe, https://github.com/ManageIQ/ovirt/pull/52 fixed the issue in our ovirt gem

Comment 13 Brandon Dunne 2016-05-17 13:40:09 UTC
The error "Image does not exist in domain" comes from the RHEV provider itself.  There is some issue with the image that was selected.  This error is not related to our code base.  Please retest with a working image.

Comment 15 Shveta 2016-05-19 18:10:40 UTC
Fixed.
Verified in 5.6.0.7-beta2.6.20160516171555_b1be31f

Comment 17 errata-xmlrpc 2016-06-29 15:57:35 UTC
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/RHBA-2016:1348