Ask Your Question
0

ConnectionError at /admin

asked 2014-03-30 11:21:04 -0500

Amir gravatar image

updated 2014-04-01 03:24:42 -0500

Hi,

I am new to OpenStack, and I am installing DevStack.

After entering my name ("admin") and password at the login screen, I almost always get the following error: "ConnectionError at /admin/" with additional data as provided below.

Sometimes (rarely), I do get through, and to the dashboard. However, even then, after a short while playing around with the options on the dashboard, I get a "ConnectError".

The details I typically get are as follows:

ConnectionError at /admin/

HTTPConnectionPool(host='10.0.2.15', port=8774): Max retries exceeded with url: /v2/539f650684d04815ac63eb1fe907e938/os-simple-tenant-usage?start=2014-03-30T00:00:00&end=2014-03-30T23:59:59&detailed=1 (Caused by <class 'httplib.BadStatusLine'>: '')

Request Method:     GET
Request URL:    http://10.0.2.15/admin/
Django Version:     1.5.5
Exception Type:     ConnectionError
Exception Value:    

HTTPConnectionPool(host='10.0.2.15', port=8774): Max retries exceeded with url: /v2/539f650684d04815ac63eb1fe907e938/os-simple-tenant-usage?start=2014-03-30T00:00:00&end=2014-03-30T23:59:59&detailed=1 (Caused by <class 'httplib.BadStatusLine'>: '')

Exception Location:     /usr/local/lib/python2.7/dist-packages/requests/adapters.py in send, line 378
Python Executable:  /usr/bin/python
Python Version:     2.7.3
Python Path:    

['/opt/stack/horizon/openstack_dashboard/wsgi/../..',
 '/usr/local/lib/python2.7/dist-packages/pip-1.4.1-py2.7.egg',
 '/opt/stack/pbr',
 '/opt/stack/cliff',
 '/opt/stack/oslo.config',
 '/opt/stack/oslo.messaging',
 '/opt/stack/oslo.rootwrap',
 '/opt/stack/pycadf',
 '/opt/stack/stevedore',
 '/opt/stack/taskflow',
 '/opt/stack/python-keystoneclient',
 '/opt/stack/python-glanceclient',
 '/opt/stack/python-cinderclient',
 '/opt/stack/python-novaclient',
 '/opt/stack/python-heatclient',
 '/opt/stack/python-openstackclient',
 '/opt/stack/keystone',
 '/opt/stack/glance',
 '/opt/stack/cinder',
 '/opt/stack/python-swiftclient',
 '/opt/stack/python-neutronclient',
 '/opt/stack/nova',
 '/opt/stack/horizon',
 '/opt/stack/tempest',
 '/usr/lib/python2.7',
 '/usr/lib/python2.7/plat-linux2',
 '/usr/lib/python2.7/lib-tk',
 '/usr/lib/python2.7/lib-old',
 '/usr/lib/python2.7/lib-dynload',
 '/usr/local/lib/python2.7/dist-packages',
 '/usr/lib/python2.7/dist-packages',
 '/usr/lib/python2.7/dist-packages/PIL',
 '/usr/lib/python2.7/dist-packages/gst-0.10',
 '/usr/lib/python2.7/dist-packages/gtk-2.0',
 '/usr/lib/pymodules/python2.7',
 '/usr/lib/python2.7/dist-packages/ubuntu-sso-client',
 '/usr/lib/python2.7/dist-packages/ubuntuone-client',
 '/usr/lib/python2.7/dist-packages/ubuntuone-control-panel',
 '/usr/lib/python2.7/dist-packages/ubuntuone-couch',
 '/usr/lib/python2.7/dist-packages/ubuntuone-installer',
 '/usr/lib/python2.7/dist-packages/ubuntuone-storage-protocol',
 '/opt/stack/horizon/openstack_dashboard']

Any ideas?

Thanks, Amir

edit retag flag offensive close merge delete

Comments

Is this related to your problem?

Jobin gravatar imageJobin ( 2014-03-30 11:47:28 -0500 )edit

Thanks but no, it doesn't seem to be related. I also tried their suggestion (downgrading django) and it did not help. Amir

Amir gravatar imageAmir ( 2014-03-31 15:10:18 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
0

answered 2014-08-18 07:41:14 -0500

I had case when test server just run out of memory and just killed OpenStack dashboard. for me OpenStack lab configs from network Internet don't fit in recommended 512Mb.

edit flag offensive delete link more
0

answered 2014-04-01 06:06:35 -0500

jpichon gravatar image

HTTPConnectionPool(host='10.0.2.15', port=8774): Max retries exceeded with url: /v2/539f650684d04815ac63eb1fe907e938/os-simple-tenant-usage?start=2014-03-30T00:00:00&end=2014-03-30T23:59:59&detailed=1 (Caused by <class 'httplib.BadStatusLine'>: '') seems to suggest a problem with getting a response from Nova... Did you check the logs for your Nova server when the problem occurs?

edit flag offensive delete link more

Comments

Thanks. I am new to OpenStack and using DevStack. I could not find any nova logs - could you give a pointer? (I couldn't find anything under /var/log).

Amir gravatar imageAmir ( 2014-04-02 04:44:25 -0500 )edit

In DevStack, by default the logs are only shown in screen session (if you want to change this see "screen logging" in the docs -> http://devstack.org/configuration.html ). In the meantime you can access the logs with "screen -r" and using screen commands to navigate between the different screens

jpichon gravatar imagejpichon ( 2014-04-02 05:07:44 -0500 )edit

You can find the screen commands at https://www.gnu.org/software/screen/m... if you haven't used it before. The nova-related sessions start with "n-" (nova api, nova scheduler, etc)

jpichon gravatar imagejpichon ( 2014-04-02 05:08:26 -0500 )edit

Thanks - I managed to record the logs to files using your suggestions. The Nova log seems fine, but I found the following error in the Horizon log. Does it give a clue?

[Wed Apr 02 14:44:11 2014] [error] 
[Wed Apr 02 14:44:11 2014] [error] REQ: curl -i 'http://10.0.2.15:8774/v2/9cefc3f98fdd4a96a30c129980f9a45e/extensions' -X GET -H "X-Auth-Project-Id: 9cefc3f98fdd4a96a30c129980f9a45e" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: 0c2d8b2e1e5a473a419082d81b6bd199"
[Wed Apr 02 14:44:11 2014] [error] 
[Wed Apr 02 14:44:14 2014] [error] Internal Server Error: /admin/
[Wed Apr 02 14:44:14 2014] [error] Traceback (most recent call last):
[Wed Apr 02 14:44:14 2014] [error]   File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 111, in get_response
[Wed Apr 02 14:44:14 2014] [error]     response = callback(request, *callback_args, **callback_kwargs)
[Wed Apr 02 14:44 ...
(more)
Amir gravatar imageAmir ( 2014-04-02 09:52:18 -0500 )edit

To me that really suggests an issue coming from Nova... Does nova list-extensions return fine from the command-line? Did you check all the nova logs from around that timestamp? (There are more than one Nova screen session)

jpichon gravatar imagejpichon ( 2014-04-02 10:24:35 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

2 followers

Stats

Asked: 2014-03-30 11:21:04 -0500

Seen: 3,218 times

Last updated: Apr 01 '14