6 Commits

Author SHA1 Message Date
Jimmy McCrory
24cb41d08f Set container_name as host_var in test inventory
The connection plugin no longer falls back on using the
inventory_hostname as the container_name. Set container_name as a host
var for each container in the test inventory.

Change-Id: I1bf946bd8a9341c9d5030affac5779cbcbe94be6
2018-10-20 15:28:29 -07:00
Jonathan Rosser
0d770a8b22 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

Depends-On: https://review.openstack.org/#/c/586898
Change-Id: I2947a633ea256460db4f43f7921d20d6dfec5aab
2018-07-30 17:25:20 +01:00
Jesse Pretorius
f4b17afd21 Remove lxc_container_bind_mounts in test group_vars
The value set in this var is already set as part of
lxc_container_default_bind_mounts in the tests repo
test-vars.yml so it's redundant.

Change-Id: I48c0ffb8f95b30fabcdeba0c740bc2e737960c6f
2017-04-04 18:16:20 +01:00
Andy McCrae
58bf83cd4c Use openstack-ansible-tests and ansible 2.1.1
This PR incorporates the openstack-ansible-tests bits into
openstack-ansible-os_neutron as well as adjusting the settings to use
ansible 2.1.1.

Change-Id: I7174b920f20488a5e1d514a8f32754bb95bb60de
Co-Authored-By: Travis Truman <travis_truman@cable.comcast.com>
2016-09-22 14:33:03 +01:00
Jean-Philippe Evrard
7fdd2a244e Add container logs to the build
Currently we don't have logs of what happened in the containers.
This commit uses the lxc_container_create ability to bind mount the
/var/log directory from the containers inside the host on
/var/log/{{ inventory_hostname}}.

Change-Id: I836517f6a0e27c9554c54f01713f54a2b6384782
Signed-off-by: Jean-Philippe Evrard <jean-philippe.evrard@rackspace.co.uk>
2016-09-14 16:53:01 +00:00
Matt Thompson
30bc02a589 Neutron test cleanup
This commit does the following:

- fully defines the inventory rather than having test-prepare-host.yml
  add containers to it
- updates test-prepare-keys.yml to use localhost instead of 127.0.0.1,
  uses become_user=jenkins instead of become=false, and removes
  redundant connection
- updates test-prepare-host.yml by changing 127.0.0.1 to localhost, and
  removes mocking ansible_env
- groups vars in defined in each individual file into a single
  test-vars.yml file
- installs libffi-dev in test-install-neutron.yml, which is necessary
  to build neutron (installed by default in gate, so not an issue
  there)
- switches neutron_provider_networks to vxlan, otherwise
  neutron-linuxbridge-agent doesn't actually work correctly

Change-Id: Ice7e4762fb184d9172c6b8192f4e6d1732654bb9
2016-04-03 12:02:06 +00:00