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/__init__.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/__init__.py')
-rw-r--r-- | tests/cloud_tests/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/cloud_tests/__init__.py b/tests/cloud_tests/__init__.py index dd436989..6c632f99 100644 --- a/tests/cloud_tests/__init__.py +++ b/tests/cloud_tests/__init__.py @@ -22,7 +22,8 @@ def _initialize_logging(): logger = logging.getLogger(__name__) logger.setLevel(logging.DEBUG) formatter = logging.Formatter( - '%(asctime)s - %(name)s - %(levelname)s - %(message)s') + '%(asctime)s - %(pathname)s:%(funcName)s:%(lineno)s ' + '[%(levelname)s]: %(message)s') console = logging.StreamHandler() console.setLevel(logging.DEBUG) |