Bug #28311
Openstack Compute Resource openstack_endpoint_type
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:
- 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
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
Applied in changeset foreman|7b2314aa924815d2fa6bcbfc703e9d60a3707c06.
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.