Commit Graph

171 Commits (ab4e518bab36660d72b243803a2a647f0f0c969e)

Author SHA1 Message Date
Zuul ab4e518bab Merge "Replace tenant by project, part 2" 2018-06-27 12:44:52 +00:00
Luigi Toscano cdbc98572d More compatibility with Python 3
- use the six version of configparser and urllib, and depends on six;
- remove relative imports;
- adapt few tests to the changes.

The changes above should be noop from the point of view of
functionalities, at least on python 2.

And also:
- replace the py34 tox virtualenv with py35;
- add a non-voting py35 job (locally for now, it will be enabled
  to project-config also for gating when stable).

Story: 2002574
Task: 22142
Change-Id: I0a35abaae6f5b7095ebae765fbe2163046e0a4da
2018-06-26 23:20:52 +02:00
Zuul 16f0a1c66e Merge "Configure tempest for Octavia tests" 2018-06-26 15:29:47 +00:00
Nir Magnezi 45ed967efa Configure tempest for Octavia tests
Story: 2001768
Task: 12474

Change-Id: I457e6a31ecb631f70e3853e4dc88c9d22cac20b3
2018-06-24 23:25:18 +03:00
Martin Kopec 1bd20dca53 Replace tenant by project, part 2
Story: 2002116
Task: 20023
Change-Id: I465fe96120ed5609c2747b587963d2e5f57b55be
2018-06-22 10:42:06 +00:00
Zuul 02ca23a08d Merge "Use healthcheck api to determine swift service" 2018-06-21 15:24:37 +00:00
Chandan Kumar f5bfc21351 Use healthcheck api to determine swift service
* Added check_service_status to determine the service
  availability and later on it will be used for all services.

* Removed hardcoded values for swift services
* As swift was disabled earlier, SwiftOperator was not getting used
  and it is not present in the CI Job, let's use member role for
  the same.
* Set operator_role default to admin if admin credential is available
  otherwise, set operator_role to ResellerAdmin
* Do not fail if a conflict exist in roles names

Story: 2001253
Task: 5783

Co-Authored-By: Arx Cruz <>
Closes-Bug: 1776729
Change-Id: Ie1e9d8e98fde460f9270c2799f971ea017d10d84
2018-06-21 11:32:35 +02:00
Martin Kopec 7b2c156d52 Fix operator_role value for account-generator
When a tempest.conf is generated with admin credentials and
swift is enabled, object-storage.operator_role is set to admin.
This behavior is not wanted, when we generate tempest.conf
for tempest account-generator. In this case the operator_role
will be overriden in cli and set to Member (the same value
as tempest.conf with demo credentials contains)

Change-Id: I8b6e6a814a7cb96ef47bc6d3a8edc3f6a29aebfa
2018-06-19 10:19:05 +00:00
Zuul 686efa4860 Merge "Fix boto method" 2018-06-18 10:08:56 +00:00
Martin Kopec ee518bf91f Fix boto method
Due to the ongoing refactoring, ec2_service option of boto method
was forgotten and is never used in the code.
The patch adds it back and moves the functionality of configure_boto
method to set_default_tempest_options one.

Change-Id: Ic92f647fd7ad8d40c7393949716990243a401ba7
Story: 2002120
Task: 19799
2018-06-15 22:02:19 +00:00
Zuul 6935a898bb Merge "Generate accounts.yaml" 2018-06-15 17:39:28 +00:00
Martin Kopec 243ab6cb47 Generate accounts.yaml
Generate accounts.yaml file when create_accounts_file
is specified and test_accounts is not.

Story: 2001693
Task: 8685

Change-Id: I7ed8390b29a430d97e1846f8f868f5b6af8eb02b
2018-06-14 12:54:01 +00:00
Martin Kopec 6d7968bb16 Fix username is not defined warning
The tool tries to find the credentials in auth section first
and if it gets None, it tries identity section then. Because
of this a unnecessary warning message is logged out.
The patch changes the way, how the credentials are retrieved
from conf, so that there are no warnings.

