summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | | | | | | | Add pyflakes option to toxJoe Gordon2012-12-042-0/+26
| |_|_|/ / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Uses pyflakes wrapper to ignore gettext errors * Based on: https://bugs.launchpad.net/pyflakes/+bug/844592 Change-Id: I4fd947176f5258f89f517acf5dda2ded4a2da15e
* | | | | | | | | | Merge "powervm: add DiskAdapter for local volumes"Jenkins2012-12-044-191/+363
|\ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | powervm: add DiskAdapter for local volumesMatt Odden2012-12-014-191/+363
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change begins moving all block device related functionality to an abstract DiskAdapter class The original local logical volume implementation has been moved into PowerVMLocalVolumeAdapter Also, this patch opts for on the fly decompression of the image during the dd copy to the Logical Volume, instead of running a separate decompress before hand bp powervm-compute-enhancements Change-Id: I9ecb81e4351fd3a5c34ab8bce544b8daec353c5a
* | | | | | | | | | | Merge "Add notifications when libvirtd goes down"Jenkins2012-12-041-4/+17
|\ \ \ \ \ \ \ \ \ \ \ | |_|/ / / / / / / / / |/| | | | | | | | | |
| * | | | | | | | | | Add notifications when libvirtd goes downDavanum Srinivas2012-12-031-4/+17
| | |_|_|/ / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | During driver status update from periodic tasks, if we find that the libvirtd is down then we should send send notifications and log an error. Fixes LP #1011087 Change-Id: I447f24e4ac719d2d550810509f72be6f270ce326
* | | | | | | | | | Merge "Renaming xml test class in sample tests of consoles API."Jenkins2012-12-033-4/+6
|\ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | Renaming xml test class in sample tests of consoles API.Yolanda Robla2012-12-013-4/+6
| | |_|_|_|/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Partially implements blueprint nova-api-samples Fixes bug 1083642 Change-Id: I9ed16780e9a75a1fa34afac5c7861a0595180596
* | | | | | | | | | Merge "Added sample tests to deferred delete API."Jenkins2012-12-0317-0/+165
|\ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | Added sample tests to deferred delete API.Yolanda Robla2012-12-0117-0/+165
| | |/ / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Partially implements blueprint nova-api-samples Fixes bug 1070157 Change-Id: Icd6c743b842a7986bbc0a21c5dc62fbceda488bf
* | | | | | | | | | Merge "Fix test suite to use MiniDNS"Jenkins2012-12-037-12/+56
|\ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | Fix test suite to use MiniDNSDavanum Srinivas2012-12-037-12/+56
| |/ / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MiniDNS changes: * In create_entry/delete_entry, if we don't get a name then we throw an exception * In get_entries_by_address, filter out duplicates * Add a log.warn in addition to throwing an exception. Test Suite changes: * Updates base TestCase to use MiniDNS instead of the default DNSDriver. * Make sure we cleanup the dnstest.txt and the temporary directory in TestCase.tearDown() * Update a few tests to pass in display_name Fixes LP Bug #1081750 Change-Id: Ia8d80102deaeaaac166ab50bbd47279d72d1e389
* | | | | | | | | | Merge "Configurable exec_dirs to find rootwrap commands"Jenkins2012-12-038-73/+120
|\ \ \ \ \ \ \ \ \ \ | |_|_|_|/ / / / / / |/| | | | | | | | |
| * | | | | | | | | Configurable exec_dirs to find rootwrap commandsThierry Carrez2012-12-038-73/+120
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds support for a configurable set of trusted directories to search executables in (exec_dirs), which defaults to system PATH. If your filter specifies an exec_path that doesn't start with '/', then it will be searched in exec_dirs. Avoids having to write multiple filters to care for distro differences. Fixes bug 1079723. Also returns a specific error rather than try to run absent executables. Change-Id: Idab03bb0be6832a75ffeed4e78d25d0543f5caf9
* | | | | | | | | | Merge "On confirm_resize, update correct resource tracker"Jenkins2012-12-031-1/+1
|\ \ \ \ \ \ \ \ \ \ | |_|/ / / / / / / / |/| | | | | | | | |
| * | | | | | | | | On confirm_resize, update correct resource trackerBrian Elliott2012-12-011-1/+1
| | |/ / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On confirm_resize, update the resource tracker based on the source node of the instance, not the destination. bug 1085325 Change-Id: I041fc27225a8ed8e61fe21945d9241377b1d6384
* | | | | | | | | Merge "Fix rpc control_exchange regression."Jenkins2012-12-011-0/+3
|\ \ \ \ \ \ \ \ \ | |/ / / / / / / / |/| | | | | | | |
| * | | | | | | | Fix rpc control_exchange regression.Russell Bryant2012-11-301-0/+3
| | |_|/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A change was made in rpc that requires project's to define the control_exchange option themselves. This was so the project's could set their own default value. This change has made it in to nova without adding the control_exchange option, meaning that it is using the default of 'openstack', potentially conflicting with other projects. See https://review.openstack.org/#/c/12518/ Fix bug 1083944. Change-Id: Ifc00a537c4ee327cbee91fe1d911f8c402e350b7
* | | | | | | | Patch fake_libvirt_utils with fixtures.MonkeyPatchClark Boylan2012-11-303-19/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If tests are not run in the default order nosetests runs them in it is possible that the monkey patching of fake_libvirt utils is not properly cleaned up. Use fixtures.MonkeyPatch to monkey patch fake_libvirt_utils in test setUp ensuring the monkey patching is reverted properly after each test. Part of blueprint grizzly-testtools Change-Id: Ie691cbc777c01fa8a5affa3271f36776ea9648b9
* | | | | | | | Open test xenapi/vm_rrd.xml relative to tests.Clark Boylan2012-11-301-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The test xenapi/vm_rrd.xml file was opened in test_xenapi.py relative to the current working directory. This forced you to run unittests out of the nova/tests directory. Open the xenapi/vm_rrd.xml relative to the test_xenapi.py file so that the current working directory does not matter. Part of blueprint grizzly-testtools Change-Id: I2b8720ea418e10e9748adaa599513794202351e6
* | | | | | | | Reset notifier_api before each test.Clark Boylan2012-11-302-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If tests are not run in the default order nosetests runs them in it is possible that notifier_api in test_notifications.py and test_compute_utils is in a state unsuitable for testing (notifier_api may have had its drivers set elsewhere preventing it from picking up the test driver). Reset the notifier_api before each test to ensure notifier_api is usable for every test run regardless of test order. Part of blueprint grizzly-testtools Change-Id: I1f9282b96e2b2471eb8176b7ce9c95b4b1548ffe
* | | | | | | | Reset volume_api before cinder cloud tests.Clark Boylan2012-11-301-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If tests are not run in the default order nosetests runs them in it is possible that volume_api in test_cinder_cloud.py is in a state unsuitable for testing. Reset the volume_api before each test to ensure volume_api is usable for every test run regardless of test order. Part of blueprint grizzly-testtools Change-Id: I974e9eb09cbf9f19a01ecd0f13b2664291a5609e
* | | | | | | | Merge "add metadata support for overlapping networks"Jenkins2012-11-303-18/+185
|\ \ \ \ \ \ \ \ | |/ / / / / / / |/| | | | | | |
| * | | | | | | add metadata support for overlapping networksMark McClain2012-11-303-18/+185
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | implements blueprint metadata-overlapping-networks This is the Nova side of the changes required to support Metadata service on overlapping Quantum networks. This change is BACKWARDS COMPATIBLE and does not require any new configuration for Nova only deployments. Change-Id: I4dacd565e43e136e3faeb95184a4a2f7188415cd
* | | | | | | | Merge "Split out part of compute's init_host."Jenkins2012-11-301-52/+55
|\ \ \ \ \ \ \ \
| * | | | | | | | Split out part of compute's init_host.Russell Bryant2012-11-301-52/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The init_host() function in the compute manager has grown a good bit. The amount of nesting for instance initialization was pretty deep, making it a bit ugly. This patch splits out the code for initializing an instance during the service initialization and puts it into its own function, making things a bit more readable. Change-Id: I5183baa76304bfc04af3c7347218eefbc3dc84e3
* | | | | | | | | Merge "Use elevated cxtx in resource_tracker.resize_claim"Jenkins2012-11-301-1/+2
|\ \ \ \ \ \ \ \ \
| * | | | | | | | | Use elevated cxtx in resource_tracker.resize_claimDan Prince2012-11-301-1/+2
| | |_|/ / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Updates the resize_claim function in compute/resource_tracker so that it uses an elevated context for the db.compute_node_update call. This fixes an issue where resizes from non-admin users would fail to complete. Fixes LP Bug #1085071. Change-Id: I356e564228603834073c2b878b09cc35b88edf1e
* | | | | | | | | Merge "Fix test_migrations for postgres"Jenkins2012-11-301-21/+15
|\ \ \ \ \ \ \ \ \
| * | | | | | | | | Fix test_migrations for postgresBoris Pavlovic2012-11-301-21/+15
| | |_|_|_|_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix creating .pgpass file that is used to connect to postgress database without password prompt. Fix command that execute SQL in postgres DB: a) there were no spaces between command options and values b) we can't drop database while we are connected to it. There is a special database `template1` in postgres for dropping databases. c) using `'` instead of `"` in bash to quote SQL expressions because bash interprets only text in single quotes as plain string. Remove SQL requests which lock database Fix stripping password, so it works not only when password contains only spaces. Change-Id: I753a044aba8579b0f4225b4e67163d046ec1a32e
* | | | | | | | | Merge "Add vpn ip/port setting support for CloudPipe"Jenkins2012-11-3014-0/+226
|\ \ \ \ \ \ \ \ \ | |_|_|/ / / / / / |/| | | | | | | |
| * | | | | | | | Add vpn ip/port setting support for CloudPipeChris Yeoh2012-11-3014-0/+226
| |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This extends the cloudpipe REST API to allow the setting of the IP and port for the VPN for each network in the project /v2/{tenant_id/os-cloudpipe/configure-project # POST ip/port This forms part of the work to provide APIs for functionality currently implemented by nova-manage that needs direct db access so nova-manage can eventually be removed DocImpact Implements: blueprint apis-for-nova-manage Change-Id: I416c0bfbe1c88470638f1c2004d1dcaeb51a6c41
* | | | | | | | Merge "Add POWERVM_STARTING state to powervm driver"Jenkins2012-11-302-1/+4
|\ \ \ \ \ \ \ \ | |_|/ / / / / / |/| | | | | | |
| * | | | | | | Add POWERVM_STARTING state to powervm driverLance Bragstad2012-11-292-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In current implementation in powervm driver, the 'Starting' state of an instance is not supported. This patch adds this to the powervm driver and allows execution to continue until the instance is in a 'Running' state instead of failing out. This patch fixes Bug #1084641 blueprint powervm-compute-enhancements Change-Id: Ieb17b215547e77ee8d13b18496ba4090fc45757b
* | | | | | | | Merge "Access DB values as dict not as attributes. Part 2"Jenkins2012-11-306-99/+99
|\ \ \ \ \ \ \ \ | |_|/ / / / / / |/| | | | | | |
| * | | | | | | Access DB values as dict not as attributes. Part 2Joe Gordon2012-11-296-99/+99
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We cannot assume nova.db.api will be returning sqlalchemy objects with attributes, instead treat return values as dicts Part of blueprint db-api-cleanup Change-Id: I39ccd2f110c258d69bb2d4d7078c672c6a6ef36e
* | | | | | | | Merge "use libvirt getInfo() to receive number of physical CPUs"Jenkins2012-11-301-8/+4
|\ \ \ \ \ \ \ \
| * | | | | | | | use libvirt getInfo() to receive number of physical CPUsChristian Berendt2012-11-291-8/+4
| | |_|_|_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | multiprocessing.cpu_count() reports the wrong number of physical CPUs on a Xen dom0 system. Because we're inside the libvirt virtualization driver the corresponding libvirt method (getInfo()) should be used instead. fixes bug 1084611 Change-Id: Ida4be889ce98c7a6f58564a8bc295b360ff65965
* | | | | | | | Merge "Enable debug in run_tests using pdb"Jenkins2012-11-301-23/+32
|\ \ \ \ \ \ \ \ | |_|/ / / / / / |/| | | | | | |
| * | | | | | | Enable debug in run_tests using pdbMauro S. M. Rodrigues2012-11-291-23/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When you try to debug some test using nose.tools.set_trace the pdb prompt is 'trapped' inside tee manipulation of stdout. Since debug mode is not supposed to be used in the gates we don't need to concern about the lack of a log to analyze the output. Change-Id: I7daebe7267b04d41f2ca383f826419f0dfb544ab
* | | | | | | | Merge "Fix test_inject_admin_password for OSX"Jenkins2012-11-291-10/+24
|\ \ \ \ \ \ \ \ | |_|_|/ / / / / |/| | | | | | |
| * | | | | | | Fix test_inject_admin_password for OSXJoe Gordon2012-11-291-10/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On OSX DES is used instead of MD5, see nova.virt.disk.api:_set_password for more details Fix bug 1084337 Change-Id: I2490e1e322d42fecb43af5436fea2f903c11e265
* | | | | | | | Merge "Multi host DHCP networking and local DNS resolving"Jenkins2012-11-297-8/+103
|\ \ \ \ \ \ \ \
| * | | | | | | | Multi host DHCP networking and local DNS resolvingÉdouard Thuleau2012-11-297-8/+103
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Configure all dnsmasq instances to use the hosts file instead of the default local file '/etc/host' when the network is configured in 'multi_host' mode. This hosts file contains all DNS entries of the network and it is replicated on all host where a 'nova-network' daemon is instantiated. There is a hosts file for each networks. It needs to add a new network API to update the host file on all network hosts. When a network host is called to (de)allocate a VM, it (de)allocate the instance fixed IP adress(es) on the concerned network host and when it's done, it calls all networks to update their DNS db entries if it's needed through a fanout cast. DocImpact: new config options Fixes LP bug #1078808 Change-Id: I5c13bd895ebd31f276eb14e996025ddcfb67c3d9
* | | | | | | | | Merge "RetryFilter checks 'node' as well as 'host'"Jenkins2012-11-294-21/+29
|\ \ \ \ \ \ \ \ \
| * | | | | | | | | RetryFilter checks 'node' as well as 'host'Arata Notsu2012-11-284-21/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | FilterScheduler and RetryFilter use "(host, node)" instead of "host" to filter candidates. It makes rescheduling on different nodes in the same host possible. Fix bug 1081370 Change-Id: Id51b262de7b47b5f9215463eca5ae07a29109c3f
* | | | | | | | | | Merge "Imported Translations from Transifex"OpenStack Jenkins2012-11-291-468/+486
|\ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | Imported Translations from TransifexOpenStack Jenkins2012-11-291-468/+486
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: If111dacc960ea1882d0eda238c0c9dffaa9edf94
* | | | | | | | | | | Merge "Add aggregate_host_add and _delete to conductor."Jenkins2012-11-2910-13/+87
|\ \ \ \ \ \ \ \ \ \ \ | |_|_|/ / / / / / / / |/| | | | | | | | | |
| * | | | | | | | | | Add aggregate_host_add and _delete to conductor.Russell Bryant2012-11-2810-13/+87
| | |_|/ / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Offload the db writes for adding and removing a host to or from a host aggregate to the conductor service. Part of blueprint no-db-compute. Change-Id: I7c3da2d5c9fc6d7e72fb9371b7ea6a2b10c5218d
* | | | | | | | | | Merge "Fix typo in inherit_properties_from_image"Jenkins2012-11-291-1/+1
|\ \ \ \ \ \ \ \ \ \