18507 Commits

Author SHA1 Message Date
Jenkins
a8a0826ea6 Merge "Go back to the original branch after pylint check" 2013-01-23 13:10:50 +00:00
Jenkins
2b96477ac2 Merge "Ignore auto-generated files by lintstack" 2013-01-23 13:09:27 +00:00
Jenkins
d3819e1244 Merge "Run_as_root to ensure resize2fs succeed for all image backends" 2013-01-23 13:09:13 +00:00
Jenkins
69b14f1e7b Merge "Refactor: extract method: driver_dict_from_config" 2013-01-23 13:07:56 +00:00
Jenkins
ea13fad538 Merge "Fix state sync logic related to the PAUSED VM state" 2013-01-23 13:07:42 +00:00
Jenkins
bb108c6bd3 Merge "Sync latest cfg from oslo-incubator" 2013-01-23 12:52:12 +00:00
Jenkins
66ee2ae49f Merge "Use setup.py testr to run testr in run_tests.sh." 2013-01-23 12:51:56 +00:00
Jenkins
efcda2a14f Merge "Fix the wrong datatype in task_log table." 2013-01-23 12:51:41 +00:00
Jenkins
a1c1e1bac1 Merge "Allow snapshots of paused and suspended instances" 2013-01-23 07:33:30 +00:00
Jenkins
294c57397c Merge "fix misspellings in logs, comments and tests" 2013-01-23 06:34:39 +00:00
Jenkins
c2a72961e9 Merge "Replace use of mkdtemp with fixtures.TempDir" 2013-01-23 06:34:26 +00:00
Jenkins
5309d3cebd Merge "Cleanup of extract_opts.py" 2013-01-23 06:03:50 +00:00
Jenkins
eb368aff66 Merge "Fix for typo in xml API doc sample in nova" 2013-01-23 05:33:24 +00:00
Jenkins
1cd0649736 Merge "Adds conductor support for instance_get_active_by_window_joined" 2013-01-23 05:26:35 +00:00
Jenkins
6ba587b321 Merge "Don't limit SSH keys generation to 1024 bits" 2013-01-23 01:39:23 +00:00
Jenkins
1ab992d2aa Merge "Fix nova coverage." 2013-01-23 01:39:08 +00:00
Jenkins
697e4c7332 Merge "Make compare_result show the difference in lists" 2013-01-23 01:38:53 +00:00
Jenkins
41fc98942c Merge "List servers having non-existent flavor should return empty list" 2013-01-23 01:04:07 +00:00
Jenkins
7fb4cce61b Merge "Prevent metadata updates until instance is active." 2013-01-22 23:20:21 +00:00
Jenkins
794b0ffc75 Merge "Tests for PXE bare-metal provisioning helper server." 2013-01-22 22:57:17 +00:00
Tiago Mello
d442815d99 Adds conductor support for instance_get_active_by_window_joined
This patch fixes Bug 1102469.

Related to bp/no-db-compute-manager

Change-Id: Ib9e7a4c380eb5d1a0c7059ad6a90d0aec1638fbd
2013-01-22 19:05:41 -02:00
Jenkins
723987a16f Merge "Drop volume API" 2013-01-22 20:06:12 +00:00
Johannes Erdfelt
5aec4bf885 Make compare_result show the difference in lists
If two lists had differed because one had an extra element, both lists
would be included in the exception message. If the lists were large (for
example the list of extensions) it could be very difficult trying to
figure out what is different between the two lists.

This change will show the items that only exist in the expected and/or
result and not the other list.

Change-Id: I6102faea037b4f5e31361adc9db81e79592b7008
2013-01-22 19:41:57 +00:00
Zane Bitter
aa3686a86f Don't limit SSH keys generation to 1024 bits
Use the default bit length of the underlying ssh-keygen command
(currently 2048) if no bit length is supplied, rather than defaulting to
1024 bits.

bug 1103130

Change-Id: Iba9d378d5bf9e28663e52180ed04c31c16d08aad
Signed-off-by: Zane Bitter <zbitter@redhat.com>
2013-01-22 20:35:02 +01:00
Jenkins
343ba7ac28 Merge "More consistent libvirt XML handling and cleanup" 2013-01-22 19:08:29 +00:00
Jenkins
b512bba76c Merge "fix mysql race in tests" 2013-01-22 18:43:08 +00:00
Kevin L. Mitchell
c92ed76173 Drop volume API
When volumes were removed from nova, api-paste.ini was not updated.
This removes the outdated sections of api-paste.ini.

Change-Id: I6dcc792ed87f6b02e5fdffb0af46a3fbf6b37404
2013-01-22 12:40:14 -06:00
Jenkins
81de5a055f Merge "Unpin testtools." 2013-01-22 18:03:13 +00:00
Jenkins
995d6ae7e5 Merge "Fix incorrect use of context object" 2013-01-22 18:00:49 +00:00
Jenkins
2a284ea97b Merge "fix floating ip test that wasn't running" 2013-01-22 17:12:46 +00:00
Jenkins
b7912c60f8 Merge "Fix get Floating ip pools action name to match with its policy" 2013-01-22 17:12:29 +00:00
ladquin
04f8dcf0bd Fix for typo in xml API doc sample in nova
Modified:   doc/api_samples/os-flavor-manage/flavor-create-post-req.json
Deleted final comma for proper syntax
Partially fixes: bug 1088528 (part of the bug requires changes in other repo - done)

Change-Id: I5b0b29b4c720a95d5c4c5d957e77dc2e4c9cf8ee
2013-01-22 13:36:49 -03:00
Davanum Srinivas
6560520363 List servers having non-existent flavor should return empty list
When we catch the exception just return an empty list.

