Openstack-Ansible deployment issue
Im trying to test deploying Openstack using Ansible into two node, just a controller node and the deployment node,
This deployment follow the offical Openstack Ansible tutorial
I
m just using br-mgmt for my test to simplify the process. I deployed br-mgmt on both nodes
here are the "interfaces" file and "open_user_config.yml" file
My OS is Ubuntu 16.04
My Interfaces File:
auto enp5s4f0
iface enp5s4f0 inet manual
bond-master bond0
bond-primary enp5s4f0
auto enp5s4f1
iface enp5s4f1 inet manual
bond-master bond0
auto bond0
iface bond0 inet manual
bond-mode active-backup
bond-miimon 100
bond-slaves none
bond-downdelay 200
bond-updelay 200
########################
# Container/Host management VLAN interface
auto bond0.10
iface bond0.10 inet manual
vlan-raw-device bond0
########################
auto br-mgmt
iface br-mgmt inet static
bridge_stp off
bridge_waitport 0
bridge_fd 0
bridge_ports bond0 bond0.10
address 10.199.183.210
gateway 10.199.183.196
netmask 255.255.255.192
################################################
# Mydeployment file openstack_user_config.yml :
cidr_networks:
container: 10.199.183.0/26
global_overrides:
external_lb_vip_address: 10.199.183.10
# internal_lb_vip_address: 10.199.183.211
internal_lb_vip_address: 10.199.183.9
tunnel_bridge: "br-vxlan"
management_bridge: "br-mgmt"
provider_networks:
- network:
container_bridge: "br-mgmt"
container_type: "veth"
container_interface: "eth1"
ip_from_q: "container"
type: "raw"
group_binds:
- all_containers
- hosts
is_container_address: true
is_ssh_address: true
repo-infra_hosts:
infra1:
ip: 10.199.183.211
identity_hosts:
infra1:
ip: 10.199.183.211
TASK [lxc_hosts : Deploy ssh public key into the cached image] ********************************************************************
2018-05-10 07:23:06,476 p=10229 u=root | Thursday 10 May 2018 07:23:06 -0400 (0:00:00.122) 0:52:35.453 **********
2018-05-10 07:23:06,753 p=10229 u=root | changed: [infra1]
2018-05-10 07:23:06,785 p=10229 u=root | TASK [lxc_hosts : Ensure that the LXC cache has been prepared] ********************************************************************
2018-05-10 07:23:06,785 p=10229 u=root | Thursday 10 May 2018 07:23:06 -0400 (0:00:00.308) 0:52:35.762 **********
2018-05-10 07:23:07,043 p=10229 u=root | fatal: [infra1]: FAILED! => {"ansible_job_id": "772697560902.10188", "attempts": 1, "changed": true, "cmd":
"chroot /var/lib/machines/ubuntu-xenial-amd64 /usr/local/bin/cache-prep-commands.sh > /var/log/lxc-cache-prep-commands.log 2>&1",
"delta": "0:00:00.019499", "end": "2018-05-10 07:23:05.422647", "failed": true, "finished": 1, "msg": "non-zero return code", "rc": 1,
"start": "2018-05-10 07:23:05.403148", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []}
2018-05-10 07:23:07,045 p=10229 u=root | RUNNING HANDLER [lxc_hosts : Remove generated apt keys from LXC host]