我按照常规方法安装 MAAS,在成功创建节点后,我进一步安装了 juju 以简化 openstack 安装,但随后出现以下错误:
root@mymaas:/home/user# juju status 2013-02-18 19:52:46,361 INFO Connecting to environment...
Unhandled error in Deferred: Unhandled
Error Traceback (most recent call last): File
"/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line
545, in _runCallbacks
current.result = callback(current.result, *args, **kw) File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 250,
in _checkTimeout
userDeferred.callback(result) File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line
362, in callback
self._startRunCallbacks(result) File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line
458, in _startRunCallbacks
self._runCallbacks()
--- <exception caught here> --- File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line
545, in _runCallbacks
current.result = callback(current.result, *args, **kw) File "/usr/lib/python2.7/dist-packages/twisted/internet/tcp.py", line 369,
in _setRealAddress
self.doConnect() File "/usr/lib/python2.7/dist-packages/twisted/internet/tcp.py", line 395,
in doConnect
connectResult = self.socket.connect_ex(self.realAddress) File "/usr/lib/python2.7/socket.py", line 224, in meth
return getattr(self._sock,name)(*args) exceptions.TypeError: an integer is required 2013-02-18 19:53:16,380 ERROR Cannot connect to
environment: Unexpected TimeoutError interacting with provider: User
timeout caused connection failure. Traceback (most recent call last):
File
"/usr/lib/python2.7/dist-packages/juju/providers/common/connect.py",
line 42, in run
client = yield self._internal_connect(share) ProviderInteractionError: Unexpected TimeoutError interacting with
provider: User timeout caused connection failure. Unexpected
TimeoutError interacting with provider: User timeout caused connection
failure. 2013-02-18 19:53:16,390 ERROR Unexpected TimeoutError
interacting with provider: User timeout caused connection failure.
我不知道我在 juju 安装中哪里出了问题,但下面是我的环境配置文件中的内容。
juju: environments
environments:
maas:
type: maas
maas-server: 'http://{my-ip-address}/MAAS'
maas-oauth: '${DXSKFbuHn3URhbCdD6:Z9V47vmsS2jDbxL4L2:6dQarDXcGuTZ7nvYemHMAnt2yHnUBRr2}'
admin-secret: 'nothing'
default-series: precise
请帮忙!
答案1
我已经解决了这个问题。我不得不用 ppa:juju/pkgs 重新安装 juju,然后删除${}
包裹在我的 maas-oauth API 密钥上的文件。我成功运行了 bootstrap。