diff --git a/pkg/cloudprovider/providers/openstack/openstack.go b/pkg/cloudprovider/providers/openstack/openstack.go index 1a37396349d..15993f6f910 100644 --- a/pkg/cloudprovider/providers/openstack/openstack.go +++ b/pkg/cloudprovider/providers/openstack/openstack.go @@ -652,8 +652,10 @@ func (os *OpenStack) volumeService(forceVersion string) (volumeService, error) { if autodetectedVersion := doBsApiVersionAutodetect(availableApiVersions); autodetectedVersion != "" { return os.volumeService(autodetectedVersion) } else { - // Nothing suitable found, failed autodetection - return nil, errors.New("BS API version autodetection failed.") + // Nothing suitable found, failed autodetection, just exit with appropriate message + err_txt := "BlockStorage API version autodetection failed. " + + "Please set it explicitly in cloud.conf in section [BlockStorage] with key `bs-version`" + return nil, errors.New(err_txt) } default: