Openstack-Install falha durante bootstrapping de juju

1

Eu tento executar uma instalação do OpenStack com base no script "Openstack-Install". Eu quero implantar um ambiente de LAB. Eu configurei um nó como descrito aqui

Eu adicionei 6 nós ao sistema maas. Quando eu inicio o script Openstack-Install (selecionei "Landscape Mode"), ele termina durante o bootstrapping do juju. Por favor, encontre anexado 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

Então, o que eu também posso ver, é que o juju começa a selar um nó do maas. Nesse nó selcted eu vi seguinte mensagem de erro:

iscsistart:connect to X.X.X.X:3260 failed (Connect refused)

Eu já verifiquei no meu nó MAAS (no qual iniciei o script Openstack-Install) IP Tables- > Permitir qualquer um.

    
por Burkhard Warnsing 27.05.2015 / 08:47

1 resposta

1

Tente isso depois de limpar a instalação que falhou:

Edite o arquivo aqui:

sudo nano /etc/sysctl.conf

Não comentar esta linha:

net.ipv4.ip_forward=1

Agora reinicie o MAAS e tente instalar novamente.

Se isso não funcionar, tente atualizar o IPtables no MAAS com algo parecido com isto:

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-restore < /etc/iptables.sav

    
por Umair Chaudhry 22.10.2015 / 23:34