Bug 1842806 - [v2v] conversion host detail is not visible on conversion host page after configuration widget gets closed.
Summary: [v2v] conversion host detail is not visible on conversion host page after con...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: V2V
Version: 5.11.6
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: GA
: cfme-future
Assignee: Fabien Dupont
QA Contact: Md Nadeem
Red Hat CloudForms Documentation
URL:
Whiteboard:
Depends On:
Blocks: 1827127
TreeView+ depends on / blocked
 
Reported: 2020-06-02 07:19 UTC by Md Nadeem
Modified: 2020-07-15 18:52 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-06-04 07:03:06 UTC
Category: ---
Cloudforms Team: V2V
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Md Nadeem 2020-06-02 07:19:41 UTC
Description of problem:

While configuring a conversion host(having no ip associated), the detail not appeared on conversion host page once the configuration widget gets closed. 

Note: We required this kind of setup to verify the BZ#1827127

I expected the failed details should be visible as row in conversion host page.

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

cfme version: 5.11.6.0

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 Mike Turley 2020-06-02 16:36:03 UTC
@Md Nadeem,

When you submitted the configuration wizard, did you get any kind of feedback at all, like an error message? Can you provide details on how I can reproduce this (what inputs I need to put into the wizard)?

Comment 3 Mike Turley 2020-06-02 16:41:29 UTC
Ah okay, I tried it with fake authentication data (since we expect it to fail anyway) and I see the HTTP response is this:

```
200 OK
{"results":[{"success":false,"message":"Vm 'auto-conv-osp-instance3' doesn't have a hostname or IP address in inventory","href":"https://10.8.198.27/api/conversion_hosts/"}]}
```

I don't think we wrote code in the UI to handle a `"success": false` response to even starting the conversion host task, but I'm surprised this response has the "200 OK" status. If the response had an HTTP error status, CloudForms would have opened an error modal by default with the response body.

Fabien, do you think we should add logic to the UI to handle responses of this form (200 OK, success: false), or should this be considered a backend bug or wontfix?

Comment 4 Fabien Dupont 2020-06-04 07:03:06 UTC
It's a normal behavior of CloudForms. What HTTP 200 with "success: false" means is that the error is normal and handled by the backend, hence the HTTP 200, but it still says the request failed with a reason. We won't spend time to change that. Closing as WONTFIX.


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