[Bug 988748] Re: Downloading Juju settings causes 500 Internal Server Error

2013-04-06 Thread Pranav Salunke
thanks a lot, creating the S3 service and juju config download works for
me.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/988748

Title:
  Downloading Juju settings causes 500 Internal Server Error

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openstack-dashboard/+bug/988748/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 988748] Re: Downloading Juju settings causes 500 Internal Server Error

2012-07-20 Thread Pierre Amadio
i have the same problem on a test install.
When changing /etc/openstack-dashboard/local_settings.py  so i have debug, this 
is the kind of error i have:

[Fri Jul 20 10:04:28 2012] [error]   File 
/usr/lib/python2.7/dist-packages/horizon/forms/base.py, line 99, in 
maybe_handle
[Fri Jul 20 10:04:28 2012] [error] return form, form.handle(request, 
form.cleaned_data)
[Fri Jul 20 10:04:28 2012] [error]   File 
/usr/lib/python2.7/dist-packages/horizon/dashboards/settings/juju/forms.py, 
line 88, in handle
[Fri Jul 20 10:04:28 2012] [error] redirect=request.build_absolute_uri())
[Fri Jul 20 10:04:28 2012] [error]   File 
/usr/lib/python2.7/dist-packages/horizon/dashboards/settings/juju/forms.py, 
line 81, in handle
[Fri Jul 20 10:04:28 2012] [error] 's3_url': api.url_for(request, 's3'),
[Fri Jul 20 10:04:28 2012] [error]   File 
/usr/lib/python2.7/dist-packages/horizon/api/base.py, line 112, in url_for
[Fri Jul 20 10:04:28 2012] [error] raise 
exceptions.ServiceCatalogException(service_type)
[Fri Jul 20 10:04:28 2012] [error] ServiceCatalogException: Invalid service 
catalog service: s3

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=

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:

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
--- 
/usr/lib/python2.7/dist-packages/horizon/dashboards/settings/juju/forms.py-vanilla
  2012-07-20 10:57:02.0 +0100
+++ /usr/lib/python2.7/dist-packages/horizon/dashboards/settings/juju/forms.py  
2012-07-20 10:58:02.0 +0100
@@ -78,7 +78,7 @@
 context = {'ec2_access_key': keys.access,
'ec2_secret_key': keys.secret,
'ec2_url': api.url_for(request, 'ec2'),
-   's3_url': api.url_for(request, 's3'),
+   's3_url': 'http://192.168.122.4:',
'juju_admin_secret': uuid.uuid4().hex,
'control_bucket': control_bucket
   }


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
+--+--+--++
|id|   name   | type |
description |
+--+--+--++
| 1585378098384e00a6db821ca638ecc6 | glance   | image| OpenStack Image 
Service|
| 2b66256adc5e4282afd631b58c15ad57 | keystone | identity | OpenStack 
Identity Service |
| 7f22b61afcce43be80252083fbc21341 | nova | compute  | OpenStack 
Compute Service  |
| 99eab6fe63774934ad4dee5709c57187 | ec2  | ec2  | OpenStack EC2 
Service  |
| 9f46367719dd4505984d0f35fd3347db | volume   | volume   | Openstack Volume 
Service   |
| ca32c592aac74d4b9e1d26da43b74a2d | swift| object-store | OpenStack 
Storage Service  |
+--+--+--++

now, i have a swift endpoint (that i defined in case i would install it)
but no swift is installed.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/988748

Title:
  Downloading Juju settings causes 500 Internal Server Error

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openstack-dashboard/+bug/988748/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 988748] Re: Downloading Juju settings causes 500 Internal Server Error

2012-07-20 Thread Pierre Amadio
same behaviour if i remove the swift service and its associated
endpoint.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/988748

Title:
  Downloading Juju settings causes 500 Internal Server Error

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openstack-dashboard/+bug/988748/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 988748] Re: Downloading Juju settings causes 500 Internal Server Error

2012-07-20 Thread Pierre Amadio
Things works ok after creating a s3 type service.
i  create a s3 service and associate endpoints with it the following way:

keystone service-create --name=s3 \
   --type=s3 \
   --description=S3


 keystone endpoint-create --region RegionOne --service_id 
85d3c0f8eb944cdfa9da5b66f6e192ca \
--publicurl http://192.168.122.4: --adminurl http://192.168.122.4: 
--internalurl http://192.168.122.4:

i restarted apache, memcache and keystone, and i had my juju.yaml file
ready !

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/988748

Title:
  Downloading Juju settings causes 500 Internal Server Error

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openstack-dashboard/+bug/988748/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 988748] Re: Downloading Juju settings causes 500 Internal Server Error

2012-05-25 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: openstack-dashboard (Ubuntu)
   Status: New = Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/988748

Title:
  Downloading Juju settings causes 500 Internal Server Error

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openstack-dashboard/+bug/988748/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs