There is no need to have objects directory on the top level.
They are quite rare changed and in most case one don’t
need to know about internal details of it to fulfill their
task. So hiding these directory under common/* makes perfect sense
Change-Id: Id77bec4e417d61470c9adfd7e43cc50975d76775
List of changes:
- Added general support of Manila project.
- Added support of 'list' operation for shares.
- Added benchmark for listing of shares.
- Added two different manila jobs scripts that will be used for two
different Manila installtions. Current benchmark is used without changes in
both installations.
Change-Id: Ie29be6162e788c880aea6816803c9ddea340bcf7
osclients.cached missed unit test, so this patch adds one.
Also, there is a small refactoring in this function.
Change-Id: I76301fbfb4abb8323b5d76888f93984d23981d5b
Classmethod osclients.Clients.register allows to add new
OpenStack clients to Rally at runtime, so these clients will
be available from osclients.Clients and cached.
Change-Id: I644aa2b742a8433f90068ae95328f5d0ef6b27dc
This patch adds swift scenarios, cleanup resource, and unit tests.
Swift Scenarios:
- create_container_and_object_then_list_objects
- create_container_and_object_then_delete_object
- create_container_and_object_then_download_object
Blueprint benchmark-scenarios-for-swift
This patch also fixed a minor bug with osclients.py where incorrect
"authurl" param name was used.
Change-Id: I0e5f09551fcf61e62347d56fd86f7baf9288adea
Currently when python clients are called, Rally authenticates
with keystone client then pass then token to the clients.
This behavior will break the test when the token gets expired.
When the token gets expired, the operations using the token
will receive a 401 error which instructs the clients to
re-new the token with the user crendentials. The python clients
will re-authenticate and try to re-send the operation request.
However, since the credentials are not passed by Rally,
the clients are unable to re-authenticate in which case
the operation will fail and break the test.
This patch is going to pass the credentials to the python clients
to allow the test go beyond the token expiration time.
This patch mainly focus on nova and neutron.
Please note that some clients do not support this
re-authentication mechanism.
Change-Id: I2732e9c7053005b265df3122181f99544d4b6100
This patch enable ssl settings in deployment config and deprecate those
in rally.conf. Before those are totally removed from rally.conf, rally
will read those if no ssl settings in deployment config. This is for
back-compatibility.
Closes-Bug: #1430695
Change-Id: Idacbd99fae9de0c107d8bdaefb134663738ca497
* Move import from keystoneclient to create_keystone_client method
in osclients. This is done to avoid loading keystoneclient on Rally
start to make it starts faster.
* Move import of exceptions from keystoneclient to verified_keystone
method.
* Add unit tests for function create_keystone_client
Implements: blueprint lazy-imports
Change-Id: Ie11618b380a9a51c5b6e237179b4da8b7178d16b
* Move imports of clients to appropriate methods in osclients.
The purpose is to speed up Rally loading.
* Fix unit tests for moved imports.
* Fix nova exception import.
Implements: blueprint lazy-imports
Change-Id: Ib6423c3b7597f6a44540871a7c40f2f39c1f8670
The existing rally usage to get the ceilometer Client doesn't
set the SSL verify/insecure params. This fix changes it to use
get_client() to setup SSL params correctly.
Change-Id: I3811573ee9bf2ca6e35c8d363a1149e58fb22e53
Closes-bug: #1430527
This patch adds swiftclient to osclients, updates the requirements,
and unit tests.
Blueprint benchmark-scenarios-for-swift
Change-Id: I464a19a219c0b753eca42d98042cde705d0678db
Use `osclients.Clients.create_from_env' to create a Clients instance
from the environment variables. Useful for trying things in a Python
shell.
Change-Id: I807176183ff692f15b8700a8db1d0c231af3f5c6
According to related blueprint, installing oslo
libraries into a same namespace seems to cause
several type of errors. Every occurrence
of oslo.foo supported is renamed to oslo_foo.
Change-Id: I786b0b824be31c08e6795201bb95553434d8d634
Implements: blueprint 'oslo-incubator/drop-namespace-packages'
Closes-Bug: #1409213
Keystone client utilizes the auth_url provided to it in order to
discover the appropriate end point for the action. It will either use
the publicURL or the adminURL it gets in the service catalog for the
identity service. UNLESS caller to the keystone client hard sets the
endpoint key, in which case keystone will blindly use it instead of
looking in the catalog. Because rally was setting it, rally also had to
set it differently when doing admin level stuff, but rally doesn't have
to do that at all. Rally can rely on the service catalog and let
keystone sort it out.
This change removes manually setting endpoint and just passes along the
auth_url to keystone. This obviates the need to define an admin_port in
a deployment configuration, and reduces the number of tests that need to
be ran.
A warning will be issued if a deployment defines an admin_port, however
the admin_port itself will be ignored. This provides some backwards
compatibility with existing deployments.
Change-Id: I917412e954e57ca5f03df0bb739b7806d38a12a5
Related-Bug: 1398375
In Python 3, the dict.items() return a dict_items object, which
does not support the + operand.
The way to make it compatible is using the update method in dict
object.
Change-Id: I99c94b9a2d99d54de5a93a4e15e82ab0173e5592
In Python 3, urlparse module is gone.
To support both Python 2 and Python 3, "six.moves.urllib.parse"
should be used instead.
Change-Id: I0adddbdea5a80606907a1b78ca1a04d15f61452b
Closes-Bug: #1403433
* Remove semantic validation mechanism for context. We will use same
approach as for current scenarios (via decorators)
* Pass "deployment" instead of "tasks" to validators. This allow us to
remove access to DB from validators + we can call validation without
creating tasks
* Add hacking rule to force using construction "from rally import objects"
* Fix unit tests
Change-Id: Ibf08183b28479cc49ab6adfd12298612f6b4397f
When create keystone client, rally will add admin_port(35357) to
auth_url if auth_url doesn't contain an obvious port. And thus,
causing the change of https auth_url.
So we should ignore adding admin_port for https auth_url.
Change-Id: If518687839c5e0734b85b69c680f7d124e135e94
Closes-bug: #1397160
Rules:
N311 - Validate that debug level logs are not translated
N320 - Ensure that ``assertTrue(isinstance(A, B))`` is not used
N321 - Ensure that ``assertEqual(type(A), B)`` is not used
N322 - Ensure that ``assertEqual(A, None)`` and ``assertEqual(None, A)``
are not used
N323 - Ensure that ``assertTrue/assertFalse(A in/not in B)`` are not
used with collection contents
Also, small bug related to logging in verification was fixed.
Change-Id: Ieabe1b23d0c02cc13bb6cad106ab855507359ddc
The queues listing in the cleanup was failing
because the Project-ID header was missing.
This change adds the required header.
Change-Id: Ic12fe76206ea1fd6b7d59d48c69389abff564d7b
This patch changes the fakes interface in order to fit
better with Zaqar's client and adds the version parameter
to initialization for a more flexible benchmarking.
Change-Id: I0a12562cfa4f7a7e1bcff35f95c59e12368e7fdf