Bug 1667246

Summary: [Regression][v2v] UI goes blank when trying to create Infra Mapping for RHV
Product: Red Hat CloudForms Management Engine Reporter: Kedar Kulkarni <kkulkarn>
Component: V2VAssignee: Mike Turley <mturley>
Status: CLOSED CURRENTRELEASE QA Contact: Shveta <sshveta>
Severity: high Docs Contact: Red Hat CloudForms Documentation <cloudforms-docs>
Priority: urgent    
Version: 5.10.0CC: bthurber, dmetzger, fdupont
Target Milestone: GAKeywords: Regression, TestOnly, ZStream
Target Release: 5.11.0Flags: kkulkarn: automate_bug+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.11.0.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1672702 (view as bug list) Environment:
Last Closed: 2019-12-13 15:16:42 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: Bug
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: V2V Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1668816, 1672702    
Attachments:
Description Flags
Screenshot none

Description Kedar Kulkarni 2019-01-17 20:20:35 UTC
Created attachment 1521368 [details]
Screenshot

Description of problem:
V2V UI goes blank when trying to create Infra mapping for RHV

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

How reproducible:
believe 100%

Steps to Reproduce:
1.Add VMware and RHV provider
2.Go to create Infra Mapping wizard
3.Select RHV/RHOS as target provider, enter a name for mapping and hit next

Actual results:
Screen goes blank with errors in browsers javascript console as per screenshot attached

Expected results:
Wizards should work without errors

Additional info:
It is pretty much a blocker for entire v2v and is a regression

Comment 2 Kedar Kulkarni 2019-01-17 21:15:43 UTC
https://github.com/ManageIQ/manageiq-v2v/issues/852

Comment 3 Michael Ro 2019-01-17 22:22:53 UTC
On initial investigation, there seems to be a problem with the conversion hosts on this appliance.  Using the rails console, I retrieved the first conversion host

#<ConversionHost:0x000000000aaefc18
  id: 1,
  name: "env-rhv42-01.cfme2.lab.eng.rdu2.redhat.com",
  address: nil,
  type: nil,
  resource_type: nil,
  resource_id: 6,
  version: nil,
  max_concurrent_tasks: nil,
  vddk_transport_supported: true,
  ssh_transport_supported: true,
  created_at: Thu, 17 Jan 2019 20:07:09 UTC +00:00,
  updated_at: Thu, 17 Jan 2019 20:07:09 UTC +00:00,
  concurrent_transformation_limit: nil,
  cpu_limit: nil,
  memory_limit: nil,
  network_limit: nil,
  blockio_limit: nil>

notice that the resource_type is nil.  Further, ConversionHost.first.resource returns nil, but it should return the underlying VmOrTemplate.

@KK, perhaps something went wrong in the conversion host configuring process?

Comment 4 Michael Ro 2019-01-18 22:04:01 UTC
After discussing with @vconzola we've decided that the best course of action will be to ignore these malformed conversion hosts in the mapping wizard. This will

1.  Allow us to keep the UI from crashing when processing invalid conversion host records
2.  Allow the user to continue forward in the wizard. In the case where all the conversion host records are invalid, the user will see the current messaging informing them that they need to configure a conversion host before attempting to execute a migration plan based on the mapping.

Our plan is to deal with these broken records in the upcoming Conversion Hosts page that will be added to the UI in one of the upcoming z-streams.

Comment 5 Brett Thurber 2019-01-19 01:32:24 UTC
https://github.com/ManageIQ/manageiq-v2v/pull/853

Comment 8 Shveta 2019-05-20 19:37:30 UTC
Fixed in 5.11.0.4.20190514210444_0c91ee1