![Juju 부트스트래핑 중 Openstack 설치가 실패함](https://rvso.com/image/1126805/Juju%20%EB%B6%80%ED%8A%B8%EC%8A%A4%ED%8A%B8%EB%9E%98%ED%95%91%20%EC%A4%91%20Openstack%20%EC%84%A4%EC%B9%98%EA%B0%80%20%EC%8B%A4%ED%8C%A8%ED%95%A8.png)
"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
다음 줄의 주석 처리를 해제하세요.
net.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 포스트라우팅
sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
sudo iptables-저장 | sudo 티 /etc/iptables.sav
Edit /etc/rc.local and add the following lines before the "exit 0" line:
iptables-복원 < /etc/iptables.sav