sahara on devstack fail to create cluster

asked 2015-08-16 18:26:12 -0500

mvle gravatar image

I cannot create a cluster using Sahara installed from DevStack. I've installed the latest DevStack on Ubuntu 14. I just ./stack.sh after git cloning from the repo. The cluster creation fails immediately after launch with a message saying: "A user and password or token is requred". I'm able to access the portal and able to run commands such "nova list" so I'm assuming I can authenticate with keystone. What else is missing?

My local.conf file in devstack is the following:

[[local|localrc]]
ADMIN_PASSWORD=PASSWORD
DATABASE_PASSWORD=$ADMIN_PASSWORD
RABBIT_PASSWORD=$ADMIN_PASSWORD
SERVICE_PASSWORD=$ADMIN_PASSWORD
SERVICE_TOKEN=a682f596-76f3-11e3-b3b2-e716f9080d50

enable_service heat h-api h-api-cfn h-api-cw h-eng

enable_plugin sahara git://git.openstack.org/openstack/sahara

The messages in Sahara's log is as follows:

mreq-0c13a7a6-89e8-4ce3-8734-e34576f1f0c2 ESC[00;36madmin adminESC[00;32m] ESC[01;35m[instance: none, cluster: f5833e4e-0840-4412-b473-614f14ba2f37] ESC[00;32mMaking authentic
6-89e8-4ce3-8734-e34576f1f0c2 ESC[00;36madmin adminESC[00;32m] ESC[01;35m[instance: none, cluster: f5833e4e-0840-4412-b473-614f14ba2f37] ESC[00;32mAuthorization failed.ESC[00m
-4ce3-8734-e34576f1f0c2 ESC[00;36madmin adminESC[01;31m] ESC[01;35m[instance: none, cluster: f5833e4e-0840-4412-b473-614f14ba2f37] ESC[01;31mError during operating on cluster
luster: f5833e4e-0840-4412-b473-614f14ba2f37] ESC[00mTraceback (most recent call last):
luster: f5833e4e-0840-4412-b473-614f14ba2f37] ESC[00m  File "/opt/stack/sahara/sahara/service/ops.py", line 164, in wrapper
luster: f5833e4e-0840-4412-b473-614f14ba2f37] ESC[00m    f(cluster_id, *args, **kwds)
luster: f5833e4e-0840-4412-b473-614f14ba2f37] ESC[00m  File "/opt/stack/sahara/sahara/service/ops.py", line 247, in _provision_cluster
luster: f5833e4e-0840-4412-b473-614f14ba2f37] ESC[00m    ctx, cluster, plugin = _prepare_provisioning(cluster_id)
luster: f5833e4e-0840-4412-b473-614f14ba2f37] ESC[00m  File "/opt/stack/sahara/sahara/service/ops.py", line 227, in _prepare_provisioning
luster: f5833e4e-0840-4412-b473-614f14ba2f37] ESC[00m    expires=not cluster.is_transient)
luster: f5833e4e-0840-4412-b473-614f14ba2f37] ESC[00m  File "/opt/stack/sahara/sahara/service/trusts.py", line 92, in create_trust_for_cluster
luster: f5833e4e-0840-4412-b473-614f14ba2f37] ESC[00m    trustee = keystone.client_for_admin()
luster: f5833e4e-0840-4412-b473-614f14ba2f37] ESC[00m  File "/opt/stack/sahara/sahara/utils/openstack/keystone.py", line 127, in client_for_admin
luster: f5833e4e-0840-4412-b473-614f14ba2f37] ESC[00m    project_name=CONF.keystone_authtoken.admin_tenant_name)
luster: f5833e4e-0840-4412-b473-614f14ba2f37] ESC[00m  File "/opt/stack/sahara/sahara/utils/openstack/keystone.py", line 120, in _admin_client
luster: f5833e4e-0840-4412-b473-614f14ba2f37] ESC[00m    trust_id=trust_id)
luster: f5833e4e-0840-4412-b473-614f14ba2f37] ESC[00m  File "/opt/stack/sahara/sahara/utils/openstack/keystone.py", line 106, in _client
luster: f5833e4e-0840-4412-b473-614f14ba2f37] ESC[00m    keystone = keystone_client_v3.Client(**client_kwargs)
luster: f5833e4e-0840-4412-b473-614f14ba2f37] ESC[00m  File "/usr/local/lib/python2.7/dist-packages/keystoneclient/v3/client.py", line 208, in __init__
luster: f5833e4e-0840-4412-b473-614f14ba2f37] ESC[00m    self.authenticate()
luster: f5833e4e-0840-4412-b473-614f14ba2f37] ESC[00m  File "/usr/local/lib/python2.7/dist-packages/keystoneclient/utils.py", line 336, in inner
luster: f5833e4e-0840-4412-b473-614f14ba2f37] ESC[00m    return func(*args, **kwargs)
luster: f5833e4e-0840-4412-b473-614f14ba2f37] ESC[00m  File "/usr/local/lib/python2.7/dist-packages/keystoneclient/httpclient.py", line 507, in authenticate
luster: f5833e4e-0840-4412-b473-614f14ba2f37] ESC[00m    resp = self.get_raw_token_from_identity_service(**kwargs)
luster: f5833e4e-0840-4412-b473-614f14ba2f37] ESC[00m  File "/usr/local/lib/python2.7/dist-packages/keystoneclient/v3/client.py", line 272, in get_raw_token_from_identity_serv
luster: f5833e4e-0840-4412-b473-614f14ba2f37] ESC[00m    raise exceptions.AuthorizationFailure(msg)
luster: f5833e4e-0840-4412-b473-614f14ba2f37] ESC[00mAuthorizationFailure: A user and password or token is required.
luster: f5833e4e-0840-4412-b473-614f14ba2f37] ESC[00m
edit retag flag offensive close merge delete