Change-Id: I841241bddeb12cac9207c15e9dc4e1de8860791b
Story: 2002539
Task: 22085
2018-06-13 19:08:02 +00:00
Zuul b8f5b25728 Merge "Switch to openstackdocstheme (doc and release notes)" 2018-06-13 10:56:13 +00:00
Zuul cf2b33b5df Merge "Allow non admin users to upload image to glance" 2018-06-13 10:56:12 +00:00
Zuul a27aa23a92 Merge "Fix identity service url for v3" 2018-06-13 10:56:11 +00:00
Zuul 5bae63c966 Merge "Remove admin_* from identity section" 2018-06-13 10:05:19 +00:00
Chandan Kumar 48f7e5e8e1 Fix identity service url for v3
  removes paste.ini and moves to flask, the service_url is expecting /v3
  in the end otherwise it will return 500 error.
* It also added code for checking status code and use
  requests.exceptions.HTTPError instead of RequestsException.
  It will catch ConnectionErrors or TimeoutErrors and others

Closes-Bug: #1776301

Change-Id: I6b0310ee5437ff428cc7321035656c7cb4f86773
2018-06-12 23:44:22 +02:00
Chandan Kumar a5c6dc0977 Allow non admin users to upload image to glance
* Currently only users having admin related permission, has the
  ability to upload image to glance which later used to set Image/
  image_alt ref in tempest.conf. In order to make easier for non-admin
  user, this changes allow the same and if the user does not have
  permission to do the same, it will log an exception with the
  proper message as non-admin user can upload the image from CLI.

* Fixed set_default_tempest_options method for image as it is giving
  AttributeError: 'ImageService' object has no attribute 'image_path
  because image_path is set in set_image_preferences which is called
  after service_class in which leads to the above error.

* Removed additional overrides image.http_image from roles

Change-Id: I3ab32b6c5628281f55193291cd367dcdb76a5571
2018-06-12 15:44:06 +00:00
Zuul e9606a5715 Merge "Replace tenant by project, part 1" 2018-06-11 17:38:29 +00:00
Martin Kopec 4912283b03 Remove admin_* from identity section
Since Tempest 12 following values are removed from
identity section:
 - admin_username
 - admin_password
 - admin_project_name
The values were moved to auth section.

Change-Id: Ia98c9449b3fdc7aae40d204f0e2da44f987a5f9d
2018-06-11 14:46:56 +00:00
Martin Kopec 283de20574 Replace tenant by project, part 1
Replace use of tenant when it's setting to or reading from
tempest.conf (conf object).
The change is needed for correct reading of that value in
dependent patches - need to count on that it's project not
tenant anymore.

Change-Id: Ic2987ce322a0cd4a92d35b06a86aec95226f981e
Story: 2002116
Task: 19795
2018-06-11 12:06:56 +00:00
Zuul 737491a816 Merge "Remove image.http_image from playbook" 2018-06-09 04:16:54 +00:00
Luigi Toscano 31c1ee066e Switch to openstackdocstheme (doc and release notes)
Bump the dependencies to something more up-to-date, move reno
to documentation requirements, which are now a dependency
for the releasenotes tox target (even if not needed on the gates).

Clean up the configuration options and one title.

Change-Id: I760d21a6420d2928e60792455b59bbe63a49a8ae
2018-06-08 19:28:06 +02:00
Zuul 574f98417b Merge "List and create swift roles" 2018-06-07 18:59:34 +00:00
Zuul cd30310339 Merge "fix url" 2018-06-07 11:42:37 +00:00
Zuul 54fc609043 Merge "Fix broken link in readme" 2018-06-07 11:41:59 +00:00
Chandan Kumar d410903ea6 Remove image.http_image from playbook
* let's the tool handle it itself.
* generate-tempestconf-file role uses url_cirros_image
  in test-demo-user.yaml so it cannot be removed.

Change-Id: Iae526d807f7438148e39747634e1f190879fb4ce
2018-06-07 17:08:48 +05:30
wangqi eefda6455e fix url
Change-Id: Id5b54d461c7dafdb3a70fa8809b444646aa2d064
2018-06-05 15:13:26 +00:00
wangqi c6a5fe766f Fix broken link in readme
It appears this blog post moved to and the old
link no longer works.

Change-Id: Ib55cfd2d70d4ba6c10a1956e2c331ceabedfe8df
2018-06-05 15:08:27 +00:00
Martin Kopec 03fe466bdd List and create swift roles
When swift service is enabled, python-tempestconf will now be
able to list roles and create swift related roles if they are
not found.

