Sahara cluster creation failed with internal server error

asked 2016-08-15 13:23:58 -0600

generalkalbasa gravatar image

updated 2016-08-18 15:23:29 -0600

rbowen gravatar image

I have a lab deployment with 6x Ubuntu 16.04 Xenial servers running Openstack Mitaka (1x controller, 1x block, 4x compute). I've decided to try Sahara and installed it using some guides. in the end i've ended up with a sahara.config file as follows (without comments):

[DEFAULT]
auth_strategy = keystone
debug = true
verbose = true
log_file = sahara.log
log_dir = /var/log/sahara
rpc_backend = rabbit
use_floating_ips = true
use_neutron = true
use_namespaces = True
use_rootwrap = True
rootwrap_command = sudo sahara-rootwrap /etc/sahara/rootwrap.conf
plugins = vanilla,spark,cdh,ambari
infrastructure_engine = heat
[castellan]
[cinder]
[conductor]
[cors]
[cors.subdomain]
[database]
connection = mysql://sahara:DB_PASS@master/sahara
[heat]
[keystone]
[keystone_authtoken]
auth_uri = http://master:5000
auth_url = http://master:35357
memcached_servers = master:11211
auth_host = master
auth_protocol = http
admin_user = sahara
admin_password = SAHARA_PASS
admin_tenant_name = service
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = sahara
password = SAHARA_PASS
identity_uri = http://master:35357
[matchmaker_redis]
[neutron]
[nova]
[object_store_access]
[oslo_concurrency]
lock_path = /var/lib/sahara/tmp
[oslo_messaging_amqp]
[oslo_messaging_notifications]
driver = messaging
enable = true
[oslo_messaging_rabbit]
rabbit_host = master
rabbit_userid = openstack
rabbit_password = RABBIT_PASS
[oslo_policy]
[retries]
[ssl]
[swift]
[timeouts]
[paste_deploy]
flavor = keystone
[service_credentials]
auth_type = password
auth_url = http://master:5000/v3
project_domain_name = default
user_domain_name = default
project_name = service
username = sahara
password = SAHARA_PASS
interface = internalURL
region_name = RegionOne

After installing the Sahara dashboard i've found this guide on lauching the instances http://docs.openstack.org/developer/s.... Image registration, and template creation for node groups and cluster went fine according to this guide, both using cli and dashboard. But when i tried launching the cluster i've received an Internal Server Error. The entire sahara-api.log linked to the test cluster launch is here http://pastebin.com/HXqh19Yz The last calls and error were logged as follows:

2016-08-15 14:54:39.289 15505 DEBUG oslo_concurrency.processutils [req-5b0c746d-292b-454f-a27d-64f1740ca179 8171a23579674bc7a39dcee9e31645dc e9dc5711894649c7ac90a7300312257e - - -] Running cmd (subprocess): ssh-keygen -q -N  -t rsa -f /tmp/tmpZ5nLbF/tempkey -C Generated-by-Sahara -b 2048 execute /usr/lib/python2.7/dist-packages/oslo_concurrency/processutils.py:344
2016-08-15 14:54:39.693 15505 DEBUG oslo_concurrency.processutils [req-5b0c746d-292b-454f-a27d-64f1740ca179 8171a23579674bc7a39dcee9e31645dc e9dc5711894649c7ac90a7300312257e - - -] CMD "ssh-keygen -q -N  -t rsa -f /tmp/tmpZ5nLbF/tempkey -C Generated-by-Sahara -b 2048" returned: 0 in 0.404s execute /usr/lib/python2.7/dist-packages/oslo_concurrency/processutils.py:374
2016-08-15 14:54:40.169 15505 ERROR sahara.utils.api [req-5b0c746d-292b-454f-a27d-64f1740ca179 8171a23579674bc7a39dcee9e31645dc e9dc5711894649c7ac90a7300312257e - - -] Request aborted with status code 500 and message 'Internal Server Error'
2016-08-15 14:54:40.170 15505 ERROR sahara.utils.api [req-5b0c746d-292b-454f-a27d-64f1740ca179 8171a23579674bc7a39dcee9e31645dc e9dc5711894649c7ac90a7300312257e - - -] Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/sahara/utils/api.py", line 97, in handler
    return func(**kwargs)
  File "/usr/lib/python2.7/dist-packages/sahara/api/acl.py", line 43, in handler
    return func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/sahara/service/validation.py", line 62, in handler
    return func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/sahara/api/v10.py", line 52, in clusters_create
    return u.render(api.create_cluster(data).to_wrapped_dict())
  File "/usr/lib/python2.7/dist-packages/sahara/service/api.py", line 105, in create_cluster
    return _cluster_create(values, plugin)
  File "/usr/lib/python2.7/dist-packages/sahara/service/api.py", line 129, in _cluster_create ...
(more)
edit retag flag offensive close merge delete