-
Notifications
You must be signed in to change notification settings - Fork 21.5k
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
customData in metadata service doesn't work #30370
Comments
Thanks for the feedback! We are currently investigating and will update you shortly. |
@kenchinlai @KumariSupriya Can either of you share your insights on this? Thanks :) |
@Shell32-Natsu Is your VM running or in stop state? We would be able to get the information from your VM which will help us troubleshoot, if it is in running state. On your running VM, please query metadata from within the VM with the following and provide the information back to us.
As an example, see: https://docs.microsoft.com/en-us/azure/virtual-machines/linux/instance-metadata-service#getting-more-information-about-the-vm-during-support-case |
It is in the running state. The VM ID is 29a5dc1e-8ce1-4064-8371-f24776b11a10. The output of the command
is:
|
@Shell32-Natsu I am working with the product team on your issue. They would need the 'name' and 'SubscriptionId' fields value as well from the output you shared. |
@Karishma-Tiwari-MSFT Hi Karishma, the email has been sent. |
The product team engineer is helping out the customer offline. |
@Shell32-Natsu As per discussion offline with the product team, we have identified a product issue and the need to update the document. I have assigned the issue to the content author to update the document as appropriate. |
@Karishma-Tiwari-MSFT Thanks! |
@Shell32-Natsu |
@NingKuang |
@NingKuang @Karishma-Tiwari-MSFT Hi, any update for this problem? |
I am in contact with the right people and they are taking a look. An update will be shared here when available. |
Hi, The custom data via IMDS is temporarily offline, due to a product issue. We are working on getting it back. |
@NingKuang , if this is a temporary shutdown, do you guys have any ETA? Or do you even plan to share it with us? Thanks! |
We don't have an ETA yet. We will give you an update when we have more information. Thank you for your patience. |
So this has been almost half a year and this bug is still not fixed |
okay, fine, I would like to go the pragmatic way: can someone reverse-engineer WALinuxAgent so as to see how does it handle custom data? |
We are currently cleaning up old issues and closing out items that are greater than 90 days old. If an issue is still present, please open a new feedback item on the document so we can prioritize correctly. #please-close |
I've done that by reading through WALinuxAgent's code. See linuxkit/linuxkit#3585 for a very simplistic Go implementation. The custom data is provided via CDROM attached by the Azure hypervisor. See also cloud-init Azure docs for a high level overview how cloud-init does it. #64154 was also closed without any explanation other than "please close", I don't know where we stand on this issue. |
@mimckitt Can you please check and add your comments. |
@VikasPullagura-MSFT please reach out to @KumariSupriya offline. |
Is this issue still existent? We are experiencing a similar problem but unsure due to this ticket being closed. |
There is a new issue: #64154 However, it was also closed without any explanation. I have not found a more up-to-date issue... |
So I haven't seen any updates on GitHub, however, the IMDS documentation has been updated:
|
@schnerring : thanks for follow up. Yes user data is now available https://azure.microsoft.com/en-us/updates/user-data-through-azure-instance-metadata-service-now-generally-available/ and as you pointed out we would not support custom data via IMDS but recommend users to use UserData for the same. |
For details on how to access user data through instance metadata service, see: |
I tried the newly added customData in the metadata service. But in my VM it seems that it doesn't work. The response is empty but the status code is 200.
I am sure that custom data is set for the vm and it's downloaded to
/var/lib/waagent/CustomData
.Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: