Running on Ubuntu 18.04.1 (bionic)
following instructions from:
https://docs.openstack.org/project-deploy-guide/kolla-ansible/queens/quickstart.html
with the exception that:
kolla_base_distro: "centos"
is
kolla_base_distro: "ubuntu"
and network devices are eno1 & eno2
ifconfig output:
root@cube:~/kolla-quickstart/kolla-ansible# ifconfig
docker0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 172.17.0.1 netmask 255.255.0.0 broadcast 172.17.255.255
ether 02:42:1c:d3:01:bb txqueuelen 0 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
eno1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.2.100 netmask 255.255.255.0 broadcast 192.168.2.255
inet6 fe80::b8e4:2c0b:4766:ea85 prefixlen 64 scopeid 0x20<link>
ether 00:fd:45:fc:f4:e0 txqueuelen 1000 (Ethernet)
RX packets 295747 bytes 397147474 (397.1 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 169610 bytes 43103016 (43.1 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 16
eno2: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.2.110 netmask 255.255.255.0 broadcast 192.168.2.255
inet6 fe80::6e6a:3f3e:4ec4:732d prefixlen 64 scopeid 0x20<link>
ether 00:fd:45:fc:f4:e1 txqueuelen 1000 (Ethernet)
RX packets 12730 bytes 2710852 (2.7 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 158 bytes 21930 (21.9 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 17
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 612 bytes 54716 (54.7 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 612 bytes 54716 (54.7 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
kolla-ansible -v -i ./ansible/inventory/all-in-one deploy output:
TASK [haproxy : Ensuring config directories exist] ******************************************************************************************************************************************************************************************
ok: [localhost] => (item={‘value’: {u’group’: u’haproxy’, u’dimensions’: {}, u’image’: u’kolla/ubuntu-binary-haproxy:queens’, u’enabled’: True, u’volumes’: [u’/etc/kolla//haproxy/:/var/lib/kolla/config_files/:ro’, u’/etc/localtime:/etc/localtime:ro’, u’haproxy_socket:/var/lib/kolla/haproxy/‘], u’container_name’: u’haproxy’, u’privileged’: True}, ‘key’: u’haproxy’}) => {“changed”: false, “gid”: 0, “group”: “root”, “item”: {“key”: “haproxy”, “value”: {“container_name”: “haproxy”, “dimensions”: {}, “enabled”: true, “group”: “haproxy”, “image”: “kolla/ubuntu-binary-haproxy:queens”, “privileged”: true, “volumes”: [“/etc/kolla//haproxy/:/var/lib/kolla/config_files/:ro”, “/etc/localtime:/etc/localtime:ro”, “haproxy_socket:/var/lib/kolla/haproxy/”]}}, “mode”: “0770”, “owner”: “root”, “path”: “/etc/kolla//haproxy”, “size”: 4096, “state”: “directory”, “uid”: 0}
ok: [localhost] => (item={‘value’: {u’group’: u’haproxy’, u’dimensions’: {}, u’image’: u’kolla/ubuntu-binary-keepalived:queens’, u’enabled’: True, u’volumes’: [u’/etc/kolla//keepalived/:/var/lib/kolla/config_files/:ro’, u’/etc/localtime:/etc/localtime:ro’, u’/lib/modules:/lib/modules:ro’, u’haproxy_socket:/var/lib/kolla/haproxy/‘], u’container_name’: u’keepalived’, u’privileged’: True}, ‘key’: u’keepalived’}) => {“changed”: false, “gid”: 0, “group”: “root”, “item”: {“key”: “keepalived”, “value”: {“container_name”: “keepalived”, “dimensions”: {}, “enabled”: true, “group”: “haproxy”, “image”: “kolla/ubuntu-binary-keepalived:queens”, “privileged”: true, “volumes”: [“/etc/kolla//keepalived/:/var/lib/kolla/config_files/:ro”, “/etc/localtime:/etc/localtime:ro”, “/lib/modules:/lib/modules:ro”, “haproxy_socket:/var/lib/kolla/haproxy/”]}}, “mode”: “0770”, “owner”: “root”, “path”: “/etc/kolla//keepalived”, “size”: 4096, “state”: “directory”, “uid”: 0}
TASK [haproxy : Copying over config.json files for services] ********************************************************************************************************************************************************************************
ok: [localhost] => (item={‘value’: {u’group’: u’haproxy’, u’dimensions’: {}, u’image’: u’kolla/ubuntu-binary-haproxy:queens’, u’enabled’: True, u’volumes’: [u’/etc/kolla//haproxy/:/var/lib/kolla/config_files/:ro’, u’/etc/localtime:/etc/localtime:ro’, u’haproxy_socket:/var/lib/kolla/haproxy/‘], u’container_name’: u’haproxy’, u’privileged’: True}, ‘key’: u’haproxy’}) => {“changed”: false, “checksum”: “ebcb7a0512dcfc94024628d3b70a1abef59eea1a”, “dest”: “/etc/kolla//haproxy/config.json”, “gid”: 0, “group”: “root”, “item”: {“key”: “haproxy”, “value”: {“container_name”: “haproxy”, “dimensions”: {}, “enabled”: true, “group”: “haproxy”, “image”: “kolla/ubuntu-binary-haproxy:queens”, “privileged”: true, “volumes”: [“/etc/kolla//haproxy/:/var/lib/kolla/config_files/:ro”, “/etc/localtime:/etc/localtime:ro”, “haproxy_socket:/var/lib/kolla/haproxy/”]}}, “mode”: “0660”, “owner”: “root”, “path”: “/etc/kolla//haproxy/config.json”, “size”: 532, “state”: “file”, “uid”: 0}
ok: [localhost] => (item={‘value’: {u’group’: u’haproxy’, u’dimensions’: {}, u’image’: u’kolla/ubuntu-binary-keepalived:queens’, u’enabled’: True, u’volumes’: [u’/etc/kolla//keepalived/:/var/lib/kolla/config_files/:ro’, u’/etc/localtime:/etc/localtime:ro’, u’/lib/modules:/lib/modules:ro’, u’haproxy_socket:/var/lib/kolla/haproxy/‘], u’container_name’: u’keepalived’, u’privileged’: True}, ‘key’: u’keepalived’}) => {“changed”: false, “checksum”: “6cd3d9b1cd3bfafebb7afe9c5ee0f1991e7cb26c”, “dest”: “/etc/kolla//keepalived/config.json”, “gid”: 0, “group”: “root”, “item”: {“key”: “keepalived”, “value”: {“container_name”: “keepalived”, “dimensions”: {}, “enabled”: true, “group”: “haproxy”, “image”: “kolla/ubuntu-binary-keepalived:queens”, “privileged”: true, “volumes”: [“/etc/kolla//keepalived/:/var/lib/kolla/config_files/:ro”, “/etc/localtime:/etc/localtime:ro”, “/lib/modules:/lib/modules:ro”, “haproxy_socket:/var/lib/kolla/haproxy/”]}}, “mode”: “0660”, “owner”: “root”, “path”: “/etc/kolla//keepalived/config.json”, “size”: 299, “state”: “file”, “uid”: 0}
TASK [haproxy : Copying over haproxy.cfg] ***************************************************************************************************************************************************************************************************
failed: [localhost] (item=/usr/local/share/kolla-ansible/ansible/roles/haproxy/templates/haproxy.cfg.j2) => {“changed”: false, “item”: “/usr/local/share/kolla-ansible/ansible/roles/haproxy/templates/haproxy.cfg.j2”, “msg”: “AnsibleUndefinedVariable: ‘dict object’ has no attribute ‘glance-registry’”}
to retry, use: --limit @/usr/local/share/kolla-ansible/ansible/site.retry
PLAY RECAP **********************************************************************************************************************************************************************************************************************************
localhost : ok=30 changed=0 unreachable=0 failed=1
Command failed ansible-playbook -i ./ansible/inventory/all-in-one -e @/etc/kolla/globals.yml -e @/etc/kolla/passwords.yml -e CONFIG_DIR=/etc/kolla --limit @/usr/local/share/kolla-ansible/ansible/site.retry -e kolla_action=deploy /usr/local/share/kolla-ansible/ansible/site.yml --verbose
root@cube:~/kolla-quickstart/kolla-ansible#
haproxy file exists and has valid content.
any ideas much appreciated
Many thanks
Pete