Commit Graph

23544 Commits

Author SHA1 Message Date
Zhongyue Luo a94232f79d Update sample config generator script
This patch reverts 13d80020. The help message should be added
in oslo-incubator since generate_sample.sh is synced from there also.

Resolves bug #1204204

9f2b93b Sample config file generator clean up
33f9f78 Replaces relative path to absolute path in conf file generator
c97e17b Refactors if statement in config generator
8b11fda Provide useful defaults for config generator
4c02e0a Unset OS_xx variable before generate configuration

Change-Id: I96fcb39c0c620c147fea5c96416e506a758619ce
2013-09-21 10:54:06 +09:00
Jenkins 3db4372a1b Merge "Catch more accuracy exception for _lookup_by_name" 2013-09-20 22:27:58 +00:00
Jenkins 0e8dece08c Merge "Fix problem with starting Windows 7 instances using VMware Driver" 2013-09-20 21:22:18 +00:00
Jenkins ba74e3e5de Merge "xenapi: Make rescue safer" 2013-09-20 21:04:49 +00:00
Jenkins 2a5f986523 Merge "libvirt: ignore false exception due to slow NFS on resize-revert" 2013-09-20 20:59:01 +00:00
Jenkins 3e5d45a081 Merge "Actually fix info_cache healing lazy load" 2013-09-20 20:23:05 +00:00
Jenkins c5462a426d Merge "Fix snapshot failure with VMwareVCDriver" 2013-09-20 18:53:48 +00:00
Jenkins e5f9df4458 Merge "Fix for os-availability-zone/detail returning 500" 2013-09-20 18:33:11 +00:00
Chris Behrens ce385ca391 Actually fix info_cache healing lazy load
system_metadata is still being lazy loaded as a part of healing the
instance info_cache.  A previous attempt to fix this issue missed the
more important call.

It's actually more efficient to not load the system_metadata when getting
the list and allow the 1 instance to lazy load.  For the cached instances,
we will ask for system_metadata when getting a fresh copy from the DB.

Fixes bug 1223969

Change-Id: Ib95e868135ed2b36af7ddbcfb8d5905bfe14d1fe
2013-09-20 18:30:27 +00:00
Jenkins c16ecadabe Merge "xenapi: ensure finish_migration cleans on errors" 2013-09-20 18:17:13 +00:00
Jenkins 6f514b265d Merge "xenapi: regroup spawn steps for better progress" 2013-09-20 18:16:41 +00:00
Jenkins 9e4caae11d Merge "xenapi: stop injecting the hostname during resize" 2013-09-20 18:14:03 +00:00
Jenkins 821da6224b Merge "xenapi: add tests for finish_migration and spawn" 2013-09-20 18:13:20 +00:00
Jay Lau 9ba82ba8c6 libvirt: ignore false exception due to slow NFS on resize-revert
When resize revert one VM instance, if the NFS is slow, the NFS
mounted on source host might not respond quickly. This will cause
that even if the VM instance configuration files was deleted from
resize target host, the NFS on source host may still think the
files were not deleted. Then in driver.py::finish_revert_migration,
the driver try to delete the file again, this will lead nova compute
throw exception.

The fix was ignore exception for such case: if failed to delete the
instance with error no as 2 (No such file or directory)

Fix bug 1206312

