Re: [Openstack] New to OpenStack - question Swift+Keystone & Horizon

2013-01-16 Thread Gabriel Hurley
Horizon's list of required services includes Nova, Glance and Keystone. At 
present no work has been done to make it run with a Swift + Keystone (only) 
configuration. That said, it's not impossible. The easiest route would likely 
be to "unregister" all of the Nova and Glance-related panels in the existing 
System and Project dashboards (this can be done using Horizon's 
"customization_module" setting, though documentation for it is minimal), and 
provide a custom "user_home" function that directs users to the Containers 
(e.g. Swift) panel upon login.

In general as long as you don't ever touch any of the panels that try to make 
API calls to Nova or Glance you can avoid having to run those services. 
Unfortunately, *a lot* of the panels *do* make calls to those services. The 
Swift "Containers" panel does not, though, so it can be done.

Keystone is absolutely required, though, along with proper Swift + Keystone 
auth integration. That part is critical.

All the best,


-  Gabriel

From: openstack-bounces+gabriel.hurley=nebula@lists.launchpad.net 
[mailto:openstack-bounces+gabriel.hurley=nebula@lists.launchpad.net] On 
Behalf Of Brian Ipsen
Sent: Wednesday, January 16, 2013 1:29 PM
To: openstack@lists.launchpad.net
Subject: [Openstack] New to OpenStack - question Swift+Keystone & Horizon

Hi

I have just started to take a look at OpenStack (especially Swift, as this is 
what is most needed for a case I am investigating).
So far I have managed to get a Swift node up and running (all-in-one) on 
Ubuntu, but for some reasons I have been asked to take at look at the RedHat 
preview-implementation of the Folsom release.

Since Nova and the other parts not are needed, I would prefer not to install 
those parts... But will Horizon still be able to work - just with Swift and the 
underlying identity service based on keystone ?

I have tried the RedHat approach, and Keystone is up and running. I then tried 
to install and configure Horizon according to the RedHat instructions (and 
installed Swift afterwards). But whenever I log on to the Horizon interface, I 
get an "internal server error" page back.

Sine I don't know whether Horizon will run on such a limited setup (and I have 
not been able to locate information about it), I don't know whether it could be 
a bug in the RedHat implementation - or it simply is an unsupported setup...

Regards
Brian

PS: The error I get is this (from httpd error log):
[Wed Jan 16 20:12:40 2013] [error] [client 10.41.43.34] mod_wsgi (pid=1715): 
Exception occurred processing WSGI script 
'/usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi'.
[Wed Jan 16 20:12:40 2013] [error] [client 10.41.43.34] Traceback (most recent 
call last):
[Wed Jan 16 20:12:40 2013] [error] [client 10.41.43.34]   File 
"/usr/lib/python2.6/site-packages/django/core/handlers/wsgi.py", line 241, in 
__call__
[Wed Jan 16 20:12:40 2013] [error] [client 10.41.43.34] response = 
self.get_response(request)
[Wed Jan 16 20:12:40 2013] [error] [client 10.41.43.34]   File 
"/usr/lib/python2.6/site-packages/django/core/handlers/base.py", line 179, in 
get_response
[Wed Jan 16 20:12:40 2013] [error] [client 10.41.43.34] response = 
self.handle_uncaught_exception(request, resolver, sys.exc_info())
[Wed Jan 16 20:12:40 2013] [error] [client 10.41.43.34]   File 
"/usr/lib/python2.6/site-packages/django/core/handlers/base.py", line 228, in 
handle_uncaught_exception
[Wed Jan 16 20:12:40 2013] [error] [client 10.41.43.34] return 
callback(request, **param_dict)
[Wed Jan 16 20:12:40 2013] [error] [client 10.41.43.34]   File 
"/usr/lib/python2.6/site-packages/django/utils/decorators.py", line 91, in 
_wrapped_view
[Wed Jan 16 20:12:40 2013] [error] [client 10.41.43.34] response = 
view_func(request, *args, **kwargs)
[Wed Jan 16 20:12:40 2013] [error] [client 10.41.43.34]   File 
"/usr/lib/python2.6/site-packages/django/views/defaults.py", line 33, in 
server_error
[Wed Jan 16 20:12:40 2013] [error] [client 10.41.43.34] return 
http.HttpResponseServerError(t.render(Context({})))
[Wed Jan 16 20:12:40 2013] [error] [client 10.41.43.34]   File 
"/usr/lib/python2.6/site-packages/django/template/base.py", line 140, in render
[Wed Jan 16 20:12:40 2013] [error] [client 10.41.43.34] return 
self._render(context)
[Wed Jan 16 20:12:40 2013] [error] [client 10.41.43.34]   File 
"/usr/lib/python2.6/site-packages/django/template/base.py", line 134, in _render
[Wed Jan 16 20:12:40 2013] [error] [client 10.41.43.34] return 
self.nodelist.render(context)
[Wed Jan 16 20:12:40 2013] [error] [client 10.41.43.34]   File 
"/usr/lib/python2.6/site-packages/django/template/base.py", line 823, in render
[Wed Jan 16 20:12:40 2013] [error] [client 10.41.43.34] bit = 
self.render_node(node, context)
[Wed Jan 

[Openstack] New to OpenStack - question Swift+Keystone & Horizon

2013-01-16 Thread Brian Ipsen
Hi

I have just started to take a look at OpenStack (especially Swift, as this is 
what is most needed for a case I am investigating).
So far I have managed to get a Swift node up and running (all-in-one) on 
Ubuntu, but for some reasons I have been asked to take at look at the RedHat 
preview-implementation of the Folsom release.

Since Nova and the other parts not are needed, I would prefer not to install 
those parts... But will Horizon still be able to work - just with Swift and the 
underlying identity service based on keystone ?

I have tried the RedHat approach, and Keystone is up and running. I then tried 
to install and configure Horizon according to the RedHat instructions (and 
installed Swift afterwards). But whenever I log on to the Horizon interface, I 
get an "internal server error" page back.

Sine I don't know whether Horizon will run on such a limited setup (and I have 
not been able to locate information about it), I don't know whether it could be 
a bug in the RedHat implementation - or it simply is an unsupported setup...

Regards
Brian

PS: The error I get is this (from httpd error log):
[Wed Jan 16 20:12:40 2013] [error] [client 10.41.43.34] mod_wsgi (pid=1715): 
Exception occurred processing WSGI script 
'/usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi'.
[Wed Jan 16 20:12:40 2013] [error] [client 10.41.43.34] Traceback (most recent 
call last):
[Wed Jan 16 20:12:40 2013] [error] [client 10.41.43.34]   File 
"/usr/lib/python2.6/site-packages/django/core/handlers/wsgi.py", line 241, in 
__call__
[Wed Jan 16 20:12:40 2013] [error] [client 10.41.43.34] response = 
self.get_response(request)
[Wed Jan 16 20:12:40 2013] [error] [client 10.41.43.34]   File 
"/usr/lib/python2.6/site-packages/django/core/handlers/base.py", line 179, in 
get_response
[Wed Jan 16 20:12:40 2013] [error] [client 10.41.43.34] response = 
self.handle_uncaught_exception(request, resolver, sys.exc_info())
[Wed Jan 16 20:12:40 2013] [error] [client 10.41.43.34]   File 
"/usr/lib/python2.6/site-packages/django/core/handlers/base.py", line 228, in 
handle_uncaught_exception
[Wed Jan 16 20:12:40 2013] [error] [client 10.41.43.34] return 
callback(request, **param_dict)
[Wed Jan 16 20:12:40 2013] [error] [client 10.41.43.34]   File 
"/usr/lib/python2.6/site-packages/django/utils/decorators.py", line 91, in 
_wrapped_view
[Wed Jan 16 20:12:40 2013] [error] [client 10.41.43.34] response = 
view_func(request, *args, **kwargs)
[Wed Jan 16 20:12:40 2013] [error] [client 10.41.43.34]   File 
"/usr/lib/python2.6/site-packages/django/views/defaults.py", line 33, in 
server_error
[Wed Jan 16 20:12:40 2013] [error] [client 10.41.43.34] return 
http.HttpResponseServerError(t.render(Context({})))
[Wed Jan 16 20:12:40 2013] [error] [client 10.41.43.34]   File 
"/usr/lib/python2.6/site-packages/django/template/base.py", line 140, in render
[Wed Jan 16 20:12:40 2013] [error] [client 10.41.43.34] return 
self._render(context)
[Wed Jan 16 20:12:40 2013] [error] [client 10.41.43.34]   File 
"/usr/lib/python2.6/site-packages/django/template/base.py", line 134, in _render
[Wed Jan 16 20:12:40 2013] [error] [client 10.41.43.34] return 
self.nodelist.render(context)
[Wed Jan 16 20:12:40 2013] [error] [client 10.41.43.34]   File 
"/usr/lib/python2.6/site-packages/django/template/base.py", line 823, in render
[Wed Jan 16 20:12:40 2013] [error] [client 10.41.43.34] bit = 
self.render_node(node, context)
[Wed Jan 16 20:12:40 2013] [error] [client 10.41.43.34]   File 
"/usr/lib/python2.6/site-packages/django/template/base.py", line 837, in 
render_node
[Wed Jan 16 20:12:40 2013] [error] [client 10.41.43.34] return 
node.render(context)
[Wed Jan 16 20:12:40 2013] [error] [client 10.41.43.34]   File 
"/usr/lib/python2.6/site-packages/django/template/loader_tags.py", line 123, in 
render
[Wed Jan 16 20:12:40 2013] [error] [client 10.41.43.34] return 
compiled_parent._render(context)
[Wed Jan 16 20:12:40 2013] [error] [client 10.41.43.34]   File 
"/usr/lib/python2.6/site-packages/django/template/base.py", line 134, in _render
[Wed Jan 16 20:12:40 2013] [error] [client 10.41.43.34] return 
self.nodelist.render(context)
[Wed Jan 16 20:12:40 2013] [error] [client 10.41.43.34]   File 
"/usr/lib/python2.6/site-packages/django/template/base.py", line 823, in render
[Wed Jan 16 20:12:40 2013] [error] [client 10.41.43.34] bit = 
self.render_node(node, context)
[Wed Jan 16 20:12:40 2013] [error] [client 10.41.43.34]   File 
"/usr/lib/python2.6/site-packages/django/template/base.py", line 837, in 
render_node
[Wed Jan 16 20:12:40 2013] [error] [client 10.41.43.34] return 
node.render(context)
[Wed Jan 16 20:12:40 2013] [error] [client 10.41.43.34]   File 
"/usr/lib/python2.6/site-packages/django/template/loader_tags.py", line 155, in 
render
[Wed Jan 16 20:12:40 2013] [error] [client 10.41.43.34] return 
self.render_template(self.template, context)
[Wed Jan 16 20:12:40 2013] [error] [cli