我已将https://packages.cloud.google.com/yum配置为Artifactory中的远程回购。artifactory yum相对路径不起作用
在CentOS 7.3我的回购文件看起来像这样:
[kubernetes]
name=kubernetes
baseurl=https://artifactory.company.com/artifactory/packages.cloud.google.com-yum/repos/kubernetes-el7-x86_64/
enabled=1
gpgcheck=1
当我运行yum install -y kubelet
它打印此错误:
e7a4403227dd24036f3b0615663a37 FAILED
https://artifactory.company.com/artifactory/packages.cloud.google.com-yum/repos/kubernetes-el7-x86_64/../../pool/e7a4403227dd24036f3b0615663a371c4e07a95be5fee53505e647fd8ae58aa6-kubernetes-cni-0.5.1-0.x86_64.rpm: [Errno 14] HTTPS Error 500 - Internal Server Error
Trying other mirror.
我敢肯定问题出在URL中的相对路径:kubernetes-el7-x86_64/../../pool
如果我wget的URL工作正常,因为wget在发送HTTP请求之前解析出相对路径,但百胜没有d o当Artifactory给它一个带有../
的网址时,它会返回500。有谁知道如何在Artifactory中启用相对URL?或者如何让yum在发送请求之前解析URL?
我运行这些版本:
- Artifactory的5.2.0
- 百胜3.4.3-150
更新:这是artifactory的HTTP响应体:
{
"errors" : [ {
"status" : 500,
"message" : "Could not process download request: Path element cannot end with a dot: packages.cloud.google.com-yum-cache/repos/kubernetes-el7-x86_64/../"
} ]
}
外部那个url返回一个404 - 它只能从gcloud中访问吗? – user3788685
https://artifactory.company.com是一个经过审查的网址。该服务器仅在我公司的网络中可用。 – user3508370