summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Trap exception when trying to write csr"Jenkins2012-12-201-2/+6
|\
| * Trap exception when trying to write csrChuck Short2012-12-191-2/+6
| | | | | | | | | | | | | | | | Trap the exception when trying to write the csr fails. Fixes LP: #1092016 Change-Id: I05675c8c7b1d205a06d13dd3e62e06088d1b896d Signed-off-by: Chuck Short <chuck.short@canonical.com>
* | Merge "Fix revert resize failure with disk.local not found"Jenkins2012-12-202-12/+18
|\ \
| * | Fix revert resize failure with disk.local not foundWangpan2012-12-202-12/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If we resize an instance from a flavor without ephemeral disk to a flavor with it, it resizes OK, but if we revert this resize, the instance fail to spawn with error disk.local not found. The reason is that the libvirt driver get the wrong resized flavor from instance, so the flavor info of instance should be updated before instance spawns. Fixes: bug #1086688 Change-Id: I2c54586803c60baab7f20297b309a8e6c4134d13
* | | Merge "add 'random_seed' entry to instance metadata"Jenkins2012-12-202-0/+18
|\ \ \
| * | | add 'random_seed' entry to instance metadataScott Moser2012-12-202-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds a 'random_seed' entry to the openstack metadata for an instance, both in config-drive and in metadata service. It is a 512 byte blob of base64 encoded random data. In the metadata service, every call will result in new data. The intent of this field is to add some entropy to an instances entropy pool. Change-Id: I7d8c1f9bf70a9c5a54f6349f3277588553471555
* | | | Merge "Baremetal VIF and Volume sub-drivers."Jenkins2012-12-209-1/+666
|\ \ \ \
| * | | | Baremetal VIF and Volume sub-drivers.Mikyung Kang2012-12-209-1/+666
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch implements VIF and Volume subdrivers for baremetal driver. It was separated from review 11354. blueprint general-bare-metal-provisioning-framework. Change-Id: Id187d04b6bd7b838159d46d61be72256414d0e72 Co-authored-by: Mikyung Kang <mkkang@isi.edu> Co-authored-by: David Kang <dkang@isi.edu> Co-authored-by: Ken Igarashi <igarashik@nttdocomo.co.jp> Co-authored-by: Arata Notsu <notsu@virtualtech.jp>
* | | | | Merge "Fix _find_ports() for when backdoor_port is None."Jenkins2012-12-201-1/+10
|\ \ \ \ \
| * | | | | Fix _find_ports() for when backdoor_port is None.Matthew Treinish2012-12-201-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For the case when backdoor_port is None for a service, then the backdoor_port configuration option was not set for that service. Instead of failing for this case, just skip establishing a backdoor connection to services without a backdoor_port, and move on to the other services. Change-Id: I0fad967f94b9d9928e9134fe5901d5e256b6ab69
* | | | | | Merge "Add extension to allow hiding of addresses"Jenkins2012-12-2029-2/+705
|\ \ \ \ \ \
| * | | | | | Add extension to allow hiding of addressesJason Kölker2012-12-2029-2/+705
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Servers in certain states will have network_info but it may change, (eg. rescheduled build on another host). The extension allows the operator to hide the address information in those states * Fixes bug LP 1089092 Change-Id: Ie843e34a41c77903b201b45c5b67a6f75334cb5e
* | | | | | | Merge "Volume backed live migration w/o shared storage"Jenkins2012-12-2011-76/+272
|\ \ \ \ \ \ \
| * | | | | | | Volume backed live migration w/o shared storageRohan Rhishikesh Kanade2012-12-0411-76/+272
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch allows live migration of volume backed instances without the need for shared storage (For Libvirt only). Fixes LP Bug #1074054 DocImpact Change-Id: If7abd63a610a44720cec2d4021cc4ee737ea301d
* | | | | | | | Merge "Parameterize database connection in test.py"Jenkins2012-12-202-11/+22
|\ \ \ \ \ \ \ \
| * | | | | | | | Parameterize database connection in test.pyDevananda van der Veen2012-12-202-11/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make more of the db connection options into parameters instead of CONF values so that they behave better when testing multiple DB back-ends, as with the baremetal driver. Change-Id: Ib122b86ded4bce430773c36fdb5f85bb71100d3d
* | | | | | | | | Merge "New Baremetal provisioning framework."Jenkins2012-12-2015-67/+797
|\ \ \ \ \ \ \ \ \ | | |_|_|_|/ / / / | |/| | | | | | |
| * | | | | | | | New Baremetal provisioning framework.Mikyung Kang2012-12-1915-67/+797
| |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a minimal patch for the new baremetal driver. With this driver, nova compute registers multiple entries of baremetal nodes. It periodically updates the capabilities of the multiple baremetal nodes and reports it as a list of capabilities. It does not include Tilera or PXE back-ends, which will be provided by subsequent patches. It also does not include VIF or volume components. Part 4 of 7: blueprint general-bare-metal-provisioning-framework. Change-Id: I55617a8da52d20d4df727b8bbde8e5f72d3bf130 Co-authored-by: Mikyung Kang <mkkang@isi.edu> Co-authored-by: David Kang <dkang@isi.edu> Co-authored-by: Ken Igarashi <igarashik@nttdocomo.co.jp> Co-authored-by: Arata Notsu <notsu@virtualtech.jp> Co-authored-by: Chris Krelle <NobodyCam@gmail.com> Co-authored-by: Devananda van der Veen <devananda.vdv@gmail.com>
* | | | | | | | Merge "Move baremetal database tests to fixtures."Jenkins2012-12-202-40/+40
|\| | | | | | |
| * | | | | | | Move baremetal database tests to fixtures.Monty Taylor2012-12-192-40/+40
| | |/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The baremetal database tests didn't get migrated to fixtures when we migrated base nova. Funny story: maybe we should re-use code rather than copying! So I did that. It's reusable now. Change-Id: I730aad4a6aedb3993e032a14c9b8d2cd58913b4f
* | | | | | | Merge "Fix a test isolation error in compute.test_compute."Jenkins2012-12-203-9/+4
|\ \ \ \ \ \ \
| * | | | | | | Fix a test isolation error in compute.test_compute.Robert Collins2012-12-203-9/+4
| | |_|_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the compute.test_compute tests the common notifier_api test_notifier was being used. However, to use it correctly requires that any existing drivers be reset, otherwise the newly configured notifier does not take effect. I converted the other call sites that were doing this to also use cleanups rather than teardowns to reset it after usage, which got rid of two boilerplate tearDown methods. Change-Id: I6573d4652bb96dcebf38ef17d429d47d8a0e6434
* | | | | | | Merge "Remove fake_tests opt from test.py."Jenkins2012-12-201-3/+0
|\ \ \ \ \ \ \ | |_|_|_|/ / / |/| | | | | |
| * | | | | | Remove fake_tests opt from test.py.Dan Prince2012-12-181-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is no longer used. Change-Id: Ife0f528da6a9de5ae0567a049f5dbfce9c4a9615
* | | | | | | Merge "Export custom SMBIOS info to QEMU/KVM guests"Jenkins2012-12-202-0/+63
|\ \ \ \ \ \ \
| * | | | | | | Export custom SMBIOS info to QEMU/KVM guestsDaniel P. Berrange2012-12-192-0/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Provide custom SMBIOS data to QEMU/KVM guests, so that they can reliably detect the fact that they're running on an OpenStack platform. Guest OS vendors often need info about the host virtualization platform to apply the correct billing process for virtual machines. Looking at 'dmidecode' in the guest will show something akin to ...snip... Handle 0x0100, DMI type 1, 27 bytes System Information Manufacturer: OpenStack Foundation Product Name: OpenStack Nova Version: 2013.1-dev Serial Number: 35363738-393a-3b3c-3d3e-3f4041424344 UUID: 2BAFB510-B7DB-4117-A609-452B6E2BD718 Wake-up Type: Power Switch SKU Number: Not Specified Family: Not Specified ...snip... Change-Id: I5cdd75cd06ee872e5665f06926951b340ff2f57f Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* | | | | | | | Merge "Make configdrive.py use version.product_string()"Jenkins2012-12-201-2/+7
|\| | | | | | |
| * | | | | | | Make configdrive.py use version.product_string()Daniel P. Berrange2012-12-191-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of hardcoding 'OpenStack nova' for the publisher when building ISO images, use version.product_string(). Also append the package version suffix, if any. Change-Id: If3dfbf895ef7037e15dd3ff8da8f47daecb4d24a Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* | | | | | | | Merge "Allow loading of product/vendor/package info from external file"Jenkins2012-12-203-0/+82
|\| | | | | | |
| * | | | | | | Allow loading of product/vendor/package info from external fileDaniel P. Berrange2012-12-193-0/+82
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently the version.py file hardcodes some basic info for the NOVA_PRODUCT, NOVA_VENDOR and NOVA_PACKAGE constants. It is desirable that OS distro vendors can override/extend this data in packages they ship. Cloud providers may also desire to do the same. This allows Nova to optionally load this data from a /etc/nova/release file. That file should contain the data in a trivial "ini" format. For example: [Nova] vendor = Fedora Project package = 1.fc18 Note that vendor sare not required to override all strings. In this example, the 'product' field is not set, leaving it on the default 'OpenStack Nova' value. Change-Id: I3d8d32eaf35268c4b0908b0a93b7c9a2ea9c580a Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* | | | | | | | Merge "Remove obsolete VCS version info completely"Jenkins2012-12-205-21/+14
|\| | | | | | |
| * | | | | | | Remove obsolete VCS version info completelyDaniel P. Berrange2012-12-195-21/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The VCS version string in nova/version.py has been hardcoded to 'LOCALBRANCH:LOCALVERSION' since change 0bbb0e8cb1daa351af91cf97b2bcababfc0c7f9f The only places which use this info are some logging calls, and since 'nova-manager version' command. The latter would more usefully output the distro specific package string. Delete the VCS related methods in version.py and replace their usage with a new method version_string_with_package() which appends the distro-specific package tag Change-Id: I972b79c329198cb5376d537c6b672830094cd759 Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* | | | | | | | Merge "Define a product, vendor & package strings in version.py"Jenkins2012-12-201-0/+15
|\| | | | | | | | |_|_|_|_|/ / |/| | | | | |
| * | | | | | Define a product, vendor & package strings in version.pyDaniel P. Berrange2012-12-191-0/+15
| | |_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To have one single place where all code in Nova can access product, vendor & package strings, extend version.py to expose a product_string(), vendor_string() and package_string() methods. The product will default to "OpenStack Nova", the vendor to "OpenStack" and the package to None. The latter is intended solely for OS distro vendors to include their package version suffix (eg the "Release:" field from RPM or perhaps a VCS tag) Following changes will make this data configurable via a plain text file, and then update various parts of Nova to make use of the data. Change-Id: I3eb14d11f8949ce909a8f529851913d3dccf0e8c Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* | | | | | Merge "address uuid overwriting"Jenkins2012-12-201-5/+5
|\ \ \ \ \ \ | |_|_|/ / / |/| | | | |
| * | | | | address uuid overwritingSean Dague2012-12-191-5/+5
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | uuid was being used as a variable and as an import, change the import so that we don't have a naming collision. Probably harmless, but bad form. Change-Id: I99a0a372a62405b309e01d89b516df100b3e278c
* | | | | Merge "Make libvirt driver.listinstances return defined"Jenkins2012-12-193-0/+24
|\ \ \ \ \
| * | | | | Make libvirt driver.listinstances return definedKravchenko Pavel2012-12-193-0/+24
| | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently the Libvirt driver list_instances doesn't return defined instances. Those instances required during host initialization for blueprint rebuild-for-ha DocImpact Change-Id: Ifb8f703daa4962f4570c53c75c3d66bc5e5132e7 Co-authored-by: Oshrit Feder <oshritf@il.ibm.com>
* | | | | Merge "Add an iptables mangle rule per-bridge for DHCP."Jenkins2012-12-193-2/+46
|\ \ \ \ \ | |/ / / / |/| | | |
| * | | | Add an iptables mangle rule per-bridge for DHCP.Adam Gandelman2012-12-183-2/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When vhost-net is present on a host, and DHCP services are run on the same system as guests (multi_host), an iptables rule is needed to fill packet checksums. This adds a rule per-bridge for multi_host networks when vhost-net is present, similar to how newer versions of libvirt handle the issue for bridges/networks that it manages. Fixes LP: #1029430 EDIT: Updated tests and pep8. Change-Id: I1a51c1d808fa47a77e713dbfe384ffad183d6031
* | | | | Merge "Add expected exception to aggregate_metadata_delete()"Jenkins2012-12-191-0/+1
|\ \ \ \ \
| * | | | | Add expected exception to aggregate_metadata_delete()Dan Smith2012-12-191-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds a missing client_exceptions() decorator to the conductor's aggregate_metadata_delete() method, which was missed due to the timing of when the patches landed. With this, all expected exceptions in conductor's current set of operations should be properly marked. Related to bp/no-db-compute-manager Change-Id: Ifa8cdcb1c7e93aeb95f5dc4fe2e294fe0165cdc5
* | | | | | Merge "Move aggregate_get() to conductor"Jenkins2012-12-195-3/+26
|\| | | | |
| * | | | | Move aggregate_get() to conductorDan Smith2012-12-195-3/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This moves the final remaining aggregate DB operation from the compute/manager to conductor/manager. Related to bp/no-db-compute-manager Change-Id: I1ec6b64d29da21f978f7b72a1f8271fe68e3a44d
* | | | | | Merge "Add .testrepository/ directory to gitginore"Jenkins2012-12-191-0/+1
|\ \ \ \ \ \
| * | | | | | Add .testrepository/ directory to gitginoreMauro S. M. Rodrigues2012-12-191-0/+1
| |/ / / / / | | | | | | | | | | | | | | | | | | Change-Id: Ib46a3d996e54c249773ac3c45960d471d21d2357
* | | | | | Merge "Make NBD retry logic more generic, add retry to loop."Jenkins2012-12-195-18/+154
|\ \ \ \ \ \ | |_|_|_|/ / |/| | | | |
| * | | | | Make NBD retry logic more generic, add retry to loop.Michael Still2012-12-195-18/+154
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Other device implementations require retry logic as well. This change pushes the retry logic up one layer so that its easy to implement for the other drivers that will benefit from it, and then adds retry to the loop driver. This change also adds some unit test coverage for the loop driver. Change-Id: Iab0d42d5075e9d50b4e7eb8c7fcef12cae281b40
* | | | | Merge "Make load_network_driver load passed in driver."Jenkins2012-12-191-2/+2
|\ \ \ \ \
| * | | | | Make load_network_driver load passed in driver.Dan Prince2012-12-191-2/+2
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Small fix to the load_network_driver function so that it loads the driver we pass in as a variable rather than always using CONF.network_driver. Change-Id: I9afbbd87bde07ad9d425512dce37b54fd5e3b21e