Ask Your Question
0

Sahara Cluster Fails - Failed to create trust

asked 2018-06-21 05:44:12 -0500

ajithpathiyil gravatar image

Hi,

Below is the error I see in the Sahara-engine logs, when trying to launch a Sahara-vanilla-271 cluster

Openstack version - Liberty Sahara installed in virtual environment. Appreciate if anybody else has come across this issue.

root@controller:~# /root/sahara-venv/bin/python sahara-venv/bin/sahara-engine --config-file sahara-venv/etc/sahara.conf 2018-06-21 15:29:55.883 28787 INFO sahara.utils.rpc [-] Notifications disabled 2018-06-21 15:29:56.584 28787 INFO sahara.plugins.base [-] Plugin hdp loaded sahara.plugins.hdp.ambariplugin:AmbariPlugin 2018-06-21 15:29:56.584 28787 INFO sahara.plugins.base [-] Plugin vanilla loaded sahara.plugins.vanilla.plugin:VanillaProvider 2018-06-21 15:29:56.585 28787 INFO sahara.plugins.base [-] Plugin cdh loaded sahara.plugins.cdh.plugin:CDHPluginProvider 2018-06-21 15:29:56.585 28787 INFO sahara.plugins.base [-] Plugin spark loaded sahara.plugins.spark.plugin:SparkProvider 2018-06-21 15:29:56.585 28787 INFO sahara.main [-] Sahara engine started 2018-06-21 15:29:56.585 28787 INFO keystonemiddleware.auth_token [-] Starting Keystone auth_token middleware 2018-06-21 15:29:56.587 28787 WARNING keystonemiddleware.auth_token [-] Use of the auth_admin_prefix, auth_host, auth_port, auth_protocol, identity_uri, admin_token, admin_user, admin_password, and admin_tenant_name configuration options was deprecated in the Mitaka release in favor of an auth_plugin and its related options. This class may be removed in a future release. 2018-06-21 15:29:56.589 28787 INFO keystonemiddleware.auth_token [-] Using /tmp/keystone-signing-KJRpiI as cache directory for signing certificate 2018-06-21 15:29:56.589 28787 INFO oslo_service.periodic_task [-] Skipping periodic task check_for_zombie_proxy_users because its interval is negative 2018-06-21 15:29:56.595 28787 INFO sahara.main [-] Driver heat successfully loaded 2018-06-21 15:29:56.598 28787 INFO sahara.main [-] Driver ssh successfully loaded 2018-06-21 15:30:26.104 28787 WARNING sahara.context [-] Arguments dropped when creating context: {u'project_name': u'service', u'user_name': u'sahara'} 2018-06-21 15:30:26.679 28787 WARNING oslo_messaging.server [-] Possible hang: wait is waiting for stop to complete 2018-06-21 15:30:27.387 28787 ERROR sahara.service.trusts [req-0bd98b81-b083-440a-a846-aed173eb556c 71b95d25439743169779a32ea4e17ee2 8ca3e3ea84a34bf99301676cec07e502 - - -] [instance: none, cluster: b4c9bc70-b6ae-451a-92f7-54a6da6b67f9] Unable to create trust (reason: The request you have made requires authentication. (HTTP 401) (Request-ID: req-167c483f-4d38-40f7-879b-748184ad62a5)) 2018-06-21 15:30:27.458 28787 ERROR sahara.service.ops [req-0bd98b81-b083-440a-a846-aed173eb556c 71b95d25439743169779a32ea4e17ee2 8ca3e3ea84a34bf99301676cec07e502 - - -] [instance: none, cluster: b4c9bc70-b6ae-451a-92f7-54a6da6b67f9] Error during operating on cluster (reason: Failed to create trust Error ID: 87a0562d-aea5-4f04-a977-5afa1edfcbbd) 2018-06-21 15:30:27.458 28787 ERROR sahara.service.ops [instance: none, cluster: b4c9bc70-b6ae-451a-92f7-54a6da6b67f9] Traceback (most recent call last): 2018-06-21 15:30:27.458 28787 ERROR sahara.service.ops [instance: none, cluster: b4c9bc70-b6ae-451a-92f7-54a6da6b67f9] File "/root/sahara-venv/local/lib/python2.7/site-packages/sahara/service/ops.py", line 164, in wrapper 2018-06-21 15:30:27.458 28787 ERROR sahara.service.ops [instance: none, cluster: b4c9bc70-b6ae-451a-92f7-54a6da6b67f9] f(cluster_id, args, *kwds) 2018-06-21 15:30:27.458 28787 ERROR sahara.service.ops [instance: none, cluster: b4c9bc70-b6ae-451a-92f7-54a6da6b67f9] File "/root/sahara-venv/local/lib/python2.7/site-packages/sahara/service/ops.py", line 247, in _provision_cluster 2018-06-21 15:30:27.458 28787 ERROR sahara.service.ops [instance: none, cluster: b4c9bc70-b6ae-451a-92f7-54a6da6b67f9] ctx, cluster, plugin = _prepare_provisioning(cluster_id) 2018-06-21 15:30:27.458 28787 ERROR sahara.service.ops [instance: none, cluster ... (more)

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
0

answered 2018-06-27 06:07:19 -0500

casty8 gravatar image

Hey,

I'm facing same problem, did you reach any solution?

edit flag offensive delete link more
0

answered 2018-06-23 07:40:50 -0500

ajithpathiyil gravatar image

Hi Friend,

Hi Friend,

many thanks for your time taken to help, I already had the [Keystone_authtoken] block same as yours, but to test, I used your Sahara.conf as it is (changed the values) and tried to launch a vanilla-271 cluster, it still fails with the same error as below.

Error during operating on cluster (reason: Failed to create trust Error ID: 87a0562d-aea5-4f04-a977-5afa1edfcbbd)

I had a doubt if my heat-engine is working, I tested heat-engine with a sample heat template it also worked like charm.

Regards, Ajith

edit flag offensive delete link more
0

answered 2018-06-23 04:44:06 -0500

Moss gravatar image

Hey,

I think I saw this error while we were using liberty.

Below config worked for us, double check your keystone_authtoken section:

[root@controller ~]# egrep -v '#|^$' /etc/sahara/sahara.conf
[DEFAULT]
use_neutron = True
use_namespaces = True
flavor_id = 3
log_file = sahara-api.log
log_dir = /var/log/sahara
memcached_servers = controller:11211
node_domain = openstacklocal
os_region_name = RegionOne
plugins = vanilla,hdp,spark,cdh,storm
[cinder]
[conductor]
[cors]
[cors.subdomain]
[database]
connection = mysql+pymysql://sahara:password@controller/sahara
idle_timeout = 30
[heat]
[keystone]
[keystone_authtoken]
memcached_servers = controller:11211
auth_uri=http://controller:5000/v3/
identity_uri=http://controller:35357/
admin_user=sahara
admin_password=password
admin_tenant_name=service
[matchmaker_redis]
[matchmaker_ring]
[neutron]
[nova]
[object_store_access]
[oslo_concurrency]
lock_path = /var/lib/sahara/tmp
[oslo_messaging_amqp]
[oslo_messaging_qpid]
[oslo_messaging_rabbit]
rabbit_userid = rabbitmq
rabbit_password = password
[oslo_policy]
[retries]
[ssl]
[swift]
[timeouts]
[cdh]
flavor_id = 3
floating_ip_pool = 88ff3ba2-edb2-45ff-9875-9dc353ed096c
[cdh-540-default-namenode]
flavor_id = 5
floating_ip_pool = 88ff3ba2-edb2-45ff-9875-9dc353ed096c
[vanilla]
flavor_id = 3
floating_ip_pool = 88ff3ba2-edb2-45ff-9875-9dc353ed096c
[vanilla-271-default-master]
flavor_id = 5
floating_ip_pool = 88ff3ba2-edb2-45ff-9875-9dc353ed096c
[spark]
flavor_id = 3
floating_ip_pool = 635a19f4-d116-471f-b773-210c7defc241
[spark-131-default-master]
flavor_id = 5
floating_ip_pool = 635a19f4-d116-471f-b773-210c7defc241
[storm]
flavor_id = 3
floating_ip_pool = 635a19f4-d116-471f-b773-210c7defc241

And for the record, we upgraded to pike last year and sahara's images stopped working so keep this in mind ;)

Good luck!

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2018-06-21 05:44:12 -0500

Seen: 135 times

Last updated: Jun 23 '18