Merge "Volume transfers: Remove duplicate policy check" into stable/xena
This commit is contained in:
commit
1ae6f73234
|
@ -51,7 +51,6 @@ from cinder.policies import snapshot_metadata as s_meta_policy
|
|||
from cinder.policies import snapshots as snapshot_policy
|
||||
from cinder.policies import volume_actions as vol_action_policy
|
||||
from cinder.policies import volume_metadata as vol_meta_policy
|
||||
from cinder.policies import volume_transfer as vol_transfer_policy
|
||||
from cinder.policies import volumes as vol_policy
|
||||
from cinder import quota
|
||||
from cinder import quota_utils
|
||||
|
@ -830,8 +829,6 @@ class API(base.Base):
|
|||
|
||||
def accept_transfer(self, context, volume, new_user, new_project,
|
||||
no_snapshots=False):
|
||||
context.authorize(vol_transfer_policy.ACCEPT_POLICY,
|
||||
target_obj=volume)
|
||||
if volume['status'] == 'maintenance':
|
||||
LOG.info('Unable to accept transfer for volume, '
|
||||
'because it is in maintenance.', resource=volume)
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
fixes:
|
||||
- |
|
||||
`Bug #1950474 <https://bugs.launchpad.net/cinder/+bug/1950474>`_: Fixed
|
||||
policy authorization for transfer accept API. Previously, setting
|
||||
``enforce_new_defaults=True`` in oslo_policy section would break the
|
||||
transfer accept API which is fixed in this release.
|
Loading…
Reference in New Issue