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

+38
View File
@@ -373,4 +373,42 @@ namespace one_db
"oid INTEGER PRIMARY KEY, name VARCHAR(128), body MEDIUMTEXT, uid INTEGER, "
"gid INTEGER, owner_u INTEGER, group_u INTEGER, other_u INTEGER, "
"UNIQUE(name))";
/* ---------------------------------------------------------------------- */
/* Backup Job tables */
/* ---------------------------------------------------------------------- */
const char * backup_job_table = "backupjob_pool";
const char * backup_job_db_names =
"oid, name, body, uid, gid, owner_u, group_u, other_u, priority, outdated_vms";
const char * backup_job_db_bootstrap =
"CREATE TABLE IF NOT EXISTS backupjob_pool ("
" oid INTEGER PRIMARY KEY,"
" name VARCHAR(128),"
" body MEDIUMTEXT,"
" uid INTEGER,"
" gid INTEGER,"
" owner_u INTEGER,"
" group_u INTEGER,"
" other_u INTEGER,"
" priority INTEGER,"
" outdated_vms INTEGER)";
/* ---------------------------------------------------------------------- */
/* Scheduled Action tables */
/* ---------------------------------------------------------------------- */
const char * scheduled_action_table = "schedaction_pool";
const char * scheduled_action_db_names =
"oid, parent_id, type, body, time, done";
const char * scheduled_action_db_bootstrap =
"CREATE TABLE IF NOT EXISTS schedaction_pool ("
" oid INTEGER PRIMARY KEY,"
" parent_id INTEGER,"
" type VARCHAR(128),"
" body MEDIUMTEXT,"
" time INTEGER,"
" done INTEGER)";
}