Fixes LP# 1102462

Change-Id: I730bd505c40fa76cb0ba687575e3c3882fee6254
2013-01-22 09:43:25 -05:00
Spencer Krum
86eabe4a79 Replace use of mkdtemp with fixtures.TempDir
Change-Id: I392b2cc14f27a099fecad3e15d3f14b269c1f621
2013-01-22 02:20:47 -08:00
Yunhong, Jiang
fab8af583b Add trust level cache to trusted_filter
Currently each time the trusted filter is called to check host_pass, it
polls Open Attestation Service to get the trusted level for the host. This
solution is not good on scalability.
    With a cache for the host trust level, trusted filter don't need to
consult OAT service if the cache is still valid, thus improves the
scalability. The cache is setup when the first time the filter consulting
the OAT service.
    The trusted_filters are reinitialized for each VM that is
scheduled, thus the cache is valid only for one VM instance scheduing.

    Implements blueprint trusted-filter-cache

Change-Id: I613da53876e6cd548566e27ab1693287023e9861
Signed-off-by: Yunhong, Jiang <yunhong.jiang@intel.com>
2013-01-22 17:49:43 +08:00
Wenhao Xu
84e5e69e5b Fix the wrong datatype in task_log table.
Change period_begining and period_ending to Datetime type.
    Add the migration script.

Change-Id: Ic5d61d6e7e847a1943825a0cb342b0b015bc0b70
Fixes: bug #1102477
2013-01-22 16:27:31 +08:00
Zhongyue Luo
4a04aacef3 Cleanup of extract_opts.py
Moved global variables to the top.
Removed once used variables
Used option type definitions in OPT_TYPES

Change-Id: Ia0bf39933bac84dbf432e6b4590ceb2527e6889c
2013-01-22 14:14:55 +08:00
Clark Boylan
7c5b098947 Use setup.py testr to run testr in run_tests.sh.
Using the setup.py testr command in run_tests.sh will sync run_tests.sh
up with the way tox currently runs the tests and collects coverage.

Change-Id: I21e3965280b3242a860c6be49c4dca44f197b03a
2013-01-21 19:10:53 -08:00
Clark Boylan
cc88380dfe Fix nova coverage.
Nova coverage was broken because additional coverage tests were added
that interfere with collecting coverage during unit testing. These new
tests were not properly excluded by the coverage unit test regex. Modify
the regex to exclude any tests of the form '.*test.*coverage.*'. This
allows `tox -ecover` and `run_tests.sh --coverage` to run properly.

Change-Id: Id35f50ec335707c9eadb0e7fb3aa0833661f7333
2013-01-21 19:05:51 -08:00
gtt116
6d5e0fd2d4 Fix incorrect use of context object
As in nova/availability_zones.py, the method get_host_availability_zone()
expects "context" as a module rather than a RequestContext object.
But for our preference, the argument "context" is better to be a
RequestContext object. So fix this by passing an context object into the
method.

* Fix the usage of argument "context"
* Add unittest for the module "availability_zones"

Fix bug lp:#1100598

Change-Id: I5886ba26131261d97be65f18e9492c40401c5a7f
2013-01-22 02:15:36 +00:00
Robert Collins
bd422b2d1f Unpin testtools.
Change-Id: If760a7b6f8771d9f9ac2722c300032e715e34151
2013-01-22 13:17:04 +13:00
Pádraig Brady
f379db545c fix misspellings in logs, comments and tests
Flagged with: https://github.com/lyda/misspell-check
Run with: git ls-files | misspellings -f -

Fixes bug: 1100083
Change-Id: Icf1f844fea8ad0a1101d1dc64b9a126608e9536e
2013-01-21 23:14:13 +00:00
Jenkins
a4d608fa33 Merge "Directly copy a file URL from glance." 2013-01-21 23:05:19 +00:00
Sean Dague
65b3b44350 fix mysql race in tests
because of testr, we can't assume the migrations tests run in
sequence, so they make run all at the same time. This is fine for
our in memory sqlite db, but when talking to a real external
database, not so good.

Since a second mysql test was added, we started racing on these
migrations them often hitting at the same time causing random fails
in gate.

Fix this by moving all the mysql tests into 1 test function, so we
won't race.

Fixes bug #1101874

Change-Id: I7627f3bd510266c99af018d355f960b352573759
2013-01-21 18:03:38 -05:00
Jenkins
07531ad264 Merge "Clean up db network db calls for fixed and float" 2013-01-21 23:02:35 +00:00
Jenkins
d82865ad54 Merge "Remove restoring soft deleted entries part 2" 2013-01-21 23:02:19 +00:00
Jenkins
42cc03d823 Merge "libvirt: Fix typo in configdrive implementation" 2013-01-21 23:02:03 +00:00
Mauro S. M. Rodrigues
93516a528d Fix get Floating ip pools action name to match with its policy
Get Floating IP Pools is always responding 403 (Forbidden) cause its method
name, which is also being used as action name, doesn't match with the name in
policy.json file.
I opted for this approach cause it also fixes the different names between the
extension (which is named floating **ip** pools instead of floating pools) and
the backend.
Another good practice would be change the default_floating_pool option to
default_float_ip_pool, but that would require change the conf file and possibly
break some compatibility.

Fixes bug 1091668

Change-Id: I2627e8b0f45c5c39bbbf1a4a12b448e1992fa4b4
2013-01-21 18:00:19 -05:00
Jenkins
0f2dc94e98 Merge "Remove restoring soft deleted entries part 1" 2013-01-21 22:58:45 +00:00
Jenkins
9ebcd1d91c Merge "correcting for proper use of the word 'an'." 2013-01-21 22:58:28 +00:00