Bug 1708739 - [V2V][OSP][RHV][VDDK] Migration failing with 'rescue in run_conversion' error in automation
Summary: [V2V][OSP][RHV][VDDK] Migration failing with 'rescue in run_conversion' error...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: V2V
Version: 5.10.4
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: GA
: 5.11.0
Assignee: Daniel Berger
QA Contact: Yadnyawalk Tale
Red Hat CloudForms Documentation
URL:
Whiteboard: v2v
Depends On:
Blocks: 1712135
TreeView+ depends on / blocked
 
Reported: 2019-05-10 17:34 UTC by Yadnyawalk Tale
Modified: 2019-12-13 15:01 UTC (History)
6 users (show)

Fixed In Version: 5.11.0.6
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1712135 (view as bug list)
Environment:
Last Closed: 2019-12-13 15:01:26 UTC
Category: Bug
Cloudforms Team: V2V
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
automation.log (5.27 KB, text/plain)
2019-05-10 17:34 UTC, Yadnyawalk Tale
no flags Details
Wrapper log (15.14 KB, application/octet-stream)
2019-05-14 20:16 UTC, Shveta
no flags Details
new_wrapper.log (6.56 KB, application/octet-stream)
2019-05-15 15:47 UTC, Yadnyawalk Tale
no flags Details
new_import.log (583 bytes, application/octet-stream)
2019-05-15 15:47 UTC, Yadnyawalk Tale
no flags Details

Description Yadnyawalk Tale 2019-05-10 17:34:09 UTC
Created attachment 1566746 [details]
automation.log

Description of problem:
Migration failing with 'rescue in run_conversion' error in automation.


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


How reproducible:
100%


Steps to Reproduce:
1. Add providers, make sure you don't add RSA with OSP provider 
2. Add conversion host via API using VDDK (https://gitter.im/ManageIQ/v2v?at=5cd5b05c0f381d0a7692f673)
3. Run migration


Actual results:
Failing with attached error


Expected results:
Migration should work with VDDK over OSP


Additional info:
We have also tested by providing RSA key while adding provider, same error.

Comment 4 Shveta 2019-05-13 17:28:02 UTC
We will test this in the new build with the fix .

Comment 6 Yadnyawalk Tale 2019-05-14 16:20:06 UTC
We have tested patch with @Daniel and able to add RHV conversion host successfully with VDDK. We are currently with other usecases like OSP with VDDK and SSH and RHV with SSH.

Comment 7 Shveta 2019-05-14 20:16:04 UTC
Created attachment 1568649 [details]
Wrapper log

VDDK with RHV failed after applying the patch.
Logs are attached.

Comment 8 Yadnyawalk Tale 2019-05-15 15:47:13 UTC
Created attachment 1569030 [details]
new_wrapper.log

We have tested RHV and OSP with VDDK again with patch from Comment #3. RHV worked well and end to end migration passed.
For OSP migration failed with some certificate error again. Logs are attached.

In automation.log it is saying 

```
[root@10-16-5-106 vmdb]# tailf log/automation.log | grep "ERROR"
[----] E, [2019-05-15T11:41:00.879381 #622:1223368] ERROR -- : Q-task_id([r31_service_template_transformation_plan_task_33]) <AEMethod weightedupdatestatus> The following error occurred during method evaluation:
[----] E, [2019-05-15T11:41:00.880195 #622:1223368] ERROR -- : Q-task_id([r31_service_template_transformation_plan_task_33]) <AEMethod weightedupdatestatus>   RuntimeError: Task cancellation requested.
[----] E, [2019-05-15T11:41:00.882657 #622:1223368] ERROR -- : Q-task_id([r31_service_template_transformation_plan_task_33]) <AEMethod weightedupdatestatus>   /ManageIQ/System/CommonMethods/MiqAe/WeightedUpdateStatus:145:in `main'
[----] E, [2019-05-15T11:41:00.894992 #622:1223368] ERROR -- : Q-task_id([r31_service_template_transformation_plan_task_33]) Method STDERR: /ManageIQ/System/CommonMethods/MiqAe/WeightedUpdateStatus:145:in `main': Task cancellation requested. (RuntimeError)
[----] E, [2019-05-15T11:41:00.895726 #622:1223368] ERROR -- : Q-task_id([r31_service_template_transformation_plan_task_33]) Method STDERR: 	from /ManageIQ/System/CommonMethods/MiqAe/WeightedUpdateStatus:159:in `<main>'
[----] E, [2019-05-15T11:41:00.934936 #622:f9cf54] ERROR -- : Q-task_id([r31_service_template_transformation_plan_task_33]) State=<State11> running on_entry raised exception: <Method exited with rc=Unknown RC: [1]>
```

Comment 9 Yadnyawalk Tale 2019-05-15 15:47:36 UTC
Created attachment 1569031 [details]
new_import.log

Comment 10 Fabien Dupont 2019-05-15 21:25:29 UTC
You're now hitting the problem with SSL certificate, because CA cert is not installed on the conversion host.

Comment 11 Yadnyawalk Tale 2019-05-16 07:34:34 UTC
Thanks for all the help from devel.

We have tested OSP + VDDK with SSL and disk migration worked well with patches mentioned in Comment #3; just at the end, OSP failed to cleanup volume but that is infra issue we can see on our OSP side.
So I'm pretty sure it will work with OSP + VDDK with SSL after resolving this OSP infra issue. To add provider as a SSL we have copied undercloud and overcloud certs to CFME appliance as well as OSP conversion instance.

For a note, initially we tried with 'SSL without validation' and it failed but devel is currently working on resolving that certificate matter in https://bugzilla.redhat.com/show_bug.cgi?id=1710469.

Comment 15 Shveta 2019-05-17 17:09:03 UTC
Test both RHV and OSP with VDDK to verify this BZ.

Comment 17 Fabien Dupont 2019-05-23 19:40:31 UTC
https://github.com/ManageIQ/manageiq/pull/18805

Comment 19 Yadnyawalk Tale 2019-07-29 09:04:20 UTC
Fixed! Verifying since OSP worked last time and RHV working on 5.11.0.16.20190724210259_2b4aa51. Thanks.


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