Commit Graph

21074 Commits

Author SHA1 Message Date
Jenkins 739e6137b8 Merge "Add yolanda to the mailmap." 2013-06-13 18:11:29 +00:00
Jenkins 77595f8e08 Merge "Add missing tests for compute_node_* methods" 2013-06-13 14:54:08 +00:00
Jenkins d0d330fe0c Merge "Remove use of locals() in db migrations." 2013-06-13 12:09:51 +00:00
Jenkins 27faee004a Merge "Sync can_send_version() helper from oslo-incubator." 2013-06-13 11:34:27 +00:00
Jenkins a5cd0f8653 Merge "Revert "Fix local variable 'root_uuid' ref before assign"" 2013-06-13 07:26:05 +00:00
Yuriy Zveryanskyy 7e5eb688d2 Add missing tests for compute_node_* methods
There was some missing tests in test_db_api for
compute_node_* methods.

Add tests to ensure that all works.

Also: old compute_node_* methods tests refactoring,
test_compute_node_stat_unchanged() rewrited
(sqlalchemy_api dependence removed).

blueprint db-api-tests

Change-Id: I0204eba442e2c6bbc06a238bbdff1eb236a713db
2013-06-13 10:24:05 +03:00
Michael Still e7787ab9c2 Remove use of locals() in db migrations.
This isn't logging usage, but I still feel that something more
explicit is safer. Let's not try to be too clever.

Change-Id: I40633283dbdced6d69eb78e22a04eeb6957c0841
2013-06-13 17:06:57 +10:00
Jenkins bdf362b810 Merge "Use an inner join on aggregate_hosts in aggregate_get_by_host" 2013-06-13 05:39:25 +00:00
Jenkins c3cbae0978 Merge "Improve the performance of migration 186" 2013-06-13 05:35:56 +00:00
Jenkins f8ed5e43df Merge "xenapi: remove auto_disk_config check during resize" 2013-06-13 05:35:25 +00:00
Jenkins 992e75aaa1 Merge "Fix and enable H403 tests" 2013-06-13 05:35:00 +00:00
Jenkins 53f62b33ca Merge "Add notes about how doc generation works." 2013-06-13 02:33:10 +00:00
Devananda van der Veen 56a6e3cf1e Revert "Fix local variable 'root_uuid' ref before assign"
This reverts commit 30bc1ef250, which
fixed a NameError but introduced a new bug in the deploy process
that could cause silent failures in a deploy. Instead, we should
log a more descriptive error and allow the exception to be raised.

Change-Id: I0221984ce4f7c406990315ef820d9ce63fc6e015
2013-06-12 19:21:48 -07:00
Jenkins 3f2b22499d Merge "Remove unused methods from VirtAPI" 2013-06-13 01:30:01 +00:00
Jenkins ba876e2a11 Merge "Make xenapi use Instance object for host_maintenance_mode()" 2013-06-13 01:17:59 +00:00
Jenkins 6a550ad22a Merge "Make xenapi/host use instance objects for _uuid_find" 2013-06-13 01:17:33 +00:00
Jenkins 38dfdf01e9 Merge "Skip ipv6 tests on system without ipv6 support" 2013-06-13 00:35:08 +00:00
Jenkins 1060b9ba32 Merge "Remove usage of locals() from manager.py" 2013-06-13 00:34:39 +00:00
Jenkins 1b6ca91224 Merge "Refactored tests for instance_fault_*" 2013-06-13 00:34:15 +00:00
Jenkins 5d090875ed Merge "Put VM UUID to live migration error notification" 2013-06-13 00:33:52 +00:00
Jenkins c55b060cf9 Merge "Enhance unit test code coverage for availability zone" 2013-06-12 23:32:49 +00:00
Jenkins 098ef3735d Merge "Fix msg version type sent to cells RPC API" 2013-06-12 23:30:20 +00:00
Jenkins cd8408abe8 Merge "Remove unused method in VMware driver." 2013-06-12 23:29:52 +00:00
Jenkins 5dc070343c Merge "Fix race conditions with xenstore" 2013-06-12 23:29:28 +00:00
Jenkins 28e6bc7e82 Merge "Use Python 3.x compatible octal literals" 2013-06-12 23:29:04 +00:00
Jenkins f8ddb4dd1f Merge "Fixes test_config_drive unittest" 2013-06-12 23:26:50 +00:00
Jenkins d32aba1a64 Merge "Add missing exception to cell_update()" 2013-06-12 23:26:25 +00:00
Jenkins eebd9b16b9 Merge "Fix a race where a soft deleted instance might be removed by mistake" 2013-06-12 23:26:00 +00:00
Jenkins 4b9c7c11ed Merge "Use InstanceList object for init_host" 2013-06-12 22:25:23 +00:00
Jenkins ff2545f958 Merge "Add Instance.info_cache" 2013-06-12 22:14:38 +00:00
Jenkins d7b1a005a5 Merge "Fix nova-compute fails to start if quantum is down" 2013-06-12 21:09:48 +00:00
Dirk Mueller a59b48e684 Use Python 3.x compatible octal literals
Python 3.x deprecated octal literals in the form
0755. Use 0o755  instead which works at least
with Python 2.6 and newer.

Change-Id: I6300e61d78619d8310e0ea7ddc8b46b94c1ef833
2013-06-12 22:12:22 +02:00
Dirk Mueller 1bf87dda57 Fix and enable H403 tests
Multi-line doc-strings should end on a new, separate line.

Change-Id: I4cf0cfe92b634ef77971863a4df41ef43531bc20
2013-06-12 22:07:23 +02:00
Jenkins 957bd5c780 Merge "Add missing tests for nova.db.api.network_*." 2013-06-12 20:05:22 +00:00
Jenkins 06855306d5 Merge "Use Instance Objects for Start/Stop" 2013-06-12 19:42:33 +00:00
Jenkins 99f00ff09b Merge "add xml api sample tests to os-tenant-network" 2013-06-12 19:19:05 +00:00
Jenkins fc763abf25 Merge "Give a way to save why a service has been disabled." 2013-06-12 18:49:17 +00:00
Jenkins b9a0f54bdb Merge "xenapi: implement get_console_output for XCP/XenServer" 2013-06-12 18:48:29 +00:00
Eugene Nikanorov c3f0350598 Remove usage of locals() from manager.py
fixes bug 1171936

Change-Id: Ic137327b8637104cd4b330850becd80ba20c1e1c
2013-06-12 22:06:59 +04:00
Jenkins 2effda29c8 Merge "Fix local variable 'root_uuid' ref before assign" 2013-06-12 17:30:18 +00:00
Jenkins e3b9477f1f Merge "Fix db.models.Instance description" 2013-06-12 17:14:48 +00:00
Jenkins d8b9d6534c Merge "Fix db.models.Certificate description" 2013-06-12 17:14:24 +00:00
Jenkins 169c61fa2f Merge "Fix db.models.ComputeNodeStats description" 2013-06-12 17:13:58 +00:00
Jenkins 1621dd9164 Merge "Fix db.models.ComputeNode description" 2013-06-12 17:04:46 +00:00
Dan Prince 30bc1ef250 Fix local variable 'root_uuid' ref before assign
Fixes an issue where the root_uuid variable gets used
before it is assigned.

This moves the switch_pxe_config function so that it only gets
called if root_uuid is assigned.

Fixes LP Bug #1190269.

Change-Id: I1abaf391f3a80dcacc815d2e38c6da9ad1b099ff
2013-06-12 11:31:57 -04:00
Nikola Dipanov d4b4fcf6e4 Improve the performance of migration 186
This patch significantly improves the performance of migration 186 by
refactoring the migration code to use SQL joins. It does in no way
functionally change what the migration does.

It also adds a more robust test to make sure that there were no
regressions.

Change-Id: I654ed8dd229d774e8f680cae2b8d2ad2cf28550c
2013-06-12 17:28:40 +02:00
John Garbutt 1cf78d3483 xenapi: remove auto_disk_config check during resize
This check was introduced by the following change:
7c5c8a743c

This is an alternative fix to ensure resize down
is not processed if the disk cannot be resized.

Note the failure now registers an instance action
and does not leave the VM in an error state.

In addition, this keeps the behavior that a failure
to resize up and instance during spawn will not
cause the operation to fail and put the VM into error.

fixes bug 1188135
fixes bug 1187934
fixes bug 1081225

Change-Id: I5b3dfdc7fcda26c55702dde6cdf191beee0c818c
2013-06-12 14:40:52 +00:00
John Garbutt 6e93fefade xenapi: implement get_console_output for XCP/XenServer
If an administrator has enabled the logging of guest
consoles on XCP/XenServer, this enables nova to return
the last MB of those logs to the user.

The management of the logs on the server is a little
tricky, and will be sorted in a later patch.

Change was based on this previous idea:
https://review.openstack.org/#/c/17959/

DocImpact
Part of blueprint xenapi-server-log
Change-Id: I23c83bcf8c648cc2714a0c78951acc29a16d5c31
2013-06-12 14:39:49 +00:00
Jenkins 4461f20bd6 Merge "Silence exceptions from qpid connection.close() (from oslo)" 2013-06-12 13:37:03 +00:00
Russell Bryant 810edd4c64 Sync can_send_version() helper from oslo-incubator.
This patch syncs a helper method added to the RpcProxy class from
oslo-incubator.

Change-Id: Ifd374245c15cef7af7487a19935193b590c1bd4e
2013-06-12 09:34:39 -04:00