Bug 1213070 - azure-cli: 'az sig image-definition' refers to nonexisting module
Summary: azure-cli: 'az sig image-definition' refers to nonexisting module
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Cloud:Tools (show other bugs)
Version: Current
Hardware: Other Other
: P3 - Medium : Normal (vote)
Target Milestone: ---
Assignee: John Paul Adrian Glaubitz
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-06 09:46 UTC by Felix Niederwanger
Modified: 2023-07-19 13:45 UTC (History)
2 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
Full traceback of the 'az sig image-definition' command. (6.03 KB, text/plain)
2023-07-06 09:46 UTC, Felix Niederwanger
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Felix Niederwanger 2023-07-06 09:46:42 UTC
Created attachment 868031 [details]
Full traceback of the 'az sig image-definition' command.

Observation:

> $ az sig image-definition
> The command failed with an unexpected error. Here is the traceback:
> No module named 'azure.mgmt.compute.v2022_01_03.operations._shared_gallery_images_operations'

The full traceback is attached as separate file.

I checked the available packages and couldn't identify anything obvious which is missing in my installation. the `az sig` command runs nicely, but the `az sig image-definition` command appears broken.
Comment 1 John Paul Adrian Glaubitz 2023-07-06 09:49:45 UTC
(In reply to Felix Niederwanger from comment #0)
> Created attachment 868031 [details]
> Full traceback of the 'az sig image-definition' command.
> 
> Observation:
> 
> > $ az sig image-definition
> > The command failed with an unexpected error. Here is the traceback:
> > No module named 'azure.mgmt.compute.v2022_01_03.operations._shared_gallery_images_operations'

I just packaged 2.50.0 today which has not been accepted yet.

With 2.50.0, I am getting the following output:

> glaubitz@suse-laptop:~> az sig image-definition
> the following arguments are required: _subcommand
>
> Examples from AI knowledge base:
> https://aka.ms/cli_ref
> Read more about the command in reference docs
> glaubitz@suse-laptop:~>

I guess that Robert will accept these SRs later today, so you can give it a try:

> https://build.opensuse.org/request/show/1097057
> https://build.opensuse.org/request/show/1097060
> https://build.opensuse.org/request/show/1097062
> https://build.opensuse.org/request/show/1097063
Comment 2 Felix Niederwanger 2023-07-06 09:51:30 UTC
Thnx! I'm gone next week, but can then verify the week after if the new changes fix the issue.
Comment 3 John Paul Adrian Glaubitz 2023-07-19 12:51:57 UTC
Hi Felix!

(In reply to Felix Niederwanger from comment #2)
> Thnx! I'm gone next week, but can then verify the week after if the new
> changes fix the issue.

Did you get a chance to try version 2.50.0?
Comment 4 Felix Niederwanger 2023-07-19 13:45:26 UTC
Hey,

Yep, with the new version the issue appears as resolved:

> phoenix@racetrack-7290:~> az sig image-definition
> the following arguments are required: _subcommand
> 
> Examples from AI knowledge base:
> https://aka.ms/cli_ref
> Read more about the command in reference docs
> phoenix@racetrack-7290:~> az sig image-definition --help
> 
> Group
>     az sig image-definition : Manage shared gallery image with VM.
> 
> ...

Closing ticket and thanks for the submission!