设想:
1)我在 Ubuntu 14.04 上有 MAAS Sever 1.5(MAAS 服务器)
2)我在同一网络上有另一台服务器,该服务器已安装 Ubuntu 14.04。(MAAS 客户端)
3)我将 MAAS Servert 配置为非托管集群
4)我手动添加了MAAS客户端的mac地址作为新节点,它进入调试状态
5) 但它仍然处于该模式,我该如何强制我的客户端启动调试过程
任何想法?
谢谢
6) 感谢“Vembu”,我尝试了“Vembu”建议的解决方案,结果如下:
情况1:maas maas nodes accept-all
谢谢,但是运行此命令后我得到:
File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
<br>
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
<br> File "/usr/lib/python2.7/dist-packages/maascli/__main__.py", line 20, in <module>
main()
<br> File "/usr/lib/python2.7/dist-packages/maascli/__init__.py", line 46, in main
options.execute(options)
<br> File "/usr/lib/python2.7/dist-packages/maascli/api.py", line 189, in __call__
insecure=insecure)
<br> File "/usr/lib/python2.7/dist-packages/maascli/api.py", line 66, in http_request
return http.request(url, method, body=body, headers=headers)
<br>File "/usr/lib/python2.7/dist-packages/httplib2/__init__.py", line 1569, in request
(response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
<br>File "/usr/lib/python2.7/dist-packages/httplib2/__init__.py", line 1316, in _request
(response, content) = self._conn_request(conn, request_uri, method, body, headers)
<br>File "/usr/lib/python2.7/dist-packages/httplib2/__init__.py", line 1251, in _conn_request
conn.connect()
<br>File "/usr/lib/python2.7/dist-packages/httplib2/__init__.py", line 900, in connect
self.sock.connect((self.host, self.port) + sa[2:])
<br>File "/usr/lib/python2.7/dist-packages/httplib2/socks.py", line 424, in connect
self.__negotiatehttp(destpair[0], destpair[1])
<br>File "/usr/lib/python2.7/dist-packages/httplib2/socks.py", line 390, in __negotiatehttp
raise HTTPError((statuscode, statusline[2]))
httplib2.socks.HTTPError: (403, 'Forbidden')
案例 2:sudo maas maas nodes accept-all
它返回[ ]
并且仍在调试中!
答案1
您可以从命令行接受并调试所有节点。这要求您首先使用API 密钥,
https://maas.ubuntu.com/docs/maascli.html#api-key
$ maas maas nodes accept-all
答案2
就我个人而言,我只需在 MAAS 控制台中执行“添加节点”即可准备登记。这样,我就可以使用我想要的 DNS 名称并设置 LAN 唤醒选项。但是,您确实需要提前知道相关以太网适配器的 MAC 地址。
然后,当节点进行 PXE 启动时,它将以更快的速度启动,而无需您来回批准并再次启动。