-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Comments
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. |
@ChenxiJiang333 please help on this issue |
got it |
Hi, @shruti25ratnam |
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. |
@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. |
This is the service behavior and please open ticket for the service for help. |
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:
from azure.mgmt.serialconsole.models import SerialPort
Enable BootDiagnostics for the VM: vm.diagnostics_profile.boot_diagnostics = BootDiagnostics(enabled=True)
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
The text was updated successfully, but these errors were encountered: