- 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
* 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 <arxcruz@redhat.com>
Depends-On: https://review.openstack.org/#/c/576472/
Closes-Bug: 1776729
Change-Id: Ie1e9d8e98fde460f9270c2799f971ea017d10d84
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
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
Generate accounts.yaml file when create_accounts_file
is specified and test_accounts is not.
Story: 2001693
Task: 8685
Change-Id: I7ed8390b29a430d97e1846f8f868f5b6af8eb02b
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
* https://review.openstack.org/#/q/topic:flaskification+(status:open+OR+status:merged)
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
also.
Closes-Bug: #1776301
Change-Id: I6b0310ee5437ff428cc7321035656c7cb4f86773
* 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 main.py which leads to the above error.
* Removed additional overrides image.http_image from roles
Change-Id: I3ab32b6c5628281f55193291cd367dcdb76a5571
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
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
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
* 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
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
Move checking availability of services from main:config_tempest
to services:services:set_service_availability.
Change-Id: Iafa1ff774c70216d22442eeaaba42d90f66bda62
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
When --test-accounts is used, don't print any user credentials
to a tempest.conf file.
Depends-On: https://review.openstack.org/#/c/570822/
Change-Id: Ic7977ed9e0e03d04aca446407b22a9a73c2dca98
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
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
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
* 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
version.
* 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