更新:
在 Canonical 的帮助下,我终于搞清楚了一些东西。从 ubuntu 下载临时图像时,maas-import-pxe-files 卡住了。我找出了以下内容:
wget -v xhttps://maas.ubuntu.com/images/query/precise/ephemeral/released-dl.current.txt -O /tmp/aaa.tmp
--2013-10-04 17:12:57-- https://maas.ubuntu.com/images/query/precise/ephemeral/released-dl.current.txt
解析 maas.ubuntu.com (maas.ubuntu.com)...91.189.90.19, 91.189.89.122 连接到 maas.ubuntu.com (maas.ubuntu.com)|91.189.90.19|:443...失败:连接超时。
连接到 maas.ubuntu.com (maas.ubuntu.com)|91.189.89.122|:443...失败:连接超时。
尽管我可以 telnet www.google.com 80,但我无法 wget。发生这种情况是因为我的实验室有代理。为了解决这个问题,我不得不
导出 http_proxy=代理地址
导出 https_proxy=代理地址
之后,请注意
sudo maas-导入-pxe-文件
仍然不起作用,但是
sudo bash maas-导入-pxe-文件
做。
我还不确定这是否也能解决 MaaS GUI 中报告的问题,但安装完成后就会更新。
原始问题
我已经在同一节点上设置了 MAAS 和区域及集群控制器。我可以登录 GUI,并能够创建超级用户。有两个问题,可能是同一问题的表现。
1)页面上的黄色栏现在显示此消息:
The region controller does not know whether any boot images have been imported yet.
If this message does not disappear in 5 minutes, there may be a communication problem between the region worker process and the region controller.
Check the region worker's logs for signs that it was unable to report to the MAAS API.
2)运行时:
sudo maas-import-pxe-files
我得到这个输出:
$ sudo /usr/sbin/maas-import-pxe-files
Downloading to temporary location /tmp/tmp.rITlDMoaQl.
/tmp/tmp.rITlDMoaQl /var/log/maas
2013-10-03 11:14:46 URL:xhttp://archive.ubuntu.com/ubuntu//dists/precise/main/installer-amd64/current/images/netboot/ubuntu-installer/amd64//linux [4965840/4965840] -> "linux" > [1]
2013-10-03 11:14:48 URL:xhttp://archive.ubuntu.com/ubuntu//dists/precise/main/installer-> amd64/current/images/netboot/ubuntu-installer/amd64//initrd.gz [17446386/17446386] -> "initrd.gz" [1]
2013-10-03 11:14:49 URL:xhttp://archive.ubuntu.com/ubuntu//dists/quantal/main/installer-> amd64/current/images/netboot/ubuntu-installer/amd64//linux [5130968/5130968] -> "linux" > [1]
2013-10-03 11:14:51 URL:xhttp://archive.ubuntu.com/ubuntu//dists/quantal/main/installer-> amd64/current/images/netboot/ubuntu-installer/amd64//initrd.gz [18668122/18668122] -> > > "initrd.gz" [1]
2013-10-03 11:14:52 URL:xhttp://archive.ubuntu.com/ubuntu//dists/precise/main/installer-> i386/current/images/netboot/ubuntu-installer/i386//linux [5015840/5015840] -> "linux" [1]
2013-10-03 11:14:54 URL:xhttp://archive.ubuntu.com/ubuntu//dists/precise/main/installer-i386/current/images/netboot/ubuntu-installer/i386//initrd.gz [15977428/15977428] -> "initrd.gz" [1]
2013-10-03 11:14:55 URL:xhttp://archive.ubuntu.com/ubuntu//dists/quantal/main/installer-i386/current/images/netboot/ubuntu-installer/i386//linux [5171760/5171760] -> "linux" [1]
2013-10-03 11:14:57 URL:xhttp://archive.ubuntu.com/ubuntu//dists/quantal/main/installer-i386/current/images/netboot/ubuntu-installer/i386//initrd.gz [17086667/17086667] -> "initrd.gz" [1]
2013-10-03 11:14:58 URL:xhttp://ports.ubuntu.com/ubuntu-ports//dists/precise-updates/main/installer-armhf/current/images/highbank/netboot//vmlinuz [2978672/2978672] -"vmlinuz" [1]
2013-10-03 11:14:58 URL:xhttp://ports.ubuntu.com/ubuntu-ports//dists/precise-updates/main/installer-armhf/current/images/highbank/netboot//initrd.gz [4958070/4958070] -> "initrd.gz" [1]
2013-10-03 11:14:59 URL:xhttp://ports.ubuntu.com/ubuntu-ports//dists/quantal/main/installer-armhf/current/images/highbank/netboot//vmlinuz [3738504/3738504] -> "vmlinuz" [1]
2013-10-03 11:15:00 URL:xhttp://ports.ubuntu.com/ubuntu-ports//dists/quantal/main/installer-armhf/current/images/highbank/netboot//initrd.gz [6213909/6213909] -> "initrd.gz" [1]
/var/log/maas
(我必须在帖子中的 http 前面添加一个“x”,因为我不允许发布超过两个链接)
命令停留在此点,不返回提示。请注意:
uname -a
Linux myhost 3.5.0-23-generic #35~precise1-Ubuntu SMP Fri Jan 25 17:13:26 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
我确实发现了错误 1067558 和 1070318,但我不知道如何解决这个问题。
任何帮助都将受到赞赏。
答案1
在 Ubuntu Server 14.04 上
在 14.04 上对我有用的是:
1)为网络适配器配置静态地址/etc/network/interfaces
# Example configuration
auto eth0
iface eth0 inet static
address 192.168.0.2
network 192.168.0.0
netmask 255.255.255.0
broadcast 192.168.0.255
gateway 192.168.0.1
2) 通过 ping 外部主机检查互联网访问,例如ping google.com
。
该条目gateway 192.168.0.1
至关重要,因为它将建立路由,例如sudo route add default gw 192.168.0.1
3)将 MAAS 重新配置为该静态地址并导入 PXE 映像:如何更改 MaaS 服务器 IP 地址?
sudo dpkg-reconfigure maas-cluster-controller
sudo dpkg-reconfigure maas-region-controller
- 删除“集群主服务器”(将重新创建)
4)导入PXE镜像
sudo maas-import-pxe-files
答案2
您可以尝试将行export http_proxy= proxy addr
和添加export https_proxy= proxy addr
到 /etc/environment 并重新启动,看看是否可行吗?我认为,除非您使用sudo bash
您提到的命令,否则 sudo 可能不会传递代理设置。