algo icon indicating copy to clipboard operation
algo copied to clipboard

fix: update azure ansible collection requirements to latest version

Open rbarbazz opened this issue 1 year ago • 1 comments

Description

When attempting to run a deployment on Azure with Python 3.11, I kept running into errors related to Azure-related Python packages such as:

An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ImportError: cannot import name 'BlobServiceClient' from 'azure.storage.blob' (/Users/rbarbazz/dev/algo/venv/lib/python3.11/site-packages/azure/storage/blob/__init__.py)
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Failed to import the required Python library (ansible[azure] (azure >= 2.0.0)) on Raphaels-MacBook-Air.local's Python /Users/rbarbazz/dev/algo/venv/bin/python3. Please read the module documentation and install it in the appropriate location. If the required library is installed, but Ansible is using the wrong Python interpreter, please consult the documentation on ansible_python_interpreter"}

I'm not at all familiar with how Ansible works but after trying different things I was able to solve the problem by updating the reference to the Ansible Azure requirements to its latest version.

Motivation and Context

This change was required to deploy an instance on Azure Cloud.

No existing issue I could find.

How Has This Been Tested?

  1. Attempt to run a deployment on Azure with the code from master, observe the script error out right after selecting an Azure region
  2. Attempt to run a deployment on Azure with the code from this branch, observe the deployment going through without issues

Types of changes

  • [x] Bug fix (non-breaking change which fixes an issue)
  • [ ] New feature (non-breaking change which adds functionality)
  • [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • [x] I have read the CONTRIBUTING document.
  • [x] My code follows the code style of this project.
  • [ ] ~~My change requires a change to the documentation.~~
  • [ ] ~~I have updated the documentation accordingly.~~
  • [ ] ~~I have added tests to cover my changes.~~
  • [ ] All new and existing tests passed. (not sure how to do this)

rbarbazz avatar Jan 07 '24 03:01 rbarbazz

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Jan 07 '24 03:01 CLAassistant