Skip to content

Conversation

@StrawnSC
Copy link
Contributor

Related command

Seems to impact all web app commands (and possibly all app service commands).

Description

Fixes #25406. One of our dependencies (I believe for an ssh command), paramiko, was using a deprecated library, blowfish. Whenever a user runs a webapp command, it outputs a message about blowfish being deprecated. Fortunately, this was fixed in pamiko version 2.11.0.

Testing Guide

az webapp list --query "[].name"
This command should no longer output a deprecation warning for blowfish

History Notes


This checklist is used to make sure that common guidelines for a pull request are followed.

@ghost ghost added the Auto-Assign Auto assign by bot label Feb 15, 2023
@ghost ghost requested review from wangzelin007, yonzhan and zhoxing-ms February 15, 2023 19:13
@ghost ghost assigned zhoxing-ms Feb 15, 2023
@ghost ghost added this to the Feb 2023 (2023-03-07) milestone Feb 15, 2023
@ghost ghost added the App Services az appservice label Feb 15, 2023
@ghost ghost requested a review from jsntcy February 15, 2023 19:13
@ghost ghost added the Web Apps az webapp label Feb 15, 2023
@runefa runefa self-requested a review February 15, 2023 19:15
runefa
runefa previously approved these changes Feb 15, 2023
@StrawnSC
Copy link
Contributor Author

@zhoxing-ms I think we'll need to coordinate with the owners of the VM command module. This change in package version is causing a failure in the test test_vmss_reimage_instance_id(it also fails when I try to run in live mode)

@yonzhan yonzhan requested a review from yanzhudd February 16, 2023 00:00
@yonzhan
Copy link
Collaborator

yonzhan commented Feb 16, 2023

App Service

@zhoxing-ms
Copy link
Contributor

@StrawnSC I submitted a PR #25477 to fix this issue

@jiasli
Copy link
Member

jiasli commented Feb 16, 2023

For the CI failure:

https://dev.azure.com/azclitools/public/_build/results?buildId=34377&view=logs&jobId=30ea7d53-004d-5bd2-a621-b8181c819a0a&j=30ea7d53-004d-5bd2-a621-b8181c819a0a&t=47172527-53e4-5dcb-851a-2758f30ab117

    def tearDown(self):
        os.environ = self.original_env
        # Autorest.Python 2.x
        assert not [t for t in threading.enumerate() if t.name.startswith("AzureOperationPoller")], \
            "You need to call 'result' or 'wait' on all AzureOperationPoller you have created"
        # Autorest.Python 3.x
>       assert not [t for t in threading.enumerate() if t.name.startswith("LROPoller")], \
            "You need to call 'result' or 'wait' on all LROPoller you have created"
E       AssertionError: You need to call 'result' or 'wait' on all LROPoller you have created
...
FAILED src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_vm_commands.py::VMSSReimageScenarioTest::test_vmss_reimage_instance_id

This is a typical failure caused by not-returned pollers:

sdk_no_wait(no_wait, client.virtual_machine_scale_set_vms.begin_reimage,
resource_group_name, vm_scale_set_name, instance)

It happened before in #21974

I also encountered the same failure in #25452

#25477 will fix the broken test_vmss_reimage_instance_id test.

@jiasli jiasli changed the title [App Service] az webapp ...: Fix #25406 {Packaging} Bump paramiko to 2.11.0 Feb 16, 2023
@jiasli jiasli self-assigned this Feb 16, 2023
jiasli
jiasli previously approved these changes Feb 16, 2023
oauthlib==3.2.2
packaging==23.0
paramiko==2.10.1
paramiko==2.11.0
Copy link
Member

@jiasli jiasli Feb 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps we can bump to 3.0.0? https://pypi.org/project/paramiko/

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

JFYI azure-cli-core currently requires a version <3.0.0

https://github.com/Azure/azure-cli/blob/dev/src/azure-cli-core/setup.py#L59

Maybe @marstr remembers why

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, this is a blast from the past! Unfortunately, I can't remember the rationale behind this restriction. Best of luck.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

paramiko<3.0.0 is introduced in #9668. It looks like a general update and pin it to version 2.xx to prevent breaking changes.

I update it to 3.0.0 in this branch, and the tests are passed.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@StrawnSC Could you please update paramiko to 3.0.0 and change this line to <4.0.0 https://github.com/Azure/azure-cli/blob/dev/src/azure-cli-core/setup.py#L59

@StrawnSC StrawnSC dismissed stale reviews from jiasli and runefa via c29456b February 21, 2023 03:40
@StrawnSC StrawnSC requested a review from necusjz as a code owner February 21, 2023 03:40
@bebound bebound changed the title {Packaging} Bump paramiko to 2.11.0 {Packaging} Bump paramiko to 3.0.0 Feb 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

App Services az appservice Auto-Assign Auto assign by bot Web Apps az webapp

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Azure cli 2.45.0 - CryptographyDeprecationWarning: Blowfish has been deprecated

8 participants