Comment 5 for bug 1703618

Revision history for this message
Martin (marniemann) wrote :

I am sorry but things seem to be broken at some other place...

What I did:
- Get fresh systems on control and compute node.
- Load the current version of openstack-ansible from stable/newton
- bootstrap the control node
- run playbooks
- redefine the variable lxc_architecture_mapping in user_variables as proposed in https://bugs.launchpad.net/openstack-ansible/+bug/1703612/ (this change is required, otherwise lxc-create fails because the arch argument is empty)

What I get:
- lxc container preparation fails during setup-hosts
- Detailed error message with max verbosity (haec2 is the control node's hostname):
TASK [lxc_hosts : Prepare cached image setup commands] *************************
task path: /etc/ansible/roles/lxc_hosts/tasks/lxc_cache_preparation.yml:71
container_name: "haec2"
physical_host: "haec2"
container_name: "haec2"
physical_host: "haec2"
<192.168.0.100> ESTABLISH SSH CONNECTION FOR USER: root
<192.168.0.100> SSH: EXEC ssh -C -q -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=5 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o ServerAliveInterval=64 -o ServerAliveCountMax=1024 -o Compression=no -o TCPKeepAlive=yes -o VerifyHostKeyDNS=no -o ForwardX11=no -o ForwardAgent=yes -T -o ControlPath=/home/stack/.ansible/cp/ansible-ssh-%h-%p-%r 192.168.0.100 '/bin/sh -c '"'"'LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python && sleep 0'"'"''
fatal: [haec2]: FAILED! => {"changed": true, "cmd": ["chroot", "/var/lib/lxc/LXC_NAME/rootfs", "/usr/local/bin/cache-prep-commands.sh"], "delta": "0:00:00.003277", "end": "2017-07-26 14:23:42.061475", "failed": true, "invocation": {"module_args": {"_raw_params": "chroot /var/lib/lxc/LXC_NAME/rootfs /usr/local/bin/cache-prep-commands.sh", "_uses_shell": false, "chdir": null, "creates": null, "executable": null, "removes": null, "warn": true}, "module_name": "command"}, "rc": 126, "start": "2017-07-26 14:23:42.058198", "stderr": "chroot: failed to run command ‘/usr/local/bin/cache-prep-commands.sh’: Exec format error", "stdout": "", "stdout_lines": [], "warnings": []}