diff options
author | Ryan Harper <ryan.harper@canonical.com> | 2020-02-13 14:11:17 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-13 15:11:17 -0500 |
commit | ecffd25df840277ab1fa7d5372659abe833cacbe (patch) | |
tree | 42565263c109485e8e83db70e72696776b792af9 /tests/cloud_tests/setup_image.py | |
parent | 81c7477a55b509a33af38bc502b1e9dd4ea643ff (diff) | |
download | vyos-cloud-init-ecffd25df840277ab1fa7d5372659abe833cacbe.tar.gz vyos-cloud-init-ecffd25df840277ab1fa7d5372659abe833cacbe.zip |
azurecloud: fix issues with instances not starting (#205)
The azurecloud platform did not always start instances
during collect runs. This was a result of two issues. First
the image class _instance method did not invoke the start()
method which then allowed collect stage to attempt to run
scripts without an endpoint. Second, azurecloud used the
image_id as both an instance handle (which is typically
vmName in azure api) as well as an image handle (for image
capture). Resolve this by adding a .vm_name property to
the AzureCloudInstance and reference this property in
AzureCloudImage.
Also in this branch
- Fix error encoding user-data when value is None
- Add additional logging in AzureCloud platform
- Update logging format to print pathname,funcName and line number
This greatly eases debugging.
LP: #1861921
Diffstat (limited to 'tests/cloud_tests/setup_image.py')
-rw-r--r-- | tests/cloud_tests/setup_image.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/cloud_tests/setup_image.py b/tests/cloud_tests/setup_image.py index a8aaba15..69e66e3f 100644 --- a/tests/cloud_tests/setup_image.py +++ b/tests/cloud_tests/setup_image.py @@ -229,7 +229,7 @@ def setup_image(args, image): except Exception as e: info = "N/A (%s)" % e - LOG.info('setting up %s (%s)', image, info) + LOG.info('setting up image %s (info %s)', image, info) res = stage.run_stage( 'set up for {}'.format(image), calls, continue_after_error=False) return res |