[manila] [tests] enforce sharev2 manila client service type#1848
[manila] [tests] enforce sharev2 manila client service type#1848kayrus merged 1 commit intoterraform-provider-openstack:mainfrom
Conversation
|
I need to do some more investigation next week to figure out how EDIT: Then again, if you're only going to support v2 in terraform and want to get a fix in now, this could be okay. I'd probably add a NOTE about what we're doing here though |
|
@stephenfin initially these service types were hardcoded. But with this new renaming mess in openstack upstream this appears to be a big headache. @nikParasyr let's discuss what else we can do. UPD: probably it makes sense to enforce aliases for tests, for other users we can suggest #1804, if they experience issues. |
16cad9d to
f309447
Compare
|
I decided to add a workaround only for tests. |
Resolves #1847
fixes issues with service type aliases in devstack environment with the following catalog:
A new gophercloud feature ends up with the first endpoint found, when:
https://github.com/gophercloud/gophercloud/blob/908ce172717ef96ddea87a969e405e2190a18371/endpoint_search.go#L48
And according to https://github.com/gophercloud/gophercloud/blob/908ce172717ef96ddea87a969e405e2190a18371/openstack/endpoint_location.go#L97-L103 only the first endpoint is being picked up.
Therefore terraform tries to use an outdated v1 endpoint, which doesn't support microversions.
cc @stephenfin