Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1333193 - Service : Service Provisioning on RHEV fails with error "'[NoMethodError]: undefined method `create_vm' for #<Array:0x000000162cfb30>')]"
Service : Service Provisioning on RHEV fails with error "'[NoMethodError]: un...
Status: CLOSED ERRATA
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Provisioning (Show other bugs)
5.6.0
Unspecified Unspecified
high Severity high
: GA
: 5.6.0
Assigned To: Brandon Dunne
Shveta
service
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-05-04 18:05 EDT by Shveta
Modified: 2016-06-29 11:57 EDT (History)
4 users (show)

See Also:
Fixed In Version: 5.6.0.6
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-06-29 11:57:35 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
automation log (4.40 MB, application/zip)
2016-05-04 18:05 EDT, Shveta
no flags Details
automation log (224.49 KB, text/plain)
2016-05-12 20:23 EDT, Shveta
no flags Details


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:1348 normal SHIPPED_LIVE CFME 5.6.0 bug fixes and enhancement update 2016-06-29 14:50:04 EDT

  None (edit)
Description Shveta 2016-05-04 18:05:05 EDT
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 10:23:02 EDT
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 11:34:53 EDT
Please access https://10.16.5.86
Comment 5 Shveta 2016-05-05 13:52:39 EDT
Forgot to mention build : 5.6.0.5-beta2.4.20160503153816_1fb554f
Comment 6 CFME Bot 2016-05-05 16:00:45 EDT
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/977fe889a75a13544c0184a7e6a1e770e59f28ee

commit 977fe889a75a13544c0184a7e6a1e770e59f28ee
Author:     Brandon Dunne <bdunne@redhat.com>
AuthorDate: Thu May 5 12:05:39 2016 -0400
Commit:     Brandon Dunne <bdunne@redhat.com>
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-12 20:10:32 EDT
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-12 20:23 EDT
Created attachment 1156955 [details]
automation log
Comment 11 Brandon Dunne 2016-05-16 18:06:27 EDT
Satoe, https://github.com/ManageIQ/ovirt/pull/52 fixed the issue in our ovirt gem
Comment 13 Brandon Dunne 2016-05-17 09:40:09 EDT
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 14:10:40 EDT
Fixed.
Verified in 5.6.0.7-beta2.6.20160516171555_b1be31f
Comment 17 errata-xmlrpc 2016-06-29 11:57:35 EDT
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

Note You need to log in before you can comment on or make changes to this bug.