-
Notifications
You must be signed in to change notification settings - Fork 112
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
vcd_vapp: Wait for completion also if no guest_properties set. #649
Comments
Any news on this one? This is still an issue with VCD 10.3. This breaks our automated VM deployments.
Edit: I looks like the issue occur more often if you attach 2 vapp networks. My case uses vcd_vapp_org_network 2 times and a vcd_vapp_access_control. |
Reproducing this issue is quite difficult. I was able to do it by adding yet another network to the configuration, and running apply/destroy in a loop. After 18 iterations, it failed. We'll look into it. |
@NilsBusche does the fix you recommend (moving the wait block outside the guest property |
Hello @dataclouder : Since you was able to reproduce the issue with more vcd_vapp_org_network I have another theorie: We had discussion in the past that "vCd allows only one action per vApp" [1] [1] #507 (comment) |
@jpbuecken There is a line of investigation that I can pursue, however. In vApp, there is a lock on Creation (which invokes Update), but not on update itself. Now, this is something that we must check carefully, because can create issues, but not in this specific test case, where the vApp must be properly created before other resources can start being processed. |
Any update on this? FYI |
Hello, They mentioned a solution, but it has to be implemented in the provider, not in terraform core: But I'm sure you are already aware of this? |
Terraform Version
Terraform v0.13.5
Affected Resource(s)
Terraform Configuration Files
Debug Output
I have added some debug lines into the provider in
resource_vcd_vapp.go
:Terraform Trace Output without
guest_properties
set:Terraform Trace Output with
guest_properties
set:Expected Behavior
Terraform always should wait until vApp creation is completed.
Actual Behavior
In some cases the next steps depending on successfully created vApp start although the vApp creation is not completed and end in errors like this because Terraform does not wait for completion if optional
guest_properties
are not set:Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
guest_properties
section to the configurationterraform destroy
terraform apply
Possible solution
Move the "wait" block out of the if-condition for
guest_properties
here:terraform-provider-vcd/vcd/resource_vcd_vapp.go
Line 118 in 75876b5
The text was updated successfully, but these errors were encountered: