Re: [Openstack] Dashboard/horizon PRODUCTION bug

2013-01-11 Thread Razique Mahroua
Nope,it's just a metapackage, aptitude would have warned you in case of conflicting package. you can try though to reinstall after a purge :$ aptitude purge ~c
Razique Mahroua-Nuage  Corazique.mahr...@gmail.comTel: +33 9 72 37 94 15

Le 11 janv. 2013 à 03:03, Sina Sadeghi s...@aptira.com a écrit :
  

  
  
Hi Gabriel,

Thanks for the response. We are
using absolutely stock standard everything. I don't think
it's a python problem, because I had to actually change lines of
  code from "glance" to "glanceclient"
and "keystone" to "keystoneclient".

This is specific to
the horizon code.
  
  
  --
  Sina Sadeghi
  Lead Cloud Engineer
  logo.jpg
  Aptira Pty Ltd
  1800 APTIRA
  aptira.com
  Follow @aptira

  
  On 11/01/13 05:31, Gabriel Hurley wrote:


  
  
  
  
  I
haven’t heard a report like this from anyone else. Looking
at your patch it looks like you’re having problems with the
sub-module imports for some reason, which sounds to me like
a Python problem. Is there anything unusual about your
version of Python? Any unusual/duplicate packages on your
python path that might be causing name conflicts/import
errors?
  -
  Gabriel

  
From:
  openstack-bounces+gabriel.hurley=nebula@lists.launchpad.net

  [mailto:openstack-bounces+gabriel.hurley=nebula@lists.launchpad.net]
  On Behalf Of
  Sina Sadeghi
  Sent: Wednesday, January 09, 2013 7:54 PM
  To: openstack
      Subject: [Openstack] Dashboard/horizon
  PRODUCTION bug

  I just upgraded the
  openstack-dashboard we are using to the latest version
  provided by Ubuntu Cloud Archive. There were multiple bugs
  causing "Internal Server Error" which I had to patch
  manually to rectify, I couldn't see anyone reporting the
  same errors after a brief google search.
  
  Can someone examine the patch provided and please confirm
  whether they have this issue or not? I'm running Ubuntu
  12.04 with Folsom installed using the Ubuntu Cloud
  Archive.
  
  # dpkg -l | grep -e 'openstack\|horizon'
  ii openstack-dashboard
  2012.2-0ubuntu2~cloud0 django web interface to
  Openstack
  ii openstack-dashboard-ubuntu-theme
  2012.2-0ubuntu2~cloud0 Ubuntu theme for the
  Openstack dashboard
  ii python-django-horizon
  2012.2-0ubuntu2~cloud0 Django module providing web
  based interaction with OpenStack
  ii python-django-openstack
  2012.2-0ubuntu2~cloud0 dummy transitonal package
  from python-django-openstack to python-django-horizon
  ii python-openstack-auth
  1.0.1-0ubuntu6~cloud0 A django authentication
  backend for Openstack
  
  I have attached the main patch I had to apply to get
  dashboard working again, but I also had to patch:
  /usr/lib/python2.7/dist-packages/horizon/dashboards/settings/project/views.py
  to change "from horizon.api import keystone" to "from
  horizon.api import keystoneclient" as well. If this is an
  actual bug I'm happy to file and supply the patch as
  appropriate.
  
  
  
  

  -- 
  
--
Sina Sadeghi
Lead Cloud Engineer
Pièce jointe.jpeg
Aptira Pty Ltd
1800 APTIRA
aptira.com
Follow @aptira
  

  


  

___Mailing list: https://launchpad.net/~openstackPost to : openstack@lists.launchpad.netUnsubscribe : https://launchpad.net/~openstackMore help : https://help.launchpad.net/ListHelp___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] Dashboard/horizon PRODUCTION bug

2013-01-10 Thread Razique Mahroua
Hi Sina,look into /var/log/apache2/error.log in order to see what causes that code 500Regards,
Razique Mahroua-Nuage  Corazique.mahr...@gmail.comTel: +33 9 72 37 94 15

Le 10 janv. 2013 à 04:53, Sina Sadeghi s...@aptira.com a écrit :
  


  
  
