d350df03c1
Expose the functionality of the 'cinder upload-to-image' command in the UI. It allows user to upload of a volume whose status is in-use or available to the Glance image service. When the volume is in-use, user still wants to uploads that volume to image, user needs to set force to be True. The force checkbox only shows when the volume is in-use. Whether it can succesfully upload the volume to image depends on if the storage array that volume is created in supports attaching multiple instances to the volume. Not all arrays supports that. There is no api that can detect if array supports that before cinder actutally uploads the volume in-use to image. The container format is 'bare'. The list of disk formats are based on the format supportability by both glance and qemu-img. cinder uses qemu-img for converting the volume to a image. Implements: blueprint cinder-volume-upload-image Change-Id: Ie5fc26c260e5f4ef2700c40c8cea6150fdbd522c
62 lines
2.5 KiB
JSON
62 lines
2.5 KiB
JSON
{
|
|
"context_is_admin": [["role:admin"]],
|
|
"admin_or_owner": [["is_admin:True"], ["project_id:%(project_id)s"]],
|
|
"default": [["rule:admin_or_owner"]],
|
|
|
|
"admin_api": [["is_admin:True"]],
|
|
|
|
"volume:create": [],
|
|
"volume:update": [],
|
|
"volume:delete": [["rule:default"]],
|
|
"volume:get_all": [],
|
|
"volume:get_volume_metadata": [],
|
|
"volume:get_volume_admin_metadata": [["rule:admin_api"]],
|
|
"volume:delete_volume_admin_metadata": [["rule:admin_api"]],
|
|
"volume:update_volume_admin_metadata": [["rule:admin_api"]],
|
|
"volume:create_snapshot": [["rule:default"]],
|
|
"volume:delete_snapshot": [["rule:default"]],
|
|
"volume:get_snapshot": [],
|
|
"volume:update_snapshot": [["rule:default"]],
|
|
"volume:get_all_snapshots": [],
|
|
"volume:extend": [],
|
|
"volume:retype": [],
|
|
"volume:upload_to_image": [],
|
|
|
|
"volume_extension:types_manage": [["rule:admin_api"]],
|
|
"volume_extension:types_extra_specs": [["rule:admin_api"]],
|
|
"volume_extension:volume_type_encryption": [["rule:admin_api"]],
|
|
"volume_extension:volume_encryption_metadata": [["rule:admin_api"]],
|
|
"volume_extension:extended_snapshot_attributes": [],
|
|
"volume_extension:volume_image_metadata": [],
|
|
|
|
"volume_extension:quotas:show": [],
|
|
"volume_extension:quotas:update": [["rule:admin_api"]],
|
|
|
|
"volume_extension:volume_admin_actions:reset_status": [["rule:admin_api"]],
|
|
"volume_extension:snapshot_admin_actions:reset_status": [["rule:admin_api"]],
|
|
"volume_extension:volume_admin_actions:force_delete": [["rule:admin_api"]],
|
|
"volume_extension:snapshot_admin_actions:force_delete": [["rule:admin_api"]],
|
|
"volume_extension:volume_admin_actions:migrate_volume": [["rule:admin_api"]],
|
|
"volume_extension:volume_admin_actions:migrate_volume_completion": [["rule:admin_api"]],
|
|
|
|
"volume_extension:volume_host_attribute": [["rule:admin_api"]],
|
|
"volume_extension:volume_tenant_attribute": [["rule:admin_api"]],
|
|
"volume_extension:volume_mig_status_attribute": [["rule:admin_api"]],
|
|
"volume_extension:hosts": [["rule:admin_api"]],
|
|
"volume_extension:services": [["rule:admin_api"]],
|
|
"volume:services": [["rule:admin_api"]],
|
|
|
|
"volume:create_transfer": [],
|
|
"volume:accept_transfer": [],
|
|
"volume:delete_transfer": [],
|
|
"volume:get_all_transfers": [],
|
|
|
|
"backup:create" : ["rule:default"],
|
|
"backup:delete": ["rule:default"],
|
|
"backup:get": [],
|
|
"backup:get_all": [],
|
|
"backup:restore": ["rule:default"],
|
|
|
|
"snapshot_extension:snapshot_actions:update_snapshot_status": []
|
|
}
|