我正在 Ubuntu 15.04 服务器上安装 Openstack autopilot。我已经安装了 Maas 并成功加入节点。我通过安装 juju 和部署服务测试了 Maas 连接。但是当我想安装 openstack 时,它在引导过程中遇到错误。
我按照以下说明进行操作http://www.ubuntu.com/download/cloud/install-openstack-with-autopilot
我调试安装并得到这些:
配置.yaml
headless: true
install_type: OpenStack Autopilot
landscapecreds:
admin_email: [email protected]
admin_name: admin
maas_apikey: [redacted]
maas_server: 10.1.0.100
system_email: [email protected]
maascreds:
api_host: 10.1.0.100
api_key: [redacted]
openstack_password: [redacted]
openstack_release: kilo
ubuntu_series: trusty
命令
DEBUG_JUJU_BOOTSTRAP=1 sudo -E openstack-install -c config.yaml --debug
命令.log
[INFO: 12-30 01:18:40] Starting OpenStack Installer v0.99.24
[INFO: 12-30 01:18:40] Start command: ['/usr/bin/openstack-install', '-c', 'config.yaml', '--debug']
[INFO: 12-30 01:18:40] Running Kilo release
[INFO: 12-30 01:18:40] Performing a OpenStack Autopilot install
[INFO: 12-30 01:21:48] Bootstrapping Juju
[INFO: 12-30 01:21:49] Bootstrapping Juju
[ERROR: 12-30 01:22:11] Fatal error
Traceback (most recent call last):
File "/usr/share/openstack/cloudinstall/controllers/installbase.py", line 150, in start
self.do_install()
File "/usr/share/openstack/cloudinstall/controllers/installbase.py", line 134, in do_install
self.loop, self.ui, self.config).run()
File "/usr/share/openstack/cloudinstall/controllers/install/landscape.py", line 80, in run
self._do_install_existing_maas()
File "/usr/share/openstack/cloudinstall/controllers/install/landscape.py", line 42, in _do_install_existing_maas
self.config, self.landscape_tasks).do_install()
File "/usr/share/openstack/cloudinstall/controllers/install/multi.py", line 131, in do_install
raise Exception("Problem with juju bootstrap.")
Exception: Problem with juju bootstrap.
[INFO: 12-30 01:22:11] Stopping eventloop
[INFO: 12-30 01:22:11] Cleanup, saving latest config object.
当我尝试手动引导时。我收到以下错误:
命令:
JUJU_HOME=~/.cloud-install/juju/ juju bootstrap --debug
错误:
2015-12-29 22:10:53 INFO juju.cmd cmd.go:129 Bootstrap failed, destroying environment
2015-12-29 22:10:53 INFO juju.provider.common destroy.go:22 destroying environment "maas"
2015-12-29 22:10:53 INFO juju.provider.common destroy.go:33 destroying instances
2015-12-29 22:10:54 INFO juju.provider.common destroy.go:53 destroying storage
2015-12-29 22:10:54 ERROR juju.cmd supercommand.go:429 failed to bootstrap environment: cannot start bootstrap instance: gomaasapi: got error back from server: 500 INTERNAL SERVER ERROR (('UNHANDLED', 'Unknown Error [sajjad-maas:pid=774:cmd=CreateHostMaps:ask=b3]'))
提前感谢您的帮助。
问候 Sajjad
答案1
我的问题解决了,尊重这篇文章Ubuntu Openstack 上的 juju 问题 - Canonical Distribution
在添加 apt-repositories 后,我通过这些命令升级了我的区域控制器(描述在这里)
sudo apt-get update
sudo apt-get dist-upgrade
然后我从 MAAS Web UI 下载 14.04 LTS 的最新图像,因为我的图像是两个月前的。
景观自动驾驶仪安装成功。结果似乎如果你想安装某些东西,你必须拥有所有东西的最新更新。
答案2
您可以通过将文件中的图像流值~/.juju/environments.yaml
从“每日”更改为“发布”来解决此问题。