Unable to create bay for swarn bay model. I have enabled heat, lbaas and made sure the certificates to be taken care by local
magnum.conf:
[certificates]
cert_manager_type = local
[DEFAULT]
rpc_backend = rabbit
notification_driver = messaging
log_dir=/var/log/magnum
[api]
host = <IP>
[database]
connection=mysql://magnum:cloud123@<IP>/magnum
[keystone_authtoken]
auth_uri=http://<IP>:5000/v2.0
identity_uri=http://<IP>:35357
auth_strategy=keystone
admin_user=magnum
admin_password=cloud123
admin_tenant_name=service
[oslo_messaging_rabbit]
rabbit_host = <IP>
rabbit_userid = openstack
rabbit_password = cloud123
rabbit_virtual_host = /
I have installed this manually by using ubuntu mitaka repository.
Below is the stack trace of the error in mangum-conductor log
2016-04-26 12:10:46.056 19391 ERROR magnum.common.keystone [req-6ce9a0e2-f0d7-479f-a9b1-3cea3f020ce6 admin admin - - -] Failed to create trustee
2016-04-26 12:10:46.056 19391 ERROR magnum.common.keystone Traceback (most recent call last):
2016-04-26 12:10:46.056 19391 ERROR magnum.common.keystone File "/usr/lib/python2.7/dist-packages/magnum/common/keystone.py", line 184, in create_trustee
2016-04-26 12:10:46.056 19391 ERROR magnum.common.keystone domain=domain_id)
2016-04-26 12:10:46.056 19391 ERROR magnum.common.keystone File "/usr/lib/python2.7/dist-packages/debtcollector/renames.py", line 45, in wrapper
2016-04-26 12:10:46.056 19391 ERROR magnum.common.keystone return f(*args, **kwargs)
2016-04-26 12:10:46.056 19391 ERROR magnum.common.keystone File "/usr/lib/python2.7/dist-packages/positional/__init__.py", line 94, in inner
2016-04-26 12:10:46.056 19391 ERROR magnum.common.keystone return func(*args, **kwargs)
2016-04-26 12:10:46.056 19391 ERROR magnum.common.keystone File "/usr/lib/python2.7/dist-packages/keystoneclient/v3/users.py", line 77, in create
2016-04-26 12:10:46.056 19391 ERROR magnum.common.keystone log=not bool(password))
2016-04-26 12:10:46.056 19391 ERROR magnum.common.keystone File "/usr/lib/python2.7/dist-packages/keystoneclient/base.py", line 171, in _post
2016-04-26 12:10:46.056 19391 ERROR magnum.common.keystone resp, body = self.client.post(url, body=body, **kwargs)
2016-04-26 12:10:46.056 19391 ERROR magnum.common.keystone File "/usr/lib/python2.7/dist-packages/keystoneauth1/adapter.py", line 179, in post
2016-04-26 12:10:46.056 19391 ERROR magnum.common.keystone return self.request(url, 'POST', **kwargs)
2016-04-26 12:10:46.056 19391 ERROR magnum.common.keystone File "/usr/lib/python2.7/dist-packages/keystoneauth1/adapter.py", line 331, in request
2016-04-26 12:10:46.056 19391 ERROR magnum.common.keystone resp = super(LegacyJsonAdapter, self).request(*args, **kwargs)
2016-04-26 12:10:46.056 19391 ERROR magnum.common.keystone File "/usr/lib/python2.7/dist-packages/keystoneauth1/adapter.py", line 98, in request
2016-04-26 12:10:46.056 19391 ERROR magnum.common.keystone return self.session.request(url, method, **kwargs)
2016-04-26 12:10:46.056 19391 ERROR magnum.common.keystone File "/usr/lib/python2.7/dist-packages/positional/__init__.py", line 94, in inner
2016-04-26 12:10:46.056 19391 ERROR magnum.common.keystone return func(*args, **kwargs)
2016-04-26 12:10:46.056 19391 ERROR magnum.common.keystone File "/usr/lib/python2.7/dist-packages/keystoneclient/session.py", line 320, in request
2016-04-26 12:10:46.056 19391 ERROR magnum.common.keystone auth_headers = self.get_auth_headers(auth)
2016-04-26 12:10:46.056 19391 ERROR magnum.common.keystone File "/usr/lib/python2.7/dist-packages/keystoneclient/session.py", line 638, in get_auth_headers
2016-04-26 12:10:46.056 19391 ERROR magnum.common.keystone return auth.get_headers(self, **kwargs)
2016-04-26 12:10:46.056 19391 ERROR magnum.common.keystone File "/usr/lib/python2.7/dist-packages/keystoneclient/auth/base.py", line 159, in get_headers
2016-04-26 12:10:46.056 19391 ERROR magnum.common.keystone token = self.get_token(session)
2016-04-26 12:10:46.056 19391 ERROR magnum.common.keystone File "/usr/lib/python2.7/dist-packages/keystoneclient/auth/identity/base.py", line 216, in get_token
2016-04-26 12:10:46.056 19391 ERROR magnum.common.keystone return self.get_access(session).auth_token
2016-04-26 12:10:46.056 19391 ERROR magnum.common.keystone File "/usr/lib/python2.7/dist-packages/keystoneclient/auth/identity/base.py", line 262, in get_access
2016-04-26 12:10:46.056 19391 ERROR magnum.common.keystone self.auth_ref = self.get_auth_ref(session)
2016-04-26 12:10:46.056 19391 ERROR magnum.common.keystone File "/usr/lib/python2.7/dist-packages/keystoneclient/auth/identity/v3/base.py", line 190, in get_auth_ref
2016-04-26 12:10:46.056 19391 ERROR magnum.common.keystone authenticated=False, log=False, **rkwargs)
2016-04-26 12:10:46.056 19391 ERROR magnum.common.keystone File "/usr/lib/python2.7/dist-packages/keystoneclient/session.py", line 520, in post
2016-04-26 12:10:46.056 19391 ERROR magnum.common.keystone return self.request(url, 'POST', **kwargs)
2016-04-26 12:10:46.056 19391 ERROR magnum.common.keystone File "/usr/lib/python2.7/dist-packages/positional/__init__.py", line 94, in inner
2016-04-26 12:10:46.056 19391 ERROR magnum.common.keystone return func(*args, **kwargs)
2016-04-26 12:10:46.056 19391 ERROR magnum.common.keystone File "/usr/lib/python2.7/dist-packages/keystoneclient/session.py", line 420, in request
2016-04-26 12:10:46.056 19391 ERROR magnum.common.keystone raise exceptions.from_response(resp, method, url)
2016-04-26 12:10:46.056 19391 ERROR magnum.common.keystone NotFound: The resource could not be found. (HTTP 404)
2016-04-26 12:10:46.056 19391 ERROR magnum.common.keystone
2016-04-26 12:10:46.062 19391 ERROR oslo_messaging.rpc.dispatcher [req-6ce9a0e2-f0d7-479f-a9b1-3cea3f020ce6 admin admin - - -] Exception during message handling: Failed to create trustee 720d0137-3dc6-4c12-a323-bcfc924466a1 in domain 61a6f2b431c8475dbcc40e756cf3d8d6
2016-04-26 12:10:46.062 19391 ERROR oslo_messaging.rpc.dispatcher Traceback (most recent call last):
2016-04-26 12:10:46.062 19391 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 138, in _dispatch_and_reply
2016-04-26 12:10:46.062 19391 ERROR oslo_messaging.rpc.dispatcher incoming.message))
2016-04-26 12:10:46.062 19391 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 185, in _dispatch
2016-04-26 12:10:46.062 19391 ERROR oslo_messaging.rpc.dispatcher return self._do_dispatch(endpoint, method, ctxt, args)
2016-04-26 12:10:46.062 19391 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 127, in _do_dispatch
2016-04-26 12:10:46.062 19391 ERROR oslo_messaging.rpc.dispatcher result = func(ctxt, **new_args)
2016-04-26 12:10:46.062 19391 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/dist-packages/magnum/conductor/handlers/bay_conductor.py", line 143, in bay_create
2016-04-26 12:10:46.062 19391 ERROR oslo_messaging.rpc.dispatcher self._create_trustee_and_trust(osc, bay)
2016-04-26 12:10:46.062 19391 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/dist-packages/magnum/conductor/handlers/bay_conductor.py", line 128, in _create_trustee_and_trust
2016-04-26 12:10:46.062 19391 ERROR oslo_messaging.rpc.dispatcher CONF.trust.trustee_domain_id)
2016-04-26 12:10:46.062 19391 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/dist-packages/magnum/common/keystone.py", line 188, in create_trustee
2016-04-26 12:10:46.062 19391 ERROR oslo_messaging.rpc.dispatcher domain_id=domain_id)
2016-04-26 12:10:46.062 19391 ERROR oslo_messaging.rpc.dispatcher TrusteeCreateFailed: Failed to create trustee 720d0137-3dc6-4c12-a323-bcfc924466a1 in domain 61a6f2b431c8475dbcc40e756cf3d8d6
2016-04-26 12:10:46.062 19391 ERROR oslo_messaging.rpc.dispatcher
2016-04-26 12:10:46.071 19391 ERROR oslo_messaging._drivers.common [req-6ce9a0e2-f0d7-479f-a9b1-3cea3f020ce6 admin admin - - -] Returning exception Failed to create trustee 720d0137-3dc6-4c12-a323-bcfc924466a1 in domain 61a6f2b431c8475dbcc40e756cf3d8d6 to caller
Hi,
I have the same error on CentOS 7 and Mitaka release (fresh install on 05.05.2016 from official Centos repos):
controller:root:~> magnum bay-create --name swarmbay --baymodel swarmbaymodel --node-count 2 cb70-4b72- 9c13-1ffba08734 b8)
Create for bay swarmbay failed: Internal Server Error (HTTP 500) (Request-ID: req-08d3dc32-
In the logs I see:
2016-05-06 09:27:40.374 9803 ERROR wsme.api [req-f46cf3d5- a51c-4963- bad9-b541cee0db 9d admin openstack - - -] Server-side error: "Failed to create trustee 811b2d2b- cd37-4edc- 895f-a23d8b91d0 92 in domain a1059213d5b14ac 097aa70ef2bbabc b2
Traceback (most recent call last):
File "/usr/lib/ python2. 7/site- packages/ oslo_messaging/ rpc/dispatcher. py", line 138, in _dispatch_and_reply message) )
incoming.
File "/usr/lib/ python2. 7/site- packages/ oslo_messaging/ rpc/dispatcher. py", line 183, in _dispatch dispatch( endpoint, method, ctxt, args)
return self._do_
File "/usr/lib/ python2. 7/site- packages/ oslo_messaging/ rpc/dispatcher. py", line 127, in _do_dispatch
result = func(ctxt, **new_args)
File "/usr/lib/ python2. 7/site- packages/ magnum/ conductor/ handlers/ bay_conductor. py", line 143, in bay_create _create_ trustee_ and_trust( osc, bay)
self.
File "/usr/lib/ python2. 7/site- packages/ magnum/ conductor/ handlers/ bay_conductor. py", line 128, in _create_ trustee_ and_trust trust.trustee_ domain_ id)
CONF.
File "/usr/lib/ python2. 7/site- packages/ magnum/ common/ keystone. py", line 188, in create_trustee id=domain_ id)
domain_
TrusteeCreateFa iled: Failed to create trustee 811b2d2b- cd37-4edc- 895f-a23d8b91d0 92 in domain a1059213d5b14ac 097aa70ef2bbabc b2
". Detail:
Traceback (most recent call last):
File "/usr/lib/ python2. 7/site- packages/ wsmeext/ pecan.py" , line 84, in callfunction
result = f(self, *args, **kwargs)
File "/usr/lib/ python2. 7/site- packages/ magnum/ api/controllers /v1/bay. py", line 299, in post bay_create_ timeout)
bay.
File "/usr/lib/ python2. 7/site- packages/ magnum/ conductor/ api.py" , line 35, in bay_create create_ timeout= bay_create_ timeout)
bay_
File "/usr/lib/ python2. 7/site- packages/ magnum/ common/ rpc_service. py", line 110, in _call call(self. _context, method, *args, **kwargs)
return self._client.
File "/usr/lib/ python2. 7/site- packages/ oslo_messaging/ rpc/client. py", line 413, in call ).call( ctxt, method, **kwargs)
return self.prepare(
File "/usr/lib/ python2. 7/site- packages/ oslo_messaging/ rpc/client. py", line 158, in call self.retry)
retry=
File "/usr/lib/ python2. 7/site- packages/ oslo_messaging/ transport. py", line 90, in _send timeout, retry=retry)
timeout=
File "/usr/lib/ python2. 7/site- packages/ oslo_messaging/ _drivers/ amqpdriver. py", line 470, in send
retry=retry)
File "/usr/lib/ python2. 7/site- packages/ oslo_messaging/ _drivers/ amqpdriver. py", line 461, in _send
raise result
TrusteeCreateFa iled_Remote: Failed to create trustee 811b2d2b- cd37-4edc- 895f-a23d8b91d0 92 in domain a1059213d5b14ac 097aa70ef2bbabc b2
Traceback (most recent call last):
File "/usr/lib/ python2. 7/site- packages/ oslo_messaging/ rpc/dispatcher. py", line 138, in _dispatch_and_reply message) )
incoming.
File "/usr/lib/ python2. 7/site- packages/ oslo_messaging/ rpc/dispatcher. py...