我有 MAAS 1.9.1 并已委托一个节点。节点处于就绪状态。我使用代理,可以使用 apt get 或 update。MAAS 上有两个接口,eth0 在 170.xxx 上,eth 1 在 10.xxx 上。我已将 eth1 设置为 ip 转发和伪装。当我委托一个新节点时,它没有任何问题,并下载了 Ubuntu 软件包等。environment.yaml 具有所有正确的 ip、密钥等。现在我是否
- juju 快速入门
- juju 引导程序
或者 sudo openstack-install
Juju 失败。这阻止我安装 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
您的 environment.yaml 需要定义 http-proxy、https-proxy 和 no-proxy。请参阅此处了解所有配置选项https://jujucharms.com/docs/1.25/config-general
答案2
您需要以下内容防火墙端口开放:
MAAS、其节点和自动驾驶仪需要能够访问互联网,或者至少访问这些网站(http 和 https):
- maas.ubuntu.com
- 云图片
- streams.canonical.com
- Ubuntu 档案库(archive.ubuntu.com 或镜像)
- api.jujucharms.com
- manage.jujucharms.com
- jujucharms.com
- 商店.juju.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