Feature #3739
Execute script before
Status: | Closed | Start date: | 04/08/2015 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | - | % Done: | 0% | |
Category: | - | |||
Target version: | - | |||
Resolution: | Pull request: |
Description
Hi,
we need to execute some hooks before a VM is started for the first time (i.e. after a VM is created or an existing VM is respawned with delete-recreate). Currently, we use a custom hook with state=PENDING for this. Unfortunately, the hook script is executed asynchronously and the VM may be assigned and start to boot while the hook scripts are still running. Therefore, occasionally the VM startup fails because not all hooks have been executed in time. Therefore, it would be great to have the possibility to request that a hook script must have completed before the VMs lifecycle continues.
History
#1 Updated by Ruben S. Montero about 6 years ago
- Status changed from Pending to Closed
Probably the first thing the hook can do is to put the VM on hold or just submit it on hold (in this case you need to adjust the hook and it may not work on delete --recreate)