Field 'domain_id' doesn't have a default value at create a swarm cluster

Bug #1703367 reported by de1m
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Magnum
New
Undecided
Unassigned

Bug Description

I've installed the newton version and if I'll create a swarm cluster I get following error:

#############magnum-conductor.log ################################
2017-07-10 15:06:30.119 24059 ERROR magnum.common.keystone [req-3c5fe01d-6d04-47a9-b51a-ee39bc3655a8 admin admin - - -] Failed to create trustee
2017-07-10 15:06:30.119 24059 ERROR magnum.common.keystone Traceback (most recent call last):
2017-07-10 15:06:30.119 24059 ERROR magnum.common.keystone File "/usr/lib/python2.7/dist-packages/magnum/common/keystone.py", line 296, in create_trustee
2017-07-10 15:06:30.119 24059 ERROR magnum.common.keystone domain=domain_id)
2017-07-10 15:06:30.119 24059 ERROR magnum.common.keystone File "/usr/lib/python2.7/dist-packages/debtcollector/renames.py", line 45, in wrapper
2017-07-10 15:06:30.119 24059 ERROR magnum.common.keystone return f(*args, **kwargs)
2017-07-10 15:06:30.119 24059 ERROR magnum.common.keystone File "/usr/lib/python2.7/dist-packages/positional/__init__.py", line 101, in inner
2017-07-10 15:06:30.119 24059 ERROR magnum.common.keystone return wrapped(*args, **kwargs)
2017-07-10 15:06:30.119 24059 ERROR magnum.common.keystone File "/usr/lib/python2.7/dist-packages/keystoneclient/v3/users.py", line 95, in create
2017-07-10 15:06:30.119 24059 ERROR magnum.common.keystone log=not bool(password))
2017-07-10 15:06:30.119 24059 ERROR magnum.common.keystone File "/usr/lib/python2.7/dist-packages/keystoneclient/base.py", line 173, in _post
2017-07-10 15:06:30.119 24059 ERROR magnum.common.keystone resp, body = self.client.post(url, body=body, **kwargs)
2017-07-10 15:06:30.119 24059 ERROR magnum.common.keystone File "/usr/lib/python2.7/dist-packages/keystoneauth1/adapter.py", line 193, in post
2017-07-10 15:06:30.119 24059 ERROR magnum.common.keystone return self.request(url, 'POST', **kwargs)
2017-07-10 15:06:30.119 24059 ERROR magnum.common.keystone File "/usr/lib/python2.7/dist-packages/keystoneauth1/adapter.py", line 344, in request
2017-07-10 15:06:30.119 24059 ERROR magnum.common.keystone resp = super(LegacyJsonAdapter, self).request(*args, **kwargs)
2017-07-10 15:06:30.119 24059 ERROR magnum.common.keystone File "/usr/lib/python2.7/dist-packages/keystoneauth1/adapter.py", line 112, in request
2017-07-10 15:06:30.119 24059 ERROR magnum.common.keystone return self.session.request(url, method, **kwargs)
2017-07-10 15:06:30.119 24059 ERROR magnum.common.keystone File "/usr/lib/python2.7/dist-packages/positional/__init__.py", line 101, in inner
2017-07-10 15:06:30.119 24059 ERROR magnum.common.keystone return wrapped(*args, **kwargs)
2017-07-10 15:06:30.119 24059 ERROR magnum.common.keystone File "/usr/lib/python2.7/dist-packages/keystoneauth1/session.py", line 570, in request
2017-07-10 15:06:30.119 24059 ERROR magnum.common.keystone raise exceptions.from_response(resp, method, url)
2017-07-10 15:06:30.119 24059 ERROR magnum.common.keystone InternalServerError: An unexpected error prevented the server from fulfilling your request. (HTTP 500) (Request-ID: req-1abef7c4-a684-48d1-8a86-1e30dbaaf1d7)
2017-07-10 15:06:30.119 24059 ERROR magnum.common.keystone
2017-07-10 15:06:30.121 24059 ERROR magnum.conductor.handlers.common.trust_manager [req-3c5fe01d-6d04-47a9-b51a-ee39bc3655a8 admin admin - - -] Failed to create trustee and trust for Cluster: 1f11c6ec-f5d0-4d18-a028-f0cdd541592f
2017-07-10 15:06:30.121 24059 ERROR magnum.conductor.handlers.common.trust_manager Traceback (most recent call last):
2017-07-10 15:06:30.121 24059 ERROR magnum.conductor.handlers.common.trust_manager File "/usr/lib/python2.7/dist-packages/magnum/conductor/handlers/common/trust_manager.py", line 27, in create_trustee_and_trust
2017-07-10 15:06:30.121 24059 ERROR magnum.conductor.handlers.common.trust_manager password,
2017-07-10 15:06:30.121 24059 ERROR magnum.conductor.handlers.common.trust_manager File "/usr/lib/python2.7/dist-packages/magnum/common/keystone.py", line 300, in create_trustee
2017-07-10 15:06:30.121 24059 ERROR magnum.conductor.handlers.common.trust_manager domain_id=domain_id)
2017-07-10 15:06:30.121 24059 ERROR magnum.conductor.handlers.common.trust_manager TrusteeCreateFailed: Failed to create trustee 1f11c6ec-f5d0-4d18-a028-f0cdd541592f in domain 8e453feedfaf46ada4047b07e1fdd78b
2017-07-10 15:06:30.121 24059 ERROR magnum.conductor.handlers.common.trust_manager
2017-07-10 15:06:30.198 24059 ERROR oslo_messaging.rpc.server [req-3c5fe01d-6d04-47a9-b51a-ee39bc3655a8 admin admin - - -] Exception during message handling
2017-07-10 15:06:30.198 24059 ERROR oslo_messaging.rpc.server Traceback (most recent call last):
2017-07-10 15:06:30.198 24059 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/dist-packages/oslo_messaging/rpc/server.py", line 133, in _process_incoming
2017-07-10 15:06:30.198 24059 ERROR oslo_messaging.rpc.server res = self.dispatcher.dispatch(message)
2017-07-10 15:06:30.198 24059 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 150, in dispatch
2017-07-10 15:06:30.198 24059 ERROR oslo_messaging.rpc.server return self._do_dispatch(endpoint, method, ctxt, args)
2017-07-10 15:06:30.198 24059 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 121, in _do_dispatch
2017-07-10 15:06:30.198 24059 ERROR oslo_messaging.rpc.server result = func(ctxt, **new_args)
2017-07-10 15:06:30.198 24059 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/dist-packages/magnum/conductor/handlers/cluster_conductor.py", line 158, in cluster_create
2017-07-10 15:06:30.198 24059 ERROR oslo_messaging.rpc.server trust_manager.create_trustee_and_trust(osc, cluster)
2017-07-10 15:06:30.198 24059 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/dist-packages/magnum/conductor/handlers/common/trust_manager.py", line 39, in create_trustee_and_trust
2017-07-10 15:06:30.198 24059 ERROR oslo_messaging.rpc.server cluster_uuid=cluster.uuid)
2017-07-10 15:06:30.198 24059 ERROR oslo_messaging.rpc.server TrusteeOrTrustToClusterFailed: Failed to create trustee or trust for Cluster: 1f11c6ec-f5d0-4d18-a028-f0cdd541592f
2017-07-10 15:06:30.198 24059 ERROR oslo_messaging.rpc.server

##############keystone.log#####################
/var/log/apache2/keystone.log:2017-07-10 15:06:51.293223 2017-07-10 15:06:51.292 3869 INFO keystone.common.wsgi [req-1abef7c4-a684-48d1-8a86-1e30dbaaf1d7 389950e8394c428f9d6832a60c8700ee - 8e453feedfaf46ada4047b07e1fdd78b 8e453feedfaf46ada4047b07e1fdd78b -] POST http://192.168.40.130:5000/v3/users
/var/log/apache2/keystone.log:2017-07-10 15:06:51.328945 2017-07-10 15:06:51.323 3869 ERROR oslo_db.sqlalchemy.exc_filters [req-1abef7c4-a684-48d1-8a86-1e30dbaaf1d7 389950e8394c428f9d6832a60c8700ee - 8e453feedfaf46ada4047b07e1fdd78b 8e453feedfaf46ada4047b07e1fdd78b -] DBAPIError exception wrapped from (pymysql.err.InternalError) (1364, u"Field 'domain_id' doesn't have a default value") [SQL: u'INSERT INTO user (id, enabled, extra, default_project_id, created_at, last_active_at) VALUES (%(id)s, %(enabled)s, %(extra)s, %(default_project_id)s, %(created_at)s, %(last_active_at)s)'] [parameters: {'last_active_at': None, 'extra': '{}', 'created_at': datetime.datetime(2017, 7, 10, 13, 6, 51, 314574), 'enabled': 1, 'default_project_id': None, 'id': '0d9e5f64d10a49069cb8ad92be036b0a'}]
/var/log/apache2/keystone.log:2017-07-10 15:06:51.334722 2017-07-10 15:06:51.330 3869 ERROR keystone.common.wsgi [req-1abef7c4-a684-48d1-8a86-1e30dbaaf1d7 389950e8394c428f9d6832a60c8700ee - 8e453feedfaf46ada4047b07e1fdd78b 8e453feedfaf46ada4047b07e1fdd78b -] (pymysql.err.InternalError) (1364, u"Field 'domain_id' doesn't have a default value") [SQL: u'INSERT INTO user (id, enabled, extra, default_project_id, created_at, last_active_at) VALUES (%(id)s, %(enabled)s, %(extra)s, %(default_project_id)s, %(created_at)s, %(last_active_at)s)'] [parameters: {'last_active_at': None, 'extra': '{}', 'created_at': datetime.datetime(2017, 7, 10, 13, 6, 51, 314574), 'enabled': 1, 'default_project_id': None, 'id': '0d9e5f64d10a49069cb8ad92be036b0a'}]
/var/log/keystone/keystone-wsgi-public.log:2017-07-10 15:06:51.292 3869 INFO keystone.common.wsgi [req-1abef7c4-a684-48d1-8a86-1e30dbaaf1d7 389950e8394c428f9d6832a60c8700ee - 8e453feedfaf46ada4047b07e1fdd78b 8e453feedfaf46ada4047b07e1fdd78b -] POST http://192.168.40.130:5000/v3/users
/var/log/keystone/keystone-wsgi-public.log:2017-07-10 15:06:51.323 3869 ERROR oslo_db.sqlalchemy.exc_filters [req-1abef7c4-a684-48d1-8a86-1e30dbaaf1d7 389950e8394c428f9d6832a60c8700ee - 8e453feedfaf46ada4047b07e1fdd78b 8e453feedfaf46ada4047b07e1fdd78b -] DBAPIError exception wrapped from (pymysql.err.InternalError) (1364, u"Field 'domain_id' doesn't have a default value") [SQL: u'INSERT INTO user (id, enabled, extra, default_project_id, created_at, last_active_at) VALUES (%(id)s, %(enabled)s, %(extra)s, %(default_project_id)s, %(created_at)s, %(last_active_at)s)'] [parameters: {'last_active_at': None, 'extra': '{}', 'created_at': datetime.datetime(2017, 7, 10, 13, 6, 51, 314574), 'enabled': 1, 'default_project_id': None, 'id': '0d9e5f64d10a49069cb8ad92be036b0a'}]
/var/log/keystone/keystone-wsgi-public.log:2017-07-10 15:06:51.330 3869 ERROR keystone.common.wsgi [req-1abef7c4-a684-48d1-8a86-1e30dbaaf1d7 389950e8394c428f9d6832a60c8700ee - 8e453feedfaf46ada4047b07e1fdd78b 8e453feedfaf46ada4047b07e1fdd78b -] (pymysql.err.InternalError) (1364, u"Field 'domain_id' doesn't have a default value") [SQL: u'INSERT INTO user (id, enabled, extra, default_project_id, created_at, last_active_at) VALUES (%(id)s, %(enabled)s, %(extra)s, %(default_project_id)s, %(created_at)s, %(last_active_at)s)'] [parameters: {'last_active_at': None, 'extra': '{}', 'created_at': datetime.datetime(2017, 7, 10, 13, 6, 51, 314574), 'enabled': 1, 'default_project_id': None, 'id': '0d9e5f64d10a49069cb8ad92be036b0a'}]

Can someone help me?!

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.