Container Infrastructure Management Service for OpenStack
Go to file
Mark Goddard 3afe70ad80 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
(cherry picked from commit f1326626b9)
2017-06-15 10:03:24 +01:00
api-ref/source Add keypair to api-ref cluster create 2017-02-14 15:37:44 -07:00
contrib Merge "[suse] Update security group for kube_masters" 2017-02-07 23:49:52 +00:00
devstack Enable custom keystone endpoint_type in templates 2017-05-22 12:45:13 +02:00
doc Fix usage of the trustee user in K8S Cinder plugin 2017-05-09 17:48:59 +02:00
etc/magnum Set clustertemplate:publish to admin only 2017-05-04 22:14:46 +02:00
install-guide/source Enable custom keystone endpoint_type in templates 2017-05-22 12:45:13 +02:00
magnum Pass a mutable target to oslo policy enforcer 2017-06-15 10:03:24 +01:00
releasenotes Enable custom keystone endpoint_type in templates 2017-05-22 12:45:13 +02:00
specs Fix usage of the trustee user in K8S Cinder plugin 2017-05-09 17:48:59 +02:00
tools Improve tox.ini to easy developer's life 2015-11-03 17:44:38 +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 stable/ocata 2017-02-17 20:32:51 +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
CONTRIBUTING.rst Workflow documentation is now in infra-manual 2014-12-05 03:30:45 +00: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
babel.cfg Initial commit from github (squashed) 2014-11-18 09:23:37 -05:00
cover.sh Add bashate checks to pep8 step 2016-12-07 15:25:41 +01:00
functional_creds.conf.sample Use keystone v3 for functional tests 2016-12-05 15:21:09 +01:00
requirements.txt Switch to kubernetes upstream python client 2017-02-13 14:48:08 -05:00
setup.cfg Remove support for py34 2017-02-08 10:03:14 +07:00
setup.py Updated from global requirements 2015-09-17 12:12:49 +00:00
test-requirements.txt Updated from global requirements 2017-02-11 00:16:34 +00:00
tox.ini Update UPPER_CONSTRAINTS_FILE for stable/ocata 2017-02-17 20:32:52 +00:00

README.rst

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: