summaryrefslogtreecommitdiffstats
path: root/nova/virt
Commit message (Collapse)AuthorAgeFilesLines
* Merge "xenapi: Remove vestigial `compile_metrics` code"Jenkins2013-07-021-114/+0
|\
| * xenapi: Remove vestigial `compile_metrics` codeRick Harris2013-06-271-114/+0
| | | | | | | | | | | | | | | | | | | | `compile_metrics` is no longer called as it was superceded by: https://github.com/openstack/nova/commit/8887f10c66bca248f289db8f834ae8f36f9a03a1 Fixes bug 1194990 Change-Id: Ia651ac69fc38ed3f5cb29562556f7065caba225a
* | Merge "Add resume state on host boot function to vmware Hyper."Jenkins2013-07-012-0/+29
|\ \
| * | Add resume state on host boot function to vmware Hyper.Yaguang Tang2013-06-292-0/+29
| | | | | | | | | | | | | | | | | | Fix bug #1183426 Change-Id: Ia4a0cce285aac01c59286f4899cbac0a021039c4
* | | Merge "Implement get_host_uptime for powervm driver"Jenkins2013-07-013-1/+34
|\ \ \
| * | | Implement get_host_uptime for powervm driverMatt Riedemann2013-06-273-1/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch implements the get_host_uptime method for the powervm driver by calling the sysstat command on the backing hypervisor and returning the parsed results. Fixes bug 1191785 Change-Id: I67aaf6a5f5eb6b3a411ca9a0284d9a3016dd2947
* | | | remove locals() from virt/hyperv packageEugene Nikanorov2013-06-299-60/+109
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also fix logging issue with missing local variable for existing placeholder fixes bug 1171936 Change-Id: I6e32364983372945c2b69bb92cd3a96689b7a53c
* | | | Merge "fix invalid logging"Jenkins2013-06-291-2/+10
|\ \ \ \ | |_|/ / |/| | |
| * | | fix invalid loggingMate Lakat2013-06-281-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Logging parameters were passed as a tuple, yielding: TypeError: not enough arguments for format string fixes bug 1194917 Change-Id: Ifec893e1e4551f28849b96c7b1bf3c929b708b4d
* | | | Merge "VNC console does not work with VCDriver"Jenkins2013-06-284-12/+211
|\ \ \ \ | |/ / / |/| | |
| * | | VNC console does not work with VCDriverhartsocks2013-06-274-12/+211
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduces get_vnc_console_vcenter as a way to get a modified vnc_console object that connects to the ESXi host underneath vCenter control. * adds new fake classes for testing * documents classes, methods & API logic fixes bug: #1178369 Change-Id: I48430cb9bc9615e02ca9af235f97853f3f0bdafd
* | | | Merge "No support for double nested 64 bit guest using VCDriver"Jenkins2013-06-281-0/+4
|\ \ \ \
| * | | | No support for double nested 64 bit guest using VCDriverJacob Cherkas2013-06-181-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 64bit instances launched on ESX via the VCDriver will not support running 64bit guests. There is an option that can be passed during the vmx creation that will allow for this to happen. This is very useful if you want to run hypervisors (esx, kvm) on top of ESX and then run 64bit VMs on top of those hypervisors. Fixes bug 1192256 Change-Id: Id6eb224c97569737cbb41f1b64f61805e1df004e
* | | | | Merge "Fix resizes with attached file-based volumes"Jenkins2013-06-271-3/+23
|\ \ \ \ \
| * | | | | Fix resizes with attached file-based volumesRafi Khardalian2013-06-271-3/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug 1190364 get_instance_disk_info() now takes an additional, optional argument of block_device_info. When passed in, we use it to filter out volumes, such that they are not returned. Previously, any devices classified as "file" as parsed from the instance XML were considered local disks. This assumption is incorrect, since some volumes are simply files, rather than block devices. Added a new test, based almost entirely off the existing test case for this function, which represents an XML file with two fake file-based (NFS-like) volumes and associated block_device_info to claim those volumes. Change-Id: I4809a8fd68eb0f709347aa7cad0fa85389ade41c
* | | | | | Merge "Remove broken config_drive image_href support."Jenkins2013-06-272-5/+1
|\ \ \ \ \ \
| * | | | | | Remove broken config_drive image_href support.Chris Behrens2013-06-262-5/+1
| | |_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | image_href support has not been working since at least shortly before Folsom release. This is a good indication that this functionality is not used. As far as I can tell, the docs also do not match what was supported. An image ID was required, but docs show examples with full hrefs. DocImpact http://docs.openstack.org/developer/nova/api_ext/ext_config_drive.html References to supporting image_hrefs should be removed. This patch also removes the hack that passed a config_drive_id via the Instance dictionary when config_drive_id is not a valid Column for Instance. Fixes bug 1186401 Change-Id: Iced7bc8e278cb9f208183f1dbb7a293675a47eae
* | | | | | Remove trivial cases of unused variables (3)Stanislaw Pitucha2013-06-277-12/+11
| |/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Kill some of the variables marked as unused by flakes8. This should allow to enable F841 check in the future. Only trivial cases with no function calls and obviously pure functions (like datetime.now(), or len()) are cleaned up here. Part 3, split to reduce conflicts. Change-Id: I7b8e806ddd7b0e077243d4e31de140cd08fe0155
* | | | | Merge "Log xml in libvirt _create_domain failures"Jenkins2013-06-271-3/+21
|\ \ \ \ \
| * | | | | Log xml in libvirt _create_domain failuresMatt Riedemann2013-06-171-3/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When an error occurs defining, launching or enabling hairpin mode on a libvirt domain, log the xml for reproduction and analysis. Fixes bug 1183534 Change-Id: Ic8f1d11c5a92779c686b7248895bbc6f2cfdbf0b
* | | | | | Merge "xenapi: Make BitTorrent url more flexible"Jenkins2013-06-271-15/+13
|\ \ \ \ \ \ | |_|_|_|_|/ |/| | | | |
| * | | | | xenapi: Make BitTorrent url more flexibleBrian Elliott2013-06-261-15/+13
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change xenapi bittorrent plugin to not assume that torrent file is under CONF.xenapi_torrent_base_url + image_id + ".torrent". This allows for sources images from arbitrary torrent URLs. Change-Id: Ica9462a51c6299b5affc861781f3054d18866458
* | | | | Merge "Check the instance ID before creating it"Jenkins2013-06-271-13/+16
|\ \ \ \ \
| * | | | | Check the instance ID before creating itAnte Karamatić2013-06-181-13/+16
| | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | At least with libvirt 1.x instance goes into shutdown state before its ID is changed. This means that there's a race condition during reboot where nova might try to create an instance that's already defined. By checking if the ID of the new and old instance is the same, we avoid that situation and reiterate on the loop. The tests for this are added in I6215f80bd15820dac80151e7063916dbbc21d761 Change-Id: I493b828f0c6848fbadc591be2f47fd1b12fd3a51 Fixes: bug 1181924
* | | | | Merge "Adds support for the Indigo Virtual Switch (IVS)"Jenkins2013-06-261-6/+125
|\ \ \ \ \ | |_|/ / / |/| | | |
| * | | | Adds support for the Indigo Virtual Switch (IVS)Kevin Benton2013-06-091-6/+125
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implements: blueprint ivs-vif-driver Adds line to rootwrap config to allow call to ivs-ctl to control the Indigo switch. Adds a new 'ivs' VIF type in network/model.py. Adds support to the LibvirtGenericVIFDriver class for the IVS switch. Adds functions to linux_net.py to create and delete IVS vif ports. Adds unit tests to test the new IVS methods. Change-Id: I65436b82f65374103644af8aba9dba14ba73f94c
* | | | | Refresh volume connections when starting instancesBrent Eagles2013-06-259-23/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patches adds network and block device information to the signature of the power_on method on the virtualization driver. The relevant call sites are also modified to provide the required information. The libvirt implementation of power_on has been altered to re-establish network and volume related connections. Fixes bug: 1188326 Change-Id: If617b570e082e3aa321414a2680a3aa0754f6153
* | | | | Revert XenApi virt driver should throw exceptionDan Prince2013-06-241-5/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 2cb31123302a1ec8c8dec0cb2ac288a2e3b19c68. Fixes LP Bug #1194264. Change-Id: Ib8f8a8cfdcc1b37bb87fee3983081154a4fa2b2b
* | | | | Merge "XenApi virt driver should throw exception on failure"Jenkins2013-06-241-1/+5
|\ \ \ \ \
| * | | | | XenApi virt driver should throw exception on failuresridevik2013-06-201-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Virt xenapi driver does not throw InstancePowerOffFailure exception on a failure while destroying an instance. _shutdown_instance in compute manager expects InstancePowerOffFailure and reraises it. This ensures that instances are not wrongly marked as deleted. Change-Id: Id57f48a00202bd5ed3125f8e4396a51c12e142cb Fixes: bug #1190076
* | | | | | Merge "Perform additional check before live snapshotting"Jenkins2013-06-241-7/+12
|\ \ \ \ \ \
| * | | | | | Perform additional check before live snapshottingRafi Khardalian2013-06-211-7/+12
| | |_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug 1193146 Move blockJobAbort() out of the _live_snapshot function, such that it continues to terminate existing jobs, while also doubling as a method for confirming that our version of Qemu/KVM is new enough to execute a _live_snapshot. Change-Id: Ife5d2fd768a34dabf25a1bfc24e54bd6db762c89
* | | | | | Merge "Do not raise NEW exceptions"Jenkins2013-06-242-6/+5
|\ \ \ \ \ \
| * | | | | | Do not raise NEW exceptionsBoris Pavlovic2013-06-222-6/+5
| | |_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Raising NEW exception is bad practice, because we lose TraceBack. So all places like: except SomeException as e: raise e should be replaced by except SomeException: raise If we are doing some other actions before reraising we should store information about exception then do all actions and then reraise it. This is caused by eventlet bug. It lost information about exception if it switch threads. fixes bug 1191730 Change-Id: Ia375ecef9f16bda65d5146d14ed4b37a988abb0c
* | | | | | Merge "Fix sys_meta access in prep for instance object"Jenkins2013-06-222-3/+3
|\ \ \ \ \ \ | |_|/ / / / |/| | | | |
| * | | | | Fix sys_meta access in prep for instance objectChris Behrens2013-06-212-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix various places that access instance['system_metadata'] as if it's a list of sqlalchemy models. A helper util method was created in a previous patch set in nova/utils... so this patch converts things to use it. Left one use in _init_instance() in compute/manager.py because it's being addressed with a different patch set. Related to blueprint unified-object-model Change-Id: I876a6c57f64d61d64069c884bf0414c3596e1aa0
* | | | | | Merge "Remove locals() from nova/virt/libvirt package"Jenkins2013-06-213-72/+95
|\ \ \ \ \ \
| * | | | | | Remove locals() from nova/virt/libvirt packageEugene Nikanorov2013-06-213-72/+95
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fixes bug 1171936 Change-Id: I81198d6bc74991b184b3de2f7977ff3a9a12ac28
* | | | | | Merge "Setting static ip= for baremetal PXE boot."Jenkins2013-06-217-59/+63
|\ \ \ \ \ \ | |/ / / / / |/| | | | |
| * | | | | Setting static ip= for baremetal PXE boot.Lucas Alvares Gomes2013-06-187-59/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds a new option "pxe_network_config" to baremetal PXE driver, if set it tells the driver to append the network configuration to the kernel cmdline. Initramfs built with network support could then benefit from this option and avoid the injection of network configuration files into the image. DocImpact Change-Id: I61dc946f42f8a86eaad0e73b033a0d8da4a74e40
* | | | | | Merge "fixes nova resize bug when force_config_drive is set."Jenkins2013-06-201-1/+1
|\ \ \ \ \ \
| * | | | | | fixes nova resize bug when force_config_drive is set.Anthony Woods2013-06-201-1/+1
| | |_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If files is None, set contents=[] when calling instance_metadata.InstanceMetadata from within _create_image() to prevent the method trying to iterate a NoneType. Fixes bug 1183003 Change-Id: I0ac18ad5363ab9496fa83d231d7ec7c59d737691
* | | | | | Merge "xenapi: revisit error handling around calls to agent"Jenkins2013-06-202-105/+78
|\ \ \ \ \ \ | |/ / / / / |/| | | | |
| * | | | | xenapi: revisit error handling around calls to agentJohn Garbutt2013-06-192-105/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now we have settings to hint if the agent is present or not, and by default we do not check for the agent, if the agent is not responding to our calls for its version, we can fail the build. In environments that need the agent to inject the networking, you really want the agent to fail if it is not present. If the agent did not inject the networking, the server will have no networking. However, we can still leave the agent upgrade to silently fail, as the agent should be backwards compatible. fixes bug 1188540 Change-Id: I8acdabd8d2bd24b088dad3cd4abec300d0ada3fb
* | | | | | Merge "Drop `bm_pxe_ips` table from baremetal database."Jenkins2013-06-205-155/+67
|\ \ \ \ \ \
| * | | | | | Drop `bm_pxe_ips` table from baremetal database.Victor Sergeyev2013-06-145-155/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - added migration and tests - removed model `BareMetalPxeIp` - from nova/virt/baremetal/db/sqlalchemy/api.py removed functions `bm_pxe_ip_get_all`, `bm_pxe_ip_create`, `bm_pxe_ip_create_direct`, `bm_pxe_ip_destroy`, `bm_pxe_ip_destroy_by_address`, 'bm_pxe_ip_get`, `bm_pxe_ip_get_by_bm_node_id`, `bm_pxe_ip_associate`, 'bm_pxe_ip_disassociate` - from nova/virt/baremetal/db/api.py removed functions `bm_node_associate_and_update`, `bm_pxe_ip_create`, `bm_pxe_ip_create_direct`, `bm_pxe_ip_destroy`, `bm_pxe_ip_destroy_by_address`, `bm_pxe_ip_get_all`, `bm_pxe_ip_get`, `bm_pxe_ip_get_by_bm_node_id, `bm_pxe_ip_associate`, `bm_pxe_ip_disassociate` - from nova/tests/virt/baremetal/db/utils.py removed function `new_bm_pxe_ip` - removed nova/tests/virt/baremetal/db/test_bm_pxe_ip.py - modified `baremetal/volume_driver.py` - now we get `address` using nova db api Fixes bug 1156745 Change-Id: I61f78d692da276694d79a7c1a8d45a466d124c70
* | | | | | | Merge "Libvirt driver: normalize variable names (part1)"Jenkins2013-06-191-49/+50
|\ \ \ \ \ \ \
| * | | | | | | Libvirt driver: normalize variable names (part1)Rafi Khardalian2013-06-191-49/+50
| | |/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Variable names referring to the same objects/data are different throughout the libvirt driver. This can lead to confusion, which leads to avoidable bugs. Part1: ctxt -> context instance_ref -> instance Change-Id: I9d170b6025935544f07ecdebe5a68b2e2eaba5dd
* | | | | | | Merge "Added unit tests for vmware cluster driver"Jenkins2013-06-191-4/+52
|\ \ \ \ \ \ \
| * | | | | | | Added unit tests for vmware cluster driverkirankv2013-06-181-4/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ie41b573f9a16a71306b6e2aca34f1d78f4b801c5