Commit Graph

295 Commits (cdc0266de52906d929a0c5239a7b5458844dc886)

Author SHA1 Message Date
Martin Kopec cdc0266de5 Allow to specify min flavor memory and disk size
python-tempestconf doesn't provide any way how to define a
different flavor memory and disk size but provides an option
for defining a custom image (not cirros which is default).
However, when using custom image the default flavor size is
not enough.
Therefore the review adds two arguments which can be used
for defining flavor minimum memory and minimum disk size.

The review also edits the documentation and fixes a few typos.

Change-Id: Iba14b65ff8e147765e47d223dea6231ab649135f
Story: 2001536
Task: 6341
2019-03-29 10:14:05 +00:00
Martin Kopec dbb2711c59 Add RNG device to images and flavours
Upload new images and flavours with random number generator
device [1]. It prevents the tests failing due to an image
not ready for login error and can improve image boot time.


Change-Id: I50114a3914e0df0e22706ca8a7a1649eb1ced31d
2019-03-28 14:56:32 +00:00
Zuul bc97c39df4 Merge "add python 3.7 unit test job" 2019-03-24 10:21:50 +00:00
Zuul ca51d4d94c Merge "Add support for microversions for compute" 2019-03-23 02:09:22 +00:00
Tom Barron 0517434055 Run with builtin manila wsgi
manila's devstack plugin now defaults to run the api behind a
uwsgi reverse proxy.  Disable that in this job and maintain
compatability with the previous configuration which uses the
wsgi interpreter built in to manila.

Change-Id: Ie567ea1bb839c1eb5eeabdf62eedade6161de1d2
2019-03-22 19:10:48 +00:00
Zuul c8e46be530 Merge "Remove aodh_plugin option" 2019-03-14 19:39:04 +00:00
Zuul a1a41459ee Merge "Remove SERVICE_NAMES" 2019-03-14 19:38:57 +00:00
Zuul 1a24b373ae Merge "Implement set_availability method" 2019-03-08 11:19:05 +00:00
Martin Kopec 19783839ab Add support for microversions for compute
The review adds code which sets microversions for compute
The change also adds method for filtering microversions
to service base class. In order to save one query, the
new filtering method doesn't query the cloud for versions,
it reuses the version response from the previous query
by set_versions method.

Story: 2004378
Task: 27990

Change-Id: I33f6df0995739fdcb12419d4dc08b257e430ca36
2019-03-06 22:54:43 +00:00
Martin Kopec 87a4e8128d Remove aodh_plugin option
aodh_plugin option under service_available section is
deprecated since telemetry-tempest-plugin version 0.2.0 [1]
which is available since queens [2].


Change-Id: I44b456c8ec98b11e0c865ffda7b311bc2c917b19
2019-03-05 21:48:08 +00:00
Martin Kopec e312be824d Remove SERVICE_NAMES
The rest of services listed in the SERVICE_NAMES got
a class implementation under config_tempest/services
directory in order to remove the hardcoded list of
services - SERVICE_NAMES.

Story: 2002787
Task: 29693

Change-Id: Ibc58236b581551f64dfaf21fb443ed8c1cc1282b
2019-03-05 21:44:28 +00:00
Martin Kopec 33e39f3606 Implement set_availability method
By implementing this method we will decrease dependency
on SERVICE_NAMES. python-tempestconf loops over any
service which has a class implementation under
config_tempest/services directory. Therefore we can easily
set service availability in the loop by calling
set_availability method which sets appropriate values in
[service_available] section of tempest.conf.

This review also fixes the problem with not taking
service's versions into account when setting service

Story: 2002787
Task: 29632

Change-Id: Ica42fe6ae57eaef6bffd28b557f6b178a2ed8fb9
2019-03-05 16:19:40 +00:00
Chandan Kumar 912d0defa1 Add tripleo-ci-centos-7-standalone-os-tempest job
tripleo-ci-centos-7-standalone-os-tempest adds the ability to test
os_tempest role with python-tempestconf, It needs to be gated here
so that it's implementation does not break the stuff.

Change-Id: I821a139fcedfc43fbdea86faf4c136500470fb1b
2019-03-05 17:32:42 +05:30
ZhongShengping 9dacbfd3f7 add python 3.7 unit test job
This is a mechanically generated patch to add a unit test job running
under Python 3.7.

See ML discussion here [1] for context.


