Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop using adminURL OSP service endpoints #5169

Merged

Conversation

blomquisg
Copy link
Member

Fog defaults to using adminURL OSP service endpoints for some services. A blind
grep of Fog code shows the following:

identity_v2.rb: @openstack_endpoint_type = options[:openstack_endpoint_type] || 'adminURL'
identity_v3.rb: @openstack_endpoint_type = options[:openstack_endpoint_type] || 'adminURL'
image_v1.rb: @openstack_endpoint_type = options[:openstack_endpoint_type] || 'adminURL'
image_v2.rb: @openstack_endpoint_type = options[:openstack_endpoint_type] || 'adminURL'
metering.rb: @openstack_endpoint_type = options[:openstack_endpoint_type] || 'adminURL'
planning.rb: @openstack_endpoint_type = options[:openstack_endpoint_type] || 'adminURL'
volume.rb: @openstack_endpoint_type = options[:openstack_endpoint_type] || 'adminURL'

By explicitly setting the openstack_endpoint_type to 'publicURL', manageIQ will
always use the publicURL for all connections to any OpenStack Service Endpoint.

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

Fog defaults to using adminURL OSP service endpoints for some services.  A blind
grep of Fog code shows the following:

> identity_v2.rb: @openstack_endpoint_type  = options[:openstack_endpoint_type] || 'adminURL'
> identity_v3.rb: @openstack_endpoint_type  = options[:openstack_endpoint_type] || 'adminURL'
> image_v1.rb:    @openstack_endpoint_type  = options[:openstack_endpoint_type] || 'adminURL'
> image_v2.rb:    @openstack_endpoint_type  = options[:openstack_endpoint_type] || 'adminURL'
> metering.rb:    @openstack_endpoint_type  = options[:openstack_endpoint_type] || 'adminURL'
> planning.rb:    @openstack_endpoint_type  = options[:openstack_endpoint_type] || 'adminURL'
> volume.rb:      @openstack_endpoint_type  = options[:openstack_endpoint_type] || 'adminURL'

By explicitly setting the openstack_endpoint_type to 'publicURL', manageIQ will
always use the publicURL for all connections to any OpenStack Service Endpoint.

https://bugzilla.redhat.com/show_bug.cgi?id=1276118
@blomquisg
Copy link
Member Author

I'm a little surprised this didn't break the refresh specs ... I would have assumed that changing this setting it would have ended up using a different endpoint for at least some of the services making it different from the VCR. But, I guess if environment for the VCR used all the same IPs for all the different endpoints. We'll see what travis says, though.

@miq-bot
Copy link
Member

miq-bot commented Oct 28, 2015

Checked commit blomquisg@72d6d77 with ruby 1.9.3, rubocop 0.34.2, and haml-lint 0.13.0
1 file checked, 0 offenses detected
Everything looks good. ⭐

Fryguy added a commit that referenced this pull request Oct 28, 2015
…-services

Stop using adminURL OSP service endpoints
@Fryguy Fryguy merged commit ab362c0 into ManageIQ:master Oct 28, 2015
@chessbyte chessbyte added this to the Sprint 32 Ending Nov 16, 2015 milestone Oct 28, 2015
Fryguy added a commit that referenced this pull request Nov 10, 2015
…-services

Stop using adminURL OSP service endpoints
@blomquisg blomquisg deleted the bz1276118-no-adminURL-for-osp-services branch November 18, 2015 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants