Logging was enabled while it shouldn't (probably a miss) and
config options were not updated correctly as CONF is a global object.
Closes-Bug: #1290365
Change-Id: I7293e943d15e6f908248b0573f1c9a1914235f04
openstack.common was updated with the latest oslo-incubator changes.
rpc and notif were manually removed. DB layer was modified to adapt
to the changes done in Oslo. '# noqa' was also removed from imports.
Also after new release of oslo.messaging appeared, we also needed
to update openstack.common to make Climate work with oslo.
Change-Id: I1b5ce64f8d4906d1fcfea9379d115b7bb2ec3f7b
Closes-Bug: #1237896
Closes-Bug: #1284749
Partial-bug: #1253497
Co-Authored-By: Pablo Fernando Cargnelutti <pablo.fernando.cargnelutti@intel.com>
Co-Authored-By: Dina Belova <dbelova@mirantis.com>
Implements policies in Climate with unittests based on Oslo.
Tight integration with Context as it will populate to Context
if user is admin or not based on policy.json
In order to make that work, please add policy.json to /etc/climate
Decorator @policy.authorize allows enforcing policy checks on
controllers.
Implements bp:climate-policy
Change-Id: I94e8fa142e5c5d830b0bea9278e5a47f9904db4c
- context data is stored in a dictionary now, so any key is allowed;
- list of allowed key for certain context is stored in special class
variable;
- methods "current" and "elevated" of ClimateContext class are
accessible from module level;
- moved to usage of threading.local instead of emulating one in code (as
long as we use eventlet's monkey-patching, it's specific local() will
be used).
Change-Id: I3c79c9cd0d16dfb5c61208f2aa71b5c59f3f40f3