Hello again,
my problem is that in /var/lib/one/datastore/0 exist some folders that belonged to VMs that, now, are deleted. I have checked “onevm show $VM_ID” and it appears as DONE, so I suppose I can remove that folder. However, this behavior is happening regularly, why?
These is the lines from “oned.log” from one VM that, after “Terminate”, folder continues created in /var/lib/one/datastore/0:
oned.log:Wed Sep 14 14:13:39 2022 [Z0][ReM][D]: Req:8496 UID:1049 one.vm.info result SUCCESS, "<VM><ID>9903</ID><UI..."
oned.log:Wed Sep 14 14:13:39 2022 [Z0][ReM][D]: Req:7392 UID:1049 IP:127.0.0.1 one.vm.action invoked , "terminate-hard", 9903
oned.log:Wed Sep 14 14:13:39 2022 [Z0][DiM][D]: Terminating VM 9903
oned.log:Wed Sep 14 14:13:39 2022 [Z0][DiM][E]: Could not terminate VM 9903, wrong state SHUTDOWN_UNDEPLOY.
oned.log:Wed Sep 14 14:13:39 2022 [Z0][ReM][E]: Req:7392 UID:1049 one.vm.action result FAILURE [one.vm.action] Error performing action "terminate-hard": Coul
d not terminate VM 9903, wrong state SHUTDOWN_UNDEPLOY.
oned.log:Wed Sep 14 14:13:44 2022 [Z0][IPM][D]: Message received: SHUTDOWN SUCCESS 9903 -
oned.log:Wed Sep 14 14:13:44 2022 [Z0][TrM][D]: Message received: TRANSFER SUCCESS 9903 -
oned.log:Wed Sep 14 14:13:47 2022 [Z0][ReM][D]: Req:112 UID:1049 IP:127.0.0.1 one.vm.info invoked , 9903, false
oned.log:Wed Sep 14 14:13:47 2022 [Z0][ReM][D]: Req:112 UID:1049 one.vm.info result SUCCESS, "<VM><ID>9903</ID><UI..."
oned.log:Wed Sep 14 14:13:47 2022 [Z0][ReM][D]: Req:176 UID:1049 IP:127.0.0.1 one.vm.action invoked , "terminate-hard", 9903
oned.log:Wed Sep 14 14:13:47 2022 [Z0][DiM][D]: Terminating VM 9903
oned.log:Wed Sep 14 14:13:47 2022 [Z0][ReM][D]: Req:176 UID:1049 one.vm.action result SUCCESS, 9903
oned.log:Wed Sep 14 14:13:47 2022 [Z0][ReM][D]: Req:7568 UID:1049 IP:127.0.0.1 one.vm.info invoked , 9903, false
oned.log:Wed Sep 14 14:13:47 2022 [Z0][ReM][D]: Req:7568 UID:1049 one.vm.info result SUCCESS, "<VM><ID>9903</ID><UI..."
oned.log:Wed Sep 14 14:13:47 2022 [Z0][ReM][D]: Req:688 UID:1049 IP:127.0.0.1 one.vm.monitoring invoked , 9903
oned.log:Wed Sep 14 14:13:47 2022 [Z0][ReM][D]: Req:4384 UID:1049 IP:127.0.0.1 one.vm.monitoring invoked , 9903
oned.log:Wed Sep 14 14:13:48 2022 [Z0][TrM][D]: Message received: TRANSFER SUCCESS 9903 -
oned.log:Wed Sep 14 14:13:48 2022 [Z0][ONE][E]: VM 9903 is not in host 15.
oned.log:Wed Sep 14 14:14:06 2022 [Z0][InM][D]: VM_STATE update from host: 15. VM id: 9903, state: POWEROFF
This VM was running in my second node (that acts only as KVM), so /var/lib/one/datastore/0 is not datastore “0” from the server. My OpenNebula cluster is composed by one server (that acts as server+KVM node) and another server (acts only as KVM). I don’t share datastore with CEPH, NFS or similar, so my “datastores” menu only shows datastores 0, 1 and 2 from main server, but nothing from second server. I think this is a right configuration way, because when VMs instantiate in my second server, datastore is local in that second server.
I don’t know if problem could be this configuration, but there are some VMs that, after “Terminate”, its folder is correctly removed from system (also, this strange behavior has also occurred with VMs created in main server…).
Thanks a lot!!!