Ask Your Question
0

Can I have multiple OpenStack deployments under a single domain?

asked 2013-05-13 11:41:15 -0500

scott-devoid gravatar image

updated 2013-05-13 13:46:57 -0500

I am currently running a production Essex deployment and preparing a Grizzly deployment for beta usage. All of the API endpoints for the Essex deployment are reverse-proxied behind an Nginx host that handles SSL and holds the domain certificate.

I'd like to add the Grizzly deployment under the same domain, with the following edpoint mappings:

https://cloud.example.com:35357/essex/v2.0/   # keystone, essex release
https://cloud.example.com:35357/grizzly/v2.0/ # keystone, grizzly release
https://cloud.example.com:9292/essex/v2/      # glance, essex
https://cloud.example.com:9292/grizzly/v2/    # glance, grizzly
# etc. ...

The issue here is setting the API endpoint to something other than /v2.0 for each service. This looks to be doable through the http://pythonpaste.org/ (pythonpaste) composite settings, e.g. for Keystone:

# /etc/keystone/keystone.conf
[composite:admin]
use = egg:Paste#urlmap
/grizzly/v2.0 = admin_api
/grizzly/ = admin_version_api

However some services don't handle this well. Glance doesn't like this at all. Specifically the glance.api.middleware.version_negotiation and glance.api.versions classes are not aware of the pythonpaste settings. Additionally, the Versions class reports URIs back that don't take the middleware configuraiton into account.

So my questions:

  1. Is there a good way of organizing multiple OpenStack deployments under a single reverse proxy?
  2. Is the PythonPaste "composite" class the correct way to do this? Should I be editing these settings?
  3. If #2, how can we fix the aformentioned Glance classes?

https://github.com/openstack/glance/blob/master/glance/api/middleware/version_negotiation.py https://github.com/openstack/glance/blob/master/glance/api/versions.py

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
3

answered 2013-05-14 15:40:37 -0500

markwash gravatar image

updated 2013-05-14 15:40:58 -0500

I don't have an answer to #1, unfortunately. But in answer to #2, no, it is not intended for folks to edit the settings in the paste deploy config. You can, but its not something we want you to do.

For #3, there may still be a bug if the version negotiation middleware in glance is not correctly consuming the url.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2013-05-13 11:41:15 -0500

Seen: 202 times

Last updated: May 14 '13