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:
Started
Approver:
None
Priority:
Undefined
Drafter:
Victor Coutellier
Direction:
Needs approval
Assignee:
Victor Coutellier
Definition:
New
Series goal:
Accepted for ussuri
Implementation:
Started
Milestone target:
None
Started by
Eric Fried on 2020-01-16

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

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.