Change-Id: I98223f5204796541fb88f5ec0b7d754fc1c4ca9a
Story: 2004073
Task: 27468
2019-03-01 11:36:06 +01:00
Zuul ea5e1f5638 Merge "Enable manila plugin in devstack" 2019-03-01 10:10:45 +00:00
Zuul 7bb74fce3d Merge "Add support for manila api microversion" 2019-02-28 17:42:49 +00:00
Martin Kopec be87a3a5cb Enable manila plugin in devstack
Change-Id: I510fd33a4aade2947a32b2cb2c48c1305de3ef9c
2019-02-25 12:40:48 +00:00
lkuchlan e8f8df9785 Add support for manila api microversion
There's a mismatch with Manila api microversions which leads to
many failures in tempest tests.
In order to resolve that issue the parameters 'min_api_microversion'
and 'max_api_microversion' should be added to tempest.conf.

Change-Id: Ie57e2f2752c8f520389a1d8a6c62ec5a21939eba
2019-02-24 08:55:56 +02:00
Chandan Kumar 72f0edffb0 Update image flavor to have some disk
It seems nova has changed defaults on who can create zero-sized
disk instances [1] and now os_tempest jobs failed with
Only volume-backed servers are allowed for flavors with zero disk.
Changing the disk to 1 fixes the same.


Change-Id: Id7467d037a7b0b4cb46add587395b21f28fb9df7
2019-02-19 11:28:15 +05:30
Martin Kopec f9b3c0588c Set refstack-client-*-tempestconf voting again
As the issue with refstack-client-devstack-tempestconf
job was fixed here:
we can set the job as voting again.

Change-Id: I00b803cc818a207255d7d3290b319001bb12738b
2019-01-04 17:38:52 +00:00
Zuul e54b6c82bc Merge "Added python-tempestconf-tempest-devstack-admin/demo-py3" 2019-01-04 14:52:35 +00:00
Zuul 877b05e94e Merge "Fix diff in gates" 2019-01-04 13:03:57 +00:00
Chandan Kumar 7faab49110 Added python-tempestconf-tempest-devstack-admin/demo-py3
* It will test python3 python-tempestconf stuff on devstack.
* use tempestconf_pip_virtualenv_python var when py3 based job
  is invoked.

Change-Id: Ic8a4d146203595a4381f7ae12dc98333589acae6
2019-01-04 16:31:50 +05:30
Zuul e226753f84 Merge "Update hacking version" 2019-01-04 10:47:34 +00:00
Martin Kopec 9317a78ac8 Fix diff in gates
The gates were using a diff command to determine if 2 tempest.conf
files contains the same sections, options and values.
However, this has turned out to be not a good approach, as the
values in tempest.conf can be written in a different order.
Therefore the patch adds a python script which is able to compare
values in 2 tempest.conf files regardless their order.

Change-Id: I65e30a6e3b4add39dd5b6eaf48e09ba450855dbc
2019-01-04 15:36:38 +05:30
Rafael Folco f53b91c83b Replace tripleo-scenario002-multinode with scenario002-standalone
Change-Id: I16c8a91d062b03b78251f70f8e9e7a64c75bf384
2019-01-03 16:35:24 -02:00
Chandan Kumar 7c355f403e Fixed SafeConfigParser deprecation warning for py3
Using six.PY3 as configparser.SafeConfigParser in py2 got
renamed to configparser.ConfigParser in py3. In order to
keep the codebase running on both version, we are using

Change-Id: I78471e3d0962cda610c22641787d80103eb413b0
2019-01-03 17:04:02 +05:30
ZhijunWei 54e8a66260 Update hacking version
Change-Id: Ic09d2c46eff76f1de12a780301c534affe58b43d
2018-12-28 23:05:15 +08:00
Martin Kopec d376c37fd6 Add unit test for profile feature
The patch adds a new unit test for profile feature.
The patch also converts all overrides values read from
profile.yaml to string as this is the data type of overrides.

Change-Id: I795b9b900b6274e689ba64b9721fb63e49696dea
2018-12-21 15:58:41 +00:00
Zuul 3a59007123 Merge "Add profile argument" 2018-12-19 18:55:13 +00:00
Zuul 7c285f64d5 Merge "Add argument which allows users to add extensions" 2018-12-18 14:29:40 +00:00
Martin Kopec af57dd6719 Add profile argument
The patch implements --profile argument, which defines a path to
a profile.yaml file - a file which contains python-tempestconf
arguments and their values.
Also --generate-profile argument is introduced. A user can generate
a sample profile.yaml file using this argument. The sample contains
definitions of all python-tempestconf arguments set to their default

Story: 2004503
Task: 28225

