Commit Graph

33936 Commits

Author SHA1 Message Date
Jenkins 385c8102d1 Merge "Fix for deletes first preexisting port if second was attached to instance" 2015-03-24 01:59:20 +00:00
Jenkins 055167ed03 Merge "VMware: save instance object creation in test_vmops" 2015-03-24 01:47:53 +00:00
Jenkins 6cb4c2361a Merge "Make refresh_instance_security_rules() handle non-object instances" 2015-03-24 00:54:37 +00:00
Jenkins 7ed43f8661 Merge "Fix backporting objects with sub-objects that can look falsey" 2015-03-24 00:54:19 +00:00
Jenkins 7e8a5add5d Merge "Update some ResizeClaimTestCase tests" 2015-03-23 23:56:40 +00:00
Jenkins 8601f1ef4f Merge "Merge V2 and V2.1 functional tests" 2015-03-23 23:18:21 +00:00
Jenkins c9bf270e78 Merge "Skip 'id' attribute to be explicitly deleted in TestCase" 2015-03-23 23:15:00 +00:00
Dan Smith ed21227cbc Make refresh_instance_security_rules() handle non-object instances
We have code in compute/api that still passes non-object instance dicts
over RPC to compute manager's refresh_instance_security_rules(). For now,
we can just decorate this with object_compat.

Change-Id: I0474aa8b14c897f66095ec11ca0329309bd37b5d
Closes-Bug: #1435586
2015-03-23 15:33:04 -07:00
Jenkins d1bba0d1f0 Merge "Disable oslo_messaging debug logging" 2015-03-23 22:03:43 +00:00
Jenkins cfa5d66d20 Merge "Fix typo in _live_migration_cleanup_flags method" 2015-03-23 22:03:25 +00:00
Jenkins da4f4bd240 Merge "Remove invalid hacking recheck for baremetal driver" 2015-03-23 21:43:12 +00:00
Jenkins 199d208b7f Merge "Delete instance files from dest host in revert-resize" 2015-03-23 21:38:22 +00:00
Jenkins 0a097b66e4 Merge "Scheduler: update doctring to use oslo_config" 2015-03-23 21:28:33 +00:00
Jenkins 597ce275b5 Merge "Fix docs build break" 2015-03-23 18:35:07 +00:00
Jenkins fee37b8c64 Merge "Remove vol_get_usage_by_time from conductor api/rpcapi" 2015-03-23 16:55:49 +00:00
Jenkins 4d9a03a2ce Merge "Adds Not Null constraint to KeyPair name" 2015-03-23 16:51:19 +00:00
Jenkins e483c2e184 Merge "don't use oslo.messaging in mock" 2015-03-23 16:05:44 +00:00
Jenkins 617d124827 Merge "Switch to newer cirros image in docs" 2015-03-23 16:03:17 +00:00
Davanum Srinivas 58295fa812 Fix for deletes first preexisting port if second was attached to instance
In Ia5367cf064d40690670ffeac3c1f16998464c234, we added a capability
to preserve preexisting ports on server delete. There was one scenario
that broken as a result as reported in the bug.
"If I boot instance with preexisting port and attach one more port
then first port is deleted while I delete the instance."

Essentially we have to lookup get_preexisting_port_ids during
boot as well as when we are attaching an interface.

Closes-Bug: #1433524
Change-Id: I3d557dd95f442106c495249a5ef1d2ac36e6a2ea
2015-03-23 11:38:05 -04:00
Jenkins fd6071caea Merge "Fix common misspellings" 2015-03-23 13:37:15 +00:00
Jenkins 5e4eda5449 Merge "Updated from global requirements" 2015-03-23 13:36:53 +00:00
Jenkins 2fbb2c5e40 Merge "Fix orphaned ports on build failure" 2015-03-23 12:49:52 +00:00
Jenkins fddc9838f5 Merge "Typo in oslo.i18n url" 2015-03-23 11:42:36 +00:00
Davanum Srinivas 6c2b8bc3c9 Switch to newer cirros image in docs
0.3.0 of cirros is a bit old. Let's switch to
what we test in our CI jobs which currently is 0.3.2