Change-Id: Ia5310a56f24e167a835416c2e5a6fc504bb61c26
2018-06-05 14:23:44 +00:00
Martin Kopec 154fe8878d Move configuring of services to services class
Move checking availability of services from main:config_tempest
to services:services:set_service_availability.

Change-Id: Iafa1ff774c70216d22442eeaaba42d90f66bda62
2018-06-05 14:19:42 +00:00
Zuul ebbd17a1ce Merge "Validation support" 2018-06-04 16:52:14 +00:00
Zuul 32761d4175 Merge "Load deployer input file automatically" 2018-06-04 12:04:18 +00:00
Martin Kopec 275b6b7591 Validation support
validation.image_ssh_user option is heavily used in CI and it's also needed
in refstack. Therefor set the value automatically when image used is cirros.

Change-Id: Ib823380225fda78462c727e50a0f4f82b6da4e74
2018-06-04 11:54:31 +00:00
Zuul 90653f2a62 Merge "Don't expose user credentials" 2018-06-04 11:51:27 +00:00
Martin Kopec ed5163e729 Don't expose user credentials
When --test-accounts is used, don't print any user credentials
to a tempest.conf file.

Change-Id: Ic7977ed9e0e03d04aca446407b22a9a73c2dca98
2018-06-01 12:17:42 +00:00
Arx Cruz 42ba94a164 Load deployer input file automatically
This patch add the load of deployer-input automatically, if exists in
default path (~/tempest-deployer-input.conf).
It also add the option to not load it, with --no-default-deployer
This will fix the cases that user miss to add --deployer-input and
tempestconf miss some configuration due of that.

Change-Id: I17ce46bac06158dd3cca298f33c6ea929051fb06
2018-06-01 10:21:13 +00:00
Zuul 1e3caa063c Merge "Enhancements in nova support" 2018-05-28 14:37:53 +00:00
Arx Cruz 9be036cf1f Enhancements in nova support
This patch add the discover of nova following options:
* compute-feature-enabled.attach_encrypted_volume

Also add the defaults to the following to true:
* compute-feature-enabled.console_output
* compute-feature-enabled.resize

Change-Id: I96f140de50d5cfaeaab06e1e4d15e427c50b215b
2018-05-28 11:06:12 +02:00
Zuul bc17fffac7 Merge "Use volume v3 service client as the default" 2018-05-25 17:32:44 +00:00
Zuul 3c0bc84983 Merge "Fix identity v3 ext discovery" 2018-05-22 13:57:35 +00:00
Zuul 29d6500ce5 Merge "Add missing params' description" 2018-05-21 21:01:20 +00:00
Zuul dc36810c31 Merge "Store volumev2 and v3 extensions as well" 2018-05-21 13:35:05 +00:00
Martin Kopec f69b775b0a Add missing params' description
Change-Id: I8f5ea1f10bda780f6530d9323dd00611fee83999
2018-05-21 12:43:24 +00:00
Martin Kopec 82a82b7b41 Fix identity v3 ext discovery
Change-Id: I98e46bde0c07be761197ddebaa981af2480e2268
2018-05-21 12:01:01 +00:00
Martin Kopec 2d9b362120 Store volumev2 and v3 extensions as well
volume, volumev2 and volumev3 services can be present in the
system, but only extensions from volume service are stored.
This patch fixes that and stores extensions from all of
these three services.

Change-Id: I45cb42cc50a34414b41b078926453c9cd1696eba
2018-05-19 16:50:59 +00:00
Zuul 130db00711 Merge "Make tempestconf easier to use as an library" 2018-05-18 02:26:54 +00:00
Zuul e328fafccf Merge "Filter deprecated versions out" 2018-05-18 01:40:58 +00:00
Martin Kopec 6e2bf36c2b Filter deprecated versions out
* api_v2 version of volume service and api_v1 version
  of image service are deprecated, but were discovered
  and set to True.
* The patch fixes that by checking the status of the
* The patch also adds a deprecated version to fake
  services, which are used by unit tests.
* For backward compatibility of python-tempestconf with
  older relesies of OpenStack, the patch doesn't remove
  deprecated versions (they're not deprecated in Pike
  and older)

Change-Id: I88312d6425ad7bdc132b9b6dbe03c0c07349515c
2018-05-17 11:29:08 +00:00