]>
git.proxmox.com Git - pve-guest-common.git/log
Fabian Grünbichler [Tue, 5 May 2020 09:41:48 +0000 (11:41 +0200)]
bump version to 3.0-10
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Fabian Grünbichler [Tue, 5 May 2020 09:19:59 +0000 (11:19 +0200)]
bump version to 3.0-9
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Fabian Grünbichler [Tue, 5 May 2020 09:24:14 +0000 (11:24 +0200)]
d/control: break older pve-container
since the changed locking exposes a bug that requires fixing on the
pve-container side.
Fabian Grünbichler [Tue, 5 May 2020 09:18:38 +0000 (11:18 +0200)]
d/control: break older qemu-server
since we renamed lock_config_mode to lock_config_shared
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Fabian Grünbichler [Tue, 5 May 2020 08:27:22 +0000 (10:27 +0200)]
lock_config: rename lock_config_mode -> lock_config_shared
and pull the actual lock_file_full handling into a helper, to make the
public interface clearer:
lock_config -> standard exclusive lock with 10s timeout
lock_config_full -> exclusive lock with configurable timeout
lock_config_shared -> shared lock with configurable timeout
the latter only has a single user (qemu-server's clone API call)
currently.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Tested-by: Fabian Ebner <f.ebner@proxmox.com>
Fabian Grünbichler [Tue, 5 May 2020 08:27:21 +0000 (10:27 +0200)]
snapshot_delete: check for concurrent modifications at each step
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Tested-by: Fabian Ebner <f.ebner@proxmox.com>
Fabian Ebner [Tue, 5 May 2020 08:27:19 +0000 (10:27 +0200)]
snapshot_rollback: make sure newer replication snapshots are deleted
Commit
a1dfeff3a8502544123245ea61ad62cbe97803b7 changed the behavior
for Replication::prepare with last_sync=0, so use last_sync=1 instead.
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
Fabian Grünbichler [Tue, 5 May 2020 08:27:18 +0000 (10:27 +0200)]
snapshot_rollback: flock earlier
to protect checks against concurrent modifications
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Tested-by: Fabian Ebner <f.ebner@proxmox.com>
Fabian Ebner [Tue, 5 May 2020 08:27:17 +0000 (10:27 +0200)]
fix 2682: make sure configuration file is up-to-date for lock_config-variants
See [0] for the details. The call tree for the variants is
lock_config -> lock_config_full -> lock_config_mode
so it is sufficient to adapt lock_config_mode.
[0]: https://bugzilla.proxmox.com/show_bug.cgi?id=2682
Suggested-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
Fabian Ebner [Tue, 5 May 2020 08:27:16 +0000 (10:27 +0200)]
Avoid duplication by using lock_config_mode
No functional change is intended.
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
Fabian Grünbichler [Mon, 4 May 2020 12:11:12 +0000 (14:11 +0200)]
bump version to 3.0-8
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Alwin Antreich [Tue, 28 Apr 2020 13:58:11 +0000 (15:58 +0200)]
Fix: #2124 add zstd support
Signed-off-by: Alwin Antreich <a.antreich@proxmox.com>
Fabian Grünbichler [Thu, 9 Apr 2020 06:47:22 +0000 (08:47 +0200)]
bump version to 3.0-7
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Fabian Grünbichler [Thu, 9 Apr 2020 06:45:06 +0000 (08:45 +0200)]
d/control: depend on pve-storage with new storage_migrate
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Fabian Ebner [Wed, 8 Apr 2020 09:25:03 +0000 (11:25 +0200)]
Add update_volume_ids
This function is intened to be used after doing a migration where some
of the volume IDs changed.
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
Fabian Ebner [Wed, 8 Apr 2020 09:25:00 +0000 (11:25 +0200)]
Use new storage_migrate interface
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
Thomas Lamprecht [Wed, 8 Apr 2020 11:27:34 +0000 (13:27 +0200)]
replicaiton: log rate and transport type
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Wed, 8 Apr 2020 11:20:02 +0000 (13:20 +0200)]
replication: dont declare variable in post-if scope
If a variable is defined and assigned in a conditional statement, it
is not defined behavior in Perl.
For more information about this behaviour see
https://perldoc.perl.org/perlsyn.html#Statement-Modifiers
> NOTE: The behaviour of a my, state, or our modified with a
> statement modifier conditional or loop construct (for example,
> `my $x if ...`) is undefined.
> The value of the my variable may be undef, any previously assigned
> value, or possibly anything else.
> Don't rely on it. Future versions of perl might do something
> different from the version of perl you try it out on. Here be
> dragons."
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Fabian Grünbichler [Mon, 30 Mar 2020 07:21:20 +0000 (09:21 +0200)]
bump version to 3.0-6
and add versioned breaks for foreach_volume changes
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Fabian Ebner [Thu, 26 Mar 2020 08:09:35 +0000 (09:09 +0100)]
foreach_volume(_full): generalize and implement function
Introduce a parameter $opts to allow for better control of which
keys/volumes to use for the iteration and ability to reverse the order.
Also, allow extra parameters for the function.
Removes the '__snapshot'-prefix for future use from outside the module.
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
Fabian Ebner [Thu, 26 Mar 2020 08:09:34 +0000 (09:09 +0100)]
Add foreach_unused_volume
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
Fabian Ebner [Thu, 26 Mar 2020 08:09:33 +0000 (09:09 +0100)]
Add interfaces for volume-related helpers
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
Thomas Lamprecht [Thu, 12 Mar 2020 10:10:06 +0000 (11:10 +0100)]
bump version to 3.0-5
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Dominik Csapak [Thu, 12 Mar 2020 09:57:14 +0000 (10:57 +0100)]
make GuestHelpers a subclass of Exporter
or else the Exports will not work
found by hotplugging nics with current master from qemu-server
which resulted in a
'undefined subroutine &PVE::QemuServer::safe_string_ne'
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Thomas Lamprecht [Tue, 10 Mar 2020 13:03:53 +0000 (14:03 +0100)]
bump version to 3.0-4
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Tue, 10 Mar 2020 11:17:00 +0000 (12:17 +0100)]
get_backup_volumes: clarifcation and indentation improvements to comment
Aaron clarified that one documented element actually slipped through
and won't be returned.
Also firx the mixed tab/space indentation, for such comments we can
be pretty liberal and I just went with the two spaces per level, as
some part already had that.
Clarify that both array and hash are refs.
[0]: https://pve.proxmox.com/pipermail/pve-devel/2020-March/042070.html
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Aaron Lauterer [Thu, 27 Feb 2020 10:01:11 +0000 (11:01 +0100)]
abstractconfig: add prototype for get_backup_volumes
Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
Thomas Lamprecht [Tue, 10 Mar 2020 08:46:41 +0000 (09:46 +0100)]
config: add missing use GuestHelpers module
import the typesafe_ne method when we're at it
Thomas Lamprecht [Tue, 10 Mar 2020 08:43:56 +0000 (09:43 +0100)]
config: return early if $opt is not partial fast pluggable
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Oguz Bektas [Wed, 19 Feb 2020 16:07:58 +0000 (17:07 +0100)]
abstractconfig: add partial_fast_plug
allows partial fast plugging of functions as defined in the
$partial_fast_plug_option in qemuserver (and possibly lxc later on)
Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
Oguz Bektas [Wed, 19 Feb 2020 16:07:55 +0000 (17:07 +0100)]
guesthelpers: move/add safe comparison functions from lxc and qemu
move the safe_string_ne and safe_num_ne functions to guesthelpers to
remove duplicate code.
add the new safe_boolean_ne and typesafe_ne helper functions
also add them in @EXPORT_OK
Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
Thomas Lamprecht [Sat, 8 Feb 2020 15:03:49 +0000 (16:03 +0100)]
fix some typos
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Fri, 7 Feb 2020 15:22:47 +0000 (16:22 +0100)]
trivial whitespace fix
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Thu, 23 Jan 2020 10:01:55 +0000 (11:01 +0100)]
config trait: allow to pass lock to create_and_lock_config
allows us to reuse this for clone, where we want to create a "clone"
locked config for the target guest.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Fri, 13 Dec 2019 11:07:58 +0000 (12:07 +0100)]
grammar fix: s/does not exists/does not exist/g
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Wolfgang Bumiller [Tue, 19 Nov 2019 08:46:44 +0000 (09:46 +0100)]
avoid cyclic reference in closure
otherwise this leaks memory
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Fabian Grünbichler [Mon, 11 Nov 2019 10:28:23 +0000 (11:28 +0100)]
bump version to 3.0-3
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Fabian Grünbichler [Mon, 11 Nov 2019 10:28:22 +0000 (11:28 +0100)]
d/control: add more missing build-dependencies
pve-cluster is used by the test cases
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Fabian Grünbichler [Mon, 11 Nov 2019 10:28:21 +0000 (11:28 +0100)]
d/control: add (build-)depends on libpve-cluster-perl
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Fabian Grünbichler [Mon, 11 Nov 2019 10:28:20 +0000 (11:28 +0100)]
use PVE::SSHInfo
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Fabian Grünbichler [Mon, 11 Nov 2019 10:28:19 +0000 (11:28 +0100)]
use PVE::DataCenterConfig
to make sure that the corresponding cfs_read_file works() works.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Thomas Lamprecht [Fri, 18 Oct 2019 19:12:04 +0000 (21:12 +0200)]
bump version to 3.0-2
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Fri, 18 Oct 2019 19:11:54 +0000 (21:11 +0200)]
d/control: break pve-manager (<< 6.0-10) due to vzdump parser move
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Fri, 18 Oct 2019 19:05:53 +0000 (21:05 +0200)]
tests: remove some redundant trailing commas
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Fri, 18 Oct 2019 18:31:10 +0000 (20:31 +0200)]
cleanup_pending: refactor and fix $force
pull out $conf->{pending} in a intermediate variable.
While for now only a force key could be in a pending delete value it
still is completely wrong to say the whole hash value is thus $force.
Fix that by omitting that intermediate variable completely and copy
over directly from the source hash.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Fri, 18 Oct 2019 18:29:20 +0000 (20:29 +0200)]
add cleanup_pending tests
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Fri, 18 Oct 2019 18:28:59 +0000 (20:28 +0200)]
tests: add map_expect_to_param_id feature for checking side-effects
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Fri, 18 Oct 2019 17:45:58 +0000 (19:45 +0200)]
tests: add checks for remove_from_pending_delete
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Fri, 18 Oct 2019 17:44:40 +0000 (19:44 +0200)]
refactor/cleanup remove_from_pending_delete sligthly
return $conf for tests, use intermediate variable for
$conf->{pending}, which besides shorter lines avoids also the
autovification of $config stuff.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Fri, 18 Oct 2019 17:26:51 +0000 (19:26 +0200)]
tests: add checks for add_to_pending_delete
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Fri, 18 Oct 2019 17:27:31 +0000 (19:27 +0200)]
refactor/cleanup add_to_pending_delete sligthly
no need to delete, then re-fill by autovification; just explicitly
overwrite with new value.
Also explicitly populate pending hash if not defined, avoids
auto-vivification which is a bit intransparent.
explicitly return $conf for tests
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Fri, 18 Oct 2019 15:55:28 +0000 (17:55 +0200)]
print_pending_delete: make deterministical
for tests and UX
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Fri, 18 Oct 2019 15:15:46 +0000 (17:15 +0200)]
refactor print_pending_delete slightly
while this was much better than the old mess from
parse_pending_delete it still was a bit much nested into one line.
split that up a bit, add a render_key helper which does the clunky
"add !" check and just call that one in the map {}
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Fri, 18 Oct 2019 15:15:07 +0000 (17:15 +0200)]
tests: add print_pending_delete ones
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Fri, 18 Oct 2019 14:43:25 +0000 (16:43 +0200)]
refactor parse_pending_delete to sane implemenation
this was quite the mess, a perl greedy match over non-whitespace
character is equivalent to a split on whitespace on, but the latter
is much easier to grasp when looking at this the first time.
Do a real for loop with real variable names and less nest everything
into one line.
the test added in the previous commit should give use the safety net
for that cleanup.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Fri, 18 Oct 2019 14:42:36 +0000 (16:42 +0200)]
add basic abstract config test system
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Fri, 18 Oct 2019 10:53:43 +0000 (12:53 +0200)]
helpers: s/conf_table_with_pending/config_with_pending_array/ and comment
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Oguz Bektas [Mon, 14 Oct 2019 08:28:36 +0000 (10:28 +0200)]
helpers: add method to represent config as a table
in vm_pending API, this method is used to represent the configuration as
a table with current, pending and delete columns.
by adding it as a guesthelper, we can also use it for container pending
changes.
Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
Oguz Bektas [Mon, 14 Oct 2019 08:28:35 +0000 (10:28 +0200)]
helpers: add pending-aware guest config printer from qemu-server
Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
Oguz Bektas [Mon, 14 Oct 2019 08:28:34 +0000 (10:28 +0200)]
abstractconfig: add load_current_config and load_snapshot_config
this code is already used by qemu-server's GET config API call. it is
however better to split this into to methods and decide what to run in
the API call.
this general implementation uses some $class helpers which allow to abstract
away the difference in the child classes. this will be used for
containers once they can do pending changes.
Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
Oguz Bektas [Mon, 14 Oct 2019 08:28:33 +0000 (10:28 +0200)]
abstractconfig: add pending changes related helpers
use a better naming scheme for methods from qemuserver:
split_flagged_list -> parse_pending_delete
join_flagged_list -> print_pending_delete
vmconfig_delete_pending_option -> add_to_pending_delete
vmconfig_undelete_pending_option -> remove_from_pending_delete
vmconfig_cleanup_pending -> cleanup_pending
parse_pending_delete now has a better representation of the force value,
which is encoded in a perl hash i.e. $conf->{$opt}->{force} = 1 or 0
depending on if the string in config has '!' or not.
Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
Thomas Lamprecht [Fri, 18 Oct 2019 06:47:31 +0000 (08:47 +0200)]
base guest config: add common destroy_config implementation
copied over from pve-containers implementation with the same name.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Christian Ebner [Tue, 15 Oct 2019 11:00:20 +0000 (13:00 +0200)]
fix #1291: implement remove_vmid_from_backup_jobs
remove_vmid_from_backup_jobs updates the vzdump.cron backup jobs,
excluding the given vmid.
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
Christian Ebner [Tue, 15 Oct 2019 11:00:19 +0000 (13:00 +0200)]
vzdump: move registration of vzdump.cron from manager to guest-common to avoid cyclic dependency
The registration of the vzdump.cron file was handled in pve-manager.
By moving the relevant code to pve-guest-common, cyclic dependencies
for cfs registration are avoided.
This makes this patch of guest-common a build dependency for the other
packages touched in this patch series.
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
Thomas Lamprecht [Tue, 1 Oct 2019 15:20:21 +0000 (17:20 +0200)]
followup: rename to print_snapshot_tree, add comment and rename $res param
This was taken from a CLI helper, there $res is a common parameter
name which denotes that it's the res from the API call the CLI
command bases on. But here that makes no sense and is not really
telling about what the value(s) of $res could be. Further explain
that with a comment.
As this also prints uncoditionally to STDOUT let's say so through the
method name.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Oguz Bektas [Tue, 1 Oct 2019 07:32:45 +0000 (09:32 +0200)]
reformat code for snapshot tree into GuestHelpers
qm/pct listsnapshot lack feature parity w.r.t. showing snapshots in a
tree ordered by the date. by moving this code into GuestHelpers, it can
be shared.
Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
Christian Ebner [Mon, 1 Jul 2019 13:43:48 +0000 (15:43 +0200)]
implement remove_vmid_jobs for ReplicationConfig
Allows to remove replication jobs from the config based on the vmid.
Preparations for #1291 fix
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
Thomas Lamprecht [Tue, 21 May 2019 20:24:59 +0000 (22:24 +0200)]
buildsys: no need to include arch detection for arch-independent package
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Tue, 21 May 2019 19:08:05 +0000 (21:08 +0200)]
buildsys: switch upload dist over to buster
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Tue, 21 May 2019 19:03:47 +0000 (21:03 +0200)]
bump version to 3.0-1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Tue, 21 May 2019 19:00:28 +0000 (21:00 +0200)]
buildsys: use dpkg-dev makefile helpers for pkg info
while we already dynamically resolved the version from the changelog
using dpkg-parsechangelog, and those dpkg-dev helpers also use that
tool, let's switch to them nonetheless to have a bit more stream
lined dev environment.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Tue, 21 May 2019 19:00:13 +0000 (21:00 +0200)]
set debian source format to 1.0
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Wolfgang Link [Wed, 17 Apr 2019 07:09:27 +0000 (09:09 +0200)]
increase max reading replication state file size.
In this file, the error of a failed job will also be stored.
The default 32768 bytes are not very much.
This file is on the local filesystem so there is no filesystem
size restrictions like in /etc/pve.
Thomas Lamprecht [Fri, 1 Feb 2019 11:52:20 +0000 (12:52 +0100)]
bump version to 2.0-20
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Fri, 1 Feb 2019 11:51:54 +0000 (12:51 +0100)]
d/control: bump version dependency of libpve-storage-perl
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Fri, 1 Feb 2019 09:08:07 +0000 (10:08 +0100)]
follouwp: saner exception handling
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Dominik Csapak [Thu, 31 Jan 2019 13:33:38 +0000 (14:33 +0100)]
add check/exec_hookscript to GuestHelpers
check_hookscript will be used for the container/vm api to check if the
hookscript volume id is correct
exec_hookscript can be called to execute a hookscript
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Wolfgang Bumiller [Thu, 3 Jan 2019 08:58:17 +0000 (09:58 +0100)]
bump version to 2.0-19
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Thu, 3 Jan 2019 09:09:45 +0000 (10:09 +0100)]
replace complete_snapshot_name with snapshot_list
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Thu, 3 Jan 2019 08:55:14 +0000 (09:55 +0100)]
Makefile: use dpkg-parsechangelog
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Thomas Lamprecht [Fri, 14 Dec 2018 13:06:08 +0000 (14:06 +0100)]
fix deprecated unescaped left brace in regex
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Rhonda D'Vine [Mon, 12 Nov 2018 13:58:48 +0000 (14:58 +0100)]
Bash completion helper for snapshot name
This is the bash completion helper function for completing the snapshot
name. This is used both in qemu-server and pve-container.
This patch is the base for the patches in qemu-server and pve-container.
Signed-off-by: Rhonda D'Vine <rhonda@proxmox.com>
Fabian Grünbichler [Wed, 24 Oct 2018 08:19:43 +0000 (10:19 +0200)]
d/control: remove perl from build-depends
it is not needed at all.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Fabian Grünbichler [Wed, 24 Oct 2018 08:19:42 +0000 (10:19 +0200)]
d/control: add misc:Depends
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Fabian Grünbichler [Wed, 24 Oct 2018 08:19:41 +0000 (10:19 +0200)]
d/control|compat: bump to 10
default and recommended compat level in Debian Stretch
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Fabian Grünbichler [Wed, 24 Oct 2018 08:19:40 +0000 (10:19 +0200)]
d/control: wrap-and-sort
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Fabian Grünbichler [Wed, 24 Oct 2018 08:19:39 +0000 (10:19 +0200)]
d/control: bump standards version
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Fabian Grünbichler [Wed, 24 Oct 2018 08:19:38 +0000 (10:19 +0200)]
build: add dsc target
to build a source package
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Thomas Lamprecht [Mon, 17 Sep 2018 13:54:04 +0000 (15:54 +0200)]
d/control: fixup missing comma in Breaks
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Mon, 17 Sep 2018 13:24:06 +0000 (15:24 +0200)]
bump version to 2.0-18
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Mon, 17 Sep 2018 13:24:57 +0000 (15:24 +0200)]
break qemu-server (<< 5.0-35)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Dominik Csapak [Fri, 14 Sep 2018 12:08:40 +0000 (14:08 +0200)]
add snapshot rollback hook and remove qemu machine code
instead move the QEMU machine logic inside qemu-server package with
the help of the new snapshot rollback hook
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Thomas Lamprecht [Tue, 19 Jun 2018 12:07:19 +0000 (14:07 +0200)]
bump version to 2.0-17
Thomas Lamprecht [Fri, 1 Jun 2018 14:37:38 +0000 (16:37 +0200)]
add create_and_lock_config
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Wolfgang Bumiller [Mon, 14 May 2018 11:51:24 +0000 (13:51 +0200)]
cleanup: ReplicationConfig: be specific about write_config
Since it doesn't write but returns the text to be written,
let's be specific about the fact that we're returning a
value.
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Fabian Grünbichler [Mon, 14 May 2018 09:15:20 +0000 (11:15 +0200)]
bump version to 2.0-16
Wolfgang Link [Wed, 9 May 2018 12:48:27 +0000 (14:48 +0200)]
Add lock to pervent lost update.
Wolfgang Link [Wed, 9 May 2018 12:48:26 +0000 (14:48 +0200)]
Swap source and target in replication config, if VM was stolen.
Wolfgang Link [Wed, 9 May 2018 12:48:25 +0000 (14:48 +0200)]
Add function: swap source and target in replication config
Wolfgang Link [Wed, 9 May 2018 12:48:24 +0000 (14:48 +0200)]
Get snapshots when no state is available.
With this patch we can restore the state of a state less job.
It may happen that there are more replication snapshots,
because no job state is known can not delete any snapshot.
Existing multiple replication-snapshot happens
when a node fails in middel of a replication
and then the VM is moved to another node.
That's why we have to test if we have a common base on both nodes.
Given this, we take this as a replica state.
After we have a state again, the rest of the snapshots can be deleted on the next run.