我有 MAAS 1.9.1 並委託了一個節點。節點處於就緒狀態。我在代理後面,可以輕鬆取得或更新。 MAAS 上有兩個接口,eth0 位於 170.xxx,eth 1 位於 10.xxx 我有 eth1 設定用於 ip 轉發和偽裝。當我委託一個新節點時,它沒有任何問題並下載了 Ubuntu 軟體包等。
- juju快速入門
- 朱朱引導程式
或 sudo openstack-install
朱朱失敗了。這會阻止我安裝 Landscape - Autopilot 等
我已經運行了調試命令等,但除了下面發布的一些命令之外沒有更多詳細資訊。
以下是一些 juju 錯誤:
The system cannot communicate with the external server ( 170.22.143.154 ).
The Internet server may be busy, may be permanently down, or may be
unreachable because of network problems.
aavam@maas-dev6-1:~/.cloud-install$ juju bootstrap
WARNING ignoring environments.yaml: using bootstrap config in file "/home/aavam/.juju/environments/maas.jenv"
ERROR cannot determine if environment is already bootstrapped.: could not access file 'e3b6a06b-9a7e-456f-8a51-a313d7d2beda-provider-state': gomaasapi: got error back from server: 504 Gateway Timeout (<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Notification: Gateway Timeout</title>
~$ juju quickstart
juju quickstart v2.2.4
ssh-agent has been started.
To interact with Juju or quickstart again after quickstart
finishes, please run the following in a terminal to start ssh-agent:
eval `ssh-agent`
bootstrapping the maas environment
reusing the already bootstrapped maas environment
retrieving the environment status
juju-quickstart: error: the state server is not ready:
ERROR Unable to connect to environment "maas".
Please check your credentials or use 'juju bootstrap' to create a new environment.
Error details:
could not access file 'e3b6a06b-9a7e-456f-8a51-a313d7d2beda-provider-state': gomaasapi: got error back from server: 504 Gateway Timeout (<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
答案1
您的environments.yaml 需要定義http-proxy、https-proxy 和no-proxy。請參閱此處以了解所有配置選項https://jujucharms.com/docs/1.25/config-general
答案2
您需要以下內容防火牆連接埠開放:
MAAS、其節點和自動駕駛儀將需要能夠訪問互聯網,或至少這些站點(http 和 https):
- maas.ubuntu.com
- 雲圖像.ubuntu.com
- Streams.canonical.com
- Ubuntu 存檔(archive.ubuntu.com 或鏡像)
- api.jujucharms.com
- 管理.jujucharms.com
- jujucharms.com
- store.juju.ubuntu.com
- 密鑰伺服器.ubuntu.com
- ppa.launchpad.net
- usn.ubuntu.com
如果在防火牆中開啟漏洞,請注意這些位址可能會解析為多個 IP。
答案3
在 MAAS 伺服器上,我必須進行 IP 轉送和偽裝並解決了問題
iptables -L -n
/sbin/iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
/sbin/iptables -A FORWARD -i eth0 -o eth1 -m state --state RELATED,ESTABLISHED -j ACCEPT
/sbin/iptables -A FORWARD -i eth1 -o eth0 -j ACCEPT
sudo iptables-save
……也要確保(大寫和小寫)
http_proxy,HTTP_PROXY,HTTPS_PROXY,https_proxy,no_proxy and NO_PROXY in the
MAAS env is all set up......resolved the issue.......
i.e export http_proxy=http://x.x.x.x:80 etc