Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update azure ansible collection requirements to latest version #14680

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rbarbazz
Copy link

@rbarbazz rbarbazz commented Jan 7, 2024

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

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

  • I have read the CONTRIBUTING document.
  • 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 rbarbazz requested a review from jackivanov as a code owner January 7, 2024 03:30
@CLAassistant
Copy link

CLAassistant commented Jan 7, 2024

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants