1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-25 02:50:08 +03:00

F #5516: Dummy drivers for backup (#2350)

* Dummy drivers for backup/restore
* Sync backup ADMIN rights with oned.conf
This commit is contained in:
Pavel Czerný 2022-11-16 09:27:03 +01:00 committed by GitHub
parent 94bf8ca8bf
commit de8c7b7869
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 26 additions and 1 deletions

View File

@ -637,6 +637,7 @@ public:
"A:siib")
{
vm_action = VMActions::BACKUP_ACTION;
auth_op = AuthRequest::ADMIN;
}
protected:

View File

@ -2153,6 +2153,7 @@ DATASTORE_DRIVER_DUMMY_SCRIPTS="src/datastore_mad/remotes/dummy/cp \
src/datastore_mad/remotes/dummy/snap_revert \
src/datastore_mad/remotes/dummy/snap_flatten \
src/datastore_mad/remotes/dummy/rm \
src/datastore_mad/remotes/dummy/restore \
src/datastore_mad/remotes/dummy/export"
DATASTORE_DRIVER_FS_SCRIPTS="src/datastore_mad/remotes/fs/cp \

View File

@ -0,0 +1,23 @@
#!/usr/bin/env ruby
# -------------------------------------------------------------------------- #
# Copyright 2002-2022, OpenNebula Project, OpenNebula Systems #
# #
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
# not use this file except in compliance with the License. You may obtain #
# a copy of the License at #
# #
# http://www.apache.org/licenses/LICENSE-2.0 #
# #
# Unless required by applicable law or agreed to in writing, software #
# distributed under the License is distributed on an "AS IS" BASIS, #
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
# See the License for the specific language governing permissions and #
# limitations under the License. #
#--------------------------------------------------------------------------- #
STDOUT.puts "0 dummy_image"
exit(0)

View File

@ -222,7 +222,7 @@ class DummyDriver < VirtualMachineDriver
def backup(id, drv_message)
result = retrieve_result("backup")
send_message(ACTION[:backup], result, id, 'dummy-backup-id')
send_message(ACTION[:backup], result, id, 'dummy-backup-id 1024')
end
def poll(id, drv_message)