mirror of
https://github.com/OpenNebula/one.git
synced 2026-12-01 20:56:42 +09:00
Interactive backups were limited to a fixed list of TM drivers in
VirtualMachineDisk::support_interactive(), so third party storage
drivers could not use them, even with a OneBEX exporter of their own.
The TM_MAD_CONF of a driver can now enable them:
INTERACTIVE_BACKUP = "YES" | "NO"
INTERACTIVE_BACKUP_FORMATS = comma separated list of image formats,
empty for all formats
The default oned.conf sets them for the drivers that supported
interactive backups so far. If INTERACTIVE_BACKUP is not set, e.g. with
the oned.conf of a previous release, the former built-in list is used.
Adding an exporter required editing config/environment.rb and
app/helpers.rb, which are overwritten on every upgrade.
OneBEX now loads every file in the exporters directory and each
exporter registers itself with OneBEX::Exporters.register, so a third
party exporter only needs to be installed in remotes/onebex/exporters
(and synced to the hosts). An exporter that fails to load is skipped
instead of breaking the others, and the error is logged when the server
starts.
Signed-off-by: Rene Peinthor <rene.peinthor@linbit.com>
Co-authored-by: Rene Peinthor <rene.peinthor@linbit.com>