Ask Your Question
0

'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 https://docs.openstack.org/project-install-guide/container-infrastructure-management/ocata/ (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]
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

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

Seen: 51 times

Last updated: May 30 '17