Dietmar Maurer
67680141d7
bump version to 5.0-10
2017-06-27 06:20:04 +02:00
Dietmar Maurer
7118dd916b
PVE::Storage::storage_can_replicate - hew helper
2017-06-27 06:17:58 +02:00
Dietmar Maurer
864341b853
bump version to 5.0-9
2017-06-22 17:36:34 +02:00
Wolfgang Bumiller
6b3a4a2504
import/export: drop the 'subvol/' prefix from 'tar+size'
...
It was deemed an unnecessary overhead.
Also add a comment about the effect (or lack thereof) of
user namespace uid mappings.
2017-06-22 17:35:04 +02:00
Emmanuel Kasper
030f6e1a97
Fix #1424 : allow tar.xz templates upload
2017-06-22 14:32:27 +02:00
Dietmar Maurer
88a5ed1f11
bump version to 5.0-8
2017-06-22 12:49:31 +02:00
Wolfgang Bumiller
766cfd9a87
import/export: use our standard tar flags
...
Custom plugins may reuse
@PVE::Storage::Plugin::COMMON_TAR_FLAGS as well.
2017-06-22 12:47:29 +02:00
Wolfgang Bumiller
e8a7e764af
storage_migrate: with_snapshots parameter
...
Since the migration code already has to check snapshots and
we still want to be able to migrate raw disks, we cannot
always pass -with-snapshots 1.
2017-06-22 12:40:23 +02:00
Dietmar Maurer
123ee4714e
bump version to 5.0-7
2017-06-22 09:07:27 +02:00
Dietmar Maurer
e1f6cb3904
re-add changes to PVE/Storage/Plugin.pm (fixup previous commit)
...
This was removed by accident.
2017-06-22 09:05:29 +02:00
Dietmar Maurer
364e63647a
bump version to 5.0-6
2017-06-22 08:36:11 +02:00
Wolfgang Bumiller
da72898cc6
migrate: only use import/export
...
This replaces the path-based and lvm/thin special cases in
storage_migrate with the already generic-enough zfspool
case which is already using import/export and does not
directly depend on zfs anymore.
2017-06-22 07:03:39 +02:00
Wolfgang Bumiller
5cbbc78fdb
lvm: import/export: implement raw+size format
2017-06-22 06:48:09 +02:00
Wolfgang Bumiller
9559a62a3d
import/export: new formats: raw, tar, qcow2, vmdk
...
All of them have a `+size` prefix to show that they're not
"pure raw" or "pure tar" streams, because some storage may
need to know in advance how much storage to allocate.
The formats are explained in comments.
PVE::Storage::Plugin now has default implementations for
these for non-incremental streams exporting the current
(rather than a snapshot state).
To use qcow2 or vmdk formats $with_snapshots must be true,
otherwise raw/tar will be used where $with_snapshots must
be false.
2017-06-22 05:59:34 +02:00
Wolfgang Bumiller
ae36189d26
export: add missing format query call parameter
2017-06-22 05:51:32 +02:00
Fabian Grünbichler
acf3208793
build: remove fakeroot from dpkg-buildpackage
2017-06-12 10:14:54 +02:00
Fabian Grünbichler
7af63e3527
build: add substitution variable
2017-06-12 10:13:55 +02:00
Fabian Grünbichler
4cf0690ee0
build: reformat b-d and depends
2017-06-12 10:13:38 +02:00
Thomas Lamprecht
183d2d2d93
change from dpkg-deb to dpkg-buildpackage
...
add debian directory and move the respective files there and add
missing (rules, compat).
Move control.in to control as no sed search & replacement must be
done. Add a Source section to the control file.
Rename the "check" Makefile target to "test" so that the dh_auto_test
helper executes it automatically on build.
Move the verify_api check to this target.
Cleanup the "clean" target and remove outdated commented out stuff
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2017-06-12 10:11:02 +02:00
Wolfgang Bumiller
488cf14d4f
migrate: insecure: untaint the received ip/port
2017-06-09 12:30:59 +02:00
Wolfgang Bumiller
47cea19432
migrate: don't include the hostname in rsync's rsh command
2017-06-09 12:30:17 +02:00
Wolfgang Bumiller
4b4c580d02
migrate: use the correct IP with rsync
2017-06-09 12:30:02 +02:00
Dietmar Maurer
b43d0f3043
ZFSPoolPlugin.pm: remove unused code
2017-06-08 08:45:22 +02:00
Dietmar Maurer
636ac5b82f
PVE::Storage::volume_snapshot_list - remove comment about ordering
...
Some storage types supports arbitrary snapshot trees, so there is
no strict ordering relation.
2017-06-07 06:36:55 +02:00
Dietmar Maurer
8b622c2dff
PVE::Storage::volume_snapshot_list - remove $prefix parameter
...
Always return the full list of snapshots. Users of this library can easily
filter with a simply 'grep' instead.
2017-06-07 06:20:07 +02:00
Dietmar Maurer
c2bce0ef63
remove unused replication code (moved to pve-manager)
2017-06-07 06:14:30 +02:00
Fabian Grünbichler
4d3beaa80c
build: run tests when building deb
...
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2017-06-06 16:15:42 +02:00
Fabian Grünbichler
d1aa38aec2
disktest: exit with -1 in case of failures
...
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2017-06-06 16:15:42 +02:00
Fabian Grünbichler
e93e1bed73
zfstest: exit with -1 in case of failures
...
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2017-06-06 16:15:42 +02:00
Fabian Grünbichler
722eb1fe8a
zfstest: skip tests if ZFS is not available
...
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2017-06-06 16:15:42 +02:00
Fabian Grünbichler
88ed02a391
zfstest: remove unused variable
...
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2017-06-06 16:15:42 +02:00
Fabian Grünbichler
2acdffbbb5
zfstest: fix typos
...
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2017-06-06 16:15:42 +02:00
Fabian Grünbichler
ca276fcbc2
zfstest: use truncate instead of dd
...
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2017-06-06 16:15:42 +02:00
Fabian Grünbichler
b13cf56109
zfstest: improve reset behaviour
...
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2017-06-06 16:15:42 +02:00
Fabian Grünbichler
078c28aac6
zfstest: wait for devices to settle after creation
...
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2017-06-06 16:15:42 +02:00
Fabian Grünbichler
a3b7bc374c
zfstest: fix test description
...
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2017-06-06 16:15:42 +02:00
Fabian Grünbichler
91877ee016
zfstest: fix test 17 to actually deactivate storage
...
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2017-06-06 16:15:42 +02:00
Dominik Csapak
a3f38a644c
fix #1379 : return size as number instead of string
...
this caused the webinterface to sort alphabetically instead of numerical
when sorting by image size
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-06-02 10:24:30 +02:00
Wolfgang Bumiller
7ba34faa6e
migrate: add insecure parameter
...
This uses mtunnel's new -run-command parameter in
combination with the ssh-info's network cidr option to use
an unprotected TCP port.
2017-06-01 10:43:32 +02:00
Wolfgang Bumiller
01f7e902e9
migrate: implement rate limiting
...
Note that it does not apply to the local 'mkdir && cp' case.
2017-06-01 10:42:32 +02:00
Dietmar Maurer
9dc3d2ff40
bump version to 5.0-5
2017-06-01 09:42:23 +02:00
Wolfgang Bumiller
cd0b3d5bc2
Revert "free: added snapshot parameter"
...
This reverts commit a26e1abc70
.
2017-05-23 13:31:21 +02:00
Wolfgang Bumiller
b57a863a0f
migrate: cleanup & fixup
...
The volume_snapshot call was missing the condition when to
create a snapshot. Make the whole logic easier to follow
with a $migration_snapshot boolean.
Also get rid of the remote `pvesm free -snapshot` call by
using import's new -delete-snapshot parameter.
2017-05-23 13:30:51 +02:00
Wolfgang Bumiller
5259593842
import: add -delete-snapshot parameter
...
This deletes a snapshot on *success*, done directly in the
CLI handler, as the rollback/delete on failure is already
happening inside the plugin's import method.
2017-05-23 13:29:48 +02:00
Wolfgang Bumiller
acd27197ce
migrate: replace target ip parameter with sshinfo parameter
2017-05-23 09:31:19 +02:00
Wolfgang Bumiller
dc7695377c
migrate: snapshot parameter for use with replication
2017-05-23 09:27:26 +02:00
Fabian Grünbichler
55f908a1cd
migrate: cleanup: $free is always defined
2017-05-12 15:01:08 +02:00
Wolfgang Bumiller
7459cb3d91
migrate: query transfer stream formats
2017-05-12 14:42:17 +02:00
Wolfgang Bumiller
d390328bfd
api: add import/export format querying
2017-05-12 14:42:17 +02:00
Wolfgang Bumiller
ac191ec740
migrate: snapshot parameter for incremental transfer
2017-05-12 14:42:17 +02:00