Skip to content

Error for rdbms module on alpine docker container #30102

Open

Description

Describe the bug

We are using the Azure CLI from inside a Docker container based on Alpine Linux.
Since a few days we are getting this error when running certain commands:

Error loading command module 'mysql': cannot import name 'mysql_flexibleservers' from 'azure.mgmt.rdbms' (/usr/local/lib/python3.11/site-packages/azure/mgmt/rdbms/init.py)
Error loading command module 'rdbms': No module named 'azure.mgmt.rdbms.mysql_flexibleservers'
'postgres' is misspelled or not recognized by the system.

I am able to reproduce the error using the following steps:

  1. Install azure-cli in a docker container based on python:alpine as described on Install Azure CLI on Alpine Linux #19591
  2. Execute this command in the container: az postgres server key list

The error started to appear on October 12, one day earlier it still worked.
I suspect that something is wrong with the azure-mgmt-rdbms library (it recevied an update on that day).

Related command

az postgres server key list

Errors

Error loading command module 'mysql': cannot import name 'mysql_flexibleservers' from 'azure.mgmt.rdbms' (/usr/local/lib/python3.11/site-packages/azure/mgmt/rdbms/init.py)
Error loading command module 'rdbms': No module named 'azure.mgmt.rdbms.mysql_flexibleservers'
'postgres' is misspelled or not recognized by the system.

Issue script & Debug output

I am able to reproduce the error using the following steps:

  1. Install azure-cli in a docker container based on python:alpine as described on Install Azure CLI on Alpine Linux #19591
  2. Execute this command in the container: az postgres server key list

Expected behavior

no error

Environment Summary

azure-cli 2.65.0

core 2.65.0
telemetry 1.1.0

Dependencies:
msal 1.31.0
azure-mgmt-resource 23.1.1

Python location '/usr/local/bin/python3.13'
Extensions directory '/root/.azure/cliextensions'

Python (Linux) 3.13.0 (main, Oct 8 2024, 00:10:24) [GCC 13.2.1 20240309]

Legal docs and information: aka.ms/AzureCliLegal

Your CLI is up-to-date.

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Auto-AssignAuto assign by botPostgreSQLService AttentionThis issue is responsible by Azure service team.bugThis issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions