← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1539690] Re: volume:upload_to_image policy action does not match action in cinder and is missing from policy.json file

 

Correction the action    
"volume:upload_to_image": [],
was added in August 2014 and I was looking at the JUNO code base when reporting the issue.

I wll be closing the bug and resubmitting a blueprint to align the
horizon policy.json file with components for support issues

** Changed in: horizon
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1539690

Title:
  volume:upload_to_image policy action does not match action in cinder
  and is missing from policy.json file

Status in OpenStack Dashboard (Horizon):
  Invalid

Bug description:
  The policy.json file in https://github.com/openstack/horizon/blob/master/openstack_dashboard/conf/cinder_policy.json does not have action volume:upload_to_image.
  The horizon code uses that action.
  https://github.com/openstack/horizon/blob/master/openstack_dashboard/dashboards/project/volumes/volumes/tables.py
  about line 220 policy_rules = (("volume", "volume:upload_to_image"),)

  But the action is also not a valid action in Cinder. Cinder code uses policy action volume_action:upload_image, see https://github.com/openstack/cinder/blob/master/cinder/api/contrib/volume_actions.py 
  about line 35 action = 'volume_actions:%s' % action_name
  about line 272 authorize(context, "upload_image")

  The action should match the cinder action and be in the policy.json
  file. Also glance uses the action name upload_image.

  The following bug https://bugs.launchpad.net/cinder/+bug/1539650
  points out that the action is missing from the cinder policy.json
  file.

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1539690/+subscriptions


References