I do not have swift installed, but my "manager node" runs nova-storage with some s3 thingy.
Excerpt from my nova.conf:
--s3_host=192.168.122.4
--s3_port=3333
Looks like horizon is not able to get the value of s3_url ( api.url_for(request, 's3')).
As a workaround, if i change
/usr/lib/python2.7/dist-packages/horizon/dashboards/settings/juju/forms.py so i hard code the s3 url in the code, it "works":
i have the same problem on a test install. dashboard/ local_settings. py so i have debug, this is the kind of error i have:
When changing /etc/openstack-
[Fri Jul 20 10:04:28 2012] [error] File "/usr/lib/ python2. 7/dist- packages/ horizon/ forms/base. py", line 99, in maybe_handle request, form.cleaned_data) python2. 7/dist- packages/ horizon/ dashboards/ settings/ juju/forms. py", line 88, in handle request. build_absolute_ uri()) python2. 7/dist- packages/ horizon/ dashboards/ settings/ juju/forms. py", line 81, in handle for(request, 's3'), python2. 7/dist- packages/ horizon/ api/base. py", line 112, in url_for ServiceCatalogE xception( service_ type) xception: Invalid service catalog service: s3
[Fri Jul 20 10:04:28 2012] [error] return form, form.handle(
[Fri Jul 20 10:04:28 2012] [error] File "/usr/lib/
[Fri Jul 20 10:04:28 2012] [error] redirect=
[Fri Jul 20 10:04:28 2012] [error] File "/usr/lib/
[Fri Jul 20 10:04:28 2012] [error] 's3_url': api.url_
[Fri Jul 20 10:04:28 2012] [error] File "/usr/lib/
[Fri Jul 20 10:04:28 2012] [error] raise exceptions.
[Fri Jul 20 10:04:28 2012] [error] ServiceCatalogE
I do not have swift installed, but my "manager node" runs nova-storage with some s3 thingy. 192.168. 122.4
Excerpt from my nova.conf:
--s3_host=
--s3_port=3333
Looks like horizon is not able to get the value of s3_url ( api.url_ for(request, 's3')).
As a workaround, if i change python2. 7/dist- packages/ horizon/ dashboards/ settings/ juju/forms. py so i hard code the s3 url in the code, it "works":
/usr/lib/
ubuntu@messaging:~$ diff -u /usr/lib/ python2. 7/dist- packages/ horizon/ dashboards/ settings/ juju/forms. py-vanilla /usr/lib/ python2. 7/dist- packages/ horizon/ dashboards/ settings/ juju/forms. py python2. 7/dist- packages/ horizon/ dashboards/ settings/ juju/forms. py-vanilla 2012-07-20 10:57:02.000000000 +0100 python2. 7/dist- packages/ horizon/ dashboards/ settings/ juju/forms. py 2012-07-20 10:58:02.000000000 +0100
context = {'ec2_access_key': keys.access,
'ec2_ secret_ key': keys.secret,
'ec2_ url': api.url_ for(request, 'ec2'), for(request, 's3'), 192.168. 122.4:3333',
'juju_ admin_secret' : uuid.uuid4().hex,
'control_ bucket' : control_bucket
}
--- /usr/lib/
+++ /usr/lib/
@@ -78,7 +78,7 @@
- 's3_url': api.url_
+ 's3_url': 'http://
I do not know exactly how horizon is getting service catalog entry, but it looks like there s one missing on mine.
This is what keystone service-list tells:
ubuntu@messaging:~$ keystone service-list ------- ------- ------- ------- +------ ----+-- ------- -----+- ------- ------- ------- ------+ ------- ------- ------- ------- +------ ----+-- ------- -----+- ------- ------- ------- ------+ 0a6db821ca638ec c6 | glance | image | OpenStack Image Service | 2afd631b58c15ad 57 | keystone | identity | OpenStack Identity Service | e80252083fbc213 41 | nova | compute | OpenStack Compute Service | 4ad4dee5709c571 87 | ec2 | ec2 | OpenStack EC2 Service | 5984d0f35fd3347 db | volume | volume | Openstack Volume Service | b9e1d26da43b74a 2d | swift | object-store | OpenStack Storage Service | ------- ------- ------- ------- +------ ----+-- ------- -----+- ------- ------- ------- ------+
+------
| id | name | type | description |
+------
| 1585378098384e0
| 2b66256adc5e428
| 7f22b61afcce43b
| 99eab6fe6377493
| 9f46367719dd450
| ca32c592aac74d4
+------
now, i have a swift endpoint (that i defined in case i would install it) but no swift is installed.