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

Unable to login to server #6290

Closed
JiraAutobot opened this issue May 16, 2023 · 4 comments
Closed

Unable to login to server #6290

JiraAutobot opened this issue May 16, 2023 · 4 comments
Assignees
Labels
Auto-Assign Auto assign by bot customer-reported Issues that are reported by GitHub users external to the Azure organization. CXP Attention This issue is handled by CXP team. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that VM SSH

Comments

@JiraAutobot
Copy link

This is autogenerated. Please review and update as needed.

Describe the bug

Command Name
az ssh vm Extension Name: ssh. Version: 1.0.0.

Errors:

The command failed with an unexpected error. Here is the traceback:
'NoneType' object has no attribute '__name__'
Traceback (most recent call last):
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 233, in invoke
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 663, in execute
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 726, in _run_jobs_serially
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 697, in _run_job
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 333, in __call__
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 121, in handler
  File "C:\Users\bhabh\.azure\cliextensions\ssh\azext_ssh\custom.py", line 28, in ssh_vm
    _do_ssh_op(cmd, resource_group_name, vm_name, ssh_ip, public_key_file, private_key_file, use_private_ip,
  File "C:\Users\bhabh\.azure\cliextensions\ssh\azext_ssh\custom.py", line 76, in _do_ssh_op
    ssh_ip = ssh_ip or ip_utils.get_ssh_ip(cmd, resource_group, vm_name, use_private_ip)
  File "C:\Users\bhabh\.azure\cliextensions\ssh\azext_ssh\ip_utils.py", line 17, in get_ssh_ip
    network_client = client_factory.get_mgmt_service_client(cmd.cli_ctx, profiles.ResourceType.MGMT_NETWORK)
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/client_factory.py", line 83, in get_mgmt_service_client
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/client_factory.py", line 220, in _get_mgmt_service_client

To Reproduce:

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

  • Put any pre-requisite steps here...
  • az ssh vm -g {} -n {}

Expected Behavior

Login to server

Environment Summary

Windows-10-10.0.19045-SP0
Python 3.10.10
Installer: MSI

azure-cli 2.48.1

Extensions:
ssh 1.0.0

Dependencies:
msal 1.20.0
azure-mgmt-resource 22.0.0

Additional Context

@ghost ghost added question The issue doesn't require a change to the product in order to be resolved. Most issues start as that customer-reported Issues that are reported by GitHub users external to the Azure organization. Auto-Assign Auto assign by bot labels May 16, 2023
@yonzhan
Copy link
Collaborator

yonzhan commented May 16, 2023

Thank you for opening this issue, we will look into it.

@ghost ghost added VM SSH CXP Attention This issue is handled by CXP team. labels May 16, 2023
@navba-MSFT navba-MSFT self-assigned this May 17, 2023
@navba-MSFT
Copy link
Contributor

@JiraAutobot Thanks for reaching out to us and reporting this issue. Could you please update your ssh extension to the most recent version and check if that helps ?

> az extension update -n ssh

Awaiting your reply.

@navba-MSFT navba-MSFT added the needs-author-feedback More information is needed from author to address the issue. label May 17, 2023
@navba-MSFT
Copy link
Contributor

@JiraAutobot I wanted to do quick follow-up to check if you had a chance to look at my above comment. Please let us know if you had any updates on this. Awaiting your reply.

@JiraAutobot
Copy link
Author

Hi @navba-MSFT thanks a lot for support, the issue is resolved & I am able to login to servers now. Thanks for your support.

@ghost ghost added needs-team-attention This issue needs attention from Azure service team or SDK team and removed needs-author-feedback More information is needed from author to address the issue. labels May 19, 2023
@navba-MSFT navba-MSFT removed the needs-team-attention This issue needs attention from Azure service team or SDK team label May 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auto-Assign Auto assign by bot customer-reported Issues that are reported by GitHub users external to the Azure organization. CXP Attention This issue is handled by CXP team. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that VM SSH
Projects
None yet
Development

No branches or pull requests

3 participants