Commit Graph

9 Commits

Author SHA1 Message Date
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
Bernard Cafarelli d30297b7d4
Check if advanced image flavor already exists
Flavor added in 79c679683d fails in
at least stable/wallaby neutron-ovn-tempest-slow job, as the flavor
already exists.

This checks if a flavor with this name already exists before trying to
create it

Change-Id: I624f53e39c4bcdd988900aca375ee5e4ddd445fe
Related-Bug: #1940243
2021-08-24 16:39:29 +02:00
Rodolfo Alonso Hernandez 79c679683d Create a 384MB flavor for advance image
In order to reduce the CI memory consuption, this patch creates a 384MB
flavor to replace the 512MB previously used for the advance image
(Ubuntu 18.04).

Flavor specs:
- 384MB RAM: aroung 100MB are used when the VM is started.
- 4GB disk: around 1,1GB are used when the VM is started.
- 1 VCPU.

Change-Id: I267a848d57183ddc39128f12d40b076360dfd3bc
Partial-Bug: #1940243
2021-08-19 13:33:19 +00:00
Bernard Cafarelli 0bdc63d7c1
Only install plugin system-wide if INSTALL_TEMPEST is set
Similarly to main tempest installation check, we should only install
plugin on master branches (where INSTALL_TEMPEST is True), and not on
stable branches

Also drop all-plugin use for tox_envlist in stadium jobs that were using
it, it is deprecated and breaks with this new variable

Change-Id: Ia7238c2044053d77b559de544c22909c50e1a11f
Co-Authored-By: Ghanshyam Mann <gmann@ghanshyammann.com>
Closes-Bug: #1873776
2020-04-21 10:28:07 +02:00
caoyuan d49cf7ab5c Replace git.openstack.org URLs with opendev.org URLs
Change-Id: If60f0bea94b5cf1009466c6371a4c8ee06e9c728
2019-04-26 17:31:20 +08:00
Slawek Kaplonski 4ba1c80df8 Don't customize image before upload it to Glance by default
Commit [1] provided new possibility to customize e.g. Ubuntu
image and e.g. install some additional packages just before
upload it to Glance in Devstack's stack.sh script.
It was done to be able to install e.g. socat package to test
multicast.
But until now we don't have tests which would use this and
this customization causes sometimes job failures when
there is package and index mismatch.

So there is no need to customize image always by default.
If we will need to use this customization, we should use
OpenStack's infra mirrors of Ubuntu repositories and then
enable this option for job where its needed.

[1] https://review.openstack.org/#/c/573702/

Change-Id: Ie84c0ae56dbd42cd522c4258903b7eafb435004f
Closes-Bug: #1821384
2019-03-23 16:02:24 +01:00
Slawek Kaplonski da17f00f2f Use advanced image only when it's necessary
In some scenario tests there is need to use advanced image,
like Ubuntu or Centos, because Cirros doesn't provide required
features.
It is like that in some tests from modules:

    neutron_tempest_plugin.scenario.test_mtu
    neutron_tempest_plugin.scenario.test_trunk

But such advanced image needs much more time to boot and to
have SSH to vm available.

There is no need to use such advanced image in all tests.

This patch makes some changes in tempest plugin config options:

* image_is_advanced - option is removed,
* advanced_image_ref - new option added - it's uuid for advanced image,
* advanced_flavor_ref - new option added - id of flavor to use with
  advanced image
* advanced_image_ssh_user - new option added - name of user to use
  to ssh to vm booted from advanced image,

This patch also modify neutron_tempest_plugin devstack plugin that
it now can find advanced image id in installed Glance service and
configure those new config options in Tempest's config file.

This patch also modifies scenario jobs definitions that this
new advanced_image can be configured and used when it's nesessary.

Finally this patch also changes tests mentioned above that now
this advanced image is used in those tests.
All other scenario tests should works with default, Cirros image.

Change-Id: If1b83fbaf33cc01473badeb5cabc8e8670d51d9e
2018-10-15 23:03:25 +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
Jens Harbott 228d5b8fb9 Add devstack plugin to ease integration tests
Instead of requiring users to install the plugin manually, add a
devstack plugin that can be enabled in order to perform the
installation.

Change the integration tests to use the globally installed plugin
instead of using TEMPEST_PLUGINS.

Change-Id: I7282fa60db15427c73dfef84a40093904e083db2
2017-12-06 15:08:50 +00:00