F #6063: Backup Jobs for OpenNebula

Includes the following changes:
- xml-schema for Backup Job and Scheduled Actions
- GO, Java api
- Deprecate onevm update-chart, delete-chart
    * The commands are replaced by sched-update and sched-delete
    * Refactor method deprecate_command, it's still possible to run the
    command
    * Delete 'shutdown' and 'delete' commands deprecated years ago
    * Fix --verbose option for sched-update and sched-delete
- Re-implementation of scheduled actions, now are managed and executed
  by oned
- Backup Job objects, API, and CLI commands
This commit is contained in:
Ruben S. Montero committed 2023-07-03 18:15:52 +02:00
1 parent 90585e42cf
commit 6bbfbb03e4
116 files changed
+8303 -2562

No files matched your search

+14
View File
@@ -250,6 +250,20 @@ int VirtualMachinePool::get_pending(
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
int VirtualMachinePool::get_backup(vector<int>& oids)
{
ostringstream os;
os << "state = " << VirtualMachine::ACTIVE
<< " and ( lcm_state = " << VirtualMachine::BACKUP
<< " or lcm_state = " << VirtualMachine::BACKUP_POWEROFF << " )";
return PoolSQL::search(oids, one_db::vm_table, os.str());
}
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
int VirtualMachinePool::dump_acct(string& oss, const string& where,
int time_start, int time_end)
{