Justina_Gr
(Justina Gr)
November 10, 2023, 8:54am
1
Hello, interesting problem, does not allow to delete virtual machine in opennebula executing shell code:
After writing in shell script line:
$ onevm recover --delete [virtual_machineid]
Occurs error:
User[id] : not authorized to perform ADMIN vm[id]
I use opennebula 6.8 version, maybe is it a bug? Where could be a problem? how should i fix that issue?
dclavijo
(Daniel Clavijo)
November 10, 2023, 2:14pm
2
Looks like the opennebula user trying to perform the recover is not authorized to manage the VM in question. Check the VM permissions with onevm show <vm_id>
.
Justina_Gr
(Justina Gr)
November 11, 2023, 7:53am
3
After executing this command, tells:
ONE_AUTH file not present.
dclavijo
(Daniel Clavijo)
November 13, 2023, 2:50pm
4
Make sure you either have the user auth stored in the corresponding file . Either that or pass the --user
and --password
arguments to every command.