I’m trying to delete a provision but “oneprovision delete [PROVISION_ID]” returns “buffer error” for this provision. All of the resources have already been deleted. However, the provision refuses to gpo away.
Any ideas are wellcome.
How did you delete the resources? It may happen that the terraform state or config is not well formed and when trying to decode it, it gives that error.
As long as I can remember, I tried do delete using webapp OneProvision with cleanup. As it did not succeed, I deleted the OpenNebula resources such as Network, Cluster and Host. So, now I have a provision with non existent resources. “Buffer error” happens when I try do remote it:
[oneadmin@one ~]$ oneprovision show 23
PROVISION 23 INFORMATION
ID : 23
NAME : aws-edge-cluster-METAL
STATE : DELETING
PROVIDER : aws-north-virginia-METAL
In such situation you need to use oneprovision <resource> delete command, instead of delete commands. Now you need to manually delete the object in the database DELETE FROM document_pool WHERE oid = 23.