mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-25 02:50:08 +03:00
* Dummy drivers for backup/restore * Sync backup ADMIN rights with oned.conf
This commit is contained in:
parent
94bf8ca8bf
commit
de8c7b7869
@ -637,6 +637,7 @@ public:
|
||||
"A:siib")
|
||||
{
|
||||
vm_action = VMActions::BACKUP_ACTION;
|
||||
auth_op = AuthRequest::ADMIN;
|
||||
}
|
||||
|
||||
protected:
|
||||
|
@ -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 \
|
||||
|
23
src/datastore_mad/remotes/dummy/restore
Executable file
23
src/datastore_mad/remotes/dummy/restore
Executable 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)
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user