Senlin - HttpException: The request you have made requires authentication - Using auth plugin: password

Bug #1721487 reported by maestropandy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
senlin
New
Undecided
Unassigned

Bug Description

I have installed devstack/master along with senlin as per below local.conf file and while creating cluster using senlin getting authentication errror

Clear reference : https://ask.openstack.org/en/question/110581/senlin-httpexception-the-request-you-have-made-requires-authentication/

while trying to autoscale by following https://docs.openstack.org/senlin/latest/scenarios/autoscaling_ceilometer.html, got issue

> openstack cluster profile create --spec-file sample_server.yaml pserver
getting error as

openstack cluster profile create --verbose --spec-file sample_server.yaml pserver
START with options: [u'cluster', u'profile', u'create', u'--verbose', u'--spec-file', u'sample_server.yaml', u'pserver']
command: cluster profile create -> senlinclient.v1.profile.CreateProfile (auth=True)
Using auth plugin: password
HttpException: The request you have made requires authentication. (HTTP 401) (Request-ID: req-3a2990a1-0d8d-41e6-8a9a-1ab76d9f7aaa), The request you have made requires authentication.
END return value: 1

 [[local|localrc]]

ADMIN_PASSWORD=admin
DATABASE_PASSWORD=$ADMIN_PASSWORD
RABBIT_PASSWORD=$ADMIN_PASSWORD
SERVICE_PASSWORD=$ADMIN_PASSWORD

#Enable heat services
enable_service h-eng h-api h-api-cfn h-api-cw

#Enable heat plugin
enable_plugin heat https://git.openstack.org/openstack/heat

#Ceilometer
CEILOMETER_BACKEND=mongodb
enable_plugin ceilometer https://git.openstack.org/openstack/ceilometer

#to enable OSprofiler
CEILOMETER_NOTIFICATION_TOPICS=notifications,profiler

#Aodh
enable_plugin aodh https://git.openstack.org/openstack/aodh

#Enable senlin
enable_plugin senlin https://git.openstack.org/openstack/senlin

# Disable tempest
disable_service tempest
# Disable sahara
disable_service sahara
# Disable trove
disable_service trove
disable_service tr-api
disable_service tr-mgr
disable_service tr-cond
# Disable swift
disable_service s-proxy
disable_service s-object
disable_service s-container
disable_service s-account

Here is my /etc/senlin/senlin.conf auto-created with devstack

> [DEFAULT]
transport_url = rabbit://stackrabbit:admin@30.30.0.5:5672/
logging_exception_prefix = %(color)s%(asctime)s.%(msecs)03d TRACE %(name)s ^[[01;35m%(instance)s^[[00m
logging_debug_format_suffix = ^[[00;33mfrom (pid=%(process)d) %(funcName)s %(pathname)s:%(lineno)d^[[00m
logging_default_format_string = %(asctime)s.%(msecs)03d %(color)s%(levelname)s %(name)s [^[[00;36m-%(color)s] ^[[01;35m%(instance)s%(color)s%(message)s^[[00m
logging_context_format_string = %(asctime)s.%(msecs)03d %(color)s%(levelname)s %(name)s [^[[01;36m%(request_id)s ^[[00;36m%(project_name)s %(user_name)s%(color)s] ^[[01;35m%(instance)s%(color)s%(message)s^[[00m
use_syslog = False
default_region_name = RegionOne
auth_encryption_key = b6c693b6a3f96af85c58974ede813dad
debug = True

[senlin_api]
bind_port = 8778

[database]
connection = mysql+pymysql://root:admin@127.0.0.1/senlin?charset=utf8

[keystone_authtoken]
admin_tenant_name = service
admin_password = admin
admin_user = senlin
auth_uri = http://30.30.0.5/identity/v3
signing_dir = /var/cache/senlin
cafile = /opt/stack/data/ca-bundle.pem
identity_uri = http://30.30.0.5/identity

[authentication]
service_project_name = service
service_password = admin
service_username = senlin
auth_url = http://30.30.0.5/identity/v3

[zaqar]
project_domain_name = Default
user_domain_name = Default
auth_url = http://30.30.0.5/identity/v3
project_name = service
password = admin
username = zaqar
auth_type = password

May I know why it was happening.. I can able to access all services except senlin .. how to resolve ?

affects: heat → senlin
summary: Senlin - HttpException: The request you have made requires
- authentication
+ authentication - Using auth plugin: password
description: updated
description: updated
Revision history for this message
maestropandy (maestropandy) wrote :

any update on this bug senlin team?

Revision history for this message
Qiming Teng (tengqim) wrote :

did you export 'OS_PASSWORD' and 'OS_USERNAME' properly before invoking the commands?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.