问题现象
OCP 创建备租户时,提示 “备份存储目录无法被主机 [xx.xx.xx.xxx] 访问”,但是网络测试可以连通。
日志中存在如下报错:
2025-03-08 09:18:59.721 INFO 33402 --- [http-nio-0.0.0.0-28880-exec-10,0b792b1464a86634,28de25df460d3495] c.o.o.o.i.t.c.ObjectBackupStorageChecker : Begin to check path:com.oceanbase.ocp.obops.internal.tenant.component.ObjectBackupStorageChecker$ObjectStoragePath@a9d6c84 visitable of host: xx.xx.xx.xx
2025-03-08 09:18:59.721 INFO 33402 --- [http-nio-0.0.0.0-28880-exec-10,0b792b1464a86634,28de25df460d3495] c.o.o.e.internal.template.HttpTemplate : POST request to agent, url:http://xx.xx.xx.xx:62888/api/v1/backup/storage/test, request body:TestBackupStorageRequest(backupStorageType=s3, bucketName=oceanbase, objectName=backup, accessDomainName=https://http://xx.xx.xx.xx:4000, region=null, accessKeyId=66XM4****qyn9), params:null
2025-03-08 09:18:59.803 WARN 33402 --- [http-nio-0.0.0.0-28880-exec-10,0b792b1464a86634,28de25df460d3495] c.o.o.o.i.t.c.ObjectBackupStorageChecker : Failed to check oss visitable of host address:18.xx.xx.105
com.oceanbase.ocp.executor.exception.HttpRequestFailedException: [AgentClient]:http request is failed, response:check storage bucket failed, bucket: oceanbase, reason: operation error S3: HeadBucket, https response error StatusCode: 0, RequestID: , HostID: , request send failed, Head "https://http:/xx.xx.xx.xx:4000/oceanbase": dial tcp: lookup http on xx.xx.xx.xx:53: no such host
at com.oceanbase.ocp.executor.internal.template.HttpTemplate.checkSuccess(HttpTemplate.java:476)
问题原因
OCP V4.3.5 及以下版本创建备租户时不支持 http 协议访问 S3/COS 存储,仅支持 https 协议。
影响版本
OCP V4.3.5 及以下版本。
解决方法及规避方式
请使用 https 协议访问 S3/COS 存储,或将 OCP 升级到 V4.3.5 BP1 及以上版本。