
juju + MAAS를 사용하여 환경을 만든 다음 일부 구성 오류로 인해 환경을 파괴했습니다. 그러나 노드를 다시 커미셔닝했고(MAAS는 노드가 배포된 것으로 표시됨) 이제 실행하면 juju -v bootstrap
다음과 같은 결과를 얻습니다.
sysadmin@myst-a-2:~$ juju -v bootstrap
2013-05-01 11:52:02,275 DEBUG Initializing juju bootstrap runtime
2013-05-01 11:52:02,308 INFO Bootstrapping environment 'maas' (origin: distro type: maas)...
2013-05-01 11:52:02,334 DEBUG Verifying writable storage
2013-05-01 11:52:02,368 DEBUG Launching juju bootstrap instance.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 422, in errback
self._startRunCallbacks(fail)
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 489, in _startRunCallbacks
self._runCallbacks()
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 576, in _runCallbacks
current.result = callback(current.result, *args, **kw)
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1127, in gotResult
_inlineCallbacks(r, g, deferred)
--- <exception caught here> ---
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1069, in _inlineCallbacks
result = result.throwExceptionIntoGenerator(g)
File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 389, in throwExceptionIntoGenerator
return g.throw(self.type, self.value, self.tb)
File "/usr/lib/python2.7/dist-packages/juju/control/bootstrap.py", line 39, in command
yield provider.bootstrap(constraints)
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1069, in _inlineCallbacks
result = result.throwExceptionIntoGenerator(g)
File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 389, in throwExceptionIntoGenerator
return g.throw(self.type, self.value, self.tb)
File "/usr/lib/python2.7/dist-packages/juju/providers/common/bootstrap.py", line 57, in _launch_machine
{"machine-id": "0", "constraints": self._constraints}, master=True)
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1069, in _inlineCallbacks
result = result.throwExceptionIntoGenerator(g)
File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 389, in throwExceptionIntoGenerator
return g.throw(self.type, self.value, self.tb)
File "/usr/lib/python2.7/dist-packages/juju/providers/common/launch.py", line 64, in run
machines = yield self.start_machine(machine_id, zookeepers)
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1069, in _inlineCallbacks
result = result.throwExceptionIntoGenerator(g)
File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 389, in throwExceptionIntoGenerator
return g.throw(self.type, self.value, self.tb)
File "/usr/lib/python2.7/dist-packages/juju/providers/maas/launch.py", line 40, in start_machine
instance_data = yield maas_client.acquire_node(self._constraints)
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 576, in _runCallbacks
current.result = callback(current.result, *args, **kw)
File "/usr/lib/python2.7/dist-packages/juju/providers/maas/maas.py", line 95, in _process_error
raise ProviderError(error.response)
juju.errors.ProviderError: No matching node is available.
2013-05-01 11:52:02,444 ERROR Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 422, in errback
self._startRunCallbacks(fail)
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 489, in _startRunCallbacks
self._runCallbacks()
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 576, in _runCallbacks
current.result = callback(current.result, *args, **kw)
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1127, in gotResult
_inlineCallbacks(r, g, deferred)
--- <exception caught here> ---
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1069, in _inlineCallbacks
result = result.throwExceptionIntoGenerator(g)
File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 389, in throwExceptionIntoGenerator
return g.throw(self.type, self.value, self.tb)
File "/usr/lib/python2.7/dist-packages/juju/control/bootstrap.py", line 39, in command
yield provider.bootstrap(constraints)
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1069, in _inlineCallbacks
result = result.throwExceptionIntoGenerator(g)
File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 389, in throwExceptionIntoGenerator
return g.throw(self.type, self.value, self.tb)
File "/usr/lib/python2.7/dist-packages/juju/providers/common/bootstrap.py", line 57, in _launch_machine
{"machine-id": "0", "constraints": self._constraints}, master=True)
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1069, in _inlineCallbacks
result = result.throwExceptionIntoGenerator(g)
File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 389, in throwExceptionIntoGenerator
return g.throw(self.type, self.value, self.tb)
File "/usr/lib/python2.7/dist-packages/juju/providers/common/launch.py", line 64, in run
machines = yield self.start_machine(machine_id, zookeepers)
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1069, in _inlineCallbacks
result = result.throwExceptionIntoGenerator(g)
File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 389, in throwExceptionIntoGenerator
return g.throw(self.type, self.value, self.tb)
File "/usr/lib/python2.7/dist-packages/juju/providers/maas/launch.py", line 40, in start_machine
instance_data = yield maas_client.acquire_node(self._constraints)
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 576, in _runCallbacks
current.result = callback(current.result, *args, **kw)
File "/usr/lib/python2.7/dist-packages/juju/providers/maas/maas.py", line 95, in _process_error
raise ProviderError(error.response)
juju.errors.ProviderError: No matching node is available.
2013-05-01 11:52:02,444 ERROR No matching node is available.
이견있는 사람?
답변1
부트스트랩할 수 있는 노드가 누락된 것이 분명한 것 같습니다. 준비 상태의 MAAS 노드가 있습니까? 배포된 노드만 있고 준비 상태인 노드가 없으면 부트스트랩을 할 수 없습니다. 준비 상태의 노드가 하나 이상 필요합니다.