461a966d7552810f1cb1c5ed07a4fcddc3db393c
Commit Graph

17655 Commits

This Branch
This Branch
All Branches
Author SHA1 Message Date
Jenkins
86cc905734 Merge "Prevent creation of extraneous resource trackers." 2012年12月07日 20:40:32 +00:00
Clark Boylan
932af34740 Fix network manager ipv6 tests.
When using a test runner that runs tests in a different order than
nosetests it is possible that IPv6AccountIdentiferTestCase tests run
before CommonNetworkTestCase. If this happens
IPv6AccountIdentiferTestCase sets the ipv6_backend to account_identifier
which causes the regexes in
CommonNetworkTestCase.test_get_instance_uuids_by_ipv6_regex to not
match.
Explicitly set the ipv6_backend to rfc2462 in CommonNetworkTestCase's
setUp() to ensure the regex's match the addresses in the fake network
DB.
Part of blueprint grizzly-testtools
Change-Id: I0fdb5c3d4130c6cf23b22bca6645581f603a79c5
2012年12月07日 11:30:02 -08:00
Brian Elliott
7f06537ebb Prevent creation of extraneous resource trackers.
Defensive logic to stop creation of extraneous resource trackers.
Change-Id: I8d190990c4020eff85584cdb39d4b91104b7450e
2012年12月07日 18:45:31 +00:00
Édouard Thuleau
40fcbcb885 Remove unused bridge interfaces
If a network gateway of multi hosted network is unsed by any VM on the
host, we tear down it.
It is implemented only with the VLAN manager.
Fixes LP bug #1084651
Change-Id: Ia7e399de5b8ddf6ec252d38dfbb8762c4f14e3a5
2012年12月07日 18:13:22 +01:00
Dan Smith
aa97ba926d Use conductor for migration_get()
This patch removes direct database accesses for looking up
migrations by id, and instead queries conductor.
Related to blueprint no-db-compute
Change-Id: Ia7df121971b14b1eb4ce65063246968b3603309d
2012年12月07日 09:00:04 -08:00
Jenkins
87e609ca8e Merge "Reset node to source in finish_revert_resize()" 2012年12月07日 16:44:33 +00:00
Brian Elliott
bc579cfb0d Reset node to source in finish_revert_resize()
bug 1087760
Change-Id: I8c50543de1efc48b9dde0dc045fcd52bc89b727b
2012年12月07日 16:12:24 +00:00
Jenkins
3c45436cbf Merge "Simplify how ephemeral disks are created and named." 2012年12月07日 15:40:19 +00:00
Jenkins
8bca678798 Merge "Sync RPC logging-related bits from oslo" 2012年12月07日 08:30:08 +00:00
Michael Still
e28d7870fa Simplify how ephemeral disks are created and named.
Resolves bug 1087028.
Change-Id: Ife7ec43cf76cf04a98f1db2135f9149a2eefb55d
2012年12月07日 12:50:33 +11:00
Clark Boylan
fa5e490e46 Order instance faults by created_at and id.
It is possible that instance faults have the same created_at values so
ordering on that field alone is not deterministic. Add an additional
order by clause to order descending on id as well.
I am not sure if the order by exists to make tests pass; however,
without the additional "id" the tests do occasionally fail. See
http://logs.openstack.org/15078/18/check/gate-nova-python26/10709/console.html
for an example failure. If order does not actually matter we may want to
make the test smarter instead.
Part of blueprint grizzly-testtools
Change-Id: I1c7a07669846c832270631c1734dae509dba7586
2012年12月06日 17:07:55 -08:00
Dan Smith
b68e63bba0 Sync RPC logging-related bits from oslo
These are the RPC common changes for squelching exception
logging, oslo change I4e7b19dc730342091fd70a717065741d56da4555
Change-Id: I8b5040d0ec2e70b8cc1e784151df60ac2bf3f457
2012年12月06日 14:24:00 -08:00
Clark Boylan
f495b95d0e Fix bugs in test_migrations.py
This fixes two related issues in nova/tests/test_migrations.py.
First, the snake_walk flag was only set to True for the first test run
out of TestMigrations. setUp() always set snake_walk to False initially
then would only update the value if TEST_DATABASES was empty.
TEST_DATABASES was only empty during the setUp() of the first test.
Fix this by resetting test_databases before each test.
Second, because snake_walk was always False when test_walk_versions
performing the snake walk version of the database migrations was never
tested and broken. When downgrading from version X to version X -1 of a
database version X must be passed to the migration tool as version X
contains the downgrade path for that particular version. Set the correct
versions when snake walking the DB migrations.
Part of blueprint grizzly-testtools
Change-Id: I8d4d9ee8efe46b4690dd6cbe95879e88aaeb0b5a
2012年12月06日 13:16:14 -08:00
Jenkins
92a14591ff Merge "Fix minidns delete_entry to work for hostname with mixed case chars" 2012年12月06日 18:27:54 +00:00
Jenkins
a05d7219d7 Merge "remove session param from certificate_get" 2012年12月06日 18:20:29 +00:00
Jenkins
5c427dcbaa Merge "Fix regression allowing quotas to be applied to projects." 2012年12月06日 17:43:02 +00:00
Jenkins
74868b09a9 Merge "Fix pep8 exclude logic for 1.3.3" 2012年12月06日 17:42:04 +00:00
Andrew Glen-Young
963fcdb673 Fix regression allowing quotas to be applied to projects.
Change-Id: I9c7dfa7664badcafb800c02ee608699e56b344ab
Fixes: bug #1084261 
2012年12月06日 10:22:35 -05:00
Jenkins
3fa86bc504 Merge "Improve nova-manage usability" 2012年12月06日 13:49:04 +00:00
Jenkins
ed0b536e62 Merge "Add new cliutils code from oslo-incubator." 2012年12月06日 13:48:21 +00:00
Joe Gordon
59f6d3b63b Improve nova-manage usability
Prevent nova-manage from stack tracing when the wrong number of
arguments are passed in.
Fixes bug 1083315
Change-Id: I7b9a237a82b4255d88c01c6a56ad0ccd4a6ee984
2012年12月06日 13:28:15 +02:00
Jenkins
a7107f97d7 Merge "powervm: Refactored run_command for better naming" 2012年12月06日 10:45:22 +00:00
Jenkins
e59c097f85 Merge "Sync latest openstack.common.rpc" 2012年12月06日 09:59:59 +00:00
Joe Gordon
eb39f01402 Add new cliutils code from oslo-incubator.
Change-Id: I03d93c5024965d4252a18d8cb564a7512b728994
2012年12月06日 11:41:26 +02:00
Joe Gordon
41b95b3bdf Update tools/flakes to work with pydoc
Change-Id: Ib141553017aa88d6edb65b5d51c06740699a2480
2012年12月06日 11:31:10 +02:00
Joe Gordon
a44ace3196 Fix pep8 exclude logic for 1.3.3
* With pep8 1.3.3 the exclude logic monkey patch broke causing
 tools/hacking to run on openstack/common code
