-
Notifications
You must be signed in to change notification settings - Fork 583
[blockstorage/noauth]: No Support Client Type #2342
Copy link
Copy link
Closed
Description
When I use noauth way to resize in-use status volume,I got error
code:
provider, err := noauth.NewClient(gophercloud.AuthOptions{
Username: "admin",
TenantName: "admin",
})
if err != nil {
fmt.Println(err)
}
noauthClient, err := noauth.NewBlockStorageNoAuth(provider, noauth.EndpointOpts{
CinderEndpoint: "http://0.0.0.0:8776/v3",
})
noauthClient.Microversion = "3.42"
extendOpts := volumeactions.ExtendSizeOpts{
NewSize: 2,
}
volumeactions.ExtendSize(noauthClient, "08ffaadd-a863-44d8-88dc-c3daa6702b32", extendOpts).ExtractErr()
error:
Bad request with: [POST http://0.0.0.0:8776/v3/admin/volumes/08ffaadd-a863-44d8-88dc-c3daa6702b32/action], error message: {"badRequest": {"code": 400, "message": "Invalid volume: Volume 08ffaadd-a863-44d8-88dc-c3daa6702b32 status must be '{'status': 'available'}' to extend, currently in-use."}}
read https://github.com/gophercloud/gophercloud/blob/master/service_client.go , This is because the API Microversion in the header is not passed because clientType is not set.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels