Skip to content
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

Set default region back to empty string #110

Merged
merged 4 commits into from
Apr 7, 2024
Merged

Conversation

Lirt
Copy link
Owner

@Lirt Lirt commented Mar 28, 2024

For non-documented reason we switched from having default value for region empty string to value RegionOne (in tag v0.4.0). RegionOne is default region name in Openstack, but this doesn't justify leaving region to default to this value.

Having region as empty string makes the gophercloud library to pick first found region in the catalog. This can cause potential backwards compatibility issues, which are however very unlikely.

Negative impact of having region default to RegionOne is that it makes the plugin to not work in case user relies on region specified in clouds.yaml. This also looks slightly tricky as region in clouds.yaml doesn't neccesarilly mean that that region should be configured in Cinder.

This change and additional test displays the behavior.

Closes #109

For non-documented reason we switched from having default value for
region empty string to value RegionOne (in tag v0.4.0). RegionOne is default region name
in Openstack, but this doesn't justify leaving region to default to this
value.

Having region as empty string makes the gophercloud library to pick
first found region in the catalog. This can cause potential backwards
compatibility issues, which are however very unlikely.

Negative impact of having region default to RegionOne is that it makes
the plugin to not work in case user relies on region specified in
clouds.yaml. This also looks slightly tricky as region in clouds.yaml
doesn't neccesarilly mean that that region should be configured in
Cinder.

This change and additional test displays the behavior.

Signed-off-by: Ondrej Vasko <[email protected]>
@Lirt Lirt changed the title Draft: [Revert] set default region to empty string Draft: Set default region back to empty string Apr 6, 2024
@Lirt Lirt force-pushed the enh/unset-default-region branch 2 times, most recently from eaa366c to 321b72f Compare April 6, 2024 20:29
@Lirt Lirt force-pushed the enh/unset-default-region branch from 321b72f to a6ce769 Compare April 6, 2024 20:33
@Lirt Lirt changed the title Draft: Set default region back to empty string Set default region back to empty string Apr 7, 2024
@Lirt Lirt merged commit 3c925de into master Apr 7, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] region_name is not correctly pulled from clouds.yaml
1 participant