Project

General

Profile

Bug #28311

Openstack Compute Resource openstack_endpoint_type

Added by Shannon Mitchell over 3 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Compute resources - OpenStack
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

Each openstack service has 3 endpoints interfaces by default(adminURL, internalURL and publicURL). It looks like fog is defaulting to the 'adminURL' over port 35357 on some actions. This can cause issues depending on network access from the foreman server. It would be helpful to be able to set the endpoint type when creating the compute resource. I'm know very little about ruby, but to work around this I have been setting the openstack_endpoint_type manually in the /usr/share/foreman/app/models/compute_resources/foreman/model/openstack.rb file. It used to default to publicURL in the past, but was recently removed all together.

example with foreman on an internally accessible network:

  1. grep openstack_endpoint_type /usr/share/foreman/app/models/compute_resources/foreman/model/openstack.rb -B8

    def fog_credentials { :provider => :openstack,
    :openstack_api_key => password,
    :openstack_username => user,
    :openstack_auth_url => url_for_fog,
    :openstack_identity_endpoint => url_for_fog,
    :openstack_user_domain => domain,
    :openstack_endpoint_type => "internalURL",

Associated revisions

Revision 7b2314aa (diff)
Added by Vitaly Pyslar about 2 years ago

Fixes #28311 - use publicURL in openstack resource

It used to be publicURL by default but now fog uses adminURL for some
endpoints. The openstack compute resource does not work if this url is
not accessible from the foreman server.

History

#1 Updated by The Foreman Bot about 2 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/8325 added

#2 Updated by The Foreman Bot about 2 years ago

  • Fixed in Releases 2.5.0 added

#3 Updated by Vitaly Pyslar about 2 years ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF