Closed aboulay closed 5 months ago
Hello @aboulay,
Thank you for reaching us.
This issue is a bug but not on the terraform provider, on the metadata server. We have contributed to cloud-init to fix the crash when retrieving the metadata. You can find what we did here cloud-init#1686. The fix is available in the 22.4 release of cloud init.
Unfortunately, the debian OMI that you use only has the cloud-init 20.4 and not 22.4.
Could you use Debian 12 (OMI: ami-8be8ac39) instead ? It includes the right version of cloud init.
Thank you, Regards,
Thank you for the quick answer.
It will be a bit complicated to upgrade the image for the moment. We are not sure the system will run correctly on the new image. However, we have found a quickly fix simply by comment at the initialization of the vm and uncomment in a second execution. It is a bit ugly but it avoids the use of the outscale_tag resource which is deprecated. We will update the omi once we are sure the new image is compatible on our side.
I think we can close this issue if this is ok for you.
You could try to update the cloud-init manually but it might some configuration.
Do not hesitate to reopened the issue if it is not working for you.
Hi team,
We found a problem with the
outscale_vm
creation behavior when the machine contains a tag with the "/" in the key. Here is more information about this:Terraform Version
Terraform Configuration Files
We are currently trying to create an
outscale_vm
with a tag which contains a "/" symbol inside its key. We are in theeu-west-2
region.Debug Output
N/A
Crash Output
From the Cockpit Vm output interface:
Expected Behavior
The SSH key should be handled by the cloud-init and we should be able to connect to the instance with SSH.
Actual Behavior
The SSH connection is blocked because the SSH key cannot be retrieved during the cloud-init step.
Steps to Reproduce
Normally, you should not be able to connect with the instance. If you check the output logs of the instance, you should see the log in the Crash Output.
Additional Context
After investigation, we find the main cause of this happens only when the tag which contains the symbol "/" is created during the cloud-init execution. If the tag is created after, this does not make any problem.
Initially, we were following the Kubernetes CCM documentation for Outscale and we found this after execution and investigation. It is probably due to the assign tags which is done directly after the VM creation query.
This cannot be done directly from the interface because the UI does not permits to have tags on the instance with the "Create VM" flow.
References
We don't find any issues related to this problem (open or closed)