Change-Id: I89990c1750a7fd7f421cab03780e7704ee661de1
2013-09-21 00:50:14 +08:00
Jenkins a4aa83fe9e Merge "xenapi: ensure pool based migrate is live" 2013-09-20 15:23:39 +00:00
Jenkins b4661db66e Merge "pci passthrough bug fix:hasattr dones not work for dict" 2013-09-20 02:48:51 +00:00
Jenkins 69bae42b11 Merge "Remove _assert_compute_node_has_enough_memory from filter_scheduler.py" 2013-09-19 22:03:49 +00:00
Jenkins 70d2ae51bb Merge "xenapi: tidy ups to some spawn related methods" 2013-09-19 21:55:46 +00:00
Jenkins b349aafee8 Merge "xenapi: move kernel/ramdisk methods to vm_utils" 2013-09-19 21:55:00 +00:00
Jenkins f3afc77104 Merge "Convert TestCases to NoDBTestCase" 2013-09-19 21:39:14 +00:00
Jenkins ddb676d469 Merge "Typo: certicates=>certificates in nova.conf" 2013-09-19 20:45:24 +00:00
Jenkins 1cfe5b7c4d Merge "MultiprocessWSGITest wait for workers to die bug" 2013-09-19 20:44:49 +00:00
Jenkins 35ccbdd037 Merge "Enable fake driver can live migration" 2013-09-19 20:44:17 +00:00
Jenkins f984ee111d Merge "Wrong arguments when calling safe_utils.getcallargs()" 2013-09-19 20:43:45 +00:00
Jenkins 8074542164 Merge "Send notification for any updates to instance objects" 2013-09-19 18:30:52 +00:00
Jenkins 27b7b5c1e0 Merge "Retry on deadlock in instance_metadata_delete" 2013-09-19 18:09:53 +00:00
Matt Riedemann 919eced81f Send notification for any updates to instance objects
Before objects, a notification would be sent for any change to an
instance and the notifications.send_update method would handle any
filtering that needed to be done prior to sending the event.

Currently, the instance objects code is pre-filtering the notification
by only checking if vm_state or task_state changed which is a
regression.

This patch removes the filter in the instance objects code so that
notifications are again sent for any changes to the instance and lets
the notifications.send_update method handle the event as it did before.

Closes-Bug: #1220186

Change-Id: Ib6ceedfe55b021be0fe7fa910e97d46c0cd8f0cd
2013-09-19 10:23:12 -07:00
Jenkins 651748f9d3 Merge "Prune node stats at compute node delete time" 2013-09-19 16:54:03 +00:00
Joe Gordon fdc0596352 Typo: certicates=>certificates in nova.conf
The help message for cinder_ca_certificates_file and
neutron_ca_certificates_file spelled certificates wrong.

As this is user facing, we should fix it.

Fixes bug 1227780

Change-Id: If9372fffb655d21069c005351ebb593d8e16e056
2013-09-19 09:48:26 -07:00
Matt Riedemann de648bb7bf Remove print statement from test_quotas that fails H233 check
The nova.tests.objects.test_quotas module had a print statement which is
causing a hacking H233 check failure. It was probably just left there
from debugging the code while it was under development, so this patch
simply removes it.

Closes-Bug: #1227655

Change-Id: I25296d7f4a9d2242bfe3ed2e00df6d840a7b19cd
2013-09-19 06:35:49 -07:00
Davanum Srinivas d1d1515a61 Fix for os-availability-zone/detail returning 500
if there are no enabled_services, then zone_hosts is very likely
to be empty, which means zone_hosts['nova'] will fail. So let's
use get with a default of empty array to cover this case. Added
a fix/test for v3 API as well.

Fixes LP# 1226791

Change-Id: I602c96242291fd9a4bdf67af6445aa935ec7f7e3
2013-09-19 09:22:12 -04:00
Michael Still e1f04d8ef1 Convert TestCases to NoDBTestCase
NoDBTestCase is faster because it skips initializing a database for
tests which don't actually talk to the database. Its also nicer
because its more explicit about the dependancies of a given test.
This is a first pass at moving test cases over to the database
lacking version, but further work is required here.

Change-Id: Ia28de4ebea4f354cba06bcdc66bb01d4b332943a
Partial-Bug: 1227473
2013-09-19 19:53:04 +10:00
Jenkins 50482bed85 Merge "Edits for nova.conf.sample" 2013-09-19 00:46:02 +00:00
hartsocks 51199e5d0e MultiprocessWSGITest wait for workers to die bug
MultiprocessWSGITest.test_terminate_sigterm
fails because the wait for workers to die is unreliable.

Parent process can now wait on child or grand-child
processes to complete before moving on. This allows
for grand-child (aka worker) processes to take as much
time as they need to shutdown. NOTE: If the processes
still take too long, they will be killed by the test
framework throwing the "TIMEOUT" exception.

Reverts to using a ping signal to child process
to determine if the child process is live. Waits for
the signal call to fail, signaling process death.

closes bug #1218133

Change-Id: I08e17005508fe412f462773f9ab212cf0f10382f
2013-09-18 17:21:27 -07:00
Joe Cropper 8b9d6f6fed Prune node stats at compute node delete time
This commit addresses the situation in which a compute node is deleted, but
its compute node stats still remain in the database as **not** deleted. This
causes ill side effects in compute_node_get_all when it's retrieving host stats
as it doesn't expect there to be compute node stats for which there is no
corresponding compute node (i.e., causing some nodes' stats to be empty).

As such, when a compute node is deleted, its stats should also be implicitly
deleted.

The new test case that's been created fails without the code changes, which
illustrates the problem that compute node stats are empty when they should
not be.

Also included is a simple DB migration script that will update old stats that
were not marked soft-deleted as they should have been.

Change-Id: Ief0f7cf1a506e71898b5a45a0513d34167432d67
Closes-Bug: #1224712
2013-09-18 17:39:18 -05:00
Jenkins ded3bd149d Merge "xenapi: Fix rescue" 2013-09-18 22:30:48 +00:00
Jenkins c1ebb43aba Merge "Should finish allocating network before VM reaches ACTIVE" 2013-09-18 22:03:12 +00:00
Jenkins fb516e8160 Merge "Fixes misuse of assertTrue in test scripts" 2013-09-18 21:19:49 +00:00
Jenkins 4d3689baef Merge "Add missing get_available_nodes() refresh arg" 2013-09-18 18:05:08 +00:00
Jenkins cdad8ee619 Merge "Add instance_flavor_id to the notification message" 2013-09-18 16:20:22 +00:00
Jenkins d35f2257b2 Merge "Fix quota direct DB access in compute" 2013-09-18 16:16:40 +00:00
Jenkins b9fef04952 Merge "Add new-world Quota object" 2013-09-18 16:16:05 +00:00
Brian Elliott 0552f37a20 xenapi: Make rescue safer
If rescue setup fails, detach the root disk from the rescue VM so it
doesn't get nuked by the undo stack logic in spawn()

bug 1227898

Change-Id: I8864b4c524f04f7b387be1018fea9919a461c48b
2013-09-18 08:08:48 +00:00
Jenkins 82a598318f Merge "Fix use of bare list/dict types in instance_group object" 2013-09-18 07:20:07 +00:00
Jenkins cb943e6f25 Merge "Increase volume created checking retries to 60" 2013-09-18 07:16:35 +00:00
Sabari Kumar Murugesan 16a9853fe3 Fix problem with starting Windows 7 instances using VMware Driver
The default controller for a Windows 7 virtual machine is the
LSI Logic SAS. When the disk adapter type is specified as 'lsiLogic'
via glance image metadata, VMware driver defaults to LSI Logic Parallel
controller. With this fix the driver will honor a property 'lsiLogicsas'
to distinguish the right adapter and enable booting Windows instances.

Fixes: bug #1187853
Change-Id: Idb36a784a31e4938e8951adeb83335b3890dac85
2013-09-18 05:53:06 +00:00
Jenkins 15cc2883e6 Merge "Add test cases for resume_state_on_host_boot" 2013-09-18 03:21:19 +00:00
Jenkins 983a2ba270 Merge "Remove extra 'console' key for index in extensions consoles v3" 2013-09-18 02:56:09 +00:00
Jenkins df2651af38 Merge "Fix non-unicode string values on objects" 2013-09-18 01:50:19 +00:00
Jenkins dacb9a19a5 Merge "Add alias as prefix to request params for config_drive v3" 2013-09-18 01:11:02 +00:00