Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1222155 - RHEL OSP provider passes credentials but fails to refresh environment info
RHEL OSP provider passes credentials but fails to refresh environment info
Status: CLOSED ERRATA
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Providers (Show other bugs)
unspecified
x86_64 Linux
high Severity high
: GA
: 5.5.0
Assigned To: Ladislav Smola
Pete Savage
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2015-05-15 18:16 EDT by Brett Thurber
Modified: 2015-12-08 08:09 EST (History)
9 users (show)

See Also:
Fixed In Version: 5.5.0.1
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-12-08 08:09:42 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:2551 normal SHIPPED_LIVE Moderate: CFME 5.5.0 bug fixes and enhancement update 2015-12-08 12:58:09 EST

  None (edit)
Description Brett Thurber 2015-05-15 18:16:06 EDT
Description of problem:
Adding a new RHEL OSP cloud provider (RHEL OSP 6), passes credential check and successfully adds.  When refreshing relationships and power states, timeout occurs.

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

How reproducible:
Everytime

Steps to Reproduce:
1. Navigate to Cloud > Providers
2. Add a new Openstack provider
3. Once added, refresh relationships and power states

Actual results:
Timeout when fleecing OpenStack environment for status.

Expected results:
Environment refresh completes successfuly and objects are reported correctly.

Additional info:
Debug info:  http://pastebin.test.redhat.com/283668

RHEL OSP environment config:
3 networks
  - Provisioning (pxe, tenant, admin api, management, cluster management, storage, storage clustering)
 - External (external)
 - Public (public api)  <---this is what CFME is connecting to for management

RHEL OSP mapped endpoints:  http://pastebin.test.redhat.com/283665
Comment 2 Jason Frey 2015-05-18 11:43:08 EDT
I spoke with bthurber on IRC about this, and it seems that fog is trying to connect to an internal IP for one of the services (192.168.x.x for glance in this case), instead of the public IP (10.19.x.x).  That pastebin is from my personal machine trying to hit his servers and failing in the exact same way.
Comment 3 Dave Johnson 2015-05-19 15:00:22 EDT
(In reply to Jason Frey from comment #2)
> I spoke with bthurber on IRC about this, and it seems that fog is trying to
> connect to an internal IP for one of the services (192.168.x.x for glance in
> this case), instead of the public IP (10.19.x.x).  That pastebin is from my
> personal machine trying to hit his servers and failing in the exact same way.

Pastebin please?
Comment 4 Jason Frey 2015-05-19 15:02:26 EDT
It's in the OP.  (listed as Debug info:  http://pastebin.test.redhat.com/283668 )
Comment 5 Dave Johnson 2015-05-19 17:08:53 EDT
snippet from Brett's appliance's evm.log

[----] I, [2015-05-19T16:37:29.495877 #54564:5afe9c]  INFO -- : MIQ(EmsRefresh::Refreshers::OpenstackRefresher.refresh) EMS: [rhci-rhelosp], id: [7] Refreshing targets for EMS: [rhci-rhelosp], id: [7]...
[----] I, [2015-05-19T16:37:29.495928 #54564:5afe9c]  INFO -- : MIQ(EmsRefresh::Refreshers::OpenstackRefresher.refresh) EMS: [rhci-rhelosp], id: [7]   EmsOpenstack [rhci-rhelosp] id [7]
[----] I, [2015-05-19T16:37:43.361230 #6679:d31ea4]  INFO -- : MIQ(EmsOpenstack.with_provider_connection) Connecting through EmsOpenstack: [rhci-rhelosp]
[----] I, [2015-05-19T16:37:58.362254 #6679:d31ea4]  INFO -- : MIQ(EmsOpenstack.with_provider_connection) Connecting through EmsOpenstack: [rhci-rhelosp]
[----] I, [2015-05-19T16:38:13.363210 #6679:d31ea4]  INFO -- : MIQ(EmsOpenstack.with_provider_connection) Connecting through EmsOpenstack: [rhci-rhelosp]
[----] I, [2015-05-19T16:38:28.372424 #6679:d31ea4]  INFO -- : MIQ(EmsOpenstack.with_provider_connection) Connecting through EmsOpenstack: [rhci-rhelosp]
[----] E, [2015-05-19T16:38:30.285836 #54564:5afe9c] ERROR -- : MIQ(EmsRefresh::Refreshers::OpenstackRefresher.refresh) EMS: [rhci-rhelosp], id: [7] Refresh failed
[----] E, [2015-05-19T16:38:30.286075 #54564:5afe9c] ERROR -- : MIQ(EmsRefresh::Refreshers::OpenstackRefresher.refresh) EMS: [rhci-rhelosp], id: [7] Unable to perform refresh for the following targets:
[----] E, [2015-05-19T16:38:30.286186 #54564:5afe9c] ERROR -- :  --- EmsOpenstack [rhci-rhelosp] id [7]
Comment 6 Greg Blomquist 2015-05-26 11:11:55 EDT
My guess is that it's actually trying to hit the adminURL and not the internalURL.  Note that OpenStack actually has three endpoints per service: publicURL, internalURL, and adminURL.

We can check the fog source code to see if it is actually hitting the adminURL for glance in some cases.

Also, we need to check the openstack documentation on what IP should be used for the adminURL.  But, I know we talk to the Keystone adminURL when accessing token data. So, I would suspect that the adminURL needs to be on a public IP.
Comment 10 Ladislav Smola 2015-07-28 08:36:54 EDT
@greg it's all solved http://talk.manageiq.org/t/solved-problem-with-new-ems-cloud/806/19

master fix for one of the problems is here https://github.com/ManageIQ/manageiq/pull/3606

should I backport it for 5.4.z as part of this BZ? If not we can close this.
Comment 11 Pete Savage 2015-10-26 16:17:09 EDT
I tried but, I'm failing to create a sec group with no description, unless I go in and manually alter the database, both rhos5 and rhos6 do not allow me to create a sec group without entering a description. Any ideas?
Comment 12 Ladislav Smola 2015-10-27 03:12:11 EDT
@Pete using my env builder script I can create create sec group with description "", nil and omitting it entirely. Tested on rhos7.

You are probably blocked by CLI here? Since it's optional in API
Comment 14 Ladislav Smola 2015-10-27 03:23:57 EDT
I'll enhance the automated tests with this later, then we will see if it fails on some version of RHOS :-)
Comment 15 Pete Savage 2015-10-27 04:59:03 EDT
Verified in 5.5.0.7
Comment 17 errata-xmlrpc 2015-12-08 08:09:42 EST
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2015:2551

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