10870 Commits

Author SHA1 Message Date
Jenkins
36eb924c36 Merge "Correct invalid param in create_volume" 2017-03-30 08:19:44 +00:00
Benny Kopilov
97c7419c5d Glance supports vhdx disk_format
The disk_format config option enables vhdx as supported by default.

https://docs.openstack.org/releasenotes/glance/newton.html

Change-Id: I783c2f6ca5fe03d5483681611e7c8d1b4dcf9383
2017-03-30 09:36:26 +03:00
rajat29
9b66085037 Removing py34 from tox
Now gate job for Python 3.5 exists and not 3.4,
we should remove those references to the 3.4 that is untested

Change-Id: I2bfedb9a7cc48413dee35d519c52cc2fd3bd3f13
2017-03-30 11:54:51 +05:30
Jenkins
2df61eeabb Merge "Remove set_mac_address from old remote_client" 2017-03-30 06:24:34 +00:00
Jenkins
ebb74eb2df Merge "Add test creating a protected image" 2017-03-29 15:16:51 +00:00
Jenkins
22159e9bb3 Merge "Nova: Move _Websocket class to a common place" 2017-03-29 15:04:04 +00:00
Andrea Frittoli
2715d224af Fix API reference links in volume client
Existing links are broken, fixing them.

Change-Id: I42be40cb64d64b013368fe39668e3749580520b5
2017-03-29 14:53:48 +01:00
Jenkins
4f78af83bf Merge "Remove assign_static_ip from old remote_client" 2017-03-29 13:26:33 +00:00
Jenkins
3e3942e11c Merge "Remove set_nic_state from old remote_client" 2017-03-29 13:26:24 +00:00
Jenkins
4b3d082f49 Merge "Remove unnecessary usuage of instance variable" 2017-03-29 13:17:54 +00:00
Jenkins
6f40c3e4a8 Merge "Remove unused CONF and LOG" 2017-03-29 12:10:15 +00:00
zhufl
9751b3d9fe Correct invalid param in create_volume
There is no argument named "param" in create_volume, besides,
name is not necessary in create_volume(if name is not passed in,
the volume can reach status available with name=null), so this
is to remove param in create_volume in negative tests.

Change-Id: I7e0ed8be728825ca340be584e1dfe0cc5a8dbff5
2017-03-29 18:01:01 +08:00
zhufl
f52c5a5608 Remove unused CONF and LOG
This is to remove unused CONF and LOG to keep code clean.

Change-Id: I57aaa3816e28c08c8e82e4717dfb1c2f99ed9ec2
2017-03-29 15:13:22 +08:00
zhufl
f96aefe283 Remove unnecessary usuage of instance variable
This is to change some instance variables to local variables,
and remove some unused instance variables.

Change-Id: Id2e7a1dcad4e51df488094ba9fb837410802828b
2017-03-29 14:59:58 +08:00
Jenkins
d44b295a16 Merge "Remove remaining usage of cinder v1 API call from Tempest" 2017-03-29 06:51:00 +00:00
Jenkins
c92ac0ffd9 Merge "Fix race in test_attach_detach_volume" 2017-03-29 05:34:30 +00:00
Benny Kopilov
63fe58fe45 Volume force-delete when volume in maintenance state
Its not doable to delete a volume in a maintenance state without force.
The testcase calls to force_delete_volume in order to delete the volume.

Change-Id: Ia54721089d4925b6f5eeeef283cb62551a6120e1
2017-03-29 07:32:26 +03:00
Jenkins
f07c9da211 Merge "Make test_volume_pools A/A compatible" 2017-03-29 02:07:28 +00:00
Ken'ichi Ohmichi
5129c62bc6 Remove set_mac_address from old remote_client
set_mac_address() was called from test_network_basic_ops only and
it is not necessary to keep it as common method in Tempest.
Then this patch moves the implementation into test_network_basic_ops
and removes set_mac_address() from old remote_client.
In addition, this patch merges 3 exec_command() calls into a single
call for avoiding ssh re-connections.

