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
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
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
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
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
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
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
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