Commit Graph

16630 Commits

Author SHA1 Message Date
Andrew Laski e45d2b6d6a Remove unused imports in setup.py
Then glob and os modules are not being used and no longer need to be
imported.

Change-Id: I0d9862811338fe6c8014c2c50c78c2cca721f9d0
2012-10-24 22:40:57 -04:00
Jenkins 1ae3f8a41e Merge "Consistent Rollback for instance creation failures" 2012-10-25 01:14:55 +00:00
Jenkins 3e8e69b8f2 Merge "Don't require quantumclient when running nova-api." 2012-10-25 01:14:13 +00:00
Jenkins 101a81f053 Merge "Handle the case where we encounter a snap shot correctly." 2012-10-24 23:22:07 +00:00
Jenkins 29e4b4d592 Merge "xenapi: Tag volumes in boot from volume case" 2012-10-24 23:21:12 +00:00
Jenkins 609d106842 Merge "Refactor: move find_guest_agent to xenapi.agent" 2012-10-24 22:36:11 +00:00
Jenkins fe739ce459 Merge "Return empty list when listing servers with bad status value" 2012-10-24 22:35:29 +00:00
Jenkins 86b91474d1 Merge "Remove unused table options dicts." 2012-10-24 21:53:24 +00:00
Jenkins 43aa3f13d7 Merge "Remove mountpoint from parse_volume_info" 2012-10-24 21:52:49 +00:00
Jenkins 805a875e46 Merge "limit the usage of connection_info" 2012-10-24 21:52:11 +00:00
Jenkins 69e1015b6e Merge "Remove database usage from libvirt imagecache module" 2012-10-24 21:51:10 +00:00
Jenkins 1123c87e58 Merge "nova-compute sends its capabilities to schedulers ASAP" 2012-10-24 20:56:24 +00:00
Jenkins 89ac7e3327 Merge "Refactor: config drive related functions" 2012-10-24 20:45:06 +00:00
Jenkins 6581a6cdc9 Merge "Fix the fail-on-zero-tests case so that it is tolerant of no output" 2012-10-24 19:31:25 +00:00
Jenkins bd38d1eb80 Merge "Change install_venv to use setup.py develop." 2012-10-24 19:18:01 +00:00
Jenkins 60600e27ed Merge "Use instance_exists to check existence" 2012-10-24 19:11:24 +00:00
Jenkins 0a868f05ab Merge "Add Server diagnostics extension api samples" 2012-10-24 19:10:44 +00:00
Jenkins fbf7ab67a8 Merge "Fix error on invalid delete_on_termination value" 2012-10-24 19:10:04 +00:00
Jenkins ec8d2569f5 Merge "Add DNS records on IP allocation in VlanManager." 2012-10-24 18:55:53 +00:00
Mate Lakat ccb9e3f00f Refactor: config drive related functions
Related to blueprint xenapi-config-drive

Move the configdrive related functions to the nova.virt.configdrive
module, so that it could be used by other drivers as well. Also move the
configdrive related configuration options to the same module.

Change-Id: Ib97ab907ac820e616017f770c2f3a8366af57a0f
2012-10-24 18:55:49 +01:00
Jenkins a6297a1b93 Merge "xenapi: fix bfv behavior when SR is not attached" 2012-10-24 17:13:23 +00:00
Monty Taylor 6cefa8cc3f Remove unused table options dicts.
Change-Id: Ibeccfb01382b19ddc1c91ece7148f7d1b5d98df8
2012-10-24 09:43:13 -07:00
Jenkins 9e35b2bbca Merge "Fix and enable pep8 E502, E712" 2012-10-24 15:20:27 +00:00
Dan Smith cc4d766a04 Remove database usage from libvirt imagecache module
This removes the database instance list operation from the libvirt
imagecache module and pushes it up into compute/manager.py.

This is a step in the proposed strategy to move db usage out of the virt
drivers up into compute/manager.py in support of bp:no-db-compute.

Change-Id: I2ea39f14304ed4b44c7ac9650703a5f780411c18
2012-10-24 07:22:04 -07:00
Davanum Srinivas e142d21b47 Return empty list when listing servers with bad status value
API indicates the status parameter is a string, hence status=BALONEY is a valid
filter that should return zero records since no records match that status. The
return should be an empty list and 200 OK.

Fixes bug 1061712

Change-Id: If796110a18dd75ab5c5d4ba41e9c3b58180341f8
2012-10-24 10:16:55 -04:00
Andy McCrae 49eca4f830 Consistent Rollback for instance creation failures
Fixes Bug 1065092

Adds a single QUOTA.rollback for all exceptions rather than performing
the rollback individually. Ensures that no stale "reservations" are left
in place after a failed instance creation.

Change-Id: I354726b651ae8feb6153d5865e0b14b54c73314b
2012-10-24 13:33:58 +00:00
Mate Lakat e668b3ae6d Refactor: move find_guest_agent to xenapi.agent
Related to blueprint xenapi-config-drive

find_guest_agent is related to agent, thus moved to that volume. With
all the agent calls in one module, making the agent optional will be as
easy as implementing a null agent.

Change-Id: I5c8cf2fd3d08518e1794a2018429162e4bd767d7
2012-10-24 14:09:05 +01:00
Jian Wen df1fb2978c Migrate network of an instance
In multi_host mode, floating ip(s) addr and NAT rules are still on
source node after resize/migrate instance. This patch fixes it up by
adding new methods in network.api to moving them to the destination
node.

Also adds the new methods to network/quantumv2/api.py. They do nothing
but pass for now.

This patch updates network RPC API to version 1.1

Fixes bug 1053344

Change-Id: If9f30050d37831f108ac4a1c8a018d820818f3b6
2012-10-24 10:22:53 +08:00
Jenkins a3d27d1892 Merge "Add virt driver capabilities definition" 2012-10-24 00:33:29 +00:00
Dan Prince fd4bb5e153 Don't require quantumclient when running nova-api.
Handle ImportErrors's when importing the quantumv2 API
in the Nova API servers controller. This makes it possible
to run nova-api when quantumclient is not present.

This was recently broken in commit 83a8418 which changed how we
import the quantum v2 API class.

Fixes LP Bug #1070509.

Change-Id: I3c452c3bd88cb5b431cb23e525ff78e3d677e1a8
2012-10-23 20:23:13 -04:00
Joshua Harlow b4b897e7ac Handle the case where we encounter a snap shot correctly.
Fix the list in the qemu output and break out of the loop
when we encounter that instead of failing to parse.

Fixes bug 1070088.

Change-Id: I5f501c599b94e0ac13892c97d60ec740ac7e641d
2012-10-23 17:03:25 -07:00
Jenkins 7c36755c03 Merge "Fix bad Log statement in nova-manage" 2012-10-23 23:59:15 +00:00
Jenkins e30c752840 Merge "Move mkfs from libvirt.utils to utils" 2012-10-23 22:20:36 +00:00
Jenkins ab477fb118 Merge "Fix nova-volume-usage-audit" 2012-10-23 22:19:53 +00:00
Dan Smith 0daebe7272 Add virt driver capabilities definition
Going forward with the early stages of no-db-compute, we will
consistently hit cases where we need to eject some database usage
from one virt driver up a few layers. Since those are not commonly
used by all, some way of determining (and the higher layer) the
properties of the virt driver being used will be useful.

We have discussed using something like a mixin interface class
and multiple inheritance. We have discussed tricks like detecting
if the manage_image_cache() method has been overridden. We have
discussed trying it once and catching NotImplementedError and then
never trying again. Aside from the first, none of these are
unsneaky enough to bite us later.

This approach will provide us a way to declare such properties
succinctly in the compute driver to help the higher layers know
what we want them to do on our behalf.

