Rename certification/ to tasks/

Every day Rally step by step closer to the point where Rally is going to be
generic framework and it would be possible to split Rally & Rally OpenStack Plugins

One of the blockers for doing this is certification & samples directories and
their contents. Current apporach creates a lot of confusion:

- Rally Users are running samples against production
- Rally samples are actually not that usefull, because creating from them
  tasks takes a lot of time
- Rally Users don't know what certification task is and how to use it
- Samples are hard to ship/find in packaged way (when rally is installed)
- Samples are going to be impossible to ship after the split
- We have to keep hunderds of yaml/json files in actual state
  in our repo (extra work for developers)

Proposed approach is to:

- Create mechansim CLI command that generates samples using plugin names
- Rename certification -> tasks
- Put in tasks directory pre created and tested tasks for different use cases:
  key performance metrics, functional testing, load testing of key functionality,
  ha Testing
- Remove samples as they are not needed anymore

Change-Id: I4c45224c3af637d17dab0edea038c69a2bae8b1a
This commit is contained in:
Boris Pavlovic 2017-09-19 13:34:04 -07:00
parent 353862c23b
commit bd067082c5
15 changed files with 11 additions and 5 deletions

View File

@ -14,7 +14,7 @@ RUN echo '[ ! -z "$TERM" -a -r /etc/motd ] && cat /etc/motd' \
>> /etc/bash.bashrc; echo '\
╔═════════════════════════════════════════════════════════════════════════════╗\n\
║ Welcome to Rally Docker container! ║\n\
║ Rally certification tasks, samples and docs are located at ~/source/\n\
║ Rally pre created tasks, samples and docs are located at ~/source/ \n\
║ Rally configuration and DB are in ~/.rally/ ║\n\
║ Rally at readthedocs - http://rally.readthedocs.org ║\n\
║ How to contribute - http://rally.readthedocs.org/en/latest/contribute.html ║\n\

View File

@ -135,7 +135,7 @@ be done via the following steps:
likely to work if your home directory has excessively open
permissions (e.g., ``0755``), which is not recommended.
You can find all task samples, docs and certification tasks at /opt/rally/.
You can find all task samples, docs and pre created tasks at /opt/rally/.
Also you may want to save the last command as an alias:
.. code-block:: bash

6
tasks/README.rst Normal file
View File

@ -0,0 +1,6 @@
================================
Rally Tasks For Production Usage
================================
Detailed Instruction TBD

View File

@ -5,7 +5,7 @@ source $SCRIPT_DIR/../rally_gate_functions.sh
setUp
TASK=$RALLY_DIR/certification/openstack/task.yaml
TASK=$RALLY_DIR/tasks/openstack/task.yaml
TASK_ARGS=$RALLY_DIR/rally-jobs/certifcation_task_args.yaml
TASK_ARGS="--task-args-file $TASK_ARGS"

View File

@ -21,13 +21,13 @@ import unittest
from tests.functional import utils
class TestCertificationTask(unittest.TestCase):
class TestPreCreatedTasks(unittest.TestCase):
def test_task_samples_is_valid(self):
rally = utils.Rally()
full_path = os.path.join(
os.path.dirname(__file__), os.pardir, os.pardir,
"certification", "openstack")
"tasks", "openstack")
task_path = os.path.join(full_path, "task.yaml")
args_path = os.path.join(full_path, "task_arguments.yaml")