我尝试基于“Openstack-Install”脚本运行 OpenStack 安装。我想部署一个 LAB 环境。我按照描述设置了一个节点这里
我向 maas 系统添加了 6 个节点。当我启动 Openstack-Install 脚本(我选择了“横向模式”)时,它在 juju 引导期间终止。请参阅附件commands.log
[DEBUG • 05-26 14:53:21] • cloudinstall.ui.dialog • (dialog.py, _build_widget, 93)]
Num items: 2, items: <ListBox selectable box widget>
[DEBUG • 05-26 14:53:30] • cloudinstall.ui.dialog • (dialog.py, submit, 111)]
Callback on : OrderedDict([('password', <EditInput selectable flow widget>), ('confirm_password', <EditInput selectable flow widget>)])
[DEBUG • 05-26 14:53:35] • cloudinstall.ui • (__init__.py, submit, 214)]
Callback on : OrderedDict([('Landscape OpenStack Autopilot', (<RadioButton selectable flow widget 'Landscape OpenStack Autopilot' state=True>, 'Benefit from best practices in cloud building, and get up and running within minutes, all from an intuitive web UI.')), ('Multi', (<RadioButton selectable flow widget 'Multi' state=False>, 'OpenStack installation utilizing MAAS.')), ('Single', (<RadioButton selectable flow widget 'Single' state=False>, 'Fully containerized OpenStack installation on a single machine.'))])
[INFO • 05-26 14:53:35] • cloudinstall.install • (install.py, do_install, 129)]
Performing a Landscape OpenStack Autopilot install
[DEBUG • 05-26 14:53:35] • cloudinstall.ui.dialog • (dialog.py, _build_widget, 93)]
Num items: 4, items: <ListBox selectable box widget>
[DEBUG • 05-26 14:55:53] • cloudinstall.ui.dialog • (dialog.py, submit, 111)]
Callback on : OrderedDict([('admin_email', <EditInput selectable flow widget>), ('admin_name', <EditInput selectable flow widget>), ('maas_server', <EditInput selectable flow widget>), ('maas_apikey', <EditInput selectable flow widget>)])
[DEBUG • 05-26 14:55:53] • cloudinstall.landscape_install • (landscape_install.py, _save_lds_creds, 81)]
Existing MAAS defined, doing a LDS installation with existing MAAS.
[DEBUG • 05-26 14:56:00] • cloudinstall.utils • (utils.py, ssh_genkey, 819)]
ssh keys exist for this user, they will be used instead.
[DEBUG • 05-26 14:56:00] • cloudinstall.multi_install • (multi_install.py, do_install, 137)]
Bootstrapping Juju: JUJU_HOME=/home/bwarnsin/.cloud-install/juju juju bootstrap
[DEBUG • 05-26 15:56:01] • cloudinstall.multi_install • (multi_install.py, do_install, 143)]
Problem during bootstrap: '{'status': 1, 'output': 'Bootstrapping environment "maas"\nStarting new instance for initial state server\nLaunching instance\nWARNING no architecture was specified, acquiring an arbitrary node\n - /MAAS/api/1.0/nodes/node-0409d179-f4a5-11e4-805c-005056a75673/\nERROR failed to bootstrap environment: bootstrap instance started but did not change to Deployed state: instance "/MAAS/api/1.0/nodes/node-0409d179-f4a5-11e4-805c-005056a75673/" is started but not deployed\n'}'
[DEBUG • 05-26 15:56:01] • cloudinstall.utils • (utils.py, global_exchandler, 63)]
Traceback (most recent call last):
File "/usr/share/openstack/cloudinstall/utils.py", line 78, in run
super().run()
File "/usr/lib/python3.4/threading.py", line 868, in run
self._target(*self._args, **self._kwargs)
File "/usr/share/openstack/cloudinstall/machinewait.py", line 127, in do_continue
self.installer.do_install()
File "/usr/share/openstack/cloudinstall/multi_install.py", line 144, in do_install
raise Exception("Problem with juju bootstrap.")
Exception: Problem with juju bootstrap.
[INFO • 05-26 21:59:41] • cloudinstall.utils • (utils.py, cleanup, 91)]
Cleanup, saving latest config object.
[DEBUG • 05-26 21:59:41] • cloudinstall.utils • (utils.py, cleanup, 97)]
Attempting to reset the terminal
我还可以看到,juju 开始从 maas 中选择一个节点。在那个选定的节点上,我看到了以下错误消息:
iscsistart:connect to X.X.X.X:3260 failed (Connect refused)
我已经在我的 MAAS 节点(我在其上启动了 Openstack-Install 脚本)上检查了 IP 表->允许任何。
答案1
清理失败的安装后尝试以下操作:
在此处编辑文件:
sudo nano /etc/sysctl.conf
取消注释此行:
网.ipv4.ip_forward=1
现在重新启动 MAAS 并再次尝试安装。
如果这不起作用,请尝试使用以下命令更新 MAAS 上的 IPtables:
sudo iptables -A FORWARD -o eth0 -i eth1 -s 10.1.1.0/24 -m conntrack --ctstate NEW -j ACCEPT
sudo iptables -A FORWARD -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
sudo iptables -t nat -F POSTROUTING
sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
sudo iptables-save | sudo tee /etc/iptables.sav
Edit /etc/rc.local and add the following lines before the "exit 0" line:
iptables-恢复 < /etc/iptables.sav