* Also add .git to exclude list
Fix bug 1086410
Change-Id: Ifc50ac1963c50c338432bbb4b1e15cdf58ed2128
2012年12月06日 11:19:17 +02:00
zhoudongshu
95e7770399 Avoid vm instance shutdown when power state is NOSTATE
Occasionally when nova uses libvirt lib to query hypervisor
xen the instance state of vm_power_state may end up
with a NOSTATE value. Existing code shuts down the instance
when we hit this state. Remove the check for NOSTATE
to avoid shutting down the instance.
Fixes LP #1085771.
Change-Id: I0025f6800b6ca9cd3d7c7e6119b9a819571bd13c
2012年12月06日 09:37:36 +08:00
Mark McLoughlin
1dc6c806b3 Fix handling of unimplemented host actions
Fixes bug #1060884
Host actions like enable/disable, maintenance mode and power management
are not implemented in most virt drivers.
In the case of set_host_enabled() in the libvirt driver, we have a no-op
implementation. In other cases we have an implementation which raises
NotImplementedError. Since the default implementation is to do this, we
should just remove the redundant methods from the drivers which don't
actually implement these actions. This ensures NotImplementedError is
consistently raised.
On the API side, rather than looking at the return value of these
methods to determine whether they're implemented, we should just catch
NotImplementedError and return a sensible error message.
In order to do this, we need to ensure the NotImplementedError is
properly deserialized from the RemoteError which will encapsualte
it. The fix for bug #1086798 ensures this happens.
Finally, add some tests to make sure we properly respond with 501
when the virt driver doesn't implement these actions.
Change-Id: I2d4fc51a4b16d5230e61bde75915142ea450557d
2012年12月05日 23:13:37 +00:00
Mark McLoughlin
2a33f8d8ce Fix positional arg swallow decorator
The update() method in the hosts extension is decorated with @check_host
but the function returned by decorator takes a kwarg which shadows the
'body' positional arg of the update() method.
i.e. if you call:
 controller.update(req, id, body)
