Bug 1510769 - If the external network provider is unavailable CFME network provider throws unfriendly exception
Summary: If the external network provider is unavailable CFME network provider throws ...
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
medium
low
Target Milestone: GA
: 5.10.0
Assignee: Martin Slemr
QA Contact: Omri Hochman
URL:
Whiteboard:
Depends On:
Blocks: 1566570
TreeView+ depends on / blocked
 
Reported: 2017-11-08 08:04 UTC by Mor
Modified: 2019-02-11 13:53 UTC (History)
11 users (show)

Fixed In Version: 5.10.0.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1566570 (view as bug list)
Environment:
Last Closed: 2019-02-11 13:53:33 UTC
Category: ---
Cloudforms Team: Openstack
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
evm log (3.08 MB, application/octet-stream)
2017-11-08 08:04 UTC, Mor
no flags Details

Description Mor 2017-11-08 08:04:50 UTC
Created attachment 1349302 [details]
evm log

Description of problem:
When a registered ovirt-provider-ovn is unavailable and trying to create network through the CFME interface, it throws unfriendly UI message: 
"Unable to create Cloud Network "test123": undefined method `response' for #<Excon::Error::Socket:0x0000000d7053e8> Did you mean? respond_to?"

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

How reproducible:
100%

Steps to Reproduce:
1. Stop ovirt-provider-ovn service.
2. On the CFME console, try to create a network on the provider. 

Actual results:
Unfriendly error message.

Expected results:
Message should be friendly.

Additional info:

Comment 2 Alona Kaplan 2018-03-21 09:34:29 UTC
The bug is not ovirt-network-provider specific.
The same will happen for the openstack network provider and I guess that for all the other network providers.

Comment 3 Martin Slemr 2018-04-03 11:55:15 UTC
This bug is specific for ovirt and openstack network providers only.

Comment 5 CFME Bot 2018-04-04 15:06:52 UTC
New commit detected on ManageIQ/manageiq-providers-openstack/master:

https://github.com/ManageIQ/manageiq-providers-openstack/commit/0bbc14470edc4ab6c26f887be952a4b77e9e8b1e
commit 0bbc14470edc4ab6c26f887be952a4b77e9e8b1e
Author:     Martin Slemr <mslemr>
AuthorDate: Tue Apr  3 08:39:23 2018 -0400
Commit:     Martin Slemr <mslemr>
CommitDate: Tue Apr  3 08:39:23 2018 -0400

    Add Cloud network friendly message

    Unavailable provider: +/- Cloud Network returns friendly error

    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1510769

 app/models/manageiq/providers/openstack/helper_methods.rb | 2 +
 1 file changed, 2 insertions(+)

Comment 7 Jad Haj Yahya 2018-04-30 15:33:40 UTC
HI,

I need help on verifying this bug:

Which service should i stop  ?

Comment 8 Jad Haj Yahya 2018-04-30 15:50:12 UTC
(In reply to Jadh from comment #7)
> HI,
> 
> I need help on verifying this bug:
> 
> Which service should i stop  ?

Is it enough to delete neutron service:
openstack service neutron delete ?

Comment 9 Mor 2018-04-30 18:14:20 UTC
Hi Jadh,

If you have RHV registered in CFME, you should stop ovirt-provider-ovn, else it should be the name of the services that runs the external network provider server. 

If you are using Neutron, you should simply stop the Neutron service.

Comment 10 CFME Bot 2018-05-21 20:29:33 UTC
New commit detected on ManageIQ/manageiq-providers-openstack/master:

https://github.com/ManageIQ/manageiq-providers-openstack/commit/0c34c37a6c636f9b5415469e2b06a65b4d951d20
commit 0c34c37a6c636f9b5415469e2b06a65b4d951d20
Author:     Martin Slemr <mslemr>
AuthorDate: Mon May 21 08:41:51 2018 -0400
Commit:     Martin Slemr <mslemr>
CommitDate: Mon May 21 08:41:51 2018 -0400

    Friendly error message for HTTP 503

    Handling HTML error responses from undercloud

    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1566570
    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1510769

 app/models/manageiq/providers/openstack/helper_methods.rb | 10 +
 1 file changed, 10 insertions(+)

Comment 11 Jad Haj Yahya 2018-07-15 12:17:51 UTC
Verified on 5.10.0.3


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