Skip to content

Storage commands failling on Fedora 35 when Python 3.6 is not present #22235

Description

Describe the bug

Any az storage commands fail on Fedora 35

Command Name
az storage account list

Errors:

The command failed with an unexpected error. Here is the traceback:
'NoneType' object is not iterable
Traceback (most recent call last):
  File "/usr/lib64/az/lib/python3.6/site-packages/knack/cli.py", line 231, in invoke
    cmd_result = self.invocation.execute(args)
  File "/usr/lib64/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 556, in execute
    self.commands_loader.load_arguments(command)
  File "/usr/lib64/az/lib/python3.6/site-packages/azure/cli/core/__init__.py", line 516, in load_arguments
    loader.load_arguments(command)  # this adds entries to the argument registries
  File "/usr/lib64/az/lib/python3.6/site-packages/azure/cli/command_modules/storage/__init__.py", line 31, in load_arguments
    load_arguments(self, command)
  File "/usr/lib64/az/lib/python3.6/site-packages/azure/cli/command_modules/storage/_params.py", line 683, in load_arguments
    get_permission_help_string(t_account_permissions)),
  File "/usr/lib64/az/lib/python3.6/site-packages/azure/cli/command_modules/storage/_validators.py", line 837, in get_permission_help_string
    return ' '.join(['({}){}'.format(x[0], x[1:]) for x in allowed_values])
TypeError: 'NoneType' object is not iterable

To Reproduce:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

  • Start a new container using the Fedora image: docker run -it index.docker.io/library/fedora:35
  • Install Azure CLI using instructions in Microsoft documentation
    • rpm --import https://packages.microsoft.com/keys/microsoft.asc
    • dnf install -y https://packages.microsoft.com/config/rhel/8/packages-microsoft-prod.rpm
    • dnf install azure-cli
  • Login to an account
    • az login --use-device-code
  • az storage account list

Expected Behavior

Available storage accounts in the subscription will be listed, or command will fail gracefully.

Environment Summary

Linux-5.16.19-200.fc35.x86_64-x86_64-with-glibc2.34, Fedora Linux 35 (Container Image)
Python 3.10.2
Installer: RPM

azure-cli 2.36.0

Additional Context

The same command with the same account succeeds when run from a container using mcr.microsoft.com/azure-cli.

Activity

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

Metadata

Metadata

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions