Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

'ClusterTemplate' object has no attribute 'trustee_domain_id'

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