summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | | Implements updating complete bw usage dataNikhil Komawar2012-07-061-0/+1
| |_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the DB query is not filtering by the mac address. Hence, only one of them was being updated and with mismatched bw usage info. fixes bug 1021961 Change-Id: I792493a6e0817d62bbf6955df9cd5bc0e4af9dbb
* | | | | Merge "Fix rpc import path in nova-novncproxy"Jenkins2012-07-061-1/+1
|\ \ \ \ \
| * | | | | Fix rpc import path in nova-novncproxyAnthony Young2012-07-061-1/+1
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | * Fixes bug 1021836 Change-Id: Ia50224d653e172311ec9ef86ea2809ad1dafff3d
* / / / / This patch stops metadata from being deleted when an instance is deleted.Alex Meade2012-07-064-39/+6
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch makes it so that instance metadata, system metadata, and block device mappings are no longer set to deleted when an instance is deleted. It doesn't make sense to delete them just because the instance they describe has been deleted. This patch DOES NOT MIGRATE currently deleted metadata or block device mappings for currently deleted instances, that means that usage notifications for deleted instances that were deleted before this patch will show image_meta as empty. Fixes bug 1021830 Change-Id: I33ee402b859834e09535c7925957bee0a1d91207
* | | | Merge "modify hacking.py to not choke on the def of _()"Jenkins2012-07-061-2/+4
|\ \ \ \
| * | | | modify hacking.py to not choke on the def of _()Sean Dague2012-07-051-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | recent openstack-common brought in it's own def of _() which trips up our checking that all _ calls contain a message string. This explicitly excludes the definition of this in function from that check. Fixes LP Bug #1020792. Change-Id: If647d77a5ae5560935bb2e032331c34b896b8614
* | | | | Merge "Get hypervisor uptime."Jenkins2012-07-0514-5/+148
|\ \ \ \ \
| * | | | | Get hypervisor uptime.Kevin L. Mitchell2012-06-2914-5/+148
| | |_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds a call to retrieve the current uptime on a specific hypervisor. This version of the patch only adds the XenAPI variant; other virt drivers will raise a NotImplementedError until they implement the get_host_uptime() method. Change-Id: Ie259589757a460fcd91a49a8dd8099e4d91524e7
* | | | | Merge "Make possible to store snapshots not in /tmp directory"Jenkins2012-07-052-2/+9
|\ \ \ \ \
| * | | | | Make possible to store snapshots not in /tmp directoryBoris Filippov2012-07-032-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add option libvirt_snapshots_directory which specifies path where snapshots will be stored before libvirt driver uploads them to the image service. VM disk snapshot can be quite large, so keeping them in /tmp is not desirable. Fedora 18 will move /tmp to tmpfs in RAM, so snapshot functionality will become unusable with current nova behavior. Default path for snapshots directory is set to $instances_path/snapshots in this patch. In case, when shared filesystem is used to hold instances, option value can be adjusted to improve performance. Change-Id: I9458a2a26a619a01fa1ddb6955c0220ca747e64d
* | | | | | Merge "sort .gitignore for readability"Jenkins2012-07-051-24/+23
|\ \ \ \ \ \ | |_|_|_|/ / |/| | | | |
| * | | | | sort .gitignore for readabilitySean Dague2012-07-051-24/+23
| | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | sort .gitignore using sort -V to create something more readable for future additions, instead of always appending to the end of the file. Change-Id: I7e5f0a792b5555a3c53f6da124572e0e3a7d7f9b
* | | | | Merge "Don't catch & ignore exceptions when setting up LXC container ↵Jenkins2012-07-051-9/+10
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | filesystems"
| * | | | | Don't catch & ignore exceptions when setting up LXC container filesystemsDaniel P. Berrange2012-07-051-9/+10
| | |_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The 'setup_container' method in nova/disk/api.py may well raise an exception if something goes wrong when setting up the LXC container's root filesystem. Currently it just catches & logs any exception. The caller thus always thinks everything worked & goes onto boot the container despite there being no root filesystem available for it. The fix is to simply remove the bogus exception catching completely Change-Id: I2691713f11cced1561f347819875f490b8aaafef Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* | | | | Merge "Add checks for retrieving deleted instance metadata for notification ↵Jenkins2012-07-053-12/+60
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | events."
| * | | | | Add checks for retrieving deleted instance metadata for notification events.Alex Meade2012-07-053-12/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This enables metadata for a deleted instance to be reported in usage notifications. However, deleted metadata for a nondeleted instance will not be shown. Fixes bug 1021430. Change-Id: I7ce5c720c7705be34724679bb4ff99fb8ba37a27
* | | | | | Merge "Remove auth-related nova-manage commands"Jenkins2012-07-053-511/+3
|\ \ \ \ \ \ | |_|_|/ / / |/| | | | |
| * | | | | Remove auth-related nova-manage commandsBrian Waldon2012-07-053-511/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Drop support for management of deprecated auth by deleting the following nova-manage commands: * role * * export * * project/account * (except scrub and quota) * shell export * user * Additionally, delete relevant documentation and tests. Related to bp remove-deprecated-auth. Change-Id: Iad9787f696cb55d4673d68fc60851c7f5bd25805
* | | | | | ignore project files for eclipse/pydevSean Dague2012-07-051-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | eclipse is far too commit happy to keep adding these files into the tree making it a manual process to remove them before submit. This should make life a little simpler for people using pydev. Change-Id: Icd0ceea53daa76e6c36933ced174a235e070c394
* | | | | | Merge "Remove unnecessary target_host flag in xenapi driver tests"Jenkins2012-07-051-16/+11
|\ \ \ \ \ \
| * | | | | | Remove unnecessary target_host flag in xenapi driver testsJohannes Erdfelt2012-07-051-16/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This appears to be the result of some copy/paste of code. Setting target_host is unnecessary for the tests and just adds clutter. Change-Id: Iaf2abbd51af541311a2e2a4b178d7cdc4f00e116
* | | | | | | Merge "Remove unnecessary setUp() method in xenapi driver tests"Jenkins2012-07-051-11/+0
|\| | | | | |
| * | | | | | Remove unnecessary setUp() method in xenapi driver testsJohannes Erdfelt2012-07-051-11/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It creates a fake instance but then never uses it. Change-Id: Ic98dfb0f2eb31cc0da767743dd97463deed42ca4
* | | | | | | Merge "Drop xenapi session.get_imported_xenapi()"Jenkins2012-07-058-58/+50
|\ \ \ \ \ \ \ | |_|_|/ / / / |/| | | | | |
| * | | | | | Drop xenapi session.get_imported_xenapi()Johannes Erdfelt2012-07-038-58/+50
| | |_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Historically it was used to allow the xenapi fake module to be inserted in place of the real XenAPI module. However, it was used inconsistently and is unnecessary now that the session carries that information as well. Remove it by using the session.XenAPI attribute consistently, and then removing the stubs and ensuring that the fake module gets inserted directly into sys.modules. Change-Id: Id058e19eb7d932abf7b07a1e4324637a8d4b2ea6
* | | | | | Merge "Pass vdi_ref to fake.create_vbd() not a string"Jenkins2012-07-051-2/+5
|\ \ \ \ \ \
| * | | | | | Pass vdi_ref to fake.create_vbd() not a stringJohannes Erdfelt2012-07-021-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This would not cause a problem since vdi_ref wasn't used internally in the fake xenapi module. At least not yet... Change-Id: I2fe094b9c3a7d478fe20149a368af132f3258bda
* | | | | | | Merge "Correct typo in tools/hacking.py l18n -> i18n"Jenkins2012-07-051-2/+2
|\ \ \ \ \ \ \
| * | | | | | | Correct typo in tools/hacking.py l18n -> i18nBrian Waldon2012-07-051-2/+2
| | |_|/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | i18n stands for internationalization, while l10n stands for localization. l18n stands for nothing. Change-Id: Iebfe2dcbc12919875c0ecee8aa9223dc107239d7
* | | | | | | Merge "Finish AUTHORS transition."Jenkins2012-07-054-264/+3
|\ \ \ \ \ \ \
| * | | | | | | Finish AUTHORS transition.Monty Taylor2012-07-054-264/+3
| | |_|_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The code to generate the authors file from the git changelog has been in the tree and running for a few weeks now. Somehow the removal of the authors test and and the MANIFEST.in file were wrong though. This should clean that up. Fixes bug 920757. Change-Id: I66c388c1c81804f8dabc52b5ee25c7f394921e11
* | | | | | | Merge "Add *.egg* to .gitignore"Jenkins2012-07-051-1/+1
|\ \ \ \ \ \ \
| * | | | | | | Add *.egg* to .gitignoreBrian Waldon2012-07-051-1/+1
| | |/ / / / / | |/| | | | | | | | | | | | | | | | | | | Change-Id: Id2adc763a1a84acf0323bc711616d62d5e310d75
* | | | | | | Merge "Allow network_uuids that begin with a prefix"Jenkins2012-07-052-3/+12
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | |
| * | | | | | Allow network_uuids that begin with a prefixJason Kölker2012-07-052-3/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * If the bare network_uuid is not uuid-like, attempt to validate with the first 'prefix-' stripped off * Fix LP1021370 Change-Id: I4914d4ffcb633aef1c5b7f8abfa0b48eaf4f0cc9
* | | | | | | Merge "Ensure system metadata is sent on new image creation."Jenkins2012-07-052-0/+57
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | |
| * | | | | | Ensure system metadata is sent on new image creation.SandyWalsh2012-07-042-0/+57
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | System metadata is useful for billing and notification purposes. Sadly, this data was getting lost on new instances created from snapshots of old instances. This patch ensures the system metadata of the old instance is stored in the snapshot for use with creating new instances. Additionally, it strips the "image_" prefix from any system metadata keys (as required). Change-Id: I9fff55c0e9f106afcded1865c7a47bc96ba507a7
* | | | | | Merge "Add compatibility for CPU model config with libvirt < 0.9.10"Jenkins2012-07-052-3/+113
|\ \ \ \ \ \
| * | | | | | Add compatibility for CPU model config with libvirt < 0.9.10Daniel P. Berrange2012-07-022-3/+113
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Libvirt versions prior to 0.9.10 do not support the simpler 'mode' attribute for choosing CPU model. So with such libvirt releases we must explicitly construct the guest CPU model from the host capabilities info when mode=host-model. We can not support mode=host-passthrough at all with these earlier libvirt versions This change can be reverted in the future, if the value of the MIN_LIBVIRT_VERSION constant is increased to 0.9.10 or later Fixes: bug #1003373 Implements: blueprint libvirt-xml-cpu-model Change-Id: I3e55ffccf38be18454f810efeb5c201aab94ddb0 Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* | | | | | | Merge "Assign service_catalog in NovaKeystoneContext."Jenkins2012-07-051-0/+1
|\ \ \ \ \ \ \
| * | | | | | | Assign service_catalog in NovaKeystoneContext.Dan Prince2012-07-041-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Updates NovaKeystoneContext so that the service_catalog variable is assigned regardless of whether X_SERVICE_CATALOG is set. Fixes LP Bug #1020779 Change-Id: I3ab15fa53488f2f352718fd230d8ec5e3a38cf56
* | | | | | | | Merge "Remove unused 'get_open_port' method from libvirt utils"Jenkins2012-07-052-23/+0
|\ \ \ \ \ \ \ \ | |_|_|/ / / / / |/| | | | | | |
| * | | | | | | Remove unused 'get_open_port' method from libvirt utilsDaniel P. Berrange2012-06-292-23/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As of the following commit: commit 71410724cd1516608ee58c37077bf9080da38de2 Author: Thierry Carrez <thierry@openstack.org> Date: Tue Feb 7 16:37:34 2012 +0100 Remove ajaxterm from Nova The 'get_open_port' method in the libvirt utils.py module is no longer used. Thus is can be deleted Change-Id: I837d07f82d55c54b4abd82d9bb20498a1f489f84 Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* | | | | | | | Fix some hacking violations in the quantum tests.Dan Prince2012-07-033-6/+11
| |/ / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch fixes some import sorting and HACKING violations in the quantum tests. Quantum client raises Exception which is discouraged by HACKING. To avoid some of the HACKING violations we set a constant equal to Exception and use it for the assertions in the tests. This avoids the HACKING violations until we can make quantum client throw a custom exception class instead. Change-Id: Ie52d0049dda2d18ad06c5137ca8c316c5531b56a
* | | | | | | Fix missing nova.log change to nova.openstack.common.logJohannes Erdfelt2012-07-031-1/+1
| |_|_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This appears to have slipped through the cracks in the recent move from nova.log to nova.openstack.common.log Change-Id: I4935c6e1ba0681a31c081b580f1afecc676c5697
* | | | | | Merge "Add Cinder Volume API to Nova"Jenkins2012-07-034-2/+1433
|\ \ \ \ \ \
| * | | | | | Add Cinder Volume API to NovaJohn Griffith2012-07-034-2/+1433
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Implements part of blueprint extract-nova-volumes * Adds Cinder API to Nova (nova/volume/cinder.py) * Add fake volume API to use for unit tests * Add specific Cinder ec2/test_cloud version Signed-off-by: Anthony Young <sleepsonthefloor@gmail.com> Signed-off-by: Vishvananda Ishaya <vishvananda@gmail.com> Change-Id: Id56972e2388a94d184c64bfae9c70a1f2805738b
* | | | | | | Merge "Modifies ec2/cloud to be able to use Cinder"Jenkins2012-07-033-20/+25
|\| | | | | |
| * | | | | | Modifies ec2/cloud to be able to use CinderJohn Griffith2012-07-033-20/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Implements part of blueprint extract-nova-volumes * Pass more complete information from ec2api to volume * Remove old comment from test_cloud * Stops creating mapping on default volume/snap creation, as the mapping is automatically created on access Change-Id: I55f4364940cd606b06ad39256462dc1c436e28f1
* | | | | | | Merge "Implement nova network API for quantum API 2.0"Jenkins2012-07-036-2/+812
|\ \ \ \ \ \ \