Change-Id: I74dea9322a5b4688319ebf5d9afe416e93401c58
2012-10-23 14:57:22 -07:00
Jenkins 32a6ddbcf8 Merge "Remove duplicate methods from network/rpcapi.py" 2012-10-23 21:51:22 +00:00
Jenkins f30ce55ec6 Merge "Fix bug in a test for the scheduler DiskFilter." 2012-10-23 21:29:48 +00:00
Vishvananda Ishaya 83a40dfc71 Remove duplicate methods from network/rpcapi.py
Change-Id: Ief1792f258d23f19bd4de115f7903b0b687db0e3
2012-10-23 11:53:34 -07:00
Jenkins d9c35809dc Merge "add port support when QuantumV2 subclass is used" 2012-10-23 16:50:58 +00:00
Jenkins dc9c4e44f8 Merge "Enable custom eventlet.wsgi.server log_format" 2012-10-23 16:50:22 +00:00
Davanum Srinivas 6b137d8bec Fix bad Log statement in nova-manage
Remove the log statement per discussion in the bug report
https://bugs.launchpad.net/nova/+bug/1018431/comments/3

Fixes bug 1018431

Change-Id: Ia6fe511ae23155de8b78689639b53a0d9ed1d051
2012-10-23 12:50:06 -04:00
Jenkins 3fddbb2dff Merge "Sync with latest version of openstack.common.timeutils" 2012-10-23 16:49:45 +00:00
Jenkins 97f33b349e Merge "Fixes bug Snapshotting LXC instance fails" 2012-10-23 16:49:04 +00:00
Jenkins 1ff47d61ee Merge "Update policies" 2012-10-23 15:57:29 +00:00
Mate Lakat 20b349337e Move mkfs from libvirt.utils to utils
Related to blueprint xenapi-config-drive

Move mkfs function to nova.utils, so configdrive module does not depend
on the libvirt module. This way, the configdrive module could be used
by other virt modules.

Change-Id: Ibda2aacfa0b66bc087e397df1474b5dfbe86d923
2012-10-23 16:09:37 +01:00
David Kang b60646965d Fixes bug Snapshotting LXC instance fails
Fixes bug 1058273.

The path of the disk for snapshotting LXC instance is debugged.
Also, virt_dom.managedSave(0) and self._create_domain(domain=virt_dom)
are not called for LXC instance, because they are supported by libvirt.

Change-Id: Idf8275a0222b2eb289e16dd245f7721e17fce21d
2012-10-23 10:44:39 -04:00
Andrea Rosa 9ec1f13182 Fix bug in a test for the scheduler DiskFilter.
There is an error in the logic for a unit test in the Scheduler DiskFilter.
We need to test the failure of the host_passes check with the
"test_disk_filter_fails" test.

Fixes bug 1070264.

Change-Id: Ib07f47b74a6634c573dca8fb4efa2d95b2e1ed87
2012-10-23 12:05:38 +01:00
Mate Lakat fb94618662 Remove mountpoint from parse_volume_info
Related to blueprint xenapi-volume-drivers

parse_volume_info method did too many things. It was checking the
connection_data for iscsi information, and also checked the mountpoint.
This change extracts the mountpoint conversion, and performs that check
earlier in the volume attach process.

Change-Id: I7c26e813319f6d9de287782ad188b22804d032a9
2012-10-23 10:21:59 +01:00
Mate Lakat 1dfdfcef3c limit the usage of connection_info
Related to blueprint xenapi-volume-drivers

The connection_info parameter, that is coming from volume contains only
two keys, 'driver_volume_type', and 'data'.
See:
https://github.com/openstack/nova/blob/master/nova/volume/manager.py#L375

parse_volume_info was checking the connection_info for 'auth_method',
and authentication parameters. These informations live inside
connection_data. This patch is fixing this, and covering with a test.

Also rename the generic data variable to connection_data, to make it
easier to read the code.

parse_volume_info thus no longer depends on the whole connection_info,
only on the connection_data.

Also clean-up some copy-paste test setup code.

Change-Id: I5289120d46176c8528c3317a650269c4f384f930
2012-10-23 09:43:02 +01:00
Yunhong, Jiang 5b92d8c26a Sync with latest version of openstack.common.timeutils
Changes since last sync:

    - Added is_newer_than function
    - Normalize_time() always return naive object
    - Use pep8 v1.3.3

Change-Id: I47c74671907a2f64a3fdd2caf857999c33033bdd
2012-10-23 16:39:03 +08:00