为什么我在创建 PVC 时看到错误的 s3fs 或 IAM API 端点?
排查因 S3FS 和IAM端点错误导致持久卷声明失败的问题。
虚拟私有云 传统基础设施
本故障排除主题仅适用于运行 3.11 版本的 Red Hat OpenShift 群集。
创建 PVC 时,PVC 保持暂挂状态。 运行 oc describe pvc <pvc_name> 命令后,您会看到以下其中一条错误消息:
Bad value for ibm.io/object-store-endpoint XXXX: scheme is missing. Must be of the form http://<hostname> or https://<hostname>
Bad value for ibm.io/iam-endpoint XXXX: scheme is missing. Must be of the form http://<hostname> or https://<hostname>
要使用的存储区的 s3fs API 端点的格式可能错误,或者集群部署在 Red Hat OpenShift on IBM Cloud 中支持,但 IBM Cloud Object Storage 插件尚不支持的位置。
完成以下步骤:
-
检查在 IBM Cloud Object Storage 插件安装期间
ibmcHelm 插件自动分配给存储类的 s3fs API 端点。 该端点基于集群的部署位置。oc get sc ibmc-s3fs-standard-regional -o yaml | grep object-store-endpoint如果命令返回
ibm.io/object-store-endpoint: NA,说明集群部署在 Red Hat OpenShift on IBM Cloud 中支持,但 IBM Cloud Object Storage 插件尚不支持的位置。 若要将该地点添加到“Red Hat OpenShift on IBM Cloud”中,请在 Slack 上发布问题,或通过 IBM Cloud 提交支持工单。 有关更多信息,请参阅获取帮助和支持。 -
如果您在 PVC 中手动添加了带有
ibm.io/endpoint注解的 s3fs API 端点,或带有ibm.io/iam-endpoint注解的 IAM API 端点,请确保以https://<s3fs_api_endpoint>和https://<iam_api_endpoint>的格式添加这些端点。 注释会覆盖 IBM Cloud Object Storage 存储类中的ibmc插件自动设置的 API 端点。oc describe pvc <pvc_name>