Commit Graph

5 Commits

Author SHA1 Message Date
Slawek Kaplonski 32b0f8b7ae [Stateless SG] Test if TCP packets with various conn state are allowed
In stateless SG there is no connection track so TCP packet of any type
should be allowed by SG. This patch adds test which spawns 2 vms,
connected to 2 different networks and the same router. Both vms are
using different stateless SGs. Finally test asserts that packets of any
of the TCP type (syn, ack, syn-ack, psh, rst, fin) sent from one of the
vms can reach second one.

Change-Id: I23a4b282c83101526af05aa309d578aecaef1fa9
2023-03-28 08:15:20 +00:00
Slawek Kaplonski 7e5923ac25 Use Ubuntu minimal image as advanced guest image
Ubuntu minimal is smaller than regular cloud image.
It should works fine with less memory and boot faster than in
the gates.

Change-Id: Ie281698ecef05fd7ddf831eabd0e0121ac477709
2021-10-12 09:44:37 +02:00
Federico Ressi 71bda86402 Add guest image customization to DevStack plugin.
CI jobs for this plugin use DevStack to install and configure
OpenStack and to upload guest images to be used for tests.

This change allow to customize guest images just before
being sent to image service with the purpose of installing
new packages (like socat), configuring N network devices, etc.

This change has been created because for testing multicast
socat is required, but it was designed with the idea
of being used to allow further guest images customizations.

Change-Id: I88491dbb65031fe3743d1c3d27c38a57b5511794
2018-10-02 16:23:19 +00:00
Federico Ressi 08c74e9e76 Add script to customize Ubuntu guest images.
The script is intended to be used from any openstack deployment	system
as TripleO, Devstack, etc. to prepare ubuntu guest images before being
uploaded to OpenStack image service.

It has not been possible to virt-customize because of below Ubuntu bugs:
 - https://bugs.launchpad.net/ubuntu/+source/libguestfs/+bug/1632405
 - https://bugs.launchpad.net/ubuntu/+source/isc-dhcp/+bug/1650740

It has therefore been adopted a more low level strategy performing below
steps:
 - mount guest image to a temporary folder
 - set up an environment suitable for executing chroot
 - execute customize_image function inside chroot environment
 - cleanup chroot environment

Packages required by the script:
 - libguestfs-tools

Packages installed on customized guest images:
 - socat (for advance network feature testing, like multicast)

This change has been created because for testing multicast
socat is required, but it was designed with the idea
of being used to allow further guest images customizations.

Change-Id: Ia60991d9170495e9d41f583765b24d6cdf442639
2018-07-03 10:53:18 +02:00
Dongcan Ye 6381395cc0 Add duplicated idempotent_ids checks
Add a shell script for duplicated idempotent_ids checks,
this is a copy from Neutron repo.

Change-Id: I0a00f9830a7d29812bcccc257a1bea8a6477d9e8
2017-11-18 14:22:25 +08:00