Change-Id: I60b86a143e3987b911fa070754879bd002128120
2017-03-28 20:50:27 +00:00
Jenkins
a92a428b8c Merge "Add test case for volume unmanage and manage" 2017-03-28 19:42:01 +00:00
Jenkins
6384abe8a9 Merge "Remove unnecessary show_floatingip" 2017-03-28 11:41:42 +00:00
Jenkins
91b46ac81f Merge "Unskip test_snapshot_list_param_limit_equals_zero" 2017-03-28 11:41:34 +00:00
Jenkins
23dced8b42 Merge "Remove unnecessary Cinder v1 code" 2017-03-28 11:28:59 +00:00
Jenkins
d11f316eec Merge "Should be more clear for device name opt" 2017-03-28 10:45:47 +00:00
Jenkins
9e5cea7f16 Merge "Add test case for update volume encryption type" 2017-03-28 10:25:37 +00:00
ghanshyam
3bd0d2bbd1 Remove remaining usage of cinder v1 API call from Tempest
Cinder v1 API tests have been removed from Tempest
- I04de2d90fe11f8ec4acbfa983bc0ad3aa979f45b

There are few other tests like compute, scenario which makes
call to Cinder v1 API based on api_v1 is configured.
We should cleanup those to go with v2 directly and later
those will be directed to make v2/v3 APIs.

Change-Id: I0685a74a80ff845bd0d787bc43fac1c608ee4710
2017-03-28 10:00:52 +00:00
Jenkins
4df2338ded Merge "Fix for test_volume_swap" 2017-03-28 09:45:58 +00:00
Benny Kopilov
ba37ac443f Volume reset to maintenance mode
Update existing test with reset-volume state to maintenance.

The purpose here is to verify that cinder state can be changed to maintenance.

Here are all valid states for cinder:
https://docs.openstack.org/developer/cinder/api/cinder.api.contrib.admin_actions.html

Change-Id: I5226b000317b2a9ab034afa90c3461011db4a030
2017-03-28 08:55:13 +03:00
Jenkins
13ee2ca9aa Merge "Do not use skip_checks in TestServerAdvancedOps" 2017-03-28 04:13:22 +00:00
Ken'ichi Ohmichi
159064a586 Remove unnecessary Cinder v1 code
Since the commit I04de2d90fe11f8ec4acbfa983bc0ad3aa979f45b Cinder v1
API tests have been removed. So there is not any case which requires
_api_version is 1. This patch just removes it.

TrivialFix

Change-Id: I7af71ef6eada3017bc5a96830515915b7a848a74
2017-03-27 18:21:09 -07:00
Jenkins
03e36b63bd Merge "Deprecate the dvr_extra_resources config switch." 2017-03-28 01:18:31 +00:00
Jenkins
40c8f6097e Merge "Adding server evacuate client" 2017-03-27 19:43:41 +00:00
Jenkins
39f9363fdd Merge "Remove name checking for api version 1" 2017-03-27 19:37:53 +00:00
Jenkins
c0f492de07 Merge "Remove cinder clients api version 1" 2017-03-27 19:33:46 +00:00
Markus Zoeller
ae36ce8b46 Nova: Move _Websocket class to a common place
To avoid to introduce a dependency to "websocket-client", we re-use
the internal "_Websocket" class which encapsulates the sockets.
This class got introduced with commit 1f87a5611 for the VNC console
test cases.
This change moves this class to a common place, so that it can be
used by VNC and (in a later change) "serial console" test cases
equally.

Change-Id: I79065865c876549269b2bb962a6826ac2fd0a403
2017-03-27 16:49:37 +02:00
lkuchlan
5afcb343d8 Remove cinder clients api version 1
Since cinder api version 1 is deprecated, we should remove 'volumes_v1_client'
and 'snapshots_v1_client' clients from manager.py.

Change-Id: I2a5e4eb326e90a0c108ffaac652308c9f3fc1a7e
2017-03-27 15:41:56 +03:00
lkuchlan
5cbc00ab7f Remove name checking for api version 1
Since cinder api version 1 is deprecated, it's redundant
to check 'display_name' field.

Change-Id: I17f610994f496da246dae0c5b77c20ab32f19218
2017-03-27 14:54:40 +03:00
Kevin_Zheng
79ec334363 Should be more clear for device name opt
We are allowed to config the volume_device_name when
running tests, but not or hypervisors guarantee that
they will respect the user defined device name(KVM),
and tests may fail due to inappropriate device name
set.

We should include this information about this opt
to avoid confusions.

Change-Id: I193940c3ae565dd4803f19a77326006ebdc038cc
2017-03-27 07:57:11 +00:00
Jordan Pittier
7252ce0789 Skip flaky test_create_router_set_gateway_with_fixed_ip
test_create_router_set_gateway_with_fixed_ip starts by allocating an IP
from the public_network, then it deletes that IP (which releases the
IP back to the pool), then it tries to create a router with a fixed
external IP set to the IP value it got earlier.

