为什么我在创建 PVC 时看到错误的凭证或访问被拒绝的消息?
排查 Cloud Object Storage 中持久卷声明失败的问题。
虚拟私有云 传统基础设施
本故障排除主题仅适用于运行版本 3.11 的 Red Hat OpenShift 集群。
在创建 PVC 时,看到类似于以下其中一项的错误消息:
SignatureDoesNotMatch: The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. For more information, see REST Authentication and SOAP Authentication for details.
AccessDenied: Access Denied status code: 403
CredentialsEndpointError: failed to load credentials
InvalidAccessKeyId: The AWS Access Key ID you provided does not exist in our records`
can't access bucket <bucket_name>: Forbidden: Forbidden
用于访问服务实例的 IBM Cloud Object Storage 服务凭证可能错误,或者仅允许对存储区执行读访问。
创建新私钥。
- 在“服务详细信息”页面的导航中,单击服务凭证。
- 查找凭证,然后单击查看凭证。
- 在
iam_role_crn部分中,请确认您拥有“Writer”或“Manager”角色。 如果您没有相应的角色,则必须创建具有正确权限的新 IBM Cloud Object Storage 服务凭据。 - 如果角色正确,请确认您使用的是正确的
access_key_id以及 **secret_access_key**Kubernetes 是否正确。 - 使用更新后的
access_key_id和secret_access_key创建一个新的密钥。