5113 Commits

Author SHA1 Message Date
Luis Pigueiras
665da97572 Add manila extend/shrink scenarios
Change-Id: I61e6e5f1ccadd48cfd964a9115968e48afecb150
2017-06-21 15:56:49 +02:00
Amy Ge
06cd90e39c Improve plugin sample and corresponding 'creating a plugin' tutorial
The scenario_plugin.py was updated, however, the documentation still
has the old instruction for creating a plugin. Let's update that in-
struction. Let's also add 'required_services' and 'required_platform'
in the sample to make it more complete.

Change-Id: I6d36ea51a3ee32b94ab296c77195ee22652f40ec
2017-06-20 16:12:20 -07:00
Amy Ge
e40e6e8537 Remove step_9 tutorial from rally doc
The devstack deployer plugin was removed, however, the documentation
has not been updated. Let's update the documentation and remove that
tutorial.

Change-Id: Ideef4b2b70e182d9fa396fea6f00df0fa8cc4343
2017-06-20 14:26:11 -07:00
Jenkins
7d8b6487ff Merge "fix Rally task [NovaServers.list_servers] failed with network problems" 2017-06-20 15:27:34 +00:00
zhangzhang
eee85042c3 fix Rally task [NovaServers.list_servers] failed with network problems
when we get 'nics' information from rally task config
'contexts', the type of self.config["nics"] is 'tuple', but we need it is 'list'
type.

Change-Id: If293700a5c0a2f30a23b1fcf808adb6e467c76c6
Closes-Bug: #1695245
2017-06-20 16:31:56 -04:00
Luis Pigueiras
3b95475834 Add case_insensitive parameter to enum validator
It will allow to substitute completely the functionality
of `validate_share_proto` validation by the enum one, validating
the values in an insensitive way

Change-Id: I01d3f3787597b3ef41727f86fbad73e23b4442d7
2017-06-20 11:32:46 +02:00
Jenkins
008a26f775 Merge "[docs] include required platforms of plugins" 2017-06-19 11:35:00 +00:00
Jenkins
0fd251eac9 Merge "deployment.list() return the serial result" 2017-06-19 11:34:53 +00:00
Jenkins
8c9c5b1214 Merge "Deprecate CinderUtils and CinderWrapper" 2017-06-19 08:51:07 +00:00
Hai Shi
8ccea5967e deployment.list() return the serial result
raas need the serial result, So we should fix
the result to a serial result.

Change-Id: I66e5cff27c043fc07caf9053512b2b3088808e8e
2017-06-17 17:05:11 +08:00
Andrey Kurilin
4b0dfb4f2f [docs] include required platforms of plugins
Change-Id: I16d105f3354a7429cbc4569923da980645292b4d
2017-06-16 13:27:34 +00:00
Jenkins
f5d2a84361 Merge "cleanup old required_services" 2017-06-16 10:03:56 +00:00
chenhb
762a45f17d cleanup old required_services
Change-Id: I6b21b51825ec554cf91c6f3646d9fc1c9a8b1067
2017-07-17 12:55:21 +08:00
Jenkins
1ac03c7584 Merge "[ci] Test openstack deployment without admin" 2017-06-16 08:15:53 +00:00
Jenkins
6107b4d4d6 Merge "make verification job great again" 2017-06-15 19:09:16 +00:00
Andrey Kurilin
c0fb231e2f [ci] Test openstack deployment without admin
* Use rally-neutron-existing-users job for testing scenarios which doesn't
  require admin user.
* port task config to V2 format
* Put fake object into task validation in test_jobs.py to print task path
  in logs.

Change-Id: I2615d55ff896f37c46daee962edfa853342f974c
2017-06-15 09:07:25 +03:00
Jenkins
97140d4c10 Merge "remove redundant parameter in comments" 2017-06-14 14:47:48 +00:00
Andrey Kurilin
1da706e716 make verification job great again
Change-Id: I56f068bd803f1a11ddf6534b35af34c168037be9
2017-06-14 13:50:05 +03:00
Andrey Kurilin
ffcc307f91 Fix rally verify rerun
The usage of positional argument was restricted for API call. This patch
fixes one issue related to it.

Change-Id: If26658ade68485d05eeac45051cdd78fe2750558
2017-06-14 13:49:22 +03:00
liangcui
8e6a1179fe remove redundant parameter in comments
In function report, there is no paramter task_id, however, the
comments contain it, so remove it from comments.

Change-Id: I7ad36f305591bd281d58a8c0cd9777a71f9e17b2
2017-06-14 15:01:23 +08:00
Andrey Kurilin
6d3f2ccae6 Deprecate CinderUtils and CinderWrapper
BlockStorage class was introduced some time ago. It includes all required
latest methods.

Change-Id: Ice48514caba4372ac5205c370d58f6c427888724
2017-06-13 16:34:04 +03:00
Jenkins
93dc8ac476 Merge "Allow deployment without admin creds" 2017-06-13 04:45:05 +00:00
Jenkins
c849e2aa81 Merge "Move 'volume_type_exists' scenario to '../validators.py'" 2017-06-13 03:03:45 +00:00
Jenkins
f778d73595 Merge "cleanup bgp resources" 2017-06-12 20:26:32 +00:00
chenhb
7c8745fe10 cleanup bgp resources
Change-Id: Ia1d4d942b0d876a273a8214811915f972e9d58eb
2017-07-08 18:14:38 +08:00
zhangzhang
cfc02ee78c Add neutron.CreateAndListSecurityGroupRules scenario
Create a security group, then Create rules for the security group,
list all security group rules.

Measure the "neutron security-group-rule-create" and "neutron
security-group-rule-list" command performance.

Change-Id: Id6ceffcd59e20952cd0c5f00822ba5a80a700f3d
2017-06-12 10:25:18 -04:00
Mathieu Velten
a4d6aea697 Allow deployment without admin creds
Change-Id: Ic5344a9393451d9f9da09754b6dfb00787e380e7
2017-06-12 16:11:27 +03:00
astaroverov
7d78544932 Move 'volume_type_exists' scenario to '../validators.py'
Change-Id: I8028b8a8b3b9d7ff43df00ca80eb95e73c0674c6
2017-06-09 17:17:25 +03:00
Jenkins
0b6d16f032 Merge "[raas] Adding a decorator of api_wrapper" 2017-06-09 13:47:35 +00:00
Jenkins
2b199fe506 Merge "Deprecate optional_action_timer" 2017-06-09 13:47:26 +00:00
Jenkins
329c0ffab0 Merge "Use manilaclient for API validation in Manila client" 2017-06-09 13:46:35 +00:00
chenhb
c306bcf0d2 Deprecate optional_action_timer
We have new format of atomic actions, it is a list.
Do not need to explicitly close original action.

Change-Id: Id18df8479732bbeccf4729344f82600a67091105
2017-06-09 08:57:35 +00:00
Andrey Kurilin
1c656e0a80 Fix an issue with namespace of scenario
While abandoning alignment to OpenStack we forgot the case when custom
scenarios inherits from OpenStackScenario class, but do not setup proper
namespace(it was ok previously). This patch setups proper namespace and
prints a warning for plugin owner.

Change-Id: Icb2a27c8a8d607e6b2627dbd211f57801b24d5bc
2017-06-09 03:04:23 +00:00
Hai Shi
810056ec9f [raas] Adding a decorator of api_wrapper
If we send a request to remote server, we need api_wrapper
to restore enough info which includes requests' path and the type of
request.

Change-Id: Ia3add4e0827462b7e45062aa801ecb9a1a129d18
2017-06-09 09:00:32 +08:00
Andrey Kurilin
da5c7a9e62 [ci][samples] Reduce redundant authentications
While validating a single sample, rally obtains a new deployment object
from the database. Since we have hundreds of samples, validation of each
single sample performs redundant steps, such as authentication.

This patch mocks obtaining deployment objects with special method
get_credentials_for with cache mechanism.

Change-Id: I51d6e3aa7897c100d114f978883cd4526b0222ba
2017-06-08 15:18:30 +03:00
Andrey Kurilin
3b438017fa [ci][samples] Try to speed up checking samples
The validation of all samples takes too much time. It is an attempt to
speed up the check by using broker pattern (validate several samples in
parallel).

Change-Id: I370ad1a67506fee0800783b5ed2ba1beab890f98
2017-06-08 12:24:03 +03:00
Andrey Kurilin
3de7b81ccb [db] Fix porting task to the old format
There are 2 cases:
* SLA section is missed in original task config
* Task is not finished yet

In both this cases `rally task list` or other command which obtains task
results will fail with `ERROR rally KeyError: 'sla'`.

This patch fixes assumption that sla results present in all case.

Change-Id: Ia3371733e08ca7e60dc490e3cc5a55b06da83ca0
2017-06-07 13:17:15 +03:00
Andrey Kurilin
fa68699966 Revert "[ci] remove pytest-xdist dependency"
This reverts commit 2d594c22eb4683a210268d75051482752bb17de4.

Change-Id: I48c25c2fbd29ae40a7f50516ba3781d33949e1a5
2017-06-06 11:56:19 +03:00
Luis Pigueiras
2ecd9da15a Use manilaclient for API validation in Manila client
Change-Id: I6a06671cd9795694b9df37c57f80803c2ce2b5cd
2017-06-02 16:47:34 +02:00
Chen
df0d4d25a2 Fix a typo and update a link address
Change-Id: I41a0a370c002b5b6b93a777db5fec4c4be11714c
2017-06-01 18:51:08 +09:00
Jenkins
767fe05890 Merge "Using fixtures instead of deprecated mockpatch module" 2017-06-01 01:22:23 +00:00
Jenkins
e93845e390 Merge "Add CinderVolumeTypes.create_volume_type_add_and_list_type_access" 2017-05-31 16:42:11 +00:00
Jenkins
e2f30013af Merge "Add task command rally task import" 2017-05-31 15:51:36 +00:00
ChangBo Guo(gcb)
12b9c1dd77 Remove usage of parameter enforce_type
Oslo.config deprecated parameter enforce_type and change its default
value to True in Ifa552de0a994e40388cbc9f7dbaa55700ca276b0. Remove the
usage of it to avoid DeprecationWarning: "Using the 'enforce_type'
argument is deprecated in version '4.0' and will be removed in version
'5.0': The argument enforce_type has changed its default value to True
and then will be removed completely."

Related--Bug: #1517839

Change-Id: I643e23f358e6a71f5361daa9cc2ef5ebdd44c792
2017-05-31 15:16:46 +08:00
Ngo Quoc Cuong
c64c11a5ef Using fixtures instead of deprecated mockpatch module
This module mockpatch of oslotest is deprecated since version 1.13
and may be removed in version 2.0. Use fixtures.Mock* classes instead[1]

[1]https://docs.openstack.org/developer/oslotest/api/oslotest.mockpatch.html#module-oslotest.mockpatch

Change-Id: Ic5ce69409cc690b08cce974fc86e072fbd9240ca
2017-05-31 01:34:59 +00:00
Jenkins
ae9150a999 Merge "Various changes in custom_image context" 2017-05-30 14:15:32 +00:00
Jenkins
8ef1ace3ca Merge "OSprofiler support" 2017-05-30 12:48:37 +00:00
Andrey Kurilin
d5816c2482 Various changes in custom_image context
1) custom_image context is a base class, not the final context, so it should
   not be initialized with configure decorator
2) set public visibility for image should be called only in case of presence
   of admin user
3) fix delete_image (the wrong type of object was expected there)
4) use Image service instead of GlanceWrapper which is deprecated now

Change-Id: I3fcebf5f6b25c0d50c04d28de07cadebd1ba8c09
2017-05-30 14:33:45 +03:00
Jenkins
96e97dfcbc Merge "[validator]cleanup required_contexts warning" 2017-05-30 08:40:54 +00:00
maxinjian
d3996fa347 [validator]cleanup required_contexts warning
Change-Id: Ia4c7fbc5991f858cb169acbc1845f3be5375a411
2017-05-30 09:12:52 -04:00