POST /volumes/{volume_id}/action os-detach incorrectly requires attachment_id is not None
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Medium
|
Matt Riedemann |
Bug Description
We have started seeing a failure in some testing in Rocky where nova is calling the volume action "os-detach" API and passing attachment_id=None in the request body which now fails with a 400 due to json schema validation kicking it out:
May 02 03:50:00.958050 ubuntu-
May 02 03:50:00.980568 ubuntu-
That's due to this change:
https:/
Note that before that change, the volume API service would pass attachment_id=None down to the volume manager which handled the attachment_id being None:
So this is a change in behavior which can break client code without a microversion.
The schema for os-detach should allow attachment_id=None, even though that doesn't really make a ton of sense, it should be there for backward compatibility.
Also note that this is not failing the same test in Queens:
Changed in cinder: | |
status: | New → Triaged |
importance: | Undecided → Medium |
tags: | added: api |
Changed in cinder: | |
assignee: | nobody → Matt Riedemann (mriedem) |
Fix proposed to branch: master /review. openstack. org/565907
Review: https:/