Glance Spec Lite¶
Return 409 if removing/replacing the location of an image that’s not active¶
- problem:
When
show_multiple_locationsis set toTrue, users currently can remove or replace locations of an image irrespective of the image status. This can result in bad experiences for the users:- 1) If one tries to change or remove the location for an image while it is insavingstate, Glance would be trying to write data to a previously saved location while the user updates the custom location. This results in a race condition. 2) For images that are inqueuedstate and no image data has been uploaded yet, there is no need for an image location to be removed and permitting users to remove the image location can result in a bad experience. However users can be allowed to replace the image location to maintain backward compatibility and also because replacing could mean replacing an empty location by a non-empty image location. 3) For images indeactivatedstate, it is essential that image locations are not updated as it does not abide with the purpose of the image state being set todeactivatedand may cause security concerns.- solution:
1) Return Conflict Error (409 response code) if an attempt to remove the image location is made when the status of the image is anything but
active. 2) Return Conflict Error (409 response code) if an attempt to replace the image location is made when the status of the image is anything butactiveorqueued.- impacts:
A Conflict Error will be thrown preventing users from removing an image location when the image status is not
activeand replacing an image location when the image status is notactiveorqueued.- timeline:
Expected to be merged within the ocata-1 time frame.
- link:
- assignee:
Nikhil Komawar, Dharini Chandrasekar
End of Return 409 if removing/replacing the location of an image that’s not active¶
Expand hypervisor_type metadata with Virtuozzo hypervisor¶
- problem:
Currently it is not possible to require Virtuozzo hypervisor by specifying hypervisor_type metadata, though Nova has had Virtuozzo support since the Kilo release.
- solution:
We need to expand etc/metadefs/compute-hypervisor.json hypervisor_type property with the appropriate identifier, ‘vz’, as defined in http://git.openstack.org/cgit/openstack/nova/tree/nova/compute/hv_type.py.
- impacts:
This will have documentation impact. Release note should be added to notify interested parties about this addition.
- timeline:
Expected to be merged within the O-2 time frame.
- link:
- assignee:
Maxim Netratov
End of Expand hypervisor_type metadata with Virtuozzo hypervisor¶
Add ploop to the list of supported disk formats¶
- problem:
Currently ‘ploop’ format is not among supported by default disk formats, even though it’s been supported by Nova since the Kilo release.
- solution:
disk_formats configuration option needs to be updated to add ‘ploop’ as one of the supported format.
- impacts:
This will have documentation impact. Release note should be added to notify interested parties about this addition.
- timeline:
Expected to be merged within the O-2 time frame.
- link:
- assignee:
Maxim Netratov
End of Add ploop to list of supported disk formats¶
Use Range HTTP header instead of Content-Range for parsing requests¶
- problem:
When a HTTP request for a partial image download is sent, currently the
Content-Rangeheader is parsed to get the byte range from the request. Per RFC 7233 specification, the desired byte range should be specified in HTTP requests using theRangeheader rather than theContent-Rangeheader. The latter is reserved for responses to such requests. Current implementation requires users to send requests that are not compatible with this specification. For example, a user has to give “bytes 12-30/32” instead of “bytes=12-32”.- solution:
Parse the
Rangeheader from HTTP requests and send aContent-Rangeentity header with the server response. Deprecate and retain the current support forContent-Rangeheader requests for backward compatibility reasons.- impacts:
Users will be able to send partial download requests using the
Rangeheader in the requests with the appropriate value formats. For developers, theRangewebob parser does not have a length attribute. We will have to pass the image size explicitly and perform checks to identify an unsatisfiable byte range request from the parsedRangeheader. This change will also require an API version bump.- timeline:
Expected to be merged within the Ocata time frame.
- link:
- assignee:
Dharini Chandrasekar