Ask Your Question

'ClusterTemplate' object has no attribute 'trustee_domain_id'

asked 2017-05-29 03:27:19 -0500

CK Lai gravatar image

Hi Magnum Expert, I'm currently installing magnum service in Centos 7 by following (this guide). I'm able to create cluster template but unable to create a cluster by using the template. The command returns error:

[root@controller ~]# magnum cluster-create --name k8s-cluster \
>                       --cluster-template 47c553d6-3eb5-4544-969c-b3696cc14bc1 \
>                       --master-count 1 \
>                       --node-count 1
ERROR: 'ClusterTemplate' object has no attribute 'trustee_domain_id' (HTTP 500) (Request-ID: req-f9adc02b-b458-4ae0-9a2e-e16d642a0487)

The following is error found in magnum-api.log

2017-05-29 09:18:23.050 14909 ERROR wsme.api [req-65388ab3-f65d-43b8-918c-3fb307dbaf8a 4e1e34768c6f46bd8f7fffd6fed4a210 c0cfa45e50364ccab8783eea86b8bee0 default - -] Server-side error: "'ClusterTemplate' object has no attribute 'trustee_domain_id'". Detail:
Traceback (most recent call last):

  File "/usr/lib/python2.7/site-packages/wsmeext/", line 84, in callfunction
    result = f(self, *args, **kwargs)

  File "/usr/lib/python2.7/site-packages/magnum/api/controllers/v1/", line 324, in get_one

  File "/usr/lib/python2.7/site-packages/magnum/common/", line 96, in enforce
    do_raise=do_raise, exc=exc, *args, **kwargs)

  File "/usr/lib/python2.7/site-packages/oslo_policy/", line 724, in enforce
    result = self.rules[rule](target, creds, self)

  File "/usr/lib/python2.7/site-packages/oslo_policy/", line 204, in __call__
    return enforcer.rules[self.match](target, creds, enforcer)

  File "/usr/lib/python2.7/site-packages/oslo_policy/", line 106, in __call__
    return not self.rule(target, cred, enforcer)

  File "/usr/lib/python2.7/site-packages/oslo_policy/", line 297, in __call__
    match = self.match % target

  File "/usr/lib/python2.7/site-packages/oslo_versionedobjects/", line 759, in __getitem__
    return getattr(self, name)

AttributeError: 'ClusterTemplate' object has no attribute 'trustee_domain_id'

The same error occurred when I was trying to delete the cluster template. Here's my magnum.conf:

state_path = /var/lib/magnum
debug = true
log_dir = /var/log/magnum
transport_url = rabbit://openstack:mypassword@controller

port = 9511
host =

region_name = RegionOne
endpoint_type = publicURL

cert_manager_type = barbican

mysql_engine = InnoDB
backend = sqlalchemy
connection = mysql+pymysql://magnum:mypassword@controller/magnum

memcached_servers = controller:11211
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

lock_path = /var/lib/magnum/tmp

driver = messaging

trustee_domain_name = magnum
trustee_domain_admin_name = magnum_domain_admin
trustee_domain_admin_password = mypassword
trustee_keystone_interface = public

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2017-05-30 00:31:55 -0500

CK Lai gravatar image

My mistake during the reinstallation. Old version of policy.json was being used. The issue is fixed after using the correct version of policy.json.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2017-05-29 03:27:19 -0500

Seen: 107 times

Last updated: May 30 '17