New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Image Service doesn't validate supported versions anymore #438
Comments
@beyhan, thank you for reporting this issue. I'll look into it ASAP. |
@beyhan, you're right the service type "image" is conflicting between V1 and V2. V1 is deprecated as V2 is the default and unfortunately OpenStack Image service didn't publish the V2 service as "imagev2". |
@gildub Thanks for the prompt response! Are there plans for a new release with the fix? |
@beyan, absolutely, later today (my time down under). |
@beyhan, v1.0.1 and v0.3.4 have been released. |
@gildub Thanks! |
Description:
The fog openstack image service does not check for supported versions anymore. Previously, a
Fog::OpenStack::Errors::ServiceUnavailable
was raised.How to reproduce:
Run the following script with
fog-openstack
version 0.1.19 against an Openstack wich does not support image version 1:The output is
Then, run the same script with
fog-openstack
version 1.0.0.The output is
Desired behavior:
Fog openstack raises an exception if a version is not supported.
For example, in the current version 1.0.0 of fog openstack, the volume (cinder) service raises a
Fog::OpenStack::Auth::Catalog::ServiceTypeError
error.Debugging:
We assume that the following commit didn't only refactor, but also changed functionality in the sense that no validation is happening anymore.
The exception doesn't get raised since in Glance, the service type is the same for v1 and v2.
However, raising the exception works for Cinder because the service type is different for v1 and v2.
The text was updated successfully, but these errors were encountered: