10870 Commits

Author SHA1 Message Date
Andrea Frittoli
3b6d599c9b Deprecate client_parameters from ServiceClients
client_parameters was been designed as a way to pass parameters
for service clients to the ServiceClients class.

After the initial implementation, the client registry was added,
which allows for automatic registration of all clients and their
parameters. If configuration is available, parameters will be
pushed into the registry automatically.

When the registry part was implemented, the client_parameters logic
has been broken. Parameters are loaded and prepared correctly, but
ultimately they are not used for registration, they are basically ignored.

So this commit simply deprecates client_parameters, so that once it's not
used in tempest/clients.py anymore and the deprecation periodic is over
it can be removed.

closes-bug: #1680915
Change-Id: Ib37bde098d15ce440297728f0d0e1087b8693b6c
2017-04-12 08:43:12 +00:00
Masayuki Igawa
d91094deac
Remove skip condition when resize is enable
This commit removes the skip condition with flavor_ref and
flavor_ref_alt when the resize feature is enable. Because when
resize feature is enable, the flavor_ref and flavor_ref_alt should be
set properly, otherwise, it is a misconfiguration. So we should fail
but not skip at the situation.

And This commit also add a help message for the resize config to avoid
users confusing.

Change-Id: I8eab2e57eb77e7a1a8dae7ffd63ec95ae6a026c3
2017-04-12 17:35:18 +09:00
Jenkins
64d4d5d273 Merge "Updated from global requirements" 2017-04-12 07:25:08 +00:00
Jenkins
31815fbab4 Merge "Make bash shebangs through /usr/bin/env" 2017-04-12 05:47:36 +00:00
OpenStack Proposal Bot
1e8d676113 Updated from global requirements
Change-Id: I5f85413f0bea11408d827e2452e6d60fe2cf0cc6
2017-04-12 04:23:44 +00:00
Masayuki Igawa
00effc933f Use cliff.lister for tempest workspace command
This commit makes tempest workspace command use cliff.lister to show
various formats. And this commit splits the original class -
TempestWorkspace into the subcommand classes to use the cliff.lister
class. With this splitting, we can get the subcommand helps as a side
effect.

Change-Id: I07c69c467743a2f132c99d992773a53bda3bec7b
2017-04-11 22:14:52 +00:00
Benny Kopilov
31169e21d6 cinder backup force-delete when backup is error
Update testcases to force delete a backup when the state is error

steps:
- create a backup
- reset backup state to error
- force delete the backup

Fixed create backup cleanup

Added API:
- force_delete_backup

Change-Id: I2495e9c10e888f5a01d2a3e7f09a4b6dfc3d58a0
2017-04-11 18:04:35 +03:00
Jenkins
6455980e71 Merge "Add Apache License content in .py files" 2017-04-11 10:32:36 +00:00
Masayuki Igawa
e1a5083ea1
Make bash shebangs through /usr/bin/env
This commit makes bash shebangs through /usr/bin/env. The originals work
correctly. However, it could be more flexible through /usr/bin/env. And
we already have a same thing in tools/tox_install.sh. So this commit
makes them consistent, too.

Change-Id: I35a6940cbd95c3b0f0d0f6391584b826e4de2ce5
2017-04-11 18:46:16 +09:00
Masayuki Igawa
77d3f0f5dd
Refactor resource cleanup methods in compute.base
This commit refactors the cleanup methods in compute.base to reduce
duplications.

Change-Id: Ib322b78a3d969a2ecd1fb20c26755cf5d5e04bd0
2017-04-11 18:30:02 +09:00
zwhe
1b0567c680 Remove test_baremetal_nodes from tempest
Current compute baremetal tests involve ironic and nova. Ironic to
create baremetal node and then GET nodes using nova APIs.

Nova only provides GET APIs for baremetal nodes which has been deprecated.

This tests is testing Ironic node GET/POST etc which are covered on
ironic tempest plugin and nova API testing is covered in nova functional
tests.

It needs Ironic to be present and so ironic baremetal client.

With all points in consideration we should remove this tests from tempest.

It satisfy all rules as defined in tests removal procedure.
1. Nova functional test is enough for this API testing.
   -http://git.openstack.org/cgit/openstack/nova/tree/nova/tests/functional/api_sample_tests/test_baremetal_nodes.py
2. gate does not run this test.
3. No external usage:
   - http://codesearch.openstack.org/?q=test_list_get_baremetal_nodes&i=nope&files=&repos=

Change-Id: Ide9ca3a349f396c994f1c822c3d040d93547ad48
Closes-Bug: #1675416
2017-04-11 09:22:29 +00:00
yuhui_inspur
cd420fb059 Add Apache License content in .py files
Change-Id: Iebd5844dc2b999f19264daf61d4b73dc85f42111
2017-04-11 01:47:43 -07:00
lianghao
39d86999f8 Add judgie condition after live-migration with volume
when server live-migration with volume ,after success of live_migration,
we should check the volume is whether attach or not.

Change-Id: I2bfd993f67e3fc7a00cd9ed1dfdfdf78516f6085
2017-04-11 16:05:12 +08:00
zhufl
66b616a676 Add name param in setup_test_role
This is to add name param in setup_test_role, only when
name is not specified then random name is generated, thus
setup_test_role can be more widely used to make the code
clean.

Change-Id: Ice8cf92cdbb7294f43cb880997cc5d51f6406f50
2017-04-11 15:00:32 +08:00
xxj
8eb9098418 Support testing nova-novncproxy on SSL
When the VNC url is https, wrap the socket client with SSL.
If the VNC url is of http, use a regular socket client.

Change-Id: I7e5d6ccb65293b89540f528cc84da6c0d8699fee
Closes-Bug: #1677142
2017-04-11 14:11:56 +08:00
zhufl
98544cff64 Fix api ref link in TransfersClient
Api ref links in TransfersClient are broken, this is
to fix them.

No other broken links in current code.

Change-Id: I19be9d4afcb82b546cda093655d35c930f85c932
2017-04-11 10:51:04 +08:00
Andrea Frittoli
b86de8898f Format multi-line release notes properly
Change-Id: Ia3753f054eb7aee1c9e9a7af77bbefd7693b39f9
2017-04-10 10:01:14 -04:00
Jenkins
c85642f6e2 Merge "Fix heading levels in write_tests doc" 2017-04-10 09:53:31 +00:00
Jenkins
67bcab8e92 Merge "Fix broken api link and put api link in one line" 2017-04-10 09:51:24 +00:00
Andrea Frittoli
71c71e9444 Beautify assertEmpty and assertNotEmpty
Don't use 'list' as a parameter name since this assert can be used
for any sequence or collection. Add docstring for both helpers.

Change-Id: I747507c3a5d0cf6f84915c8dd9222f4c082cbc04
2017-04-10 08:26:14 +00:00
zhufl
6ea5f8bedc Fix broken api link and put api link in one line
This is to put api link in one line and fix some
broken api links.

This is the last patch before api-site making any
change of ref links.

Change-Id: I6fe6883f888bdb2678d29ab66b84aaf0f602b2fa
2017-04-10 09:24:04 +08:00
Jenkins
c05a58c0ca Merge "Delete volume with associated snapshots" 2017-04-09 07:25:44 +00:00
Matthew Treinish
8f28d1fff4
Fix heading levels in write_tests doc
This commit fixes the top level header for the write_tests doc.
Previously, the doc title was set as the same as the section. This
caused things like table of contents to confuse the hierarchy of the
sections in the docs. This commit fixes that by setting the doc title
to be a higher lever in the hierarchy.

Change-Id: I2ecb110c766a71e1dc2d9e663ca38ece76dc327d
2017-04-08 21:35:41 -04:00
Jenkins
805f4ddc9b Merge "Remove duplicated testcase test_get_private_image" 2017-04-08 21:21:34 +00:00
Jenkins
b04b587db9 Merge "Remove non-existent config options of oslo modules" 2017-04-08 15:27:37 +00:00
Jenkins
085ab2d4f2 Merge "Remove oslo.i18n entry from config-generator" 2017-04-08 08:03:15 +00:00
Jenkins
416a64e148 Merge "Test live migration back and forth" 2017-04-08 06:28:04 +00:00
Ken'ichi Ohmichi
9e0771f83f Remove non-existent config options of oslo modules
oslo.serialization and oslo.utils don't have any config options at all,
and `tempest init` command did output warning message when generating
tempest.conf. So this patch removes these entries from config-generator.

Closes-Bug: #1620861
Change-Id: Icad81bca5e3e3b69dee99fdac71174c149fd6df2
2017-04-07 12:37:23 -07:00
Ken'ichi Ohmichi
f66799e915 Remove oslo.i18n entry from config-generator
oslo.i18n is not used in Tempest at all and it has been removed
from requirements.txt since Iff37af95269c38e4d435a53a21e5d60e2c5a3fa8
It is not necessary to keep it in config-generator, and this patch
removes it.

Related-Bug: #1620861
Change-Id: Icf43d6421f3a30ca72fdc4e985e070ebeb736fbb
2017-04-07 12:08:54 -07:00
Jenkins
d649055e46 Merge "Skip arbitrary container tests for Ceph" 2017-04-07 16:22:58 +00:00
lianghao
fd8d315e8e Add test of remove all security groups in test_server_actions.py
If you omit the attribute of security_groups, the API creates the server
in the default security group,and also openstack can accept to
remove all security groups of server ,so add the test.

Change-Id: I39e272f7b7655a9821cc5ff9e5701f9da80c9bd4
2017-04-07 21:24:11 +08:00
Jon Bernard
cf769af7b0 Skip arbitrary container tests for Ceph
The Ceph backup driver does not support an arbitrary container name
without there being a corresponding pool already configured on the
cluster.  Unlike swift, Ceph cannot create a pool to match a container
name on the fly, and this test is not supported when configured with a
ceph-backed cinder backup service.

This patch fixes commit f62703b5a4ec420399373480531c5d0428454350 which
causes the ceph job to fail.

Change-Id: Ic8d60d58982bb44bfb233aeccc60c35e8eb0aaf3
2017-04-07 08:40:33 -04:00
Jenkins
add0f82828 Merge "Add Nova version log" 2017-04-07 12:25:25 +00:00
Jenkins
4166de5c94 Merge "Add size assert for creating volume snapshot" 2017-04-07 12:25:17 +00:00
Jenkins
b90426c19b Merge "[DOC] Fix details of tox" 2017-04-07 10:21:09 +00:00
Jenkins
b3d86fe872 Merge "Separate volume v2 transfers service clients" 2017-04-07 09:28:45 +00:00
Jenkins
df147c7376 Merge "Remove 'allow_port_security_disabled' option" 2017-04-07 08:14:13 +00:00
zhufl
5b346f5b56 Remove duplicated testcase test_get_private_image
test_get_private_image is almost same with test_remove_image_member,
except some assertEquals which are already covered in test_image_share_accept.

Besides, the name "test_get_private_image" is strange in test_images_member.py.

So this is to remove it.
The corresponding defcore patch is Ic86d1d675a16b360e7f368f77ec00c332eec6c03

Change-Id: I328ce319d19bfeb042787385b01bcd92d52ccce2
2017-04-07 14:40:44 +08:00
Jenkins
581bf1c2c4 Merge "Use min_count to create multi servers" 2017-04-07 04:34:13 +00:00
Jenkins
9917be0519 Merge "Add random name in volume.base.create_backup" 2017-04-07 04:33:59 +00:00
Jenkins
60c47cd9e8 Merge "Remove 'reseller' config option" 2017-04-07 02:43:31 +00:00
Hai Shi
6f52fc599a [DOC] Fix details of tox
We need put a space between a param's name and a param's value in tox
and it would be more clear.
eg: from `tox -epy35` to `tox -e py35`.

Change-Id: I86750f42669bb02dcfac2b62e294d557bf44bd4c
2017-04-07 00:47:00 +00:00
Jenkins
1cbdb0e0d8 Merge "Move cinder tests into unversioned path - part2" 2017-04-06 23:58:49 +00:00
Jenkins
82d6f71d6a Merge "Remove 'dvr_extra_resources' option" 2017-04-06 22:31:24 +00:00
Ken'ichi Ohmichi
ad1b862e8b Remove 'allow_port_security_disabled' option
The allow_port_security_disabled option had been added as a temporary
option for skipping the test on Liberty. Current Tempest doesn't support
Liberty, so this patch removes the config option from Tempest.

Change-Id: Ia7d7f3f545e7582be3c3f005576adceede5e97cb
2017-04-06 20:23:26 +00:00
jeremy.zhang
681dff8bea Add size assert for creating volume snapshot
When a volume snapshot being created, the snapshot's volume size
will be equal to the origin volume's size.
This patch add this assert.

Change-Id: I28f30d68db251e9acc7a5f3f63b6663f900acbb4
2017-04-06 22:38:12 +08:00
lkuchlan
0e3bbdfe7e Delete volume with associated snapshots
This feature provides the ability to delete a volume and have Cinder
handle deletion of snapshots associated with that volume.
It is allow a volume and its snapshots to be removed in one operation
both for usability and performance reasons.

Change-Id: I99f9910f75aef095f2bbb37680ee584e52bf82da
2017-04-06 08:27:30 +03:00
ghanshyam
59614b445c Separate volume v2 transfers service clients
v2 volume transfers service clients does API calls on
separate resource url "os-volume-transfer" but those
are currently in v2 volumes_client.py.

Each resource service clients should be in separate file.

This commit separate the transfer service client from volumes client
and deprecate the same from volumes service client.

Change-Id: Ia85bcfbadbff4f7c594dc5631ecdd595c5d275f3
2017-04-06 01:20:59 +00:00
Jenkins
4ef513006d Merge "Set default value of 'dvr_extra_resources' option to False" 2017-04-05 20:22:55 +00:00
Ken'ichi Ohmichi
e2325f03bf Add Nova version log
We could not see log of Nova versions on the gate.
This patch adds the log to know each version status on the development.

Change-Id: I438754ad78cd07780b21874c9ee9685b549e3652
2017-04-05 12:57:32 -07:00