Container Infrastructure Management Service for OpenStack
Go to file
Mark Goddard f1326626b9 Pass a mutable target to oslo policy enforcer
Magnum API previously passed magnum.objects.cluster.Cluster objects as
the target argument to magnum.common.policy.enforce(). However, enforce()
expects target to be a mutable mapping, as it adds an entry for
trustee_domain_id which is used by the magnum policy.json. This causes
cluster detailed GET requests to fail with the following message:

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

This change uses the as_dict() method of the magnum RPC objects to
provide a mutable mapping to the policy enforcer.

Change-Id: I54b136243afff9e0fadae3be4b36cad1679e5721
Closes-Bug: #1689797
2017-05-10 17:47:38 +01:00
api-ref/source Merge "Remove support message for using keypair UUID" 2017-03-22 07:56:48 +00:00
contrib [suse] Remove defaults network from child templates 2017-04-27 05:36:52 +00:00
devstack Enable custom keystone endpoint_type in templates 2017-05-01 18:15:58 +02:00
doc Fix usage of the trustee user in K8S Cinder plugin 2017-04-07 14:15:52 +02:00
etc/magnum Set clustertemplate:publish to admin only 2017-05-04 12:16:47 +00:00
install-guide/source Merge "Enable custom keystone endpoint_type in templates" 2017-05-10 16:40:04 +00:00
magnum Pass a mutable target to oslo policy enforcer 2017-05-10 17:47:38 +01:00
releasenotes Add reno for cluster_user_trust option 2017-03-29 15:18:00 +00:00
specs Fix some grammar or spelling de-normalization 2017-03-17 17:38:51 +08:00
tools Move cover.sh to the tools directory 2017-03-20 19:55:05 +08:00
.coveragerc Cleanup coverage configuration 2016-08-28 21:11:07 +01:00
.gitignore Compare test coverage with the master branch 2016-08-29 14:28:59 +02:00
.gitreview Update .gitreview for project rename 2015-03-28 00:20:40 +00:00
.mailmap Initial commit from github (squashed) 2014-11-18 09:23:37 -05:00
.testr.conf Remove minion dependency on master 2016-03-04 07:41:12 -05:00
babel.cfg Initial commit from github (squashed) 2014-11-18 09:23:37 -05:00
CONTRIBUTING.rst Workflow documentation is now in infra-manual 2014-12-05 03:30:45 +00:00
functional_creds.conf.sample Use keystone v3 for functional tests 2016-12-05 15:21:09 +01:00
HACKING.rst Add hacking rule for explicit import of _ function 2016-07-29 23:17:06 +05:30
LICENSE Initial commit from github (squashed) 2014-11-18 09:23:37 -05:00
README.rst Show team and repo badges on README 2016-11-25 12:41:41 +01:00
requirements.txt Updated from global requirements 2017-05-04 13:23:21 +00:00
setup.cfg Remove support for py34 2017-02-08 10:03:14 +07:00
setup.py Updated from global requirements 2017-03-07 01:58:36 +00:00
test-requirements.txt Updated from global requirements 2017-05-04 13:23:21 +00:00
tox.ini Add 'rm -f .testrepository/times.dbm' command in testenv 2017-04-03 10:14:27 +00:00

Team and repository tags

image

Magnum

Magnum is an OpenStack project which offers container orchestration engines for deploying and managing containers as first class resources in OpenStack.

For more information, please refer to the following resources: