Skip to content

utils/init_provider.go stopped working #79

@depohmel

Description

@depohmel

Since yesterday utils/init_provider.go OpenProviderSession fails with following error:

{"level":"info","ts":1560884939.663679,"caller":"utils/init_provider.go:38","msg":"Block softlayer provider volume registry done!"}
{"level":"info","ts":1560884939.6637144,"caller":"utils/init_provider.go:63","msg":"Provider registration done!!!"}
{"level":"info","ts":1560884939.6637185,"caller":"utils/init_provider.go:75","msg":"In OpenProviderSession methods"}
{"level":"info","ts":1560884939.663722,"caller":"utils/init_provider.go:102","msg":"Generating generateContextCredentials for ","Provider ID":"SOFTLAYER-BLOCK"}
{"level":"error","ts":1560884940.10645,"caller":"iam/token_exchange.go:173","msg":"IAM token exchange request failed with message","StatusCode":400,"ErrorMessage:":"Validation failed ","ErrorType:":"BXNIM0106E","Error":{"errorMessage":"Validation failed ","errorCode":"BXNIM0106E","errorDetails":"Validation of property 'response_type' with value '[ims_portal]' failed. Valid values: 'cloud_iam'","requirements":{"error":"","code":""}},"stacktrace":"vendor/go.uber.org/zap.Stack\n\t/repo/go/src/vendor/go.uber.org/zap/field.go:195\nvendor/go.uber.org/zap.(*Logger).check\n\t/repo/go/src/vendor/go.uber.org/zap/logger.go:301\nvendor/go.uber.org/zap.(*Logger).Error\n\t/repo/go/src/vendor/go.uber.org/zap/logger.go:202\nvendor/github.com/IBM/ibmcloud-storage-volume-lib/volume-providers/iam.(*tokenExchangeRequest).sendTokenExchangeRequest\n\t/repo/go/src/vendor/github.com/IBM/ibmcloud-storage-volume-lib/volume-providers/iam/token_exchange.go:173\nvendor/github.com/IBM/ibmcloud-storage-volume-lib/volume-providers/iam.(*tokenExchangeRequest).exchangeForIMSToken\n\t/repo/go/src/vendor/github.com/IBM/ibmcloud-storage-volume-lib/volume-providers/iam/token_exchange.go:112\nvendor/github.com/IBM/ibmcloud-storage-volume-lib/volume-providers/iam.(*tokenExchangeService).ExchangeIAMAPIKeyForIMSToken\n\t/repo/go/src/vendor/github.com/IBM/ibmcloud-storage-volume-lib/volume-providers/iam/token_exchange.go:90\nvendor/github.com/IBM/ibmcloud-storage-volume-lib/volume-providers/softlayer/auth.(*contextCredentialsFactory).ForIAMAPIKey\n\t/repo/go/src/vendor/github.com/IBM/ibmcloud-storage-volume-lib/volume-providers/softlayer/auth/ims_token.go:52\nvendor/github.com/IBM/ibmcloud-storage-volume-lib/provider/utils.GenerateContextCredentials\n\t/repo/go/src/vendor/github.com/IBM/ibmcloud-storage-volume-lib/provider/utils/init_provider.go:115\nvendor/github.com/IBM/ibmcloud-storage-volume-lib/provider/utils.OpenProviderSession\n\t/repo/go/src/vendor/github.com/IBM/ibmcloud-storage-volume-lib/provider/utils/init_provider.go:89\ngithub.com/kanisterio/kanister/pkg/blockstorage/ibm.newClient\n\t/repo/go/src/github.com/kanisterio/kanister/pkg/blockstorage/ibm/client.go:74\ngithub.com/kanisterio/kanister/pkg/blockstorage/ibm.(*ClientSuite).TestClient\n\t/repo/go/src/github.com/kanisterio/kanister/pkg/blockstorage/ibm/client_test.go:43\nreflect.Value.call\n\t/usr/local/go/src/reflect/value.go:447\nreflect.Value.Call\n\t/usr/local/go/src/reflect/value.go:308\nvendor/gopkg.in/check%2ev1.(*suiteRunner).forkTest.func1\n\t/repo/go/src/vendor/gopkg.in/check.v1/check.go:772\nvendor/gopkg.in/check%2ev1.(*suiteRunner).forkCall.func1\n\t/repo/go/src/vendor/gopkg.in/check.v1/check.go:666"}
{"level":"error","ts":1560884940.1073356,"caller":"auth/ims_token.go:55","msg":"Unable to retrieve IMS credentials from IAM API key","error":"IAM token exchange request failed: Validation failed ","stacktrace":"vendor/go.uber.org/zap.Stack\n\t/repo/go/src/vendor/go.uber.org/zap/field.go:195\nvendor/go.uber.org/zap.(*Logger).check\n\t/repo/go/src/vendor/go.uber.org/zap/logger.go:301\nvendor/go.uber.org/zap.(*Logger).Error\n\t/repo/go/src/vendor/go.uber.org/zap/logger.go:202\nvendor/github.com/IBM/ibmcloud-storage-volume-lib/volume-providers/softlayer/auth.(*contextCredentialsFactory).ForIAMAPIKey\n\t/repo/go/src/vendor/github.com/IBM/ibmcloud-storage-volume-lib/volume-providers/softlayer/auth/ims_token.go:55\nvendor/github.com/IBM/ibmcloud-storage-volume-lib/provider/utils.GenerateContextCredentials\n\t/repo/go/src/vendor/github.com/IBM/ibmcloud-storage-volume-lib/provider/utils/init_provider.go:115\nvendor/github.com/IBM/ibmcloud-storage-volume-lib/provider/utils.OpenProviderSession\n\t/repo/go/src/vendor/github.com/IBM/ibmcloud-storage-volume-lib/provider/utils/init_provider.go:89\ngithub.com/kanisterio/kanister/pkg/blockstorage/ibm.newClient\n\t/repo/go/src/github.com/kanisterio/kanister/pkg/blockstorage/ibm/client.go:74\ngithub.com/kanisterio/kanister/pkg/blockstorage/ibm.(*ClientSuite).TestClient\n\t/repo/go/src/github.com/kanisterio/kanister/pkg/blockstorage/ibm/client_test.go:43\nreflect.Value.call\n\t/usr/local/go/src/reflect/value.go:447\nreflect.Value.Call\n\t/usr/local/go/src/reflect/value.go:308\nvendor/gopkg.in/check%2ev1.(*suiteRunner).forkTest.func1\n\t/repo/go/src/vendor/gopkg.in/check.v1/check.go:772\nvendor/gopkg.in/check%2ev1.(*suiteRunner).forkCall.func1\n\t/repo/go/src/vendor/gopkg.in/check.v1/check.go:666"}
{"level":"error","ts":1560884940.1078017,"caller":"utils/init_provider.go:96","msg":"Failed to open provider session","error":"IAM token exchange request failed: Validation failed ","Fatal":false,"stacktrace":"vendor/go.uber.org/zap.Stack\n\t/repo/go/src/vendor/go.uber.org/zap/field.go:195\nvendor/go.uber.org/zap.(*Logger).check\n\t/repo/go/src/vendor/go.uber.org/zap/logger.go:301\nvendor/go.uber.org/zap.(*Logger).Error\n\t/repo/go/src/vendor/go.uber.org/zap/logger.go:202\nvendor/github.com/IBM/ibmcloud-storage-volume-lib/provider/utils.OpenProviderSession\n\t/repo/go/src/vendor/github.com/IBM/ibmcloud-storage-volume-lib/provider/utils/init_provider.go:96\ngithub.com/kanisterio/kanister/pkg/blockstorage/ibm.newClient\n\t/repo/go/src/github.com/kanisterio/kanister/pkg/blockstorage/ibm/client.go:74\ngithub.com/kanisterio/kanister/pkg/blockstorage/ibm.(*ClientSuite).TestClient\n\t/repo/go/src/github.com/kanisterio/kanister/pkg/blockstorage/ibm/client_test.go:43\nreflect.Value.call\n\t/usr/local/go/src/reflect/value.go:447\nreflect.Value.Call\n\t/usr/local/go/src/reflect/value.go:308\nvendor/gopkg.in/check%2ev1.(*suiteRunner).forkTest.func1\n\t/repo/go/src/vendor/gopkg.in/check.v1/check.go:772\nvendor/gopkg.in/check%2ev1.(*suiteRunner).forkCall.func1\n\t/repo/go/src/vendor/gopkg.in/check.v1/check.go:666"}

example config:

Bluemix:(*config.BluemixConfig){IamURL:\"https://iam.bluemix.net\", IamClientID:\"bx\", IamClientSecret:\"bx\", IamAPIKey:\"IBMCLOUD_ServiceAPIKey\", RefreshToken:\"\"}, Softlayer:(*config.SoftlayerConfig){SoftlayerBlockEnabled:true, SoftlayerBlockProviderName:\"SOFTLAYER-BLOCK\", SoftlayerFileEnabled:false, SoftlayerFileProviderName:\"SOFTLAYER-FILE\", SoftlayerUsername:\"\", SoftlayerAPIKey:\"\", SoftlayerEndpointURL:\"https://api.softlayer.com/rest/v3\", SoftlayerDataCenter:\"sjc03\", SoftlayerTimeout:\"20s\", SoftlayerVolProvisionTimeout:\"10m\", SoftlayerRetryInterval:\"5s\", SoftlayerJWTKID:\"\", SoftlayerJWTTTL:0, SoftlayerJWTValidFrom:0, SoftlayerIMSEndpointURL:\"https://api.softlayer.com/mobile/v3\", SoftlayerAPIDebug:false}, Gen2:(*config.Gen2Config){Gen2ProviderEnabled:false, Gen2Username:\"\", Gen2APIKey:\"\", Gen2URL:\"\"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions