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

Azure Console warns "virtual machine agent status is not ready" #1766

Open
marmijo opened this issue Jul 19, 2024 · 0 comments
Open

Azure Console warns "virtual machine agent status is not ready" #1766

marmijo opened this issue Jul 19, 2024 · 0 comments

Comments

@marmijo
Copy link
Member

marmijo commented Jul 19, 2024

A warning message appears in the Azure Portal when creating an FCOS VM that says

"<VM NAME> virtual machine agent status is not ready. Troubleshoot the issue ->".

azure-agent-not-ready-status

An internal RH ticket (https://issues.redhat.com/browse/OCPBUGS-9947) was filed to avoid having this warning prompt on the azure console:

"We should try to figure out whether there's a good way to get rid of this warning; maybe we can convince MSFT to honor a metadata attribute that says it's explicitly known that this image does not contain their agent?"

I followed the instructions from the generic steps for starting an azure vm without the linux agent document. Posting the "Ready" state to the wireserver does not resolve the issue and we also already perform this check-in step in Afterburn, so all VMs should be getting this "ready" health status anyway.

The status set via this method is separate from the "Agent Status" seen in the Azure portal GUI. It seems to be that the agent has either a "Ready" status if it's been installed on the VM (and working properly), or a "Not Ready" status in all other cases. And since we don't use the agent, we are getting a "Not Ready" status in the portal. There is a flag to create a VM without the agent --enable-agent false but it doesn't make a difference with the status seen in the portal GUI.

Screenshot from 2024-07-19 16-25-32

I found this post on Microsoft Q&A that mentions that there is no way to remove this advisory without having the agent installed: https://learn.microsoft.com/en-us/answers/questions/978782/agentless-custom-linux-vm-images

The advisory appears to be cosemetic and has no impact on the operation of the VM since we use Afterburn to perform the tasks that the agent would perform otherwise. However, the warning could be lead users to think there is an issue with the virtual machine. It would be great if Microsoft were to honor the --enable-agent flag for agent status in the portal. If a user starts a VM with the flag set to false then show e.g. "Not Installed" or similar with no advisory message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant