Unable to use magnum cluster-create

asked 2018-10-15 08:11:44 -0600

mike11 gravatar image

updated 2018-10-15 08:39:45 -0600

Hi Stackers, Following the procedure to use containers in Openstack with Magnum, i get stuck in the step of creating the cluster. it seems like have some issue with the certificates or rabbit. here is part of the magnum-conductor log. Every-time i use cluster-create i get CREATE_FAILED . image description


my config file is:

[DEFAULT]

#
# From magnum
#
pybasedir = /usr/lib/python2.7/dist-packages/magnum
bindir = /usr/bin
state_path = /var/lib/magnum
# Path to the rootwrap configuration file to use for running commands
# as root. (string value)
#rootwrap_config = /etc/magnum/rootwrap.conf

debug = true

verbose = true

publish_errors = true

#
# From oslo.messaging
#


transport_url = rabbit://openstack:mypassword@controller
rpc_backend = rabbit

#
# From oslo.service.periodic_task
#

#
# From oslo.service.service
#

[api]

#
# From magnum
#



# The listen IP for the Magnum API server. (IP address value)
host = 0.0.0.0

[barbican_client]

#
# From magnum
#


[certificates]

#
# From magnum
#

cert_manager_type = local



[cinder_client]

#
# From magnum
#

[cluster]

#
# From magnum
#


[cluster_heat]

#
# From magnum
#

[cluster_template]

#
# From magnum
#

[conductor]

#
# From magnum
#


[cors]

#
# From oslo.middleware.cors
#

allowed_origin = controller 


[cors.subdomain]

#
# From oslo.middleware.cors
#

[database]

#
# From magnum
#

#
# From oslo.db
#

connection = mysql+pymysql://magnum:mypassword@controller/magnum

[docker]

#
# From magnum
#

[docker_registry]

#
# From magnum
#

[glance_client]

#
# From magnum
#



[keystone_auth]

#
# From magnum
#

[keystone_authtoken]

#
# From keystonemiddleware.auth_token
#

auth_url = http://controller:35357
memcached_server = controller:11211
auth_type = password
project_domain_name = Default
user_domain_name = Default
project_name = service
username = magnum
password = mypassword

auth_version = v3
auth_uri = http://controller:5000/v3
project_domain_id = default
project_name = service
user_domain_id = default
password = mypassword
username = magnum
auth_url = http://controller:35357
auth_type = password
admin_user = magnum
admin_password = mypassword
admin_tenant_name = service

region_name = RegionOne

memcached_servers = controller:11211

auth_protocol = http

identity_uri = https://localhost:35357/


admin_user = magnum

admin_password = mypassword

admin_tenant_name = magnum


[magnum_client]

#
# From magnum
#

[matchmaker_redis]

#
# From oslo.messaging
#

[neutron_client]

#
# From magnum
#


[oslo_concurrency]

#
# From oslo.concurrency
#

lock_path = /var/lock/magnum


[oslo_messaging_amqp]

#
# From oslo.messaging
#

trace = true

username = magnum 

password = mypassword

[oslo_messaging_notifications]

#
# From oslo.messaging
#

driver = messaging

[oslo_messaging_rabbit]

#
# From oslo.messaging
#

rabbit_host = controller

rabbit_userid = openstack

rabbit_password = mypassword


[oslo_messaging_zmq]

#
# From oslo.messaging
#

[oslo_policy]

#
# From oslo.policy
#
[trust]
#
# From magnum
#
trustee_domain_name = magnum
trustee_domain_admin_name = magnum_domain_admin
trustee_domain_admin_password = mypassword
trustee_keystone_interface = KEYSTONE_INTERFACE

[x509]

#
# From magnum
#

The logs from magnum-conductor are:

DEBUG magnum.conductor.handlers.common.cert_manager [req-73 admin admin - - -] CA cert is created: 3d4d6f9
DEBUG magnum.conductor.handlers.common.cert_manager [req-73 admin admin - - -] Magnum client cert is created: fbf7

ERROR oslo_messaging.rpc.server [req-73 admin admin - - -] Exception during message handling
ERROR oslo_messaging.rpc.server   File "/...dispatcher.py", line 121, in _do_dispatch
ERROR oslo_messaging.rpc.server     result = func(ctxt, **new_args)
ERROR oslo_messaging.rpc.server   File "/usr...handlers/cluster_conductor.py", line 165, in cluster_create
ERROR oslo_messaging.rpc.server     create_timeout)
ERROR oslo_messaging.rpc.server   File "/usr/.../cluster_conductor.py", line 97, in _create_stack
ERROR oslo_messaging.rpc.server     _extract_template_definition(context, cluster))
ERROR oslo_messaging.rpc.server   File "/usr/.../cluster_conductor.py", line 82, in _extract_template_definition
ERROR oslo_messaging.rpc.server     scale_manager=scale_manager)
ERROR oslo_messaging.rpc.server   File "/usr/.../template_def.py", line 337, in extract_definition
ERROR oslo_messaging.rpc.server     self.get_params(context, cluster_template, cluster, **kwargs),
ERROR oslo_messaging.rpc.server   File "/usr/.../swarm_fedora_atomic_v1/template_def.py", line 95, in get_params
ERROR oslo_messaging.rpc.server     extra_params['discovery_url'] = self.get_discovery_url(cluster)
ERROR oslo_messaging.rpc.server   File "/usr/...on/template_def.py", line ...
(more)
edit retag flag offensive close merge delete