-
Notifications
You must be signed in to change notification settings - Fork 75
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
Option eject_force do not eject media without an human intervention #552
Comments
Hello @dmicheneau , If you need to handle this operation in SDK, you could check how it is done in Terraform provider for VCD - https://github.com/vmware/terraform-provider-vcd/blob/main/vcd/resource_vcd_inserted_media.go#L136-L144 BTW. I see this linked issue which got me confused. The first impression is that the provider |
@dmicheneau why do you need another provider? |
Cloudavenue is a light and simplified version of VCD provider for our client. |
Could you elaborate a bit? Does the |
Yes, It's not working with resource |
Hello :) Any update about this issue? |
I can't reproduce the issue.
After applying all and checking that the inserted media was in the VM as a "CD", I destroyed the inserted media resource
The inserted media was removed from the VM, and I didn't see any waiting tasks in the UI. |
We try to recreate the bug on cloudavenue, with provider vcd 3.10.0 and the version of the vcd api on cloudavenue is 37.1.
We create the ressource then when we try to delete it on the UI, there is a task still waiting for an human interaction https://github.com/vmware/go-vcloud-director/blob/main/govcd/ejecttask.go#L53-59 There is an issue with theses lines which conduct to a manual action at the end. |
If you can't reproduce the issue in |
i use the |
Did you try using the script I used above? |
i create and delete this ressource arround 40 times and it succeed to delete it without interaction on UI 6 times. Could you try to play ur scripts multiple times in a row to see if the bug is happening |
Describe the bug
When we try to destroy the resource vcd_inserted_media we need to do a human intervention to answer Yes to force the ejection.
But on Terraform side the intervention seems to be ok
However side UI vCloud Director, you need to make an action:
And give a answer normally manage by the option eject_force.
Reproduction steps
Expected behavior
The attribute eject_force (to true by default) bypass the human intervention.
Additional context
On Api vcloud director 37.0
The text was updated successfully, but these errors were encountered: