Comment 5 for bug 1835186

Revision history for this message
Martin Kopec (mkopec) wrote : Re: In the API for volume v3, update/delete encryption type interface is different from code in the encryption_types_client.py file

I'm changing the assignee to Nobody, as there's no activity in the last 6 months.

Anyway, I think the bug is valid. According the documentation [1] urls for DELETE and PUT should look like:
/v3/{project_id}/types/{volume_type_id}/encryption/{encryption_id}
However, the code contains this [2][3]. There's 'provider' instead of the encryption_id. I wonder why it isn't causing any troubles, are the methods even used? I'm gonna check. I'll put the bug to Confirmed meanwhile.

[1] https://docs.openstack.org/api-ref/block-storage/v3/index.html?expanded=update-an-encryption-type-detail#update-an-encryption-type
[2] https://opendev.org/openstack/tempest/src/commit/5785a7d18040ed8e48f7f58ed8bff972f5f25e01/tempest/lib/services/volume/v3/encryption_types_client.py#L85
[3] https://opendev.org/openstack/tempest/src/commit/5785a7d18040ed8e48f7f58ed8bff972f5f25e01/tempest/lib/services/volume/v3/encryption_types_client.py#L74