Zun

Refine the image API endpoints

Registered by hongbin

The image APIs was designed to pull/delete image at individual compute node but these APIs caused a lot of confusions to our users, for example https://bugs.launchpad.net/zun/+bug/1769021 .

This BP proposes to redesign the image API as below.

* List images: GET /images?host=<host>
* Get an image: GET /images/<id>?host=<host>
* Pull image: POST /images -d '{"host": ...}'
* Delete image: DELETE /images/<id>?host=<host>

NOTE: 'host' is a mandatory parameter for above endpoints.

The default policy should disallow normal users to access those APIs since only admin can manage individual host.

Blueprint information

Status:
Complete
Approver:
hongbin
Priority:
High
Drafter:
hongbin
Direction:
Approved
Assignee:
hongbin
Definition:
New
Series goal:
Accepted for rocky
Implementation:
Implemented
Milestone target:
None
Started by
hongbin
Completed by
hongbin

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/rework-image-api,n,z

Addressed by: https://review.openstack.org/566443
    Require admin privilege for image APIs

Addressed by: https://review.openstack.org/566444
    [WIP] Add parameter 'host' to images API

Addressed by: https://review.openstack.org/567096
    Add 'host' parameter on image create

Addressed by: https://review.openstack.org/568127
    Add 'host' parameter on image delete

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.