From 296558a05e31d33d35199f3476a75ac48823ecb2 Mon Sep 17 00:00:00 2001 From: Boris Pavlovic Date: Tue, 26 Aug 2014 06:36:26 +0400 Subject: [PATCH] Support for benchmarking with existing users (part 1) This patch covers next topics: 1) Changes db deploymnet model to store admin endpoint and list of non-admin users 2) Changes objects.deployment to have this admin and users instead of endpoints 3) Changes input format of ExistingCloud engine, to make it easy to pass users & admins 4) Changes engine.bind method to accept admin and list of users 5) Code cleanup related to removing list of endpoints and making admin/non-admin stuff 6) Fix CLI code related to deployment model change 7) Fix docs & samples 8) Fixing all related tests In next patch we should drop default "users" context and use users from deployment if they are passed. Change-Id: Ifb469d80c61ee5f26f313db75c98a6d496bcdb92 --- contrib/devstack/lib/rally | 4 +- .../deployments/existing-keystone-v3.json | 14 ++ doc/samples/deployments/existing.json | 7 +- rally/benchmark/engine.py | 29 +-- rally/benchmark/runners/base.py | 29 ++- rally/cmd/commands/deployment.py | 20 +- rally/cmd/commands/show.py | 94 +++++----- rally/cmd/commands/use.py | 27 ++- rally/db/sqlalchemy/models.py | 13 +- rally/deploy/engines/devstack.py | 2 +- rally/deploy/engines/existing.py | 150 ++++++++------- rally/deploy/engines/fuel.py | 6 +- rally/deploy/engines/lxc.py | 2 +- rally/objects/deploy.py | 39 ++-- rally/orchestrator/api.py | 5 +- .../verification/verifiers/tempest/config.py | 4 +- tests/benchmark/runners/test_base.py | 7 +- tests/benchmark/test_engine.py | 14 +- tests/cmd/commands/test_deployment.py | 35 ++-- tests/cmd/commands/test_show.py | 10 +- tests/cmd/commands/test_use.py | 16 +- tests/deploy/engines/test_devstack.py | 2 +- tests/deploy/engines/test_existing.py | 45 ++--- tests/deploy/engines/test_fuel.py | 4 +- tests/deploy/test_lxc.py | 2 +- tests/objects/test_deploy.py | 29 ++- tests/orchestrator/test_api.py | 172 +++++++++--------- tests/verification/verifiers/test_config.py | 4 +- 28 files changed, 447 insertions(+), 338 deletions(-) create mode 100644 doc/samples/deployments/existing-keystone-v3.json diff --git a/contrib/devstack/lib/rally b/contrib/devstack/lib/rally index 5018dc698a..75d5344651 100644 --- a/contrib/devstack/lib/rally +++ b/contrib/devstack/lib/rally @@ -62,8 +62,8 @@ function _create_deployment_config() { cat >$1 <