devstack HttpConnectionPool error

Asked by jay vyas

When running ./stack.sh, I see an Http error in the logs.

2014-06-27 18:46:21.841 | '
2014-06-27 18:46:21.841 | ++ declare -a images
2014-06-27 18:46:21.841 | ++ read -r IMAGE_NAME IMAGE_UUID
2014-06-27 18:46:21.841 | +++ glance image-list --status=active
2014-06-27 18:46:21.841 | +++ awk '-F|' '!/^(+--)|ID|aki|ari/ { print $3,$2 }'
2014-06-27 18:46:22.271 | ++ '[' cirros-0.3.2-x86_64-uec = cirros-0.3.2-x86_64-uec ']'
2014-06-27 18:46:22.271 | ++ image_uuid=5818156d-f5b0-4bdb-876c-105fcb9cf276
2014-06-27 18:46:22.271 | ++ image_uuid_alt=5818156d-f5b0-4bdb-876c-105fcb9cf276
2014-06-27 18:46:22.271 | ++ images+=($IMAGE_UUID)
2014-06-27 18:46:22.271 | ++ read -r IMAGE_NAME IMAGE_UUID
2014-06-27 18:46:22.271 | ++ '[' Fedora-x86_64-20-20131211.1-sda = cirros-0.3.2-x86_64-uec ']'
2014-06-27 18:46:22.271 | ++ images+=($IMAGE_UUID)
2014-06-27 18:46:22.271 | ++ read -r IMAGE_NAME IMAGE_UUID
2014-06-27 18:46:22.271 | ++ case "${#images[*]}" in
2014-06-27 18:46:22.271 | ++ '[' -z 5818156d-f5b0-4bdb-876c-105fcb9cf276 ']'
2014-06-27 18:46:22.271 | ++ [[ ! -d /opt/stack/tempest/etc ]]
2014-06-27 18:46:22.271 | ++ sudo chown stack /opt/stack/tempest/etc
2014-06-27 18:46:22.278 | ++ cp /opt/stack/tempest/etc/tempest.conf.sample /opt/stack/tempest/etc/tempest.conf
2014-06-27 18:46:22.279 | ++ chmod 644 /opt/stack/tempest/etc/tempest.conf
2014-06-27 18:46:22.279 | ++ password=admin
2014-06-27 18:46:22.279 | ++ ADMIN_USERNAME=admin
2014-06-27 18:46:22.279 | ++ ADMIN_TENANT_NAME=admin
2014-06-27 18:46:22.279 | ++ ADMIN_DOMAIN_NAME=Default
2014-06-27 18:46:22.279 | ++ TEMPEST_USERNAME=demo
2014-06-27 18:46:22.279 | ++ TEMPEST_TENANT_NAME=demo
2014-06-27 18:46:22.279 | ++ ALT_USERNAME=alt_demo
2014-06-27 18:46:22.279 | ++ ALT_TENANT_NAME=alt_demo
2014-06-27 18:46:22.280 | +++ openstack project list
2014-06-27 18:46:22.280 | +++ awk '/ admin / { print $2 }'
2014-06-27 18:46:22.677 | ++ ADMIN_TENANT_ID=c6b5387acff64d2c8956380eb7a51d80
2014-06-27 18:46:22.677 | ++ [[ -z '' ]]
2014-06-27 18:46:22.677 | +++ nova flavor-list
2014-06-27 18:46:23.081 | ERROR (ConnectionError): HTTPConnectionPool(host='10.0.1.12', port=8774): Max retries exceeded with url: /v2/c6b5387acff64d2c8956380eb7a51d80/flavors/detail (Caused by <class 'socket.error'>: [Errno 111] Connection refused)
2014-06-27 18:46:23.099 | ++ available_flavors=
2014-06-27 18:46:23.099 | + exit_trap
2014-06-27 18:46:23.099 | + local r=1

I'm running a Fresh copy of Fedora 20 , with little more than the basics (git, vim, ...) installed, so I assume that this isn't due to an incompatible host system, but more likely due to a bad local.conf file.

I've also pasted my local.conf file below:

# 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.
[[local|localrc]]

# 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``.
ADMIN_PASSWORD=nomoresecrete
MYSQL_PASSWORD=stackdb
RABBIT_PASSWORD=stackqueue
SERVICE_PASSWORD=$ADMIN_PASSWORD

