rally tempest system wide configure fails

Bug #1693695 reported by narasimha18sv
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Rally
Invalid
Undecided
Unassigned

Bug Description

Installing tempest system-wide fails with missing packages
I am using master branch code of rally on CentOS-7
Getting below error while I execute the command.

# rally verify create-verifier --type tempest --name tempest-verifier --system-wide
2017-05-25 23:41:11.946 128398 WARNING rally.task.validation [-] Plugin 'CinderVolumeTypes.create_and_update_volume_type' uses validator 'rally.task.validation.required_api_versions' which is deprecated in favor of 'required_api_versions' (it should be used via new decorator 'rally.common.validation.add') in Rally v0.10.0.
2017-05-25 23:41:12.274 128398 INFO rally.api [-] Creating verifier 'tempest-verifier'.
2017-05-25 23:41:12.368 128398 INFO rally.verification.manager [-] Cloning verifier repo from https://git.openstack.org/openstack/tempest.
Failed to set up verifier 'tempest-verifier': Missed package(s) for system-wide installation found. Please install 'os-testr', 'oslo.concurrency', 'testrepository'.

Revision history for this message
narasimha18sv (narasimha18sv) wrote :

https://github.com/openstack/tempest/blob/master/requirements.txt#L10
https://github.com/openstack/tempest/blob/master/requirements.txt#L22
https://github.com/openstack/tempest/blob/master/requirements.txt#L11

The required packages showing above are present in tempest requirements, however still it fails with the above message.

# rally verify create-verifier --type tempest --name tempest-verifier
2017-05-25 23:42:51.610 128535 WARNING rally.task.validation [-] Plugin 'CinderVolumeTypes.create_and_update_volume_type' uses validator 'rally.task.validation.required_api_versions' which is deprecated in favor of 'required_api_versions' (it should be used via new decorator 'rally.common.validation.add') in Rally v0.10.0.
2017-05-25 23:42:51.892 128535 INFO rally.api [-] Creating verifier 'tempest-verifier'.
2017-05-25 23:42:51.978 128535 INFO rally.verification.manager [-] Cloning verifier repo from https://git.openstack.org/openstack/tempest.
2017-05-25 23:43:05.947 128535 INFO rally.verification.manager [-] Creating virtual environment. It may take a few minutes.
2017-05-25 23:43:54.193 128535 INFO rally.api [-] Verifier 'tempest-verifier' (UUID=eeb89745-d286-4a33-b7f1-0c351c9e10b7) has been successfully created!
Using verifier 'tempest-verifier' (UUID=eeb89745-d286-4a33-b7f1-0c351c9e10b7) as the default verifier for the future operations.

The same tempest configuration without --system-wide option is successful.

Revision history for this message
hai shi (haishi) wrote :

if you use system-wide to install tempest, rally would check your local packages and compare to the requirements.txt of tempest. Without use system-wide, it would skip the comparison.

Revision history for this message
Andriy Kurilin (andreykurilin) wrote :

@narasimha18sv: In case of not system-wide installation, Rally manages tempest requirements itself by creating virtual environment and installing all packages there.

In case of system-wide installation of any verifier, Rally doesn't manage packages at all and just launchs special check that it is possible to execute verifier. As @haishi mentioned, this check is valid only for --system-wide installation. The reason why Rally doesn't install packages in system-wide mode is that such action requires sudo rights. Once you execute rally with sudo, some inner files can be created with wrong permissions which will possibly lead to issues with running rally from the regular user.

Changed in rally:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.