Change-Id: I80848d8ef9868ed3975b938d61880753eadc5ae9
2018-12-17 16:52:39 +00:00
Martin Kopec 3a4c6c7f6f Add argument which allows users to add extensions
--append argument appends a value or values to the specified
section.key pair. It may be helpful in cases when a user wants
to add custom extensions to tempest.conf in an automated job.

Change-Id: I116f4456823913f21b5f8f01ff2b14d42ec67dc2
Story: 2004429
Task: 28088
2018-12-17 16:43:05 +00:00
Quique Llorente a2568a5598 Adapt python-tempestconf to python3
As part of running tripleo standalone jobs at fedora28 we found that
parts of tempestconf were not adapted to python3, this review just add
needed stuff to run tripleo-fedora-28-standalone job there.


Change-Id: I850ff56c4ced2f3cbab05bb8c3b120e112a2acdd
2018-12-12 12:35:26 +00:00
Martin Kopec a99b846475 Handle Forbidden exception when creating role
Until now the code has been counting on the fact that demo user
can't list roles. This has changed and the code has started
faling on creating a new role because demo user doesn't have
proper permissions. The patch wraps the whole logic around listing
and creating roles to try except block.
The patch also sets refstack-client-devstack-tempestconf as non
voting, because in order to fix it this review needs to be
merged first.

Change-Id: Ief0916e4ec51a23c72ffd1cde529ecb33f949dec
2018-12-11 23:22:09 +00:00
98k e06dd67887 Change openstack-dev to openstack-discuss
Mailinglists have been updated. Openstack-discuss replaces openstack-dev.

Change-Id: I6a39f574a8ac6b58518f7bb86255908cbadd9253
2018-12-04 07:05:43 +00:00
Zuul e8ccab40d4 Merge "Constraint flake8 and pyflakes versions" 2018-12-03 13:44:53 +00:00
Martin Kopec e725235856 Fix flaky unit tests
The unit tests were flaky, because they were using a shared
variable and changing it.
The patch also fixes unused variables.

Change-Id: I2bc4225a395a34c0a61a289480231f36d12b00c6
2018-11-28 16:46:02 +00:00
Martin Kopec a1c232d61b Constraint flake8 and pyflakes versions
Versions of flake8 and pyflakes to be installed are inherited from
somewhere, which may be dangerous. Therefore the patch adds their
versions explicitly to test-requrirements.txt file.

Change-Id: I7c54407f6013c4c87fef4258cf963e393bea45b9
2018-11-27 17:55:14 +00:00
Vieri 2a81ce937d Add Python 3.6 classifier to setup.cfg
Change-Id: I928d2d680b7de67e8c113914cc297f10a5f13941
2018-11-27 07:17:42 +00:00
Zuul 7401f2d66e Merge "Set region_name from os-client-config to set identity.region" 2018-11-22 14:24:32 +00:00
Rabi Mishra ef2bc15127 Set region_name from os-client-config to set identity.region
We don't seem to set idenity.region which may not work in certain

Change-Id: Iebd24700420883a8993881cd8392bed8c772353e
2018-11-20 21:20:59 +05:30
Zuul 7bbe18290c Merge "Remove unnecessary CLI options from roles" 2018-11-19 15:14:32 +00:00
Zuul bec08788da Merge "Fix api microversion discover procedure" 2018-11-19 12:53:55 +00:00
Martin Kopec f9deb1a92e Remove unnecessary CLI options from roles
Overrides auth.admin_password and identity.uri are no longer

Change-Id: Iaa1f5bdd017ef443bf063fdd57c9cfdff75e9613
2018-11-18 21:11:53 +00:00
Zuul d2671f0ce6 Merge "use include_tasks instead of include" 2018-11-16 22:25:08 +00:00
Martin Kopec 93297b18d3 Different concurrency for tempest and accounts
It's better to generate more accounts in accounts.yaml file, otherwise
some tests may fail because they are trying to access certain credentials
with certian roles which are being used by other tests at that moment.

Change-Id: I698b1b83864009a299ca51c10f8a36e73793369d
2018-11-16 00:13:33 +00:00
lkuchlan 8c5aea2195 Fix api microversion discover procedure
We can not rely on the response length of 'set_api_microversion' to
be the same everytime, otherewise it'll insert an incorrect values into
microversions parameters, therefore we should should filter the response
according to the desired api version, in our case is v3.

Change-Id: I8163ff4a2e6fb10fea7efadbf15937a80110f1b2
2018-11-12 17:33:00 +02:00
Zuul 139a83d811 Merge "Add python 3.6 unit test job" 2018-11-09 19:26:51 +00:00
Zuul df79019f2c Merge "Set use_dynamic_credentials with a priority" 2018-11-09 14:20:07 +00:00