2016-01-25 14 views
5

Tôi đang chạy cụm kubernetes v1.1.4 cục bộ của mình trên Ubuntu 14.04 bằng cách sử dụng vagrant 1.8.1 và virtualbox 4.3.28. Tất cả mọi thứ đã làm việc tốt nhưng kể từ lần cuối Thứ sáu 2016/01/22 tôi tiếp tục nhận được lỗi tương tự khi thực hiện ./cluster/kube-up.shKhông thể chạy install_fedora_deps khi khởi động cụm kubernetes cục bộ

==> 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. 

i ssh vào tổng thể và đây là nội dung của /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> 

Tôi gặp lỗi tương tự khi chạy phiên bản v1.2.0-alpha.6 mới nhất. Đây có phải là vấn đề với repo salt-fedora21 không? Bất cứ ai có thể sao chép lỗi?

Chỉnh sửa: liên quan vấn đề có thể được tìm thấy ở đây https://github.com/kubernetes/kubernetes/issues/20088

Trả lời

5

Dưới đây là cách khắc phục tạm thời:

Như đã chỉ ra trong https://github.com/kubernetes/kubernetes/issues/20088#issuecomment-174930620, vấn đề gốc rễ là một sự thay đổi trong URL cho một tham chiếu phụ thuộc cơ bản bằng cách salt-bootstrap.

Điều này được sửa trong https://github.com/saltstack/salt-bootstrap/pull/738, nhưng bản sửa lỗi chưa được sửa thành salt-bootstrap ổn định.

Chúng ta có thể sử dụng phiên bản 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 

Thử nghiệm trên Kubernetes 1.1.4.

+0

có thể xác nhận làm việc cho tôi là tốt trên v1.1.4, cảm ơn bạn đã nhanh chóng sửa chữa – fdavid

+0

xác nhận cho v1.1.7 – luebken

2

Đối với macos với nó borky bsd sed:

cd cluster/vagrant 
sed -e "s/https:\/\/bootstrap.saltstack.com/https:\/\/bootstrap.saltstack.com\/develop/" provision-minion.sh > provision-minion.sh.back 
mv provision-minion.sh.back provision-minion.sh 
sed -e "s/https:\/\/bootstrap.saltstack.com/https:\/\/bootstrap.saltstack.com\/develop/" provision-master.sh > provision-master.sh.back 
mv provision-master.sh.back provision-master.sh 
Các vấn đề liên quan