Re: [Openstack] Horizon OpenStack Dashboard RC1 on Ubuntu 12.04 B1 - can't get it working
On Wed, 21 Mar 2012 11:24:00 + Kevin Jackson ke...@linuxservices.co.uk wrote: Dear all, I could do with some help. I raised the following bugs in Horizon, specifically to do with Ubuntu. On a fresh install of Precise I do the following: apt-get update apt-get dist-upgrade reboot apt-get... nova, etc. configure keystone etc upload an image all is good at this point I then try and install OpenStack Dashboard: apt-get update apt-get install openstack-dashboard I get the usual install of dependencies - see http://paste.openstack.org/show/11649/ I don't do any configuration - but point my browser at this host. I get a log in screen up, so I log in with an admin user I set up in keystone I then hit this bug: https://bugs.launchpad.net/ubuntu/+source/openstack-dashboard/+bug/959262 You can see the code trying to make a directory /var/www/.novaclient. Given that Apache runs as www-data under Ubuntu and that /var/www is owned by root - this is that problem. A secure fix is required here. To overcome this I tried setting write permissions to www-data. I then get the first screen up, but on clicking on links takes me back to the log in screen again saying I'm unauthorized for that URI. I enter my details again and then I get presented with the screen I asked for. On clicking another link, I am taken back to the log in screen again. This is bug https://bugs.launchpad.net/ubuntu/+source/openstack-dashboard/+bug/960070 Tested on Chrome 17.0.963.79 and Firefox 11.0 What am I doing wrong? Cheers, Kev Hi Kev, Thanks for the bug report we will have a look at this today. Regards chuck ___ 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] Horizon OpenStack Dashboard RC1 on Ubuntu 12.04 B1 - can't get it working
This should fix the issue - https://review.openstack.org/5608 It duplicates the fix from 5-10 lines below now that the dot files have been moved into a directory. Thanks, Kiall On Wed, Mar 21, 2012 at 12:05 PM, Chuck Short chuck.sh...@canonical.comwrote: On Wed, 21 Mar 2012 11:24:00 + Kevin Jackson ke...@linuxservices.co.uk wrote: Dear all, I could do with some help. I raised the following bugs in Horizon, specifically to do with Ubuntu. On a fresh install of Precise I do the following: apt-get update apt-get dist-upgrade reboot apt-get... nova, etc. configure keystone etc upload an image all is good at this point I then try and install OpenStack Dashboard: apt-get update apt-get install openstack-dashboard I get the usual install of dependencies - see http://paste.openstack.org/show/11649/ I don't do any configuration - but point my browser at this host. I get a log in screen up, so I log in with an admin user I set up in keystone I then hit this bug: https://bugs.launchpad.net/ubuntu/+source/openstack-dashboard/+bug/959262 You can see the code trying to make a directory /var/www/.novaclient. Given that Apache runs as www-data under Ubuntu and that /var/www is owned by root - this is that problem. A secure fix is required here. To overcome this I tried setting write permissions to www-data. I then get the first screen up, but on clicking on links takes me back to the log in screen again saying I'm unauthorized for that URI. I enter my details again and then I get presented with the screen I asked for. On clicking another link, I am taken back to the log in screen again. This is bug https://bugs.launchpad.net/ubuntu/+source/openstack-dashboard/+bug/960070 Tested on Chrome 17.0.963.79 and Firefox 11.0 What am I doing wrong? Cheers, Kev Hi Kev, Thanks for the bug report we will have a look at this today. Regards chuck ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More 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] Horizon OpenStack Dashboard RC1 on Ubuntu 12.04 B1 - can't get it working
It needs to create the directory in the first place to enable caching.. But - If for whatever reason caching fails that should be no reason to blow up and present an error. Its probably worth highlighting this code is in python-novaclient, not horizon. The vast majority of uses cases will be able to cache just fine. Anyway - The point is - cache if we can, but if we cant, lets not interrupt the user. Thanks, Kiall On Wed, Mar 21, 2012 at 12:42 PM, Kevin Jackson ke...@linuxservices.co.ukwrote: If the code should just ignore the fact it can't create this directory - what is the point of it needing to attempt to create the directory in the first place? What is its purpose if its superfluous? try: os.makedirs(cache_dir, 0755) except OSError as e: # NOTE(kiall): This is typicaly either permission denied while # attempting to create the directory, or the directory # already exists. Either way, don't fail. pass Cheers, Kev On 21 March 2012 12:29, Kiall Mac Innes ki...@managedit.ie wrote: This should fix the issue - https://review.openstack.org/5608 It duplicates the fix from 5-10 lines below now that the dot files have been moved into a directory. Thanks, Kiall -- Kevin Jackson @itarchitectkev ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More 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] Horizon OpenStack Dashboard RC1 on Ubuntu 12.04 B1 -can't get it working
Hi Kevin, Change these lines in /etc/openstack-dashboard/local_settings.py and it should fix the issue of being kicked off from Dashboard after logging in: #CACHE_BACKEND = 'locmem://' CACHE_BACKEND = 'dummy://' SESSION_ENGINE = 'django.contrib.sessions.backends.cached_db' George From: openstack-bounces+george.mihaiescu=q9@lists.launchpad.net [mailto:openstack-bounces+george.mihaiescu=q9@lists.launchpad.net] On Behalf Of Kevin Jackson Sent: Wednesday, March 21, 2012 7:24 AM To: openstack@lists.launchpad.net Subject: [Openstack] Horizon OpenStack Dashboard RC1 on Ubuntu 12.04 B1 -can't get it working Dear all, I could do with some help. I raised the following bugs in Horizon, specifically to do with Ubuntu. On a fresh install of Precise I do the following: apt-get update apt-get dist-upgrade reboot apt-get... nova, etc. configure keystone etc upload an image all is good at this point I then try and install OpenStack Dashboard: apt-get update apt-get install openstack-dashboard I get the usual install of dependencies - see http://paste.openstack.org/show/11649/ I don't do any configuration - but point my browser at this host. I get a log in screen up, so I log in with an admin user I set up in keystone I then hit this bug: https://bugs.launchpad.net/ubuntu/+source/openstack-dashboard/+bug/959262 You can see the code trying to make a directory /var/www/.novaclient. Given that Apache runs as www-data under Ubuntu and that /var/www is owned by root - this is that problem. A secure fix is required here. To overcome this I tried setting write permissions to www-data. I then get the first screen up, but on clicking on links takes me back to the log in screen again saying I'm unauthorized for that URI. I enter my details again and then I get presented with the screen I asked for. On clicking another link, I am taken back to the log in screen again. This is bug https://bugs.launchpad.net/ubuntu/+source/openstack-dashboard/+bug/960070 Tested on Chrome 17.0.963.79 and Firefox 11.0 What am I doing wrong? Cheers, Kev -- Kevin Jackson @itarchitectkev ___ 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] Horizon OpenStack Dashboard RC1 on Ubuntu 12.04 B1 -can't get it working
Ah, George - thanks! I'll erm.. invalidate that bug I raised too on that and put it down to not reading the # comment regarding this issue in that file (I'm starting to suck at this ;-)) Kev On 21 March 2012 14:08, George Mihaiescu george.mihaie...@q9.com wrote: Hi Kevin, ** ** Change these lines in “/etc/openstack-dashboard/local_settings.py” and it should fix the issue of being kicked off from Dashboard after logging in:* *** ** ** ** ** #CACHE_BACKEND = 'locmem://' CACHE_BACKEND = 'dummy://' SESSION_ENGINE = 'django.contrib.sessions.backends.cached_db' ** ** George ** ** -- *From:* openstack-bounces+george.mihaiescu=q9@lists.launchpad.net[mailto: openstack-bounces+george.mihaiescu=q9@lists.launchpad.net] *On Behalf Of *Kevin Jackson *Sent:* Wednesday, March 21, 2012 7:24 AM *To:* openstack@lists.launchpad.net *Subject:* [Openstack] Horizon OpenStack Dashboard RC1 on Ubuntu 12.04 B1 -can't get it working ** ** Dear all, I could do with some help. I raised the following bugs in Horizon, specifically to do with Ubuntu.*** * ** ** On a fresh install of Precise I do the following: ** ** apt-get update apt-get dist-upgrade reboot apt-get... nova, etc. configure keystone etc upload an image ** ** all is good at this point ** ** I then try and install OpenStack Dashboard: ** ** apt-get update apt-get install openstack-dashboard ** ** I get the usual install of dependencies - see http://paste.openstack.org/show/11649/ I don't do any configuration - but point my browser at this host. I get a log in screen up, so I log in with an admin user I set up in keystone ** ** I then hit this bug: https://bugs.launchpad.net/ubuntu/+source/openstack-dashboard/+bug/959262* *** ** ** You can see the code trying to make a directory /var/www/.novaclient. Given that Apache runs as www-data under Ubuntu and that /var/www is owned by root - this is that problem. A secure fix is required here. To overcome this I tried setting write permissions to www-data. I then get the first screen up, but on clicking on links takes me back to the log in screen again saying I'm unauthorized for that URI. I enter my details again and then I get presented with the screen I asked for. On clicking another link, I am taken back to the log in screen again. This is bug https://bugs.launchpad.net/ubuntu/+source/openstack-dashboard/+bug/960070* *** ** ** Tested on Chrome 17.0.963.79 and Firefox 11.0 ** ** What am I doing wrong? ** ** Cheers, Kev -- Kevin Jackson @itarchitectkev -- Kevin Jackson @itarchitectkev ___ 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] Horizon OpenStack Dashboard RC1 on Ubuntu 12.04 B1 -can't get it working
I've actually not invalidated https://bugs.launchpad.net/ubuntu/+source/openstack-dashboard/+bug/960070as I originally and intentionally raised this in the ubuntu package. This still makes me think its still a bug with the package as provided by Ubuntu. 1) either install memcached as a dependency - as the configs assume this 2) change the configs appropriately so sensible defaults are used Cheers, Kev On 21 March 2012 14:13, Kevin Jackson ke...@linuxservices.co.uk wrote: Ah, George - thanks! I'll erm.. invalidate that bug I raised too on that and put it down to not reading the # comment regarding this issue in that file (I'm starting to suck at this ;-)) Kev On 21 March 2012 14:08, George Mihaiescu george.mihaie...@q9.com wrote: Hi Kevin, ** ** Change these lines in “/etc/openstack-dashboard/local_settings.py” and it should fix the issue of being kicked off from Dashboard after logging in: ** ** ** ** #CACHE_BACKEND = 'locmem://' CACHE_BACKEND = 'dummy://' SESSION_ENGINE = 'django.contrib.sessions.backends.cached_db' ** ** George ** -- Kevin Jackson @itarchitectkev ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp