启动本地kubernetes集群时无法运行install_fedora_deps [英] Failed to run install_fedora_deps when starting up local kubernetes cluster

查看:136
本文介绍了启动本地kubernetes集群时无法运行install_fedora_deps的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用流浪汉1.8.1和virtualbox 4.3.28在Ubuntu 14.04上运行本地kubernetes v1.1.4集群.一切正常,但是自上周五2016年1月22日以来,我在执行./cluster/kube-up.sh

I am running my local kubernetes v1.1.4 cluster on Ubuntu 14.04 using vagrant 1.8.1 and virtualbox 4.3.28. Everything worked fine but since last friday 22.01.2016 i keep getting the same error when executing ./cluster/kube-up.sh

==> master:  *  INFO:  sh -- Version 2015.11.09  
==> master:  *  INFO: System Information:  
==> master:  *  INFO:   CPU:          GenuineIntel  
==> master:  *  INFO:   CPU Arch:     x86_64  
==> master:  *  INFO:   OS Name:      Linux  
==> master:  *  INFO:   OS Version:   3.17.4-301.fc21.x86_64  
==> master:  *  INFO:   Distribution: Fedora 21  
==> master:  *  INFO: Installing master  
==> master:  *  INFO: Found function install_fedora_deps  
==> master:  *  INFO: Found function install_fedora_stable  
==> master:  *  INFO: Found function install_fedora_stable_post  
==> master:  *  INFO: Found function install_fedora_restart_daemons  
==> master:  *  INFO: Found function daemons_running  
==> master:  *  INFO: Found function install_fedora_check_services  
==> master:  *  INFO: Running install_fedora_deps()  
==> master: which: no dnf in (/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)  
==> master:  *  INFO: Adding SaltStack's COPR repository  
==> master:   
==> master:   
==> master: File contains no section headers.  
==> master: file: file:///etc/yum.repos.d/saltstack-salt-fedora-21.repo, line: 1  
==> master: '<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n'  
==> master:  * ERROR: Failed to run install_fedora_deps()!!!  
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.  

我将ssh转换为master,这是/etc/yum.repos.d/saltstack-salt-fedora-21.repo的内容

i ssh into master and this is the content of /etc/yum.repos.d/saltstack-salt-fedora-21.repo

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>302 Found</title>
</head><body>
<h1>Found</h1>
<p>The document has moved <a href="https://copr.fedorainfracloud.org/coprs/saltstack/salt/repo/fedora-21/saltstack-salt-fedora-21.repo">here</a>.</p>
<hr>
<address>Apache/2.4.6 (Red Hat Enterprise Linux) Server at copr.fedoraproject.org Port 80</address>
</body></html>

运行最新的v1.2.0-alpha.6时出现相同的错误.这是salt-fedora21回购的问题吗?任何人都可以复制该错误吗?

I get the same error when running the latest v1.2.0-alpha.6. Is this an issue with the salt-fedora21 repo? Can anyone replicate the error?

相关问题可以在这里找到 https://github.com/kubernetes/kubernetes/Issues/20088

related issue can be found here https://github.com/kubernetes/kubernetes/issues/20088

推荐答案

这是一个临时解决方法:

Here's a temporary fix:

https://github.com/kubernetes/kubernetes/中指出的issue/20088#issuecomment-174930620 ,根本问题是salt-bootstrap对基础依赖项引用的URL进行了更改.

As pointed out in https://github.com/kubernetes/kubernetes/issues/20088#issuecomment-174930620, the root issue is a change in URL for an underlying dependency reference by salt-bootstrap.

此问题已在 https://github.com/saltstack/salt-bootstrap/中修复pull/738 ,但此修复程序尚未使其稳定至salt-bootstrap.

This is fixed in https://github.com/saltstack/salt-bootstrap/pull/738, but the fix has not made it to salt-bootstrap stable.

我们可以使用develop版本:

cd cluster/vagrant
sed -i "s/https:\/\/bootstrap.saltstack.com/https:\/\/bootstrap.saltstack.com\/develop/" provision-minion.sh 
sed -i "s/https:\/\/bootstrap.saltstack.com/https:\/\/bootstrap.saltstack.com\/develop/" provision-master.sh 

在Kubernetes 1.1.4上测试.

Tested on Kubernetes 1.1.4.

这篇关于启动本地kubernetes集群时无法运行install_fedora_deps的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