Change-Id: I999063dc0a86335b94376409ddd559e880c54bcc
2015-03-23 10:46:18 +00:00
Martin Kletzander 37d7c7e23b Fix common misspellings
Wikipedia's list of common misspellings [1] has a machine-readable
version.  This patch fixes those misspellings mentioned in the list
which don't have multiple right variants (as e.g. "accension", which can
be both "accession" and "ascension"), such misspellings are left
untouched.  The list of changes was manually re-checked for false
positives.

[1] https://en.wikipedia.org/wiki/Wikipedia:Lists_of_common_misspellings/For_machines

Change-Id: I52a6f641a203185f9005bc0731d15166ad741161
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
2015-03-23 11:05:12 +01:00
Jenkins d73907dd2b Merge "default tox cmd should also run 'functional' target" 2015-03-23 09:13:10 +00:00
Gary Kotton 03f4e820c8 Scheduler: update doctring to use oslo_config
Use oslo_config instead of oslo.config

TrivialFix

Change-Id: I17521474a4a45aac3e85234d95ef85e9f6f9cc49
2015-03-23 02:04:47 -07:00
ghanshyam e24c2239fb Merge V2 and V2.1 functional tests
Currently v2 and v2.1 have separate functional tests and their
corresponding sample files. As v2 and v2.1 are supposed to be identical,
there is overhead to maintain two set of functional tests and sample files.

We can have one set of tests which can run for both v2 and v2.1.

This commit use the testscenearios to generate the tests one for v2 and one for v2.1
and make v2.1 tests to run against v2.1 plugins by redirecting /v2 endpoint to v2.1
plugins in api-paste.ini

As example this commit merge flavor APIs functional tests between v2 & v2.1.
In V2 flavor API has following extensions
- Flavor_swap
- Flavor_disabled
- Flavorextradata
In V2.1 above extensions have been merged together in flavor plugins

NOTE- As testscenarios is applied in base class. v2 tests will be generated
for all the existing tests but for tests which are not merged yet
their v2 generated tests will be skipped till they gets
merged. After merge, both version tests are expected to pass like
flavor tests in this patch. So you may see lot of skipped tests
which is expected and will gets disappear as tests gets merged.

Change-Id: I0e0262f818c7d7fb15528b16d3225b9578910996
2015-03-23 17:27:55 +09:00
Jenkins a8b9304e8a Merge "Improved performance of db method network_in_use_on_host" 2015-03-23 07:05:01 +00:00
Jenkins 1f614308c7 Merge "Avoid KeyError Exception in extract_flavor()" 2015-03-23 06:59:11 +00:00
Jenkins 8ad220dd8e Merge "consoliate set_availability_zones usage" 2015-03-23 06:52:46 +00:00
Jenkins c550ad253e Merge "Enable retry when there are multiple force hosts/nodes" 2015-03-23 06:49:01 +00:00
ghanshyam 905c2d2373 Skip 'id' attribute to be explicitly deleted in TestCase
In very base test class (TestCase), addCleanup method (_clear_attrs())
is being added to explicitly delete the attributes of tests objects
to free up the memory. Details- I0e660b6c2a77c5613c5a523ba0a64c3d7f6dd128

v2 and v2.1 API has separate set of functional tests which is not good
as both API supposed to be same and can be tested by single set of tests.
Plan is to run one set of tests for both the v2 and v2.1 using testscenarios.

In that case, deleting attributes in existing way will cause issue.
If tests are being generated using testscenarios then, 'id' attribute is being
added during cloning the tests. And later that 'id' attribute is being used by
test suite to generate the results for each newly generated tests by testscenarios.
(Issue can be seen in I0e0262f818c7d7fb15528b16d3225b9578910996 PS10).

To make testscenarios work in functional tests, this commit skip the 'id' attribute
to be explicitly deleted in cleanup method.

Change-Id: I151d955545ec716f288c3ac465af7748851d79ed
2015-03-23 15:22:15 +09:00
Davanum Srinivas 3a1e3e2c76 Typo in oslo.i18n url
Fix tiny typo

Change-Id: I98decbda782e571ed9533be5cd598b8126d144ee
2015-03-21 21:29:58 -04:00
Davanum Srinivas ae3c635020 Fix docs build break
fix 2 bad json files to get the docs build to succeed.

Closes-Bug: #1434855
Change-Id: I600f5e83bdaf254bcebbd232ec4a2d396041ceb3
2015-03-21 13:23:08 -04:00
OpenStack Proposal Bot c40e6ca10c Updated from global requirements
Change-Id: I4ba973041c073acd24f624b16dfdbe66ff70f589
2015-03-21 00:14:54 +00:00
Mitsuhiro SHIGEMATSU b0a8593855 Fix typo in nova/tests/unit/test_availability_zones.py
Change-Id: I388906e81a29d23181fe3f1bba388d849592b8cb
2015-03-21 06:54:57 +09:00
Jenkins c74d644eee Merge "Move InstanceClaimTestCase.test_claim_and_audit" 2015-03-20 21:24:32 +00:00
Matt Riedemann 307e998efb Remove vol_get_usage_by_time from conductor api/rpcapi
In Havana, commit 3cf4cb253 moved the volume usage notify code to
conductor.

In Juno, commit 47f6ffad8 dropped vol_get_usage_by_time from conductor
manager but not from the conductor api/rpcapi modules. Without
vol_get_usage_by_time being in conductor manager it's an API pointing to
nothing and won't work so we should remove it.

The DB APIs are left in since the vol_usage_update DB API is tested
using vol_get_usage_by_time.

If we were to leave the conductor APIs in tree, we should add the
conductor manager method back in and convert the volume_usages table to
nova objects, and possibly also expose it via a v2.1 API extension.

Closes-Bug: #1434687

Change-Id: Ie2980d681c62cd3457b359fbe4f5c32a2bcfc5db
2015-03-20 13:29:09 -07:00
Sean Dague 2615ff0651 default tox cmd should also run 'functional' target
The default tox cmd should also run the 'functional' target, this got
missed in adding that sub target.

Change-Id: I9a10b0c9798d9f90db03991c45b9f2b285d1e4d0
2015-03-20 11:43:59 -04:00
Gary Kotton 31b7e73322 VMware: save instance object creation in test_vmops
Make use of an existing instance object. This one can be used
instead of creating a new on.

TrivialFix

Change-Id: Ie697de2af5dfa66df41a9534f3da8fd62222ad47
2015-03-20 07:36:51 -07:00
Davanum Srinivas ba87e880e4 Remove invalid hacking recheck for baremetal driver
We don't have the baremetal driver anymore, so removing
this check.

Change-Id: I07fe3a9aa1390a5b00b36e38d11525363cf2efc5
2015-03-20 07:54:20 -04:00
Kent Wang dd52617232 Adds Not Null constraint to KeyPair name
Since the API enforces that name is not null, the database schema and
model are now updated to enforce this.

Change-Id: I1088cc79f4998d3b6609891adbb0479381297ec4
Related-Bug: #1403544
Closes-Bug: #1189981
2015-03-20 04:53:45 -07:00
Oleg Bondarev 43dfc401ab Fix orphaned ports on build failure
In certain cases compute does not clean up neutron ports after
unsuccessful vm spawn.
commit 5120c4f7c2 assumes that
deallocation is already handled in this code path
however it's not always the case (see bug report for details)
This patch adds the check for network_info is empty at the moment
failure occures. If it's empty it's better to cleanup network
to eliminate the chance of orphaned ports in neutron.

Closes-Bug: #1423845
Change-Id: I88f535193dbd35253a4444950f6b2812e1a2a407
2015-03-20 11:29:07 +03:00
Jenkins 37a6c601f3 Merge "Populates retry info when unshelve offloaded instance" 2015-03-20 07:49:23 +00:00
Jenkins dfcfa82af9 Merge "VMware: use instance UUID as instance name" 2015-03-20 05:52:34 +00:00
Jenkins 201da3585c Merge "Remove unused conductor methods" 2015-03-20 05:46:37 +00:00
Jenkins ddc3a02d86 Merge "Call notify_usage_exists() without conductor proxying" 2015-03-20 05:46:07 +00:00
Jenkins 59356a4d80 Merge "Fix V2 hide server address functional tests" 2015-03-20 02:19:40 +00:00
Jenkins 18f6dcc7de Merge "VMware: Fix disk UUID in instance's extra config" 2015-03-20 01:36:53 +00:00