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

serial_console_client.serial_ports.list is returning an empty list on a Bootdiagnostics enabled Azure VM #36440

Closed
shruti25ratnam opened this issue Jul 11, 2024 · 8 comments
Assignees
Labels
customer-reported Issues that are reported by GitHub users external to the Azure organization. Mgmt This issue is related to a management-plane library. needs-team-attention This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that

Comments

@shruti25ratnam
Copy link

  • Package Name: azure.mgmt.serialconsole
  • Package Version:
  • Operating System: Windows and Ubuntu
  • Python Version: 3.12

Describe the bug
A clear and concise description of what the bug is.
List Serial port is returning an empty list.
ACCClient action status: Serial ports: []

https://cirrusperf.azurewebsites.net/v1/testpassinstances/c/207210660/runsets/339057174/runs/3cfbe5cb-4342-45b4-9b99-afe435f297a0/actions/1/actiondetail

To Reproduce
Steps to reproduce the behavior:

  1. from azure.mgmt.serialconsole.models import SerialPort

  2. Enable BootDiagnostics for the VM: vm.diagnostics_profile.boot_diagnostics = BootDiagnostics(enabled=True)

  3. try:
    TestContext.sdk.inform(f"Testing serial console connection for VM {vm_name}")
    serial_ports_result = await serial_console_client.serial_ports.list(
    resource_group_name=resource_group_name,
    resource_provider_namespace="Microsoft.Compute",
    parent_resource=vm_name,
    parent_resource_type="virtualMachines"
    )
    serial_ports = serial_ports_result.value
    except Exception as e:
    TestContext.sdk.inform(f"Failed to test serial console connection for VM {vm_name}: {e}")
    return False

    return True

Expected behavior
A clear and concise description of what you expected to happen.
To return atleast 1 serial port.
Serial console is enabled on the subscription by default.
Screenshots
If applicable, add screenshots to help explain your problem.
https://cirrusperf.azurewebsites.net/v1/testpassinstances/c/207210660/runsets/339057174/runs/3cfbe5cb-4342-45b4-9b99-afe435f297a0/actions/1/actiondetail

Additional context
Add any other context about the problem here.
This is a CloudEx validation test

@github-actions github-actions bot added customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-triage This is a new issue that needs to be triaged to the appropriate team. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Jul 11, 2024
@mccoyp
Copy link
Member

mccoyp commented Jul 11, 2024

Hi @shruti25ratnam, thank you for opening an issue. I'll tag some folks who can take a look and get back to you as soon as possible.

@mccoyp mccoyp added Mgmt This issue is related to a management-plane library. and removed needs-triage This is a new issue that needs to be triaged to the appropriate team. labels Jul 11, 2024
@github-actions github-actions bot added the needs-team-attention This issue needs attention from Azure service team or SDK team label Jul 11, 2024
@msyyc
Copy link
Member

msyyc commented Jul 12, 2024

@ChenxiJiang333 please help on this issue

@ChenxiJiang333
Copy link
Member

got it

@ChenxiJiang333
Copy link
Member

Hi, @shruti25ratnam
I failed to reproduce the issue. the connection may need some time to be prepared so please wait for a while after a vm created.
image

@xiangyan99 xiangyan99 added the needs-author-feedback More information is needed from author to address the issue. label Jul 12, 2024
@github-actions github-actions bot removed the needs-team-attention This issue needs attention from Azure service team or SDK team label Jul 12, 2024
Copy link

Hi @shruti25ratnam. Thank you for opening this issue and giving us the opportunity to assist. To help our team better understand your issue and the details of your scenario please provide a response to the question asked above or the information requested above. This will help us more accurately address your issue.

@shruti25ratnam
Copy link
Author

@ChenxiJiang333 after some wait I was able to retrieve the port but the port shows status = enabled even when the serial-console is disabled. Do you happen to know what port 0 is for? is it a COM port?

@github-actions github-actions bot 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 Jul 12, 2024
@ChenxiJiang333
Copy link
Member

@ChenxiJiang333 after some wait I was able to retrieve the port but the port shows status = enabled even when the serial-console is disabled. Do you happen to know what port 0 is for? is it a COM port?

Not sure about this, since we're not domain expert on this server, you can open an issue at https://github.com/Azure/azure-rest-api-specs/issues to get suggestion from the service team.

@xiangyan99
Copy link
Member

This is the service behavior and please open ticket for the service for help.

https://azure.microsoft.com/support/create-ticket

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
customer-reported Issues that are reported by GitHub users external to the Azure organization. Mgmt This issue is related to a management-plane library. needs-team-attention This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Projects
None yet
Development

No branches or pull requests

5 participants