Ubuntu 14.04 上的 MAAS 1.5+bzr2252-0ubuntu1 调试脚本失败

Ubuntu 14.04 上的 MAAS 1.5+bzr2252-0ubuntu1 调试脚本失败

我正在尝试 MAAS,但发现了一个我不知道如何解决的问题。情况如下。

我已经在 Ubuntu 14.04 上安装了 MAAS 1.5+bzr2252-0ubuntu1。

并手动设置了3个节点,这3个节点在调试时以相同的方式出现故障。

UI 显示以下脚本失败:

错误输出

failed [3/6] (00-maas-03-install-lldpd, 99-maas-01-wait-for-lldpd, 99-maas-02-capture-lldp) 

检查单个结果后,我假设安装软件包的脚本没有检索 GPG 密钥,但我无法解释为什么没有,因为在 MAAS 设置中我有http://archive.ubuntu.com/ubuntu指定为主档案。

Commissioning results for supermicro-node6.maas
Script result   Output file     Registered at   Node
[Failed] FAILED     99-maas-02-capture-lldp.err     May 12, 2014, 1:19 p.m.     supermicro-node6.maas
[Failed] FAILED     99-maas-02-capture-lldp.out     May 12, 2014, 1:19 p.m.     supermicro-node6.maas
[Failed] FAILED     99-maas-01-wait-for-lldpd.err   May 12, 2014, 1:19 p.m.     supermicro-node6.maas
[Failed] FAILED     99-maas-01-wait-for-lldpd.out   May 12, 2014, 1:19 p.m.     supermicro-node6.maas
OK  00-maas-04-list-modaliases.out  May 12, 2014, 1:19 p.m.     supermicro-node6.maas
[Failed] FAILED     00-maas-03-install-lldpd.err    May 12, 2014, 1:19 p.m.     supermicro-node6.maas
[Failed] FAILED     00-maas-03-install-lldpd.out    May 12, 2014, 1:19 p.m.     supermicro-node6.maas
OK  00-maas-02-virtuality.out   May 12, 2014, 1:19 p.m.     supermicro-node6.maas
OK  00-maas-01-lshw.out     May 12, 2014, 1:19 p.m.     supermicro-node6.maas

00-maas-03-install-lldpd.out

Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
  libperl5.18 libsensors4 libsnmp-base libsnmp30
Suggested packages:
  lm-sensors snmp-mibs-downloader snmpd
The following NEW packages will be installed:
  libperl5.18 libsensors4 libsnmp-base libsnmp30 lldpd
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 1144 kB of archives.
After this operation, 4566 kB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
  libsensors4 libperl5.18 libsnmp-base libsnmp30 lldpd

00-maas-03-install-lldpd.err

E: There are problems and -y was used without --force-yes
Traceback (most recent call last):
  File "/tmp/user_data.sh.LS3zcm/commissioning.d/00-maas-03-install-lldpd", line 65, in <module>
    lldpd_install(*args, **kwargs)
  File "/tmp/user_data.sh.LS3zcm/commissioning.d/00-maas-03-install-lldpd", line 49, in lldpd_install
    check_call(("apt-get", "install", "--yes", "lldpd"))
  File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '(u'apt-get', u'install', u'--yes', u'lldpd')' returned non-zero exit status 100

对于在 MAAS 方面更有经验的人来说,这似乎是一件小事。任何帮助都非常感谢。

谢谢。

答案1

我遇到了同样的问题,这是因为我没有使用 RFC1918 IPv4 地址(因此被阻止了squid-deb-proxy)。

我刚刚添加了我的范围/etc/squid-deb-proxy/allowed-networks-src.acl并重新启动了服务。

答案2

我在这里遇到了同样的问题。结果发现是由损坏的缓存数据引起的(调试日志中的“警告:交换文件头与可用数据不一致”)。

rm -rf /var/spool/maas-proxy 并再次启动 maas-proxy 服务已解决问题。

相关内容