then the body arg gets passed to the wrapper as its service kwarg and
never passed through to update(). We can see how the tests are all
passing body as a kwarg to avoid this.
Remove the service arg from check_host() but also from _list_hosts()
since the only place it is used is in the tests.
Change-Id: I12aab582c15c25fd35ecda005341291450c7efdc
2012年12月05日 23:05:59 +00:00
Jenkins
4d648c4b3d Merge "Ensure prep_resize arguments can be serialized." 2012年12月05日 22:17:07 +00:00
Davanum Srinivas
89a9320403 Fix minidns delete_entry to work for hostname with mixed case chars
Fix commonly used methods like parse_line and qualify to return
lower case strings. Review incoming method arguments to make sure
we are using comparisons where both strings are in lower case.
Fix a few spots where the input parameters were not in lower case
Added a test case for a specific problem that showed up in
the devstack gate job.
Change-Id: Ia204bde26cee5a1b22e8240a5310c5d45ffafb32
2012年12月05日 16:27:53 -05:00
Lance Bragstad
60cc447789 powervm: Refactored run_command for better naming
This change refactors two methods of blockdev.py in the
interest of better naming. run_command() and run_command_as_root()
have been refactored as run_vios_command() and
run_vios_command_as_root() respectively to better indicate that these
run commands on a remote system, the VIOS.
bp powervm-compute-enhancements
Change-Id: If65b4ff08e058443c7d10fcdf98e13c7aa207c56
2012年12月05日 21:01:39 +00:00
Jenkins
729263a0bb Merge "Add support for new WMI iSCSI initiator API" 2012年12月05日 19:59:50 +00:00
Mark McLoughlin
b6d589389f Sync latest openstack.common.rpc
Changes since last sync:
 202f568 Use json instead of jsonutils in rpc.impl_fake.
 6d102bc Provide i18n to those messages without _()
 8695285 Qpid H/A cluster support
 faeafe1 Fixes import order
 cf705c5 Make project pyflakes clean.
 05f8ec7 Fix common rpc to use common logging instead of python logging
 b6d24bb updating sphinx documentation
 33fbd87 Added initialize_service_hook for rpc.Service.
 cf849e0 Clean up dictionary use in RPC drivers
Change-Id: I4fbade51390e159bd9cccd2afc918a4f07740993
2012年12月05日 14:38:08 -05:00
Russell Bryant
02f4b1b9f6 Ensure prep_resize arguments can be serialized.
This should fix the unit test failures observed in:
 https://review.openstack.org/#/c/17539/
Change-Id: I75463a9ea9557f669b701c778bf24eb00502f47a
2012年12月05日 14:37:49 -05:00
Jenkins
2804b01a6b Merge "Add agent build API support for list/create/delete/modify agent build" 2012年12月05日 18:51:58 +00:00
Jenkins
f9245c8353 Merge "Add host to get_backdoor_port() for network api." 2012年12月05日 16:57:15 +00:00
Matthew Treinish
a7551a20b2 Add host to get_backdoor_port() for network api.
get_backdoor_port() in the network api doesn't have
a host parameter. However, if there are more than one
network service running on multiple hosts then you will
only be able to get the backdoor port for one of those
services. So the host field is needed to target the rpc
call.
Also, the RPC_API_VERSION number was incremented because this was
overlooked in change id: I95fdb5ca9bce9f3128300e3b5601fb2b2fc5e82f
Change-Id: I90357548c0483559982469b7c26d40511755924e
2012年12月05日 10:57:01 -05:00
Jenkins
bfc5eb8f00 Merge "network managers: Pass elevated cxtx to update_dhcp" 2012年12月05日 14:02:52 +00:00
Jenkins
0f56a837f2 Merge "improve sessions for key_pair_(create,destroy)" 2012年12月05日 13:37:05 +00:00
Jenkins
5770146195 Merge "Added sample tests to extended status API." 2012年12月05日 13:31:09 +00:00
OpenStack Jenkins
6a70741508 Merge "Imported Translations from Transifex" 2012年12月05日 13:29:37 +00:00
ivan-zhu
82042ac276 Add agent build API support for list/create/delete/modify agent build
This adds an extension that provides REST API for list/create/delete/
modify agent build. The interface is accessed via
GET /v2/{tenant_id}/os-agents
PUT /v2/{tenant_id}/os-agents/id
POST /v2/{tenant_id}/os-agents
DELETE /v2/{tenant_id}/os-agents
And this patch also create tests to get agent build API Samples.
DocImpact
Implements one workitem of blueprint apis-for-nova-manage
The agent is talking about guest agent.The host can use this for
things like accessing files on the disk, configuring networking,
or running other applications/scripts in the guest while it is
running. Typically this uses some hypervisor-specific transport
to avoid being dependent on a working network configuration.
Xen, VMware, and VirtualBox have guest agents,although the Xen
driver is the only one with an implementation for managing them
in openstack. KVM doesn't really have a concept of a guest agent
(although one could be written).
You can find the design of agent update in this link:
http://wiki.openstack.org/AgentUpdate
and find the code in nova.virt.xenapi.vmops.VMOps._boot_new_instance.
In this design We need update agent in guest from host, so we need
some interfaces to update the agent info in host.
You can find more information about the design of the GuestAgent in
the following link:
http://wiki.openstack.org/GuestAgent
http://wiki.openstack.org/GuestAgentXenStoreCommunication
DocImpact
Change-Id: I5830388a894efce5b13680fc6916e0cd81a16624
2012年12月05日 16:39:48 +08:00
Yolanda Robla
530b48386b Added sample tests to extended status API.
Partially implements blueprint nova-api-samples
Fixes bug 1070160
Change-Id: Ide7119a308a03ded101ae76faf8204352ffc8566
2012年12月05日 07:40:01 +00:00
Jenkins
255692feea Merge "Boot from volume without image supplied" 2012年12月05日 00:44:13 +00:00
OpenStack Jenkins
08e614948a Imported Translations from Transifex
Change-Id: I41b8274775241f6005b279199d1841e0b1025748
2012年12月05日 00:02:11 +00:00
Jenkins
f354276930 Merge "Allow newer boto library versions" 2012年12月04日 21:57:26 +00:00
Jenkins
b99faabe25 Merge "Make policy.json not filesystem location specific." 2012年12月04日 20:17:56 +00:00
Jenkins
a22096d7be Merge "Use conductor for resourcetracker instance_update." 2012年12月04日 19:43:39 +00:00
Jenkins
0388379e8c Merge "Access DB values as dict not as attributes. Part 3" 2012年12月04日 19:42:38 +00:00