Bug 1667246 - [Regression][v2v] UI goes blank when trying to create Infra Mapping for RHV
Summary: [Regression][v2v] UI goes blank when trying to create Infra Mapping for RHV
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: V2V
Version: 5.10.0
Hardware: Unspecified
OS: Unspecified
urgent
high
Target Milestone: GA
: 5.11.0
Assignee: Mike Turley
QA Contact: Shveta
Red Hat CloudForms Documentation
URL:
Whiteboard:
Depends On:
Blocks: 1668816 1672702
TreeView+ depends on / blocked
 
Reported: 2019-01-17 20:20 UTC by Kedar Kulkarni
Modified: 2019-12-13 15:16 UTC (History)
3 users (show)

Fixed In Version: 5.11.0.1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1672702 (view as bug list)
Environment:
Last Closed: 2019-12-13 15:16:42 UTC
Category: Bug
Cloudforms Team: V2V
Target Upstream Version:
Embargoed:
kkulkarn: automate_bug+


Attachments (Terms of Use)
Screenshot (223.66 KB, image/png)
2019-01-17 20:20 UTC, Kedar Kulkarni
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github ManageIQ manageiq-v2v pull 853 0 None None None 2019-01-18 22:06:36 UTC

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


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