Ask Your Question

Amir's profile - activity

2014-08-20 16:08:05 -0500 received badge  Famous Question (source)
2014-07-01 17:31:10 -0500 received badge  Notable Question (source)
2014-07-01 17:31:10 -0500 received badge  Popular Question (source)
2014-06-02 02:47:10 -0500 answered a question "Error: Service key is not running" in multi-node Devstack installation

Thanks Itzik, this indeed solved the problem :-) I didn't use the particular services you suggested, but removing most of the services did the trick. I will probably need to restore some of them later, but this is great for the time being.

2014-06-01 04:34:21 -0500 commented question "Error: Service key is not running" in multi-node Devstack installation

Thanks, I tried but no change. Perhaps I am configuring the compute node wrong. Perhaps "key" is not required at the compute node, because its services are provided by the controller, and I should somehow configure the installation to reflect this?

2014-05-29 10:35:16 -0500 asked a question "Error: Service key is not running" in multi-node Devstack installation

Hi,

I am new to Openstack, and I am trying to install a two-node Devstack using two virtual machines instances. The controller installation seems to work fine, but when I install the compute node, the installation fails at 'Error: Service key is not running'. Details are provided below.

I spent all day on this, help would be very gratefully appreciated :)

Thanks! Amir

Following is my local.conf for the controller node:

# Sample ``local.conf`` for user-configurable variables in ``stack.sh``

# NOTE: Copy this file to the root ``devstack`` directory for it to
# work properly.

# ``local.conf`` is a user-maintained setings file that is sourced from ``stackrc``.
# This gives it the ability to override any variables set in ``stackrc``.
# Also, most of the settings in ``stack.sh`` are written to only be set if no
# value has already been set; this lets ``local.conf`` effectively override the
# default values.

# This is a collection of some of the settings we have found to be useful
# in our DevStack development environments. Additional settings are described
# in http://devstack.org/local.conf.html
# These should be considered as samples and are unsupported DevStack code.

# The ``localrc`` section replaces the old ``localrc`` configuration file.
# Note that if ``localrc`` is present it will be used in favor of this section.

# Minimal Contents
# ----------------

# While ``stack.sh`` is happy to run without ``localrc``, devlife is better when
# there are a few minimal variables set:

# If the ``*_PASSWORD`` variables are not set here you will be prompted to enter
# values for them by ``stack.sh`` and they will be added to ``local.conf``.
[[local|localrc]]
ADMIN_PASSWORD=1q2w3e4r
DATABASE_PASSWORD=$ADMIN_PASSWORD
RABBIT_PASSWORD=$ADMIN_PASSWORD
SERVICE_PASSWORD=$ADMIN_PASSWORD
SERVICE_TOKEN=a682f596-76f3-11e3-b3b2-e716f9080d50
MULTI_HOST=1
FIXED_NETWORK_SIZE=4096
#FIXED_RANGE=172.31.1.0/24
#FLOATING_RANGE=192.168.20.0/25
#HOST_IP=10.3.4.5

# ``HOST_IP`` should be set manually for best results if the NIC configuration
# of the host is unusual, i.e. ``eth1`` has the default route but ``eth0`` is the
# public interface.  It is auto-detected in ``stack.sh`` but often is indeterminate
# on later runs due to the IP moving from an Ethernet interface to a bridge on
# the host. Setting it here also makes it available for ``openrc`` to include
# when setting ``OS_AUTH_URL``.
# ``HOST_IP`` is not set by default.
#HOST_IP=w.x.y.z


# Logging
# -------

# By default ``stack.sh`` output only goes to the terminal where it runs.  It can
# be configured to additionally log to a file by setting ``LOGFILE`` to the full
# path of the destination log file.  A timestamp will be appended to the given name.
LOGFILE=$DEST/logs/stack.sh.log

# Old log files are automatically removed after 7 days to keep things neat.  Change
# the number of days by setting ``LOGDAYS``.
LOGDAYS=2

# Nova logs will be colorized if ``SYSLOG`` is not set; turn this off by setting
# ``LOG_COLOR`` false.
#LOG_COLOR=False


# Using milestone-proposed branches
# ---------------------------------

# Uncomment these to grab the milestone-proposed branches from the repos:
#CINDER_BRANCH=milestone-proposed
#GLANCE_BRANCH=milestone-proposed
#HORIZON_BRANCH=milestone-proposed
#KEYSTONE_BRANCH=milestone-proposed
#KEYSTONECLIENT_BRANCH=milestone-proposed
#NOVA_BRANCH=milestone-proposed
#NOVACLIENT_BRANCH=milestone-proposed ...
(more)
2014-05-27 11:29:53 -0500 received badge  Taxonomist
2014-04-24 11:06:49 -0500 commented answer ConnectionError at /admin

Thanks for your devoted help - I eventually re-installed devstack and played around with the local.conf, and adding SERVICE_TOKEN=a682f596-76f3-11e3-b3b2-e716f9080d50 (borrowed from devstack's installation web instructions) appears to have done the trick. I am still not familiar enough with devstack to know why.

2014-04-08 05:54:48 -0500 received badge  Enthusiast
2014-04-03 10:20:31 -0500 received badge  Famous Question (source)
2014-04-02 11:00:35 -0500 commented answer ConnectionError at /admin

Thanks again for your elaborate help.

I checked the logs, and a few minutes earlier than the above error I found:

4a4a3088 HTTP/1.1" 404 116 from (pid=6508) _make_request /usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/connectionpool.py:3
44
2014-04-02 17:36:14.642 WARNING keystoneclient.middleware.auth_token [-] Authorization failed for token da41b33e37f2f
c2459f861e24a4a3088
2014-04-02 17:36:14.643 DEBUG keystoneclient.middleware.auth_token [-] Token validation failure. from (pid
=6508) _validate_user_token /opt/stack/python-keystoneclient/keystoneclient/middleware/auth_token.py:849
2014-04-02 17:36:14.643 TRACE keystoneclient.middleware.auth_token Traceback (most recent call last):
2014-04-02 17:36:14.643 TRACE keystoneclient.middleware.auth_token   File "/opt/stack/python-keystoneclient/keystoneclient/middleware/
auth_token.py", line 839, in _validate_user_token
2014-04-02 17:36:14.643 TRACE keystoneclient.middleware.auth_token     data = self.verify_uuid_token(user_token, retry)
2014-04-02 17:36:14.643 TRACE keystoneclient.middleware.auth_token   File "/opt/stack/python-keystoneclient/keystoneclient/middleware/
auth_token.py", line ...
(more)
2014-04-02 09:52:18 -0500 commented answer ConnectionError at /admin

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)
2014-04-02 04:44:25 -0500 commented answer ConnectionError at /admin

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).

2014-04-02 03:09:28 -0500 received badge  Notable Question (source)
2014-04-01 06:04:57 -0500 received badge  Popular Question (source)
2014-04-01 03:24:42 -0500 received badge  Editor (source)
2014-03-31 15:10:18 -0500 commented question ConnectionError at /admin

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

2014-03-30 11:21:04 -0500 asked a question ConnectionError at /admin

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