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

destroy_cloud_config_vdi_after_boot deletes the cloud config VDI too soon #325

Open
wkleinhenz opened this issue Apr 24, 2024 · 7 comments

Comments

@wkleinhenz
Copy link

Currently Im using cloud config files to bootstrap a VM Image created using packer. this is mainly being used to set host specific things like the network configuration and host name. when using
destroy_cloud_config_vdi_after_boot = true, the expected_ip_cidr setting and the default power_state setting which i believe is Running the cloud config VDI is deleted as soon as it meets the running state, but this means that the VM isn't able to access the cloud config files.

Proposed changes:

  • have the provider wait a configurable number of seconds before deleting the cloud config VDI after it reaches the running state
  • have the provider wait a configurable number of seconds before deleting the cloud config VDI after the expected_ip_cidr returns that the VM is ready
@vortemid
Copy link

vortemid commented Dec 4, 2024

We are experiencing this as well after upgrade XOA to version 5.101. I think the proposed changes makes sense.

@olivierlambert
Copy link
Member

Thanks for the report. Let me ping people internally to take a look ASAP!

@ghost
Copy link

ghost commented Dec 19, 2024

any update on the issue ?

@olivierlambert
Copy link
Member

We have someone coming in January to take care of this, until then I'll check if someone else can take a look.

@olivierlambert
Copy link
Member

Note: if you have pro support, creating a ticket will help to make sure we won't overlook it.

@emuchogu
Copy link

Same here - this used to work, but then the VM would not boot when created, or would boot but no cloud-init would have been applied. Commenting out the following fixed the issues, but the cloud-init disk remains attached:

destroy_cloud_config_vdi_after_boot = true

@olivierlambert
Copy link
Member

Okay so the issue is in XO, not in the provider. Thanks for the report, we'll fix that ASAP.

For reference: vatesfr/xen-orchestra#8219

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

4 participants