juju 1.24.2-utopic-amd64
在和上1.7.0+bzr3299-0ubuntu1~utopic
尝试将 charm 部署到节点时遇到一个奇怪的问题,例如
juju deploy --config ./kilo.yaml nova-compute nova-compute-01 --to 25 --debug
Juju 尝试从本地存储库上传 charm!查看/var/log/juju/unit-nova-compute-01.log
目标机器时,我看到以下内容:
...
2015-08-18 22:51:24 INFO juju.worker.uniter.charm bundles.go:60 SSL hostname verification disabled
2015-08-18 22:51:24 INFO juju.utils http.go:59 hostname SSL verification enabled
2015-08-18 22:51:24 DEBUG juju.worker.uniter.filter filter.go:507 charm check skipped, not yet installed.
2015-08-18 22:51:24 DEBUG juju.worker.uniter.filter filter.go:325 got service change
2015-08-18 22:51:24 DEBUG juju.worker.uniter.filter filter.go:507 charm check skipped, not yet installed.
2015-08-18 22:51:24 DEBUG juju.worker.uniter.filter filter.go:341 got relations change
2015-08-18 22:51:24 DEBUG juju.worker.uniter.filter filter.go:317 got unit change
2015-08-18 22:51:24 DEBUG juju.worker.uniter modes.go:398 ModeInstalling cs:trusty/nova-compute-26 exiting
2015-08-18 22:51:24 INFO juju.worker.uniter uniter.go:144 unit "nova-compute-gpu01/0" shutting down: ModeInstalling cs:trusty/nova-compute-26: failed to download charm "cs:trusty/nova-compute-26" from "http://10.4.0.17/MAAS/api/1.0/files/?key=cb285162-43c4-11e5-9f2f-080027fc4200&op=get_by_key": cannot download "http://10.4.0.17/MAAS/api/1.0/files/?key=cb285162-43c4-11e5-9f2f-080027fc4200&op=get_by_key": bad http response: 404 NOT FOUND
2015-08-18 22:51:24 ERROR juju.worker.uniter.filter filter.go:116 tomb: dying
2015-08-18 22:51:24 DEBUG juju.worker.uniter runlistener.go:97 juju-run listener stopping
2015-08-18 22:51:24 DEBUG juju.worker.uniter runlistener.go:117 juju-run listener stopped
2015-08-18 22:51:24 ERROR juju.worker runner.go:218 exited "uniter": ModeInstalling cs:trusty/nova-compute-26: failed to download charm "cs:trusty/nova-compute-26" from "http://10.4.0.17/MAAS/api/1.0/files/?key=cb285162-43c4-11e5-9f2f-080027fc4200&op=get_by_key": cannot download "http://10.4.0.17/MAAS/api/1.0/files/?key=cb285162-43c4-11e5-9f2f-080027fc4200&op=get_by_key": bad http response: 404 NOT FOUND
2015-08-18 22:51:24 INFO juju.worker runner.go:252 restarting "uniter" in 3s
2015-08-18 22:51:27 INFO juju.worker runner.go:260 start "uniter"
2015-08-18 22:51:27 DEBUG juju.worker.uniter uniter.go:217 starting juju-run listener on unix:/var/lib/juju/agents/unit-nova-compute-gpu01-0/run.socket
2015-08-18 22:51:27 INFO juju.worker.uniter uniter.go:115 unit "nova-compute-gpu01/0" started
2015-08-18 22:51:27 DEBUG juju.worker.uniter runlistener.go:84 juju-run listener running
2015-08-18 22:51:27 INFO juju.worker.uniter modes.go:396 ModeContinue starting
2015-08-18 22:51:27 INFO juju.worker.uniter modes.go:31 loading uniter state
2015-08-18 22:51:27 INFO juju.worker.uniter modes.go:34 charm is not deployed
2015-08-18 22:51:27 DEBUG juju.worker.uniter uniter.go:757 new environment change
2015-08-18 22:51:27 DEBUG juju.worker.uniter modes.go:398 ModeContinue exiting
2015-08-18 22:51:27 INFO juju.worker.uniter modes.go:396 ModeInstalling cs:trusty/nova-compute-26 starting
2015-08-18 22:51:27 INFO juju.worker.uniter uniter.go:277 fetching charm "cs:trusty/nova-compute-26"
...
注意http://10.4.0.17/是我的 MAAS 服务器。当我尝试使用 Juju 的 Web GUI 时,也会发生类似的事情。
有任何想法吗?