Deployment-Error: Networking in Kolla - OVS with DPDK in OpenStack stable/queens

asked 2018-08-08 03:02:17 -0600

There is something wrong with kolla-ansible deployment. What did I miss? Thanks for all your kindness and support.

  • Reference
https://docs.openstack.org/kolla-ansible/latest/reference/networking-guide.html#ovs-with-dpdk
  • Information
# uname -r
4.4.0-131-generic

# dmesg | grep -e "IOMMU enabled"
[    0.000000] DMAR: IOMMU enabled

# cat /proc/meminfo | grep Huge
AnonHugePages:         0 kB
HugePages_Total:   25000
HugePages_Free:    25000
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB

# grep -vE '^$|^#' /etc/kolla/globals.yml
---
kolla_base_distro: "ubuntu"
kolla_install_type: "source"
openstack_release: "queens"
kolla_internal_vip_address: "10.10.10.10"
network_interface: "enp15s0"
tunnel_interface: "dpdk_bridge"
neutron_external_interface: "enp135s0f0"
enable_haproxy: "no"
enable_openvswitch: "yes"
enable_ovs_dpdk: "yes"
ovs_datapath: "netdev"
neutron_bridge_name: "dpdk_bridge"
ovs_datapath: "netdev"

# /usr/src/dpdk-stable-17.11.3/usertools/dpdk-devbind.py --status | grep -E "enp15s0|enp135s0f0"
0000:0f:00.0 'I210 Gigabit Network Connection 1533' if=enp15s0 drv=igb unused=vfio-pci *Active*
0000:87:00.0 'Ethernet Controller X710 for 10GbE SFP+ 1572' if=enp135s0f0 drv=i40e unused=vfio-pci
  • Error
TASK [ovs-dpdk : Copying ovs-dpdkctl tool] *************************************
changed: [localhost]

TASK [ovs-dpdk : Install ovs-dpdkctl service and config] ***********************
changed: [localhost]

TASK [ovs-dpdk : Check ovs containers] *****************************************
changed: [localhost] => (item={'value': {u'dimensions': {}, u'image': u'kolla/ubuntu-source-ovsdpdk-db:queens', u'enabled': True, u'host_in_groups': True, u'volumes': [u'/etc/kolla//ovsdpdk-db/:/var/lib/kolla/config_files/:ro', u'/etc/localtime:/etc/localtime:ro', u'/run:/run:shared', u'kolla_logs:/var/log/kolla/', u'ovsdpdk_db:/var/lib/openvswitch/'], u'container_name': u'ovsdpdk_db'}, 'key': u'ovsdpdk-db'})
changed: [localhost] => (item={'value': {u'dimensions': {}, u'image': u'kolla/ubuntu-source-ovsdpdk-vswitchd:queens', u'enabled': True, u'host_in_groups': True, u'volumes': [u'/etc/kolla//ovsdpdk-vswitchd/:/var/lib/kolla/config_files/:ro', u'/etc/localtime:/etc/localtime:ro', u'/lib/modules:/lib/modules:ro', u'/run:/run:shared', u'/dev:/dev:shared', u'kolla_logs:/var/log/kolla/'], u'container_name': u'ovsdpdk_vswitchd', u'privileged': True}, 'key': u'ovsdpdk-vswitchd'})

RUNNING HANDLER [ovs-dpdk : Restart ovsdpdk-db container] **********************
[DEPRECATION WARNING]: Using tests as filters is deprecated. Instead of using
`result|changed` use `result is changed`. This feature will be removed in
version 2.9. Deprecation warnings can be disabled by setting
deprecation_warnings=False in ansible.cfg.
changed: [localhost]

RUNNING HANDLER [ovs-dpdk : Waiting the ovs db service to be ready] ************
[DEPRECATION WARNING]: Using tests as filters is deprecated. Instead of using
`result|success` use `result is success`. This feature will be removed in
version 2.9. Deprecation warnings can be disabled by setting
deprecation_warnings=False in ansible.cfg.
ok: [localhost]

RUNNING HANDLER [ovs-dpdk : Ensuring ovsdpdk bridges are properly setup indexed] ***
fatal: [localhost]: FAILED! => {"msg": "The conditional check '(inventory_hostname in groups['compute'] or (enable_manila | bool and inventory_hostname in groups['manila-share']) or inventory_hostname in groups['neutron-dhcp-agent'] or inventory_hostname in groups['neutron-l3-agent'] or inventory_hostname in groups['neutron-metadata-agent']' failed. The error was: template error while templating string: unexpected '}', expected ')'. String: {% if (inventory_hostname in groups['compute'] or (enable_manila | bool and inventory_hostname in groups['manila-share']) or inventory_hostname in groups['neutron-dhcp-agent'] or inventory_hostname in groups['neutron-l3-agent'] or inventory_hostname in groups['neutron-metadata-agent'] %} True {% else %} False {% endif %}\n\nThe error appears to have been in '/usr/local/share/kolla-ansible/ansible/roles/ovs-dpdk/handlers/main.yml': line 41, column 3, but may\nbe elsewhere in the ...
(more)
edit retag flag offensive close merge delete