Add lxc3 compatibility to tests

lxc3 deprecates many legacy config keys [1].

[1] https://discuss.linuxcontainers.org/t/lxc-2-1-has-been-released/487

Change-Id: I27e343210678d2898163d00b5f45c2c2537a3945
This commit is contained in:
Jonathan Rosser 2018-07-30 10:32:41 +01:00
parent a72c53d47e
commit e030ab332a
1 changed files with 7 additions and 2 deletions

View File

@ -27,5 +27,10 @@ properties:
# NOTE(cloudnull): The lxc-openstack AA profile for is used to ensure general
# container functionality typical to the integrated build.
lxc_container_config_list:
- "lxc.aa_profile=lxc-openstack"
lxc2_container_config_list:
- 'lxc.aa_profile=lxc-openstack'
lxc3_container_config_list:
- 'lxc.apparmor.profile=lxc-openstack'
lxc_container_config_list: "{{ lookup('pipe', 'lxc-info --version || echo 2.0.0') is version_compare('3.0.0', 'lt') | ternary(lxc2_container_config_list, lxc3_container_config_list) }}"