I am newbie for using OpenNebula and I have strange problem one of our OpenNebula Servers. For every staging area we have one OpenNebula server for managing our VMs in these staging areas.
As we have a big history for VMs in done state, we want to setup a cron job that automatically purges all VMs older than 90 days in the done state:
onedb purge-done --end `date “+%Y/%m/%d” --date=“90 days ago”`
This command works on all OpenNebula servers accept on one server, that is the most important one… See the error message below. My guess here is that something is wrong with the data in the MySQL database?
I hope someone can help and explain what this error message means. And how to further debug the problem.
Versions of the related components and OS (frontend, hypervisors, VMs):
OpenNebula 5.6.1 (it was updated from version 4.2.0 -> version 4.4.1 -> version 4.6.0 -> version 4.11.80 -> version 5.6.0)
All server use the same versions and had the same DB version update cycle.
Steps to reproduce:
It is specific to the one node that is failing.
on the failing server I get this output:
[oneadmin@one-stg2 ~]$ onedb purge-done --end `date “+%Y/%m/%d” --date=“90 days ago”`
block (2 levels) in <main>'", "/usr/lib/one/ruby/cli/command_parser.rb:457:incall’”,
on every other server I see a counter go up to 100% and no error message.