summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | Add two missing indexes for instance_uuid columns.Michael Still2012-06-123-0/+45
| | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | sqlite has these indexes because they were in the sql scripts, but they're missing from the other database engines. Change-Id: I2a1935f6eb577d2c3d2eb177c083ad647f76f58f
* | | | | Merge "Remove unused DB calls"Jenkins2012-06-134-136/+0
|\ \ \ \ \
| * | | | | Remove unused DB callsJoe Gordon2012-06-124-136/+0
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | Fixes bug 1012301: Remove unused Cells code Change-Id: I7e78e7c4ae3b099c775be2acc54b37f1e1b9883e
* | | | | Merge "Update default policies for KVM guest PIT & RTC timers"Jenkins2012-06-132-0/+33
|\ \ \ \ \
| * | | | | Update default policies for KVM guest PIT & RTC timersDaniel P. Berrange2012-06-122-0/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The default policies for the KVM guest PIT and RTC timers are not very good at maintaining reliable time in guest operating systems. In particular Windows 7 guests will often crash with the default KVM timer policies, and old Linux guests will have very bad time drift Set the PIT such that missed ticks are injected at the normal rate, ie they are delayed Set the RTC such that missed ticks are injected at a higher rate to "catch up" This corresponds to the following libvirt XML <clock offset='utc'> <timer name='pit' tickpolicy='delay'/> <timer name='rtc' tickpolicy='catchup'/> </clock> And the following KVM options -no-kvm-pit-reinjection -rtc base=utc,driftfix=slew This should provide a default configuration that works acceptably for most OS types. In the future this will likely need to be made configurable per-guest OS type. Fixes LP bug #1011848 Change-Id: Iafb0e2192b5f3c05b6395ffdfa14f86a98ce3d1f Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* | | | | | Merge "Add support for configuring libvirt VM clock and timers"Jenkins2012-06-132-0/+157
|\| | | | |
| * | | | | Add support for configuring libvirt VM clock and timersDaniel P. Berrange2012-06-122-0/+157
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are a number of time sources made available to guests, each of which have a number of configurable policies. This introduces config APIs for the libvirt domain XML to configure the clock time sources Change-Id: Ic5047b02b4753f20bb9a63e85130d84258df7a28 Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* | | | | Merge "Log warnings instead of full exceptions for AMQP reconnects."Jenkins2012-06-131-1/+1
|\ \ \ \ \
| * | | | | Log warnings instead of full exceptions for AMQP reconnects.Josh Kearney2012-06-131-1/+1
| | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | Fixes bug 1010147. Change-Id: I1af7614330307dfdf5c723710334a168bc30b50f
* | | | | Merge "blueprint lvm-disk-images"Jenkins2012-06-1311-182/+900
|\ \ \ \ \
| * | | | | blueprint lvm-disk-imagesBoris Filippov2012-06-1211-182/+900
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add ability to use LVM volumes for VM disks. Implements LVM disks support for libvirt driver. VM disks will be stored on LVM volumes in volume group specified by `libvirt_images_volume_group` option. Another option `libvirt_local_images_type` specify which storage type will be used. Supported values are `raw`, `lvm`, `qcow2`, `default`. If `libvirt_local_images_type` = `default`, usual logic with `use_cow_images` flag is used. Boolean option `libvirt_sparse_logical_volumes` controls which type of logical volumes will be created (sparsed with virtualsize or usual logical volumes with full space allocation). Default value for this option is `False`. Commit introduce three classes: `Raw`, `Qcow2` and `Lvm`. They contain image creation logic, that was stored in `LibvirtConnection._cache_image` and `libvirt_info` methods, that produce right `LibvirtGuestConfigDisk` configurations for libvirt. `Backend` class choose which image type to use. Change-Id: I0d01cb7d2fd67de2565b8d45d34f7846ad4112c2
* | | | | Merge "Log connection_type deprecation message as WARNING"Jenkins2012-06-131-3/+1
|\ \ \ \ \
| * | | | | Log connection_type deprecation message as WARNINGDan Prince2012-06-111-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Updates the connection_type log messages to log as a warning instead of an error. Fixes LP Bug #1011788. Change-Id: I4cc2d9d5fdea2c8871f760b73a905fe61edcbe8f
* | | | | | Merge "Remove utils.deprecated functions."Jenkins2012-06-132-323/+45
|\ \ \ \ \ \ | |_|_|/ / / |/| | | | |
| * | | | | Remove utils.deprecated functions.Dan Prince2012-06-112-323/+45
| | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We don't seem to use utils.deprecated at all... so lets remove it and save ourselves 200 lines of code. Also moves a couple misc. test cases in utils.py out of the DeprecationTest suite and into the GenericUtilsTestCase suite. Change-Id: I03f71f2ee06a526a8902a3079257afd6fd65dc59
* | | | | Merge "implement sql-comment-string stack traces"Jenkins2012-06-123-4/+55
|\ \ \ \ \ | |_|_|/ / |/| | | |
| * | | | implement sql-comment-string stack tracesDevananda van der Veen2012-06-073-4/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implements solution for bug 1007648. Add python stack traces to all sql comment strings so that someone looking at database query logs can immediately see what code generated each query. This is especially powerful when combined with pt-query-digest to get per-file or per-method aggregates. Change-Id: Ieda5cf4d70cc2643d27fb00efb48de14ca2abe52
* | | | | Merge "add unit tests for new virt driver loader"Jenkins2012-06-126-50/+131
|\ \ \ \ \ | |_|/ / / |/| | | |
| * | | | add unit tests for new virt driver loaderSean Dague2012-06-116-50/+131
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Continues work on bp:virt-driver-cleanup Add unit tests to test the loading of the new and old style loaders Fix libvirt driver to make read_only optional on the constructor Fix fake driver to correctly have the kwarg be read_only Add VirtDriverNotFound exception to make get_connection failures more explicit Factor out fake backend replacement (currently just libvirt) to a seperate super class Remove touching FLAGS and use self.flags instead Change-Id: I089d0dd9c97f87478b922f4c3e26c45891eaf6cc
* | | | Merge "Add indexes to new instance_uuid columns."Jenkins2012-06-111-0/+43
|\ \ \ \ | |/ / / |/| | |
| * | | Add indexes to new instance_uuid columns.Michael Still2012-06-091-0/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Resolves bug 1009738 as well as several other bugs that haven't been reported yet. Change-Id: I09b456df70aaaba1bc4ac00514e63bda804d7f92
* | | | Merge "instance_destroy now only takes a uuid."Jenkins2012-06-1112-140/+138
|\ \ \ \
| * | | | instance_destroy now only takes a uuid.Michael Still2012-06-0912-140/+138
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | As requested in https://review.openstack.org/#/c/8218/. You'll get an exception if you pass a non-uuid in. Change-Id: I0e54eeba7ea65fa8f6640b47c47abf8c7b4f6b79
* | | | Merge "Do not attempt to kill already-dead dnsmasq"Jenkins2012-06-111-1/+8
|\ \ \ \
| * | | | Do not attempt to kill already-dead dnsmasqThierry Carrez2012-06-111-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Check that the dnsmasq process is running (and actually looks like a dnsmasq process) before attempting to kill it. Fixes bug 1010275. Change-Id: Ib49209e1624dfb30470adbe13d7fc045ec1fdf83
* | | | | Only invoke .lower() on non-None protocolsSoren Hansen2012-06-113-1/+13
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When using source group based security group rules (rather than CIDR based ones), it's permissible to not set a protocol and port. However, Nova would always try to convert the protocol to lower case, which would fail if the protocol wasn't set. Fixes bug 1010514 Change-Id: I9b1519a52ececd16a497acebfe022508cbe96126
* | | | Merge "Do not always query deleted instance_types."Jenkins2012-06-103-4/+19
|\ \ \ \
| * | | | Do not always query deleted instance_types.Brian Lamar2012-06-083-4/+19
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When converting from flavorid to instance_type_id in the OSAPI, it isn't always desired to return deleted instance_types. In the case of OSAPI create(), we explicitly do not want to query deleted flavors. Fixes bug 1010638 Change-Id: I9c26c7130f8c3d6680143e36b4aaa1f662c682a7
* | | | Merge " Fixes bug lp:999928"Jenkins2012-06-103-9/+9
|\ \ \ \
| * | | | Fixes bug lp:999928yaguang tang2012-06-073-9/+9
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The CIDR affinity filter currently matches the scheduler's IP address against the network specified by the 'build_near_host_ip' and 'cidr' scheduler hints. It should be matching each compute host's IP address against the network in the scheduler hints. Ensure that the compute host's IP address is reported as part of host_state and use this value in the filter. this issue has been talked at https://review.openstack.org/#/c/7470/ Change-Id: I14eac8797dfe8aaf870bb31ef7bf87edcf691f93
* | | | Merge changes Ic1378da2,I0f279ce6Jenkins2012-06-102-34/+55
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | * changes: Rename image to image_id. Avoid partially finished cache files.
| * | | | Rename image to image_id.Rick Harris2012-06-082-31/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The variable name `image` was a bit misleading since we're dealing with an ID and not an Image object. This renames the variables to clarify that fact. Includes some other small cleanups like using new-style classes and replacing `if X is True` with `if X`. Change-Id: Ic1378da203cfb3e199b9d2f1a14911bc7e24a1f5
| * | | | Avoid partially finished cache files.Rick Harris2012-06-081-3/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `VDI.copy` stores half-completed files directly in the SR where we may inadvertenly make use of them. To avoid these 'half-baked' records, we compare its current size to its expected size. Fixes bug 1009750 Change-Id: I0f279ce69bfa0842a6bc74f19fd61462c6013b28
* | | | | Merge "Fix power_state mis-use bug 1010586"Jenkins2012-06-101-1/+1
|\ \ \ \ \
| * | | | | Fix power_state mis-use bug 1010586Yun Mao2012-06-081-1/+1
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | SHUTDOWN and SHUTOFF are merged to SHUTDOWN in power state. Change-Id: If6a64076a3c23837ee18a34dcbd0a08fd46ab57f
* | | | | Merge "fixes bug 1010200"Jenkins2012-06-101-3/+3
|\ \ \ \ \
| * | | | | fixes bug 1010200Yun Mao2012-06-071-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | volume['id'] is no longer integer Change-Id: I5a9f59618569a9702297154d29b703562fe36ee9
* | | | | | Merge "Resolve unittest error in rpc/impl_zmq"Jenkins2012-06-101-1/+1
|\ \ \ \ \ \
| * | | | | | Resolve unittest error in rpc/impl_zmqZhongyue Luo2012-06-081-1/+1
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes bug #1010376 Remove ensure_ascii=True from dumps function. Change-Id: Ifb2f12371d3262a5765e4434178621d401e8c610
* | | | | | Merge "Add user_name project_name and color option to log"Jenkins2012-06-104-3/+31
|\ \ \ \ \ \
| * | | | | | Add user_name project_name and color option to logVishvananda Ishaya2012-06-074-3/+31
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * adds project_name and user_name to context for logging * adds color argument to logging which allows for colored log output based on the log level Change-Id: If37d646fdba77d4214f72b19e5df02da5f7dbac6
* | | | | | Merge "Fix whitespace in sqlite steps."Jenkins2012-06-102-25/+25
|\ \ \ \ \ \ | |_|_|_|/ / |/| | | | |
| * | | | | Fix whitespace in sqlite steps.Michael Still2012-06-082-25/+25
| |/ / / / | | | | | | | | | | | | | | | Change-Id: I06b7d4296512e4659961f40e3ca7b3395c0704cf
* | | | | Merge "Use OSError instead of ProcessExecutionError."Jenkins2012-06-081-1/+1
|\ \ \ \ \ | |_|/ / / |/| | | |
| * | | | Use OSError instead of ProcessExecutionError.Russell Bryant2012-06-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch updates the ZeroMQ test module to use OSError in one place instead of ProcessExecutionError from nova.exception. In a previous rev of this code, it was using nova.utils.execute(), but no longer does. Change-Id: I3dac2981b5c1a7cd5fc0e4e8dbf0a2d378a1d136
* | | | | Merge "Make eventlet backdoor play nicer with gettext"Jenkins2012-06-081-1/+12
|\ \ \ \ \
| * | | | | Make eventlet backdoor play nicer with gettextJohannes Erdfelt2012-06-071-1/+12
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes bug 1010236 Implement a new sys.displayhook that doesn't overwrite __builtin__._ that was set by gettext Change-Id: Id3c0a331eb6f98240fe1e4d0b083c72e28f99c53
* / | | | Fixes affinity filters when hints is NoneVishvananda Ishaya2012-06-072-3/+40
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | * Fixes bug 1007573 * Includes failing tests Change-Id: I827588f0694c5dd7b5e8ff3173d4794a55946d81
* | | | Merge "Convert consoles to use instance uuid."Jenkins2012-06-0711-45/+270
|\ \ \ \
| * | | | Convert consoles to use instance uuid.Michael Still2012-06-0711-45/+270
| |/ / / | | | | | | | | | | | | | | | | | | | | Continued work on blueprint finish-uuid-conversion. Change-Id: I4032419d66e9bbb17b770d8974a92a136bf9c5d2