Bug 1514939 - [v2v] Transform tagged VMs to RHV failed with "Error during 'Provisioning': undefined method `id' for nil:NilClass"
Summary: [v2v] Transform tagged VMs to RHV failed with "Error during 'Provisioning': u...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Providers
Version: 5.9.0
Hardware: Unspecified
OS: Unspecified
high
urgent
Target Milestone: GA
: 5.10.0
Assignee: Shmuel Melamud
QA Contact: Nisim Simsolo
URL:
Whiteboard: rhv:v2v
: 1518391 (view as bug list)
Depends On:
Blocks: 1530772
TreeView+ depends on / blocked
 
Reported: 2017-11-19 15:01 UTC by Nisim Simsolo
Modified: 2018-06-21 20:24 UTC (History)
9 users (show)

Fixed In Version: 5.10.0.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1530772 (view as bug list)
Environment:
Last Closed: 2018-06-21 20:24:20 UTC
Category: ---
Cloudforms Team: RHEVM
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
evm.log (10.64 MB, text/plain)
2017-11-19 15:02 UTC, Nisim Simsolo
no flags Details
screenshot of failure message (96.22 KB, image/png)
2017-11-19 15:03 UTC, Nisim Simsolo
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github ManageIQ manageiq-ui-classic pull 3073 0 None closed Target for mass VM transformation dialog 2020-06-15 13:25:20 UTC

Description Nisim Simsolo 2017-11-19 15:01:31 UTC
Description of problem:
Trying to transform tagged VMs failed with unclear error message:
"Error during 'Provisioning': undefined method `id' for nil:NilClass"


Version-Release number of selected component (if applicable):
cfme-5.9.0.8-1.el7cf.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Browse CFME UI -> Compute -> Infrastructure -> Virtual machines.
2. Tag 2 or more VMware VMs, select lifecycle - > transform tagged VMs to RHV
3. Enter details in transform dialog and click submit.

Actual results:
Transform failed with "Error during 'Provisioning': undefined method `id' for nil:NilClass" 

Expected results:
Transform should not fail

Additional info:
screenshot and evm.log (debug level) attached

Comment 2 Nisim Simsolo 2017-11-19 15:02:27 UTC
Created attachment 1355192 [details]
evm.log

Comment 3 Nisim Simsolo 2017-11-19 15:03:26 UTC
Created attachment 1355195 [details]
screenshot of failure message

Comment 4 Daniel Gur 2017-12-03 14:37:20 UTC
Hello All, This bug is totally blocking QE progress in this feature.
Please prioritize accordingly

Comment 5 Shmuel Melamud 2017-12-04 14:19:08 UTC
*** Bug 1518391 has been marked as a duplicate of this bug. ***

Comment 7 CFME Bot 2017-12-21 11:11:27 UTC
New commit detected on ManageIQ/manageiq-ui-classic/master:
https://github.com/ManageIQ/manageiq-ui-classic/commit/dbfc5ba17e01422fc6462591540dfb2f3e507fe0

commit dbfc5ba17e01422fc6462591540dfb2f3e507fe0
Author:     Shmuel Melamud <smelamud>
AuthorDate: Thu Dec 14 23:41:01 2017 +0200
Commit:     Shmuel Melamud <smelamud>
CommitDate: Wed Dec 20 01:38:11 2017 +0200

    Target for mass VM transformation dialog
    
    Created a separate vm_transform_mass action to handle VM Transform
    button clicks in on Providers page and on Compute > Infrastructure >
    Virtual Machines page. This action interprets the ID passed to it as
    provider ID, while regular vm_transform action interprets it as VM ID.
    If provider ID is not passed, the Redhat provider EMS object is used as
    target.
    
    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1514939
    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1516497

 .../application_controller/ci_processing.rb        |  3 ++
 app/controllers/application_controller/explorer.rb |  1 +
 .../actions/provider_actions/mass_transform.rb     | 56 ++++++++++++++++++++++
 .../mixins/actions/vm_actions/transform.rb         | 24 ++++------
 app/controllers/vm_infra_controller.rb             | 23 ---------
 .../application_helper/toolbar/vm_infras_center.rb |  2 +-
 spec/controllers/ems_infra_controller_spec.rb      |  6 +--
 spec/controllers/vm_infra_controller_spec.rb       |  8 ----
 8 files changed, 72 insertions(+), 51 deletions(-)
 create mode 100644 app/controllers/mixins/actions/provider_actions/mass_transform.rb


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