使用自动驾驶仪部署景观时出错

使用自动驾驶仪部署景观时出错

我正在尝试按照本教程安装 Landscape OpenStack Autopilothttp://www.ubuntu.com/download/cloud/install-openstack-with-autopilot

我的发行版是 Ubuntu 14.04.4 LTS 服务器,我在安装 MAAS 之前已经更新/升级了软件包。

我的设置中有 5 个节点,我有一个千兆位连接,我相信 MAAS 配置正确。我可以在安装程序 (Landscape Autopilot) 之外部署一个节点,该节点可以访问互联网,ping google.com并且可以正常nslookup工作。

我认为这是一个超时问题,因此我将 /usr/share/openstack/cloudinstall/controllers/install/multi.py 文件的超时时间增加到 600,但这并没有解决我的问题。

我在启动安装之前安装了“juju”软件包。安装过程中出现问题:

    [INFO: 02-17 09:13:07, openstack-install:227] Starting OpenStack Installer v0.99.27
[INFO: 02-17 09:13:07, openstack-install:228] Start command: ['/usr/bin/openstack-install']
[INFO: 02-17 09:13:07, openstack-install:239] Creating juju directories: /home/dylan/.cloud-install/juju
[INFO: 02-17 09:13:08, openstack-install:295] Running Liberty release
[INFO: 02-17 09:13:17, installbase.py:132] Performing a OpenStack Autopilot install
[INFO: 02-17 09:13:17, utils.py:771] pollinate: sudo su - -c 'pollinate -q -r --curl-opts "-k --user-agent uoi/182e63ab-487b-4662-a101-cd320ac40a23/IL"'
[DEBUG: 02-17 09:14:10, landscape.py:74] Existing MAAS defined, doing a LDS installation with existing MAAS.
[DEBUG: 02-17 09:14:55, multi.py:127] Bootstrapping Juju: JUJU_HOME=/home/dylan/.cloud-install/juju juju  bootstrap
[DEBUG: 02-17 09:27:30, multi.py:165] Finished MAAS step, now deploying Landscape.
[DEBUG: 02-17 09:43:13, multi.py:391] Running landscape configure: /usr/share/openstack/bin/configure-landscape --admin-email [email protected] --admin-name dylan --system-email [email protected] --maas-host 10.10.24.101
[INFO: 02-17 09:43:15, utils.py:771] pollinate: sudo su - -c 'pollinate -q -r --curl-opts "-k --user-agent uoi/182e63ab-487b-4662-a101-cd320ac40a23/ET"'
[ERROR: 02-17 09:43:16, multi.py:397] Problem with configuring Landscape: {'output': '', 'err': 'Traceback (most recent call last):\n  File "/usr/share/openstack/bin/configure-landscape", line 209, in <module>\n    main()\n  File "/usr/share/openstack/bin/configure-landscape", line 202, in main\n    system_email=args.system_email)\n  File "/usr/share/openstack/bin/configure-landscape", line 173, in register_new_user\n    \'https://%s/api/\' % host)\n  File "/usr/share/openstack/bin/configure-landscape", line 126, in run_query\n    assert r.status_code == 200\nAssertionError\n', 'status': 1}.
[ERROR: 02-17 09:43:16, gui.py:267] A fatal error has occurred: Error configuring Landscape.

[DEBUG: 02-17 09:43:16, error.py:35] showing error view for: Error configuring Landscape.
[ERROR: 02-17 09:43:24, ev.py:130] Exception in ev.run():
Traceback (most recent call last):
  File "/usr/share/openstack/cloudinstall/ev.py", line 128, in run
    self.loop.run()
  File "/usr/lib/python3/dist-packages/urwid/main_loop.py", line 278, in run
    self._run()
  File "/usr/lib/python3/dist-packages/urwid/main_loop.py", line 376, in _run
    self.event_loop.run()
  File "/usr/lib/python3/dist-packages/urwid/main_loop.py", line 1326, in run
    self._loop.run_forever()
  File "/usr/lib/python3.4/asyncio/base_events.py", line 276, in run_forever
    self._run_once()
  File "/usr/lib/python3.4/asyncio/base_events.py", line 1172, in _run_once
    handle._run()
  File "/usr/lib/python3.4/asyncio/events.py", line 120, in _run
    self._callback(*self._args)
  File "/usr/lib/python3/dist-packages/urwid/raw_display.py", line 393, in <lambda>
    event_loop, callback, self.get_available_raw_input())
  File "/usr/lib/python3/dist-packages/urwid/raw_display.py", line 493, in parse_input
    callback(processed, processed_codes)
  File "/usr/lib/python3/dist-packages/urwid/main_loop.py", line 403, in _update
    self.process_input(keys)
  File "/usr/lib/python3/dist-packages/urwid/main_loop.py", line 503, in process_input
    k = self._topmost_widget.keypress(self.screen_size, k)
  File "/usr/share/openstack/cloudinstall/gui.py", line 136, in keypress
    return super().keypress(size, key)
  File "/usr/lib/python3/dist-packages/urwid/container.py", line 1128, in keypress
    return self.body.keypress( (maxcol, remaining), key )
  File "/usr/lib/python3/dist-packages/urwid/decoration.py", line 836, in keypress
    return self._original_widget.keypress((maxcol,), key)
  File "/usr/lib/python3/dist-packages/urwid/container.py", line 1587, in keypress
    key = self.focus.keypress(tsize, key)
  File "/usr/lib/python3/dist-packages/urwid/decoration.py", line 621, in keypress
    return self._original_widget.keypress(maxvals, key)
  File "/usr/lib/python3/dist-packages/urwid/container.py", line 1587, in keypress
    key = self.focus.keypress(tsize, key)
  File "/usr/lib/python3/dist-packages/urwid/wimp.py", line 535, in keypress
    self._emit('click')
  File "/usr/lib/python3/dist-packages/urwid/widget.py", line 463, in _emit
    signals.emit_signal(self, name, self, *args)
  File "/usr/lib/python3/dist-packages/urwid/signals.py", line 264, in emit
    result |= self._call_callback(callback, user_arg, user_args, args)
  File "/usr/lib/python3/dist-packages/urwid/signals.py", line 294, in _call_callback
    return bool(callback(*args_to_pass))
  File "/usr/share/openstack/cloudinstall/ui/views/error.py", line 66, in cancel
    raise SystemExit("Install exited because of error.")
SystemExit: Install exited because of error.
[DEBUG: 02-17 09:43:24, utils.py:59] Juju Version: 1.25.3-trusty-amd64
[INFO: 02-17 09:43:24, utils.py:61] Cleanup, saving latest config object.

有人能帮我解决我的问题吗?提前谢谢。

答案1

我无法对该 openstack-install 命令提供太多帮助,但是由于您已经拥有 MAAS,因此您可以尝试使用 juju 自行安装 Landscape:

https://help.landscape.canonical.com/LDS/JujuDeployment15.11

配置 juju 使用 MAAS 后:

https://jujucharms.com/docs/stable/config-maas

使用landscape-maas-dense捆绑包。这将从您的 MAAS 中获取一个节点来安装所有景观服务。

定期运行juju status以查看部署进度,并留意的输出juju debug-log

一旦一切平静下来,点击 haproxy IP(您可以从输出中获取juju status)并按照说明进行注册。

最后,进入 Landscape UI 后,转到 openstack 选项卡并配置您的云。

相关内容