Non-Admin user can filter their instance by availability zone

Registered by Victor Coutellier on 2020-01-08

Nova API specification does not allow user to filter their instances by availability zone, it is until now considered to a admin-only filter. As availability zone are an input parameter for VM creation available to any user who can launch instances, this filter should be allowed for non admin users too.

By example, in case of using multiple AZs in a deployment, in can be useful to a standard user to easily know which VM are on which AZ, by example for cinder use case, when you don't allow cross/AZ attachment.

The code who actually make this verification are located here : https://github.com/openstack/nova/blob/master/nova/api/openstack/compute/servers.py#L1272 so I think we can just add the "availability_zone" value to this tuple to do the job.

Blueprint information

Status:
Complete
Approver:
None
Priority:
Undefined
Drafter:
Victor Coutellier
Direction:
Approved
Assignee:
Victor Coutellier
Definition:
Approved
Series goal:
Accepted for ussuri
Implementation:
Implemented
Milestone target:
milestone icon ussuri-3
Started by
Eric Fried on 2020-01-16
Completed by
Balazs Gibizer on 2020-04-14

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.opendev.org/#/q/topic:bp/non-admin-filter-instance-by-az

Addressed by: https://review.opendev.org/701609
    Non-admin user can filter their instances by AZs

Addressed by: https://review.opendev.org/701763
    Non-admin user can filter their instances by AZs

[efried 20200130] Marking Definition:Approved as spec has merged.

[efried 20200220] Agreed in the Nova meeting to Direction:Approve all Definition:Approved blueprints http://eavesdrop.openstack.org/meetings/nova/2020/nova.2020-02-20-14.00.log.html#l-131

Addressed by: https://review.opendev.org/718878
    [Trivial] FUP: addressed comments in support non-admin filter instances

[gibi 20200414] completed in Ussuri

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.