How to get rid of the following error? keystoneauth1.exceptions.http.Unauthorized: The request you have made requires authentication. (HTTP 401)

asked 2016-01-07 19:21:32 -0600

Hania gravatar image

updated 2016-01-07 19:39:50 -0600

I am a newbie with OpenStack and Monasca. When I deploy OpenStack without enabling Monasca-API, it works fine. However, when I try to enable Monasca-API, I get the following error.

2016-01-07 15:05:14.745 |   File "/opt/monasca/local/lib/python2.7/site-packages/keystoneclient/session.py", line 405, in request
2016-01-07 15:05:14.746 |     raise exceptions.from_response(resp, method, url)
2016-01-07 15:05:14.746 | keystoneauth1.exceptions.http.Unauthorized: The request you have made requires authentication. (HTTP 401) (Request-ID: req-bdddfb71-9473-4cfb-a878-bbcce208ce63)
2016-01-07 15:05:14.771 | + exit_trap
2016-01-07 15:05:14.771 | + local r=1
2016-01-07 15:05:14.771 | ++ jobs -p
2016-01-07 15:05:14.774 | + jobs=
2016-01-07 15:05:14.774 | + [[ -n '' ]]
2016-01-07 15:05:14.774 | + kill_spinner
2016-01-07 15:05:14.774 | + '[' '!' -z '' ']'
2016-01-07 15:05:14.774 | + [[ 1 -ne 0 ]]
2016-01-07 15:05:14.774 | + echo 'Error on exit'
2016-01-07 15:05:14.774 | Error on exit
2016-01-07 15:05:14.775 | + [[ -z /opt/stack/logs ]]

Here is how my local.conf looks like

e

nable_service q-dhcp
enable_service q-l3
enable_service q-meta
# Optional, to enable tempest configuration as part of devstack
#enable_service tempest
# 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


##Cinder
# For configuring volume size
VOLUME_BACKING_FILE_SIZE=51200M
enable_service cinder
enable_service c-api
enable_service c-vol
enable_service c-sch
enable_service c-bak
# 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.
SWIFT_DATA_DIR=$DEST/data

# Tempest
# -------

# Install the tempest test suite
enable_service tempest
#Neutron

HOST_IP=IP_ADDRESS
FLOATING_RANGE=192.168.15.224/27
PUBLIC_NETWORK_GATEWAY=192.168.15.225
FIXED_RANGE=10.0.0.0/24
FIXED_NETWORK_SIZE=256
FLAT_INTERFACE=wlan0


#Monasca-api

# The following two variables allow switching between Java and Python for the implementations
# of the Monasca API and the Monasca Persister. If ...
(more)
edit retag flag offensive close merge delete