461a966d7552810f1cb1c5ed07a4fcddc3db393c
Commit Graph

17655 Commits

This Branch
This Branch
All Branches
Author SHA1 Message Date
Xiangyang Chu
461a966d75 Add the missing replacement text in devref doc.
Add AggregateInstanceExtraSpecsFilter's replacement text in
doc/source/devref/filter_scheduler.rst
Change-Id: I5b74c5f51eb85f79f79a2d2c556d6522d97f1497
2012年12月14日 09:47:32 +08:00
Jenkins
d1e7f796bf Merge "Remove sleep in test_consoleauth." 2012年12月13日 22:41:02 +00:00
Jenkins
b7b578ff8c Merge "Fix poll_rescued_instances periodic task" 2012年12月13日 20:45:10 +00:00
Jenkins
76f9b4d499 Merge "Stop nbd leaks, remove pid race." 2012年12月13日 20:35:09 +00:00
Jenkins
421a2094c4 Merge "Add VirtAPI tests" 2012年12月13日 18:24:53 +00:00
Clark Boylan
2ce5fee0d6 Remove sleep in test_consoleauth.
test_consoleauth:ConsoleauthTestCase.test_tokens_expire called
time.sleep(1.1) in order to test that tokens with a TTL of 1 second
expire after one second. Problem is time.sleep() may return before the
entire sleep period is complete. Remove the sleep and instead use Oslo's
timeutils to override the time and advance it by one second to check
that expired tokens do expire.
Part of blueprint grizzly-testtools
Change-Id: Iae0e678fb12a76757523dc7dbccb4da98cef85e6
2012年12月13日 10:19:02 -08:00
Jenkins
be12f8b785 Merge "Move metadata_{host,port} to network.linux_net" 2012年12月13日 15:23:37 +00:00
Jenkins
e1dea7cd63 Merge "Move API extension opts to api.openstack.compute" 2012年12月13日 15:21:30 +00:00
Jenkins
78e54998b6 Merge "Move osapi_max_limit into api.openstack.common" 2012年12月13日 15:21:11 +00:00
Jenkins
3c36a7b0ac Merge "Move link_prefix options into api.openstack.common" 2012年12月13日 15:19:44 +00:00
Andrew Laski
c40fc8a4db Fix poll_rescued_instances periodic task
The poll_rescued_instances periodic task now checks the amount of time
that an instance has been in the RESCUED stated before timing out the
rescue. It also now performs the unrescue through the compute api in
order to make sure the database is left in a consistent state.
The poll_rescued_instances method is no longer necessary in the virt
driver interface and has been removed. And also removed from the
different virt drivers, since it was just doing a 'pass' in each of
them.
bug 1088625
bug 1088627
Change-Id: I75f7dc188cc49e5f6e5c8a3cb256d1c42ff7d882
2012年12月13日 09:13:48 -05:00
Jenkins
dc48ce7fb1 Merge "Fix for correctly parsing snapshot uuid in ec2api" 2012年12月13日 11:12:10 +00:00
Jenkins
dd05b52bb3 Merge "Clean up run_tests.sh" 2012年12月13日 09:39:41 +00:00
Hengqing Hu
7d89fdf544 Clean up run_tests.sh
Remove obsolete lines.
Change-Id: Id6c868c857733dc4cbeceacab4d3a817b43b77b1
2012年12月13日 15:46:37 +08:00
Jenkins
62b38931c5 Merge "Add support for parsing the <uuid> from libvirt host capabilities" 2012年12月13日 07:14:25 +00:00
Jenkins
5f575d8b9c Merge "Add support for libvirt domain <smbios> XML config" 2012年12月13日 07:14:02 +00:00
Michael Still
e4377fdb0e Stop nbd leaks, remove pid race.
With the previous implementation, if a nbd device was found to be in
use by something other than nova it was removed from the class scoped
list of devices, but never re-added. This meant we "leaked" devices
away over time if we were competing with other nbd users on the
machine.
Instead of tracking our use at all, we should rely on the presence of
a user pid in /sys.
Resolves bug 1088083.
Change-Id: If777e270a0dda12034ea7ef1bc7fd688cadde8a9
2012年12月13日 17:08:21 +11:00
Jenkins
b963a93194 Merge "Use nova.test.TestCase as the base test class." 2012年12月13日 02:55:18 +00:00
Jenkins
3af7ae8079 Merge "Add support for libvirt domain <sysinfo> XML config" 2012年12月13日 00:11:33 +00:00
Jenkins
df143208b0 Merge "Add Jian Wen to .mailmap" 2012年12月13日 00:08:14 +00:00
Jenkins
998c2649b7 Merge "Fixes string formatting error." 2012年12月13日 00:07:01 +00:00
Jenkins
31f0eec568 Merge "Make update_service_capabilities() accept a list of capabilities" 2012年12月13日 00:00:26 +00:00
Jenkins
e467a0a1fe Merge "Fix KeyError of log message in virt/libvirt/utils.py" 2012年12月12日 23:59:56 +00:00
Jenkins
701a15ef1f Merge "Move remaining aggregate operations to conductor" 2012年12月12日 23:33:39 +00:00
Jenkins
9202a8457a Merge "Port to argparse based cfg" 2012年12月12日 23:30:43 +00:00
Jenkins
d5b91dd39b Merge "Remove unused bridge interfaces" 2012年12月12日 22:43:02 +00:00
Jenkins
7b5ce8f8cc Merge "remove session param from instance_get" 2012年12月12日 22:35:49 +00:00
Jenkins
6f5fc8d5c3 Merge "remove session param from instance_get_by_uuid" 2012年12月12日 22:33:49 +00:00
Jenkins
b2b2bfce72 Merge "Allow rpc-silent FloatingIP exceptions in n-net" 2012年12月12日 21:58:15 +00:00
Jenkins
4a4c6ded46 Merge "Allow conductor exceptions to pass over RPC silently" 2012年12月12日 21:56:55 +00:00
Jenkins
8267407424 Merge "Use admin user to read Quantum port." 2012年12月12日 21:52:50 +00:00
Jenkins
0837a88578 Merge "Add vif_type to the VIF model" 2012年12月12日 21:48:34 +00:00
Dan Smith
8598ed72d3 Add VirtAPI tests
So far, VirtAPI has only been tested indirectly through the
other tests and modules that use it.
This adds a dedicated set of tests for the VirtAPI abstract class,
the virt/fake.py::FakeVirtAPI implementation, as well as the one
in compute/manager.py::ComputeVirtAPI. This test helps to ensure
that they all have the same method signatures and exhibit the
general behavior we expect. At the very least, this should help
them from getting out of sync in terms of their API. It also ensures
that methods can't be added to VirtAPI without a corresponding test.
Note the slight change in the FakeVirtAPI class to fix passing the
keyword arguments explicitly, which makes Mock happy.
Related (vaguely) to blueprint no-db-compute
Change-Id: Ib44379e17fae4df506b0108e20eb66b19195b1ca
2012年12月12日 12:54:53 -08:00
Dan Smith
a6051acc33 Move remaining aggregate operations to conductor
This patch moves the following aggregate operations from compute
to conductor:
 aggregate_get_by_host()
 aggregate_metadata_add()
 aggregate_metadata_delete()
In order to do that, it also changes the signature of the corresponding
VirtAPI methods to take the aggregate object instead of just the id,
so that we don't re-introduce any db messaging behavior.
I debated about using the set_delete mechanism in the metadata_add
API to avoid adding a separate conductor API for delete, but decided
that it wasn't worth the extra round trips, no matter how much I may
wish it were.
Change-Id: Ic0117879c8ce576cdc8e6c5af018bb918a15d4c0
2012年12月12日 12:54:36 -08:00
Devananda van der Veen
695095a424 remove session param from instance_get
remove unused session param from instance_get
blueprint db-session-cleanup
Change-Id: Id8d7129ca0f8477b1e99a405653c498c4ed4cd76
2012年12月12日 12:38:53 -08:00
Devananda van der Veen
985b369c17 remove session param from instance_get_by_uuid
remove session param from public method instance_get_by_uuid
create private method to retain session param
 for the few places which need it
blueprint db-session-cleanup
Change-Id: I80f682018c88d2a14e454ab1af1dff4fe0be7432
2012年12月12日 12:38:14 -08:00
Jenkins
46675d85db Merge "Adds API Sample tests for DiskConfig extension." 2012年12月12日 19:56:49 +00:00
Jenkins
1b3a72492c Merge "Move some opts into nova.utils" 2012年12月12日 18:19:20 +00:00
Jenkins
f3c08f6076 Merge "Properly scope password options" 2012年12月12日 18:18:58 +00:00
Jenkins
02e83e1028 Merge "Ensure datetimes can be properly serialized." 2012年12月12日 18:17:01 +00:00
Clark Boylan
170aaf5231 Use nova.test.TestCase as the base test class.
Subclass nova.test.TestCase instead of unittest.TestCase so that all
tests get the proper setUp and tearDown needed for all tests.
Part of blueprint grizzly-testtools
Change-Id: I8f3cd49e6e0e36eade1fd6ccb6c15359d38f2236
2012年12月12日 10:02:40 -08:00
Jenkins
7ca309c3da Merge "Implement an XML matcher" 2012年12月12日 17:12:59 +00:00
Jenkins
1b7bf9c93e Merge "Autodetect nbd devices." 2012年12月12日 17:12:46 +00:00
Russell Bryant
1259395061 Ensure datetimes can be properly serialized.
The nova-network manager was returning db models from methods invoked
via rpc.call(). These db models include non-primitive types that can
not be properly serialized (namely datetime objects). Use
to_primitive() to ensure that the data gets serialized properly.
Fix bug 1089430.
Change-Id: I019504cf68b2d420437c550b596eda8a12fe6618
2012年12月12日 11:13:50 -05:00
Sulochan Acharya
180f29d7ec Fixes string formatting error.
Fixes a small string formatting error in exception.py
by adding missing converstion type.
Fixes bug #1089416
Change-Id: I48fb39c669b2a1e81f052349cdb700e146ee2c4d
2012年12月12日 09:37:00 -06:00
Tiago Mello
15a395f4b5 Adds API Sample tests for DiskConfig extension.
Partially implements blueprint nova-api-samples
Fixes bug 1070158
Change-Id: Ied2efc3ae17599b61133247273a7a4bec9020927
2012年12月12日 13:01:40 -02:00
Jenkins
b6f4796f86 Merge "Properly scope isolated hosts config opts" 2012年12月12日 14:48:34 +00:00
Jenkins
365c9f0e16 Merge "Move monkey patch config opts into nova.utils" 2012年12月12日 14:48:09 +00:00
Rohan Rhishikesh Kanade
4339ecbb4f Fix for correctly parsing snapshot uuid in ec2api
* EC2 snapshot id correctly translated instead of volume uuid.
* Add unit tests changes for the existing test.
Fixes LP Bug #1089371
Change-Id: Id650ba53dc6cda946531493e3887a01fc5d9bda4
2012年12月12日 06:08:45 -08:00
Michael Still
ab3c602ac5 Autodetect nbd devices.
This means we don't need to the max_nbd_devices flag any more at all.
This patch also moves the internal representation of the list of
available nbd devices to not including the leading /dev/, but that is
not exposed as a change in the interface to the class.
Resolves bug 861504 and its duplicate 1088339.
DocImpact.
Change-Id: I5c6218122ab09781d8a2ecd6d8b76a74be4a6e91
2012年12月12日 21:55:56 +11:00