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

doesn't support volume2 any more? #2676

Open
PilotPaul opened this issue Sep 26, 2024 · 3 comments
Open

doesn't support volume2 any more? #2676

PilotPaul opened this issue Sep 26, 2024 · 3 comments

Comments

@PilotPaul
Copy link

PilotPaul commented Sep 26, 2024

blockstorageClient, err := openstack.NewBlockStorageV3(os.blockstorage.ProviderClient, os.epOpts)

@PilotPaul
Copy link
Author

The following code changes look more reasonable and support v2 and v3 versions:

blockstorageClient := *os.blockstorage
if !os.bsOpts.IgnoreVolumeMicroversion {
blockstorageClient.Microversion = "3.34"
}

opts := volumes.ListOpts{Name: n}
pages, err := volumes.List(&blockstorageClient, opts).AllPages()

@kayrus
Copy link
Contributor

kayrus commented Sep 26, 2024

@PilotPaul there was never support for v2/volumes in the repo.

@PilotPaul
Copy link
Author

@PilotPaul there was never support for v2/volumes in the repo.

got it, thx a lot

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

No branches or pull requests

2 participants