FLOATING_RANGE=192.168.1.224/27
FIXED_RANGE=10.11.12.0/24
FIXED_NETWORK_SIZE=256
FLAT_INTERFACE=eth0
ADMIN_PASSWORD=admin
MYSQL_PASSWORD=admin
RABBIT_PASSWORD=admin
SERVICE_PASSWORD=admin

Question information

Language:
English Edit question
Status:
Solved
For:
devstack Edit question
Assignee:
No assignee Edit question
Solved by:
jay vyas
Solved:
Last query:
Last reply:
Revision history for this message
jay vyas (jayunit100) said :
#1

# 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.
[[local|localrc]]

# 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``.
ADMIN_PASSWORD=admin
MYSQL_PASSWORD=admin
RABBIT_PASSWORD=admin
SERVICE_PASSWORD=$ADMIN_PASSWORD

FLOATING_RANGE=192.168.1.224/27
FIXED_RANGE=10.11.12.0/24
FIXED_NETWORK_SIZE=256
FLAT_INTERFACE=eth0
ADMIN_PASSWORD=admin
MYSQL_PASSWORD=admin
RABBIT_PASSWORD=admin
SERVICE_PASSWORD=admin

# ``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
#NEUTRON_BRANCH=milestone-proposed
#SWIFT_BRANCH=milestone-proposed

# Swift
# -----

# Swift is now used as the back-end for the S3-like object store. If Nova's
# objectstore (``n-obj`` in ``ENABLED_SERVICES``) is enabled, it will NOT
# run if Swift is enabled. Setting the hash value is required and you will
# be prompted for it if Swift is enabled so just set it to something already:
SWIFT_HASH=66a3d6b56c1f479c8b4e70ab5c2000f5

# For development purposes the default of 3 replicas is usually not required.
# Set this to 1 to save some resources:
SWIFT_REPLICAS=1

# The data for Swift is stored by default in (``$DEST/data/swift``),
# or (``$DATA_DIR/swift``) if ``DATA_DIR`` has been set, and can be
# moved by setting ``SWIFT_DATA_DIR``. The directory will be created
# if it does not exist.

^^^^^^^^^^^^^^^^^^^ Thats my local.conf, fyi .

thanks in advance for any help on this ! Super excited about running devstack to provision vms.

Revision history for this message
jay vyas (jayunit100) said :
#2

I got this working

1) I switched my default local.conf file to this:
[[local|localrc]]
ADMIN_PASSWORD=admin
DATABASE_PASSWORD=$ADMIN_PASSWORD
QPID_PASSWORD=$ADMIN_PASSWORD
SERVICE_PASSWORD=$ADMIN_PASSWORD
SERVICE_TOKEN=ca682f596-76f3-11e3-b3b2-e716f9080d50
FIXED_RANGE=10.0.0.0/24
NETWORK_GATEWAY=172.31.1.1
DEST=/opt/stack
LOGFILE=$DEST/logs/stack.sh.log
SCREEN_LOGDIR=$DEST/logs/screen
FLAT_INTERFACE=em1
SWIFT_HASH=67a3d6b56c1f479c8b4e70ab5c2020f5
SWIFT_REPLICAS=1
HOST_IP=127.0.0.1

2) I fixed my hostname in /etc/hosts (it had a dash in it).

3) Incidentally, I also had a disk that wasnt readable by the "stack" user. the df thus spit out some error text earlier. Not sure if that is fatal, but I fixed that as well.

Revision history for this message
jay vyas (jayunit100) said :
#3

I got this working

1) I switched my default local.conf file to this:
[[local|localrc]]
ADMIN_PASSWORD=admin
DATABASE_PASSWORD=$ADMIN_PASSWORD
QPID_PASSWORD=$ADMIN_PASSWORD
SERVICE_PASSWORD=$ADMIN_PASSWORD
SERVICE_TOKEN=ca682f596-76f3-11e3-b3b2-e716f9080d50
FIXED_RANGE=10.0.0.0/24
NETWORK_GATEWAY=172.31.1.1
DEST=/opt/stack
LOGFILE=$DEST/logs/stack.sh.log
SCREEN_LOGDIR=$DEST/logs/screen
FLAT_INTERFACE=em1
SWIFT_HASH=67a3d6b56c1f479c8b4e70ab5c2020f5
SWIFT_REPLICAS=1
HOST_IP=127.0.0.1

2) I fixed my hostname in /etc/hosts (it had a dash in it).

3) Incidentally, I also had a disk that wasnt readable by the "stack" user. the df thus spit out some error text earlier. Not sure if that is fatal, but I fixed that as well.