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/pecan.py", line 84, in callfunction
    result = f(self, *args, **kwargs)

  File "/usr/lib/python2.7/site-packages/magnum/api/controllers/v1/cluster_template.py", line 324, in get_one
    action='clustertemplate:get')

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

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

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

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

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

  File "/usr/lib/python2.7/site-packages/oslo_versionedobjects/base.py", 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:

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

[api]
port = 9511
host = 0.0.0.0

[barbican_client]
region_name = RegionOne
endpoint_type = publicURL

[certificates]
cert_manager_type = barbican

[cinder_client]
[cluster]
[cluster_heat]
[cluster_template]
[conductor]
[cors]
[cors.subdomain]
[database]
mysql_engine = InnoDB
backend = sqlalchemy
connection = mysql+pymysql://magnum:mypassword@controller/magnum

[docker]
[docker_registry]
[glance_client]
[heat_client]
[keystone_auth]
[keystone_authtoken]
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

[magnum_client]
[matchmaker_redis]
[neutron_client]
[nova_client]
[oslo_concurrency]
lock_path = /var/lib/magnum/tmp

[oslo_messaging_amqp]
[oslo_messaging_kafka]
[oslo_messaging_notifications]
driver = messaging

[oslo_messaging_rabbit]
[oslo_messaging_zmq]
[oslo_policy]
[profiler]
[quotas]
[trust]
trustee_domain_name = magnum
trustee_domain_admin_name = magnum_domain_admin
trustee_domain_admin_password = mypassword
trustee_keystone_interface = public

[x509]