I just upgraded the
openstack-dashboard we are using to the latest version provided by Ubuntu Cloud Archive. There were multiple bugs causing "Internal Server Error"
which I had to patch manually to rectify, I couldn't see anyone reporting the same
errors after a brief google search.
  
  Can someone examine the patch provided
and please confirm whether they have this issue or not? I'm
running Ubuntu 12.04 with Folsom installed using
the Ubuntu Cloud Archive.
  
  # dpkg -l | grep -e
'openstack\|horizon'
ii openstack-dashboard
2012.2-0ubuntu2~cloud0 django web
interface to Openstack
ii openstack-dashboard-ubuntu-theme
2012.2-0ubuntu2~cloud0 Ubuntu theme
for the Openstack dashboard
ii python-django-horizon
2012.2-0ubuntu2~cloud0 Django module
providing web based interaction with
OpenStack
ii python-django-openstack
2012.2-0ubuntu2~cloud0 dummy
transitonal package from
python-django-openstack to
python-django-horizon
ii python-openstack-auth
1.0.1-0ubuntu6~cloud0 A django
authentication backend for Openstack

I have attached the main
  patch I had to apply to get dashboard
  working again, but I also
had to patch:
/usr/lib/python2.7/dist-packages/horizon/dashboards/settings/project/views.py
to
  change "from horizon.api import keystone" to "from
horizon.api import keystoneclient"
as well. If this is an actual bug I'm
happy to file and supply the patch as
appropriate.




  

-- 
  
--
Sina Sadeghi
Lead Cloud Engineer
logo.jpg
Aptira Pty Ltd
1800 APTIRA
aptira.com
Follow @aptira
  

  

workflows.diff___Mailing list: https://launchpad.net/~openstackPost to : openstack@lists.launchpad.netUnsubscribe : https://launchpad.net/~openstackMore help : https://help.launchpad.net/ListHelp___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] Dashboard/horizon PRODUCTION bug

2013-01-10 Thread Gabriel Hurley
I haven't heard a report like this from anyone else. Looking at your patch it 
looks like you're having problems with the sub-module imports for some reason, 
which sounds to me like a Python problem. Is there anything unusual about your 
version of Python? Any unusual/duplicate packages on your python path that 
might be causing name conflicts/import errors?


-  Gabriel


From: openstack-bounces+gabriel.hurley=nebula@lists.launchpad.net 
[mailto:openstack-bounces+gabriel.hurley=nebula@lists.launchpad.net] On 
Behalf Of Sina Sadeghi
Sent: Wednesday, January 09, 2013 7:54 PM
To: openstack
Subject: [Openstack] Dashboard/horizon PRODUCTION bug

I just upgraded the openstack-dashboard we are using to the latest version 
provided by Ubuntu Cloud Archive. There were multiple bugs causing Internal 
Server Error which I had to patch manually to rectify, I couldn't see anyone 
reporting the same errors after a brief google search.

Can someone examine the patch provided and please confirm whether they have 
this issue or not? I'm running Ubuntu 12.04 with Folsom installed using the 
Ubuntu Cloud Archive.

# dpkg -l | grep -e 'openstack\|horizon'
ii  openstack-dashboard  2012.2-0ubuntu2~cloud0   django web 
interface to Openstack
ii  openstack-dashboard-ubuntu-theme 2012.2-0ubuntu2~cloud0   Ubuntu theme 
for the Openstack dashboard
ii  python-django-horizon2012.2-0ubuntu2~cloud0   Django module 
providing web based interaction with OpenStack
ii  python-django-openstack  2012.2-0ubuntu2~cloud0   dummy 
transitonal package from python-django-openstack to python-django-horizon
ii  python-openstack-auth1.0.1-0ubuntu6~cloud0A django 
authentication backend for Openstack

I have attached the main patch I had to apply to get dashboard working again, 
but I also had to patch: 
/usr/lib/python2.7/dist-packages/horizon/dashboards/settings/project/views.py  
to change from horizon.api import keystone to from horizon.api import 
keystoneclient as well. If this is an actual bug I'm happy to file and supply 
the patch as appropriate.




--

--
Sina Sadeghi
Lead Cloud Engineer
[cid:image001.jpg@01CDEF1D.ABEFEC50]
Aptira Pty Ltd
1800 APTIRA
aptira.comhttp://www.aptira.com
Follow @aptirahttps://twitter.com/#/aptira
inline: image001.jpg___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


[Openstack] Dashboard/horizon PRODUCTION bug

2013-01-09 Thread Sina Sadeghi

  
  
I just upgraded the
openstack-dashboard we are using to the latest version provided by Ubuntu Cloud Archive. There were multiple bugs causing "Internal Server Error"
which I had to patch manually to rectify, I couldn't see anyone reporting the same
errors after a brief google search.
  
  Can someone examine the patch provided
and please confirm whether they have this issue or not? I'm
running Ubuntu 12.04 with Folsom installed using
the Ubuntu Cloud Archive.
  
  # dpkg -l | grep -e
'openstack\|horizon'
ii openstack-dashboard
2012.2-0ubuntu2~cloud0 django web
interface to Openstack
ii openstack-dashboard-ubuntu-theme
2012.2-0ubuntu2~cloud0 Ubuntu theme
for the Openstack dashboard
ii python-django-horizon
2012.2-0ubuntu2~cloud0 Django module
providing web based interaction with
OpenStack
ii python-django-openstack
2012.2-0ubuntu2~cloud0 dummy
transitonal package from
python-django-openstack to
python-django-horizon
ii python-openstack-auth
1.0.1-0ubuntu6~cloud0 A django
authentication backend for Openstack

I have attached the main
  patch I had to apply to get dashboard
  working again, but I also
had to patch:
/usr/lib/python2.7/dist-packages/horizon/dashboards/settings/project/views.py
to
  change "from horizon.api import keystone" to "from
horizon.api import keystoneclient"
as well. If this is an actual bug I'm
happy to file and supply the patch as
appropriate.




  

-- 
  
--
Sina Sadeghi
Lead Cloud Engineer

Aptira Pty Ltd
1800 APTIRA
aptira.com
Follow @aptira
  

  

diff -u /tmp/workflows.py /usr/lib/python2.7/dist-packages/horizon/dashboards/nova/instances/workflows.py
--- /tmp/workflows.py   2013-01-10 14:24:31.874187212 +1100
+++ /usr/lib/python2.7/dist-packages/horizon/dashboards/nova/instances/workflows.py 2013-01-10 14:30:01.531892135 +1100
@@ -23,7 +23,9 @@
 from django.utils.text import normalize_newlines
 from django.utils.translation import ugettext as _

-from horizon import api
+from horizon.api import glanceclient
+from horizon.api import nova
+from horizon.api import quantum
 from horizon import exceptions
 from horizon import forms
 from horizon import workflows
@@ -115,8 +117,8 @@
 def populate_volume_id_choices(self, request, context):
 volume_options = [(, _(Select Volume))]
 try:
-volumes = [v for v in api.nova.volume_list(self.request)
-   if v.status == api.VOLUME_STATE_AVAILABLE]
+volumes = [v for v in nova.volume_list(self.request)
+   if v.status == nova.VOLUME_STATE_AVAILABLE]
 volume_options.extend([self._get_volume_display_name(vol)
for vol in volumes])
 except:
@@ -127,9 +129,9 @@
 def populate_volume_snapshot_id_choices(self, request, context):
 volume_options = [(, _(Select Volume Snapshot))]
 try:
-snapshots = api.nova.volume_snapshot_list(self.request)
+snapshots = nova.volume_snapshot_list(self.request)
 snapshots = [s for s in snapshots
- if s.status == api.VOLUME_STATE_AVAILABLE]
+ if s.status == nova.VOLUME_STATE_AVAILABLE]
 volume_options.extend([self._get_volume_display_name(snap)
for snap in snapshots])
 except:
@@ -220,7 +222,7 @@
 public = {is_public: True,
   status: active}
 try:
-public_images, _more = api.glance.image_list_detailed(request,
+public_images, _more = glanceclient.image_list_detailed(request,