Add DEBUG logs to SimpleHealthCheck for VM console output. 09/30209/3
authorspisarski <s.pisarski@cablelabs.com>
Thu, 9 Mar 2017 19:10:02 +0000 (12:10 -0700)
committerspisarski <s.pisarski@cablelabs.com>
Fri, 10 Mar 2017 15:35:05 +0000 (08:35 -0700)
commitd2c49765b0c0499f8475958d166df15045fd499c
treeafb0a47246041464cd0644fe495142d394f57480
parent9353b8d27df7ca56d00a62eb6a2d0eb8c01f64a0
Add DEBUG logs to SimpleHealthCheck for VM console output.

The test in the class SimpleHealthCheck uses the console output
to determine whether or not the VM obtains a DHCP lease which
contains a very image-specific check. When a client changes
the image from what the test was designed for, the console
output can change causing the test to fail unless it is simply
timing out. This patch will output the full console log on
failure or on success when the logger is configured as DEBUG.

JIRA: SNAPS-47

Change-Id: I2041ca1aed8bd1e2fb65932591f4acbd4d3cd720
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
snaps/openstack/tests/create_instance_tests.py