But in the mean time, another test could have claimed the very same IP
because there's a fraction of time when the IP is again available. In
that case, the create router call fails with

Body: {"NeutronError": {"message": "IP address 172.24.5.2 already allocated
in subnet 41f6fb6a-f10d-4a9a-9b9b-235bbbde0891", "type":
"IpAddressAlreadyAllocated", "detail": ""}}

Change-Id: I9761b094351709f97e5b1524935d070796c64273
Related-Bug: #1676207
2017-03-26 20:48:14 +02:00
raiesmh08
14158c95fb Adding server evacuate client
This patch adds compute server evacuate API client method.

This client method is required to implement evacuate related tests
in OpenStack Patrole project.

Change-Id: Ie0d65d83923331caaa9cbbbd63b096ff8400bffa
Partial-Bug:: #1673811
2017-03-25 06:52:37 +00:00
Jaesang Lee
e4dc8fb3ab Add skip method for volume test with the glance service
In some tests, it try to create volume with image
 "VolumesV2ImageMetadata",
 "test_create_from_bootable_volume",
 "test_bootable_volume_backup_and_restore",
so it should be check Glance is available before test.
If all tests in class is associate with glance, I used skip_checks,
and otherwise, I used testtools.SkipIf

Change-Id: I2302699f98b77b0ccad551ef11c4655544b3f827
Closes-Bug: 1675700
2017-03-25 01:23:13 +00:00
Emily Hugenbruch
877811f92f Add note on get_disks about unsupported guests
Put note out there in case others run into a failure using
SLES 11 images.

Change-Id: I34a87e533ffe903429913566a77ed5c6c05580cb
Closes-Bug: #1673607
2017-03-24 16:43:04 -04:00
Andrea Frittoli
cec4494d97 Fix race in test_attach_detach_volume
The test boots a server, attaches a volume and then power cycles
the server, to check that the volume is still attached.
When ssh validation is on, we must wait for the ssh key to be
injected in the guest authorized keys file, before power cycling,
otherwise ssh will fail later in the test.

Change-Id: I506085b4efd2501e41e91530b3fedcfad286ef0e
2017-03-24 18:50:34 +00:00
Jenkins
74c14ae82c Merge "Make novnc test compatible with RFB3.3" 2017-03-24 16:46:14 +00:00
Jenkins
a70006b3f0 Merge "Fix multiple create for multiple networks" 2017-03-24 16:11:16 +00:00
Jenkins
b70e641d6d Merge "Remove explicit install of setuptools" 2017-03-24 11:17:56 +00:00
Andrea Frittoli
f684ed1c13 Fix multiple create for multiple networks
Change I953fe9cde89d9e8c968889a823911a206b27a4cd extended
the test to count the number of servers created, but in doing so
it stopped selecting the tenant network, which causes the test
to fail when more then one network is available to tenants.

The logic to select the network should not live in the
common server create helper since it depends on configuration;
the alternative is simply to discover the correct tenant network
in the test and pass it to the create method.

closes-bug: #1675059
Change-Id: I3e97a2d911c151b8df941b11935a547b39331a8f
2017-03-24 10:33:13 +00:00
Jordan Pittier
63cf8071e0 Unskip test_snapshot_list_param_limit_equals_zero
test_snapshot_list_param_limit_equals_zero was skipped because
of #1540893 There was a bug in Cinder v1 and v2 (only in Kilo
release) when list snapshot was called with a limit of 0.

Now that all supported branches have the fix in Cinder, we can
unskip the test.

Change-Id: Ia2ba9c9ee99b8ae3d1b82e98a0810b2185f34c45
Related-Bug: #1540893
2017-03-24 10:27:18 +00:00
ghanshyam
3608544b6f Separate object-storage bulk operation service clients
Swift support bulk operation for upload archive file and bulk
delete. Service client methods for those API request are
present in account_client.py

This patch separate those methods in new client and use accordingly.

Partially implements blueprint consistent-service-method-names

Change-Id: Icceaf1bf4eddd2cf6501e76e52b54de2e105a165
2017-03-24 09:00:49 +00:00
Jenkins
a3e0559d62 Merge "Use Sphinx 1.5 warning-is-error" 2017-03-24 04:18:38 +00:00