]> git.proxmox.com Git - pve-storage.git/log
pve-storage.git
5 years agostorage add: always extract password from parameters
Thomas Lamprecht [Fri, 29 Jun 2018 11:16:10 +0000 (13:16 +0200)]
storage add: always extract password from parameters

as else we write it to /etc/pve/storage.cfg which is readable by
www-data, a not really private group...

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoadd cifs: fix variable declaration in post if
Thomas Lamprecht [Fri, 29 Jun 2018 11:15:26 +0000 (13:15 +0200)]
add cifs: fix variable declaration in post if

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agod/control: update pve-common version dependency
Thomas Lamprecht [Wed, 27 Jun 2018 11:24:31 +0000 (13:24 +0200)]
d/control: update pve-common version dependency

as we use the new param_mapping functionallity from PVE::CLIHandler

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoreplace read_password with param_mapping
Dominik Csapak [Fri, 15 Jun 2018 13:28:48 +0000 (15:28 +0200)]
replace read_password with param_mapping

we only need this for cifs as this is the only type
of storage where we expect a password

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agoPVE/API2/Storage/Config.pm - set type in returns schema
Dietmar Maurer [Fri, 22 Jun 2018 05:52:51 +0000 (07:52 +0200)]
PVE/API2/Storage/Config.pm - set type in returns schema

5 years agoCIFS: add mkdir option allowing to switch off path creation
Wolfgang Link [Wed, 13 Jun 2018 11:21:29 +0000 (13:21 +0200)]
CIFS: add mkdir option allowing to switch off path creation

see commit: c7616abcb278e2b888febc082b557f60676fc376

5 years agoAdd missing dependency to ceph-common
Alwin Antreich [Mon, 11 Jun 2018 09:31:27 +0000 (11:31 +0200)]
Add missing dependency to ceph-common

Signed-off-by: Alwin Antreich <a.antreich@proxmox.com>
5 years agofollowup: fix typo
Thomas Lamprecht [Wed, 6 Jun 2018 13:38:22 +0000 (15:38 +0200)]
followup: fix typo

5 years agoUse enums for smbvers to prevent incorrect input
Wolfgang Link [Wed, 6 Jun 2018 11:23:29 +0000 (13:23 +0200)]
Use enums for smbvers to prevent incorrect input

5 years agoMake check_connection less costly.
Wolfgang Link [Wed, 16 May 2018 11:46:42 +0000 (13:46 +0200)]
Make check_connection less costly.

This command will only check the needed share
and do not query the hole server shares.

This reduce the answer time and also has the benefit we check the
credentials on this share and not on the server.

5 years agofix #1770: allow ex/import linked clones.
Wolfgang Link [Fri, 18 May 2018 12:16:20 +0000 (14:16 +0200)]
fix #1770: allow ex/import linked clones.

We encode the base-volume-name in the volname what is not needed.
On ex/import we need the correct dataset name.

6 years agobuild: use git rev-parse for GITVERSION
Fabian Grünbichler [Wed, 16 May 2018 08:09:37 +0000 (10:09 +0200)]
build: use git rev-parse for GITVERSION

6 years agobump version to 5.0-23
Fabian Grünbichler [Wed, 16 May 2018 08:06:40 +0000 (10:06 +0200)]
bump version to 5.0-23

6 years agocifs: fix uninitialized warning in check_connection
Wolfgang Link [Wed, 16 May 2018 07:08:06 +0000 (09:08 +0200)]
cifs: fix uninitialized warning in check_connection

otherwise this spams the log when check_connection runs into a timeout.

6 years agobump version to 5.0-22
Wolfgang Bumiller [Mon, 14 May 2018 12:50:08 +0000 (14:50 +0200)]
bump version to 5.0-22

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
6 years agowhitespace fixup
Wolfgang Bumiller [Mon, 14 May 2018 06:35:22 +0000 (08:35 +0200)]
whitespace fixup

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
6 years agoFix typo.
Wolfgang Link [Mon, 14 May 2018 05:23:40 +0000 (07:23 +0200)]
Fix typo.

6 years agoSimplify image/template upload check.
Wolfgang Link [Mon, 14 May 2018 05:23:39 +0000 (07:23 +0200)]
Simplify image/template upload check.

All storage's witch are able to store images must have a path.

6 years agobump version to 5.0-21
Fabian Grünbichler [Tue, 8 May 2018 09:51:52 +0000 (11:51 +0200)]
bump version to 5.0-21

6 years agofix #1754: rbd: fix handling of external clusters
Fabian Grünbichler [Tue, 8 May 2018 07:28:56 +0000 (09:28 +0200)]
fix #1754: rbd: fix handling of external clusters

with the recent refactoring, external clusters were not handled
correctly with librd if a pveceph or storage specific ceph config
exists.

change the behaviour to include the pveceph config file only for pveceph
managed clusters, and a storage specific one only for external ones.

set mon_host correctly using the values from storage.cfg for external
librbd clusters.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
6 years agofixup error message typo: s/sould/should/
Thomas Lamprecht [Tue, 8 May 2018 07:34:34 +0000 (09:34 +0200)]
fixup error message typo: s/sould/should/

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agofix #1691: increase timeout in worker
Wolfgang Link [Thu, 19 Apr 2018 06:39:51 +0000 (08:39 +0200)]
fix #1691: increase timeout in worker

A ZFS storage under heavy load can take more time.

6 years agofix #1691: replace udev check
Wolfgang Link [Thu, 19 Apr 2018 06:39:50 +0000 (08:39 +0200)]
fix #1691: replace udev check

`zfs create` add the creation job in a worker queue,
which should normally execute instantly. But there are circumstances
where the job will take a while to get processed.
If this is the case udev settle will see no dev in the queue and the program
will continue without an allocated dev.

The busy waiting is not best practice but the only way to be sure,
that the block device exists.

6 years agobump version to 5.0-20
Thomas Lamprecht [Fri, 4 May 2018 13:33:53 +0000 (15:33 +0200)]
bump version to 5.0-20

6 years agoFix #1750: set monhost split to old behavior
Alwin Antreich [Fri, 4 May 2018 12:03:47 +0000 (14:03 +0200)]
Fix #1750: set monhost split to old behavior

The path method of the RBDPlugin got a list with comma separated monhosts,
but it needs the list with semi-colon for qemu.

Signed-off-by: Alwin Antreich <a.antreich@proxmox.com>
6 years agobump version to 5.0-19
Dietmar Maurer [Wed, 18 Apr 2018 08:46:46 +0000 (10:46 +0200)]
bump version to 5.0-19

6 years agoRefactor of method build_cmd and path
Alwin Antreich [Fri, 13 Apr 2018 12:28:32 +0000 (14:28 +0200)]
Refactor of method build_cmd and path

Method build_cmd and path use similar code to generate the ceph command
line or qemu config parameters. They now use the private method
ceph_connect_option for parameter generation.

Signed-off-by: Alwin Antreich <a.antreich@proxmox.com>
6 years agoFix #1542: show storage utilization per pool
Alwin Antreich [Fri, 13 Apr 2018 12:28:31 +0000 (14:28 +0200)]
Fix #1542: show storage utilization per pool

 - get storage utilization per pool
 - use librados2-perl for pool status
 - add librados2-perl as build-depends and depends in debian/control

Signed-off-by: Alwin Antreich <a.antreich@proxmox.com>
6 years agobump version to 5.0-18
Thomas Lamprecht [Thu, 22 Mar 2018 08:06:47 +0000 (09:06 +0100)]
bump version to 5.0-18

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agocifs: use correct pluging class name
Dietmar Maurer [Fri, 16 Mar 2018 12:23:47 +0000 (13:23 +0100)]
cifs: use correct pluging class name

6 years agocifs: move plugin related code into plugin
Dietmar Maurer [Fri, 16 Mar 2018 12:07:05 +0000 (13:07 +0100)]
cifs: move plugin related code into plugin

6 years agoadd missing "use PVE::Storage::LVMPlugin;"
Dietmar Maurer [Fri, 16 Mar 2018 11:54:06 +0000 (12:54 +0100)]
add missing "use PVE::Storage::LVMPlugin;"

6 years agocifs plugin cleanups
Dietmar Maurer [Fri, 16 Mar 2018 11:35:55 +0000 (12:35 +0100)]
cifs plugin cleanups

6 years agoremove useless "use PVE::PTY;"
Dietmar Maurer [Fri, 16 Mar 2018 11:09:37 +0000 (12:09 +0100)]
remove useless "use PVE::PTY;"

6 years agoAdd read_password in CLI.
Wolfgang Link [Fri, 16 Mar 2018 09:22:59 +0000 (10:22 +0100)]
Add read_password in CLI.

6 years agoAdd cifsscan to CLI
Wolfgang Link [Fri, 16 Mar 2018 09:22:58 +0000 (10:22 +0100)]
Add cifsscan to CLI

6 years agoAdd cifsscan to API
Wolfgang Link [Fri, 16 Mar 2018 09:22:57 +0000 (10:22 +0100)]
Add cifsscan to API

6 years agoAdd cifsscan.
Wolfgang Link [Fri, 16 Mar 2018 09:22:56 +0000 (10:22 +0100)]
Add cifsscan.

6 years agoRegister CIFSPlugin in the storage plugin system.
Wolfgang Link [Fri, 16 Mar 2018 09:22:55 +0000 (10:22 +0100)]
Register CIFSPlugin in the storage plugin system.

6 years agoAdd CIFS dependencies in package management.
Wolfgang Link [Fri, 16 Mar 2018 09:22:54 +0000 (10:22 +0100)]
Add CIFS dependencies in package management.

6 years agoAdd remove cifs in API call.
Wolfgang Link [Fri, 16 Mar 2018 09:22:53 +0000 (10:22 +0100)]
Add remove cifs in API call.

6 years agoAdd cifs in create API call.
Wolfgang Link [Fri, 16 Mar 2018 09:22:52 +0000 (10:22 +0100)]
Add cifs in create API call.

In this patch the nodes will be deleted if the nodes parameter comes with a empty string.
We need this in the GUI when update the nodes in the config to reset if a nodes.

If we do not erase the empty hash the storage online check would be skipped.
Also the password and user would not be verified.

6 years agoAdd set CIFS credentials.
Wolfgang Link [Fri, 16 Mar 2018 09:22:51 +0000 (10:22 +0100)]
Add set CIFS credentials.

6 years agoAdd CIFS Storage Plugin.
Wolfgang Link [Fri, 16 Mar 2018 09:22:50 +0000 (10:22 +0100)]
Add CIFS Storage Plugin.

This Plugin use as template the NFSpluigin.
We do only support smbversion 2 and 3.
Version 3 is default and must override through the config.

6 years agoRemove pool with -f parameter.
Wolfgang Link [Tue, 13 Mar 2018 14:11:01 +0000 (15:11 +0100)]
Remove pool with -f parameter.

The test pool will not removed if we do not force it.

6 years agobwlimit: apply limits when there's no override
Wolfgang Bumiller [Fri, 9 Feb 2018 08:35:59 +0000 (09:35 +0100)]
bwlimit: apply limits when there's no override

Before, 'undef' was equivalent to unlimited, but '0' is the
"explicitly unlimited" value, so if the user doesn't request
an override, apply limits as if the user was unprivileged
(otherwise there's no way for privileged users to explicitly
ask to not override the configured limits).

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
6 years agoFix typo in sub s/krdb_feature_disable/krbd_feature_disable
Alwin Antreich [Fri, 2 Mar 2018 11:03:47 +0000 (12:03 +0100)]
Fix typo in sub s/krdb_feature_disable/krbd_feature_disable

Signed-off-by: Alwin Antreich <a.antreich@proxmox.com>
6 years agoFix #1574: could not disable krbd-incompatible image features
Alwin Antreich [Fri, 2 Mar 2018 11:03:46 +0000 (12:03 +0100)]
Fix #1574: could not disable krbd-incompatible image features

To prevent an error when disabling features of a rbd image with already
disabled flags. This aborted the CT/VM cloning halfway through with
a leftover rbd image, but no vmid.conf to it.

Signed-off-by: Alwin Antreich <a.antreich@proxmox.com>
6 years agod/control: bump dependency on libpve-common-perl
Fabian Grünbichler [Mon, 19 Feb 2018 12:45:33 +0000 (13:45 +0100)]
d/control: bump dependency on libpve-common-perl

for 'bwlimit' option in storage.cfg

6 years agoadd Storage::get_bandwidth_limit helper
Wolfgang Bumiller [Tue, 30 Jan 2018 10:46:19 +0000 (11:46 +0100)]
add Storage::get_bandwidth_limit helper

Takes an operation, an optional requested bandwidth
limit override, and a list of storages involved in the
operation and lowers the requested bandwidth against global
and storage-specific limits unless the user has permissions
to change those.
This means:
 * Global limits apply to all users without Sys.Modify on /
   (as they can change datacenter.cfg options via the API).
 * Storage specific limits apply to users without
   Datastore.Allocate access on /storage/X for any involved
   storage X.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
6 years agobump version to 5.0-17
Wolfgang Bumiller [Wed, 29 Nov 2017 10:35:17 +0000 (11:35 +0100)]
bump version to 5.0-17

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
6 years agoadd missing b-d on Test::MockModule
Fabian Grünbichler [Tue, 14 Nov 2017 12:22:23 +0000 (13:22 +0100)]
add missing b-d on Test::MockModule

6 years agowhitespace cleanup
Dominik Csapak [Fri, 10 Nov 2017 13:49:19 +0000 (14:49 +0100)]
whitespace cleanup

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoadd 'format' parameter to storage list call
Dominik Csapak [Fri, 10 Nov 2017 13:49:18 +0000 (14:49 +0100)]
add 'format' parameter to storage list call

we will use this for the gui to figure out if we have to show
a size selector, a file selector, which formats are there, etc.

we have to include this data even for not active storages, else
we cannot show the correct fields

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoadd select_existing to plugindata for iscsi(direct)
Dominik Csapak [Fri, 10 Nov 2017 13:49:17 +0000 (14:49 +0100)]
add select_existing to plugindata for iscsi(direct)

this will be used in the gui, for determining if we need to select
something from the storage when using for an image

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years ago(finally) fix #1099: return disklist correctly
Dominik Csapak [Wed, 8 Nov 2017 08:01:58 +0000 (09:01 +0100)]
(finally) fix #1099: return disklist correctly

in get_disks, when called with a parameter 'cciss/cXdY', we replaced
the '/' with '!' so that we can properly poll the information
about it from /sys/block/

but we have to replace the '!' with '/' again in our result list,
because the caller does not know anything about it and fails, because
the original dev is not in the list

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agobump version to 5.0-16
Fabian Grünbichler [Tue, 17 Oct 2017 13:02:36 +0000 (15:02 +0200)]
bump version to 5.0-16

6 years agoAdd logfung in storage_migrate
Wolfgang Link [Tue, 10 Oct 2017 07:43:52 +0000 (09:43 +0200)]
Add logfung in storage_migrate

The log function is used by storage replication to redirect the output in the correct log.

6 years agoISCSIPlugin: Use long options for readability
Emmanuel Kasper [Mon, 9 Oct 2017 08:39:18 +0000 (10:39 +0200)]
ISCSIPlugin: Use long options for readability

We otherwise use the long options everywhere in the plugin.
This will build the following command:

iscsiadm  --mode session --sid 1 --rescan
Rescanning session [sid: 1, target: xxx, portal: yyy]

6 years agobuild: reformat debian/control
Fabian Grünbichler [Wed, 4 Oct 2017 09:05:33 +0000 (11:05 +0200)]
build: reformat debian/control

using wrap-and-sort -abt

6 years agobump version to 5.0-15
Wolfgang Bumiller [Tue, 12 Sep 2017 11:46:44 +0000 (13:46 +0200)]
bump version to 5.0-15

6 years agorbd: support auth=none if pveceph-managed
Fabian Grünbichler [Mon, 11 Sep 2017 10:31:06 +0000 (12:31 +0200)]
rbd: support auth=none if pveceph-managed

preserve the old behaviour of selecting auth_supported based on the
existence of the keyring, but limit it to external clusters.

this allows switching 'auth XXX required' in the pveceph-managed
ceph.conf while still automatically copying the keyring when adding a
storage.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
6 years agorequire libpve-common-perl >= 5.0-17
Fabian Grünbichler [Thu, 7 Sep 2017 11:18:17 +0000 (13:18 +0200)]
require libpve-common-perl >= 5.0-17

the new is_mountpoint uses PVE::JSONSchema::parse_boolean

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
6 years agorbd: create ceph keyring dir before copying
Fabian Grünbichler [Thu, 7 Sep 2017 10:51:26 +0000 (12:51 +0200)]
rbd: create ceph keyring dir before copying

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
6 years agorbd: manage keyring for pveceph storages
Fabian Grünbichler [Tue, 5 Sep 2017 12:59:33 +0000 (14:59 +0200)]
rbd: manage keyring for pveceph storages

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
6 years agorbd: implement handling of unset monhost
Fabian Grünbichler [Tue, 5 Sep 2017 12:59:32 +0000 (14:59 +0200)]
rbd: implement handling of unset monhost

add /etc/pve/ceph.conf to commands / option strings instead
of the monitor list provided via the 'monhost' option.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
6 years agorbd: refactor cmdline helpers
Fabian Grünbichler [Tue, 5 Sep 2017 12:59:31 +0000 (14:59 +0200)]
rbd: refactor cmdline helpers

these were line by line identical except for the binary path

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
6 years agorbd: make monhost option optional
Fabian Grünbichler [Tue, 5 Sep 2017 12:59:30 +0000 (14:59 +0200)]
rbd: make monhost option optional

to allow differentiating between user-created external RBD storage
entries (WITH monhost), and those created and managed by pveceph
(without).

making monhost non-fixed allows easily opting into the managed behaviour via
'pvesm set STORAGE -delete monhost', but is also helpful for external clusters
(i.e., after adding or removing a monitor you need to update the monhost
parameter..)

adapt description accordingly.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
6 years agodir: allow a path as is_mountpoint value
Wolfgang Bumiller [Fri, 28 Jul 2017 07:52:43 +0000 (09:52 +0200)]
dir: allow a path as is_mountpoint value

This turns is_mountpoint more into export(5)'s `mountpoint`
property.
Given the directory storage with the properties:

    path /a/b/c
    is_mountpoint $value

$value = yes
    Same as before, /a/b/c must be mounted.
$value = no (or not set)
    Same as before, no effect.
$value = /a/b
    New: /a/b must be mounted (as opposed to /a/b/c)

6 years agobump version to 5.0-14
Wolfgang Bumiller [Thu, 10 Aug 2017 11:27:11 +0000 (13:27 +0200)]
bump version to 5.0-14

6 years agocleanup: call defined() early
Wolfgang Bumiller [Thu, 10 Aug 2017 11:24:40 +0000 (13:24 +0200)]
cleanup: call defined() early

No need to carry around a hash we don't need if we get one.

6 years agoFix #1474: Fixes input and output of print_storage
Philip Abernethy [Thu, 10 Aug 2017 11:14:52 +0000 (13:14 +0200)]
Fix #1474: Fixes input and output of print_storage

Accommodates changes in 44ae567 and d40e27d by
reordering checks to allow for proper filtering
of disabled storages. Also reorders two checks to
prevent autovivification resulting in disabled
storages always showing in output.

6 years agobump version to 5.0-13
Fabian Grünbichler [Tue, 8 Aug 2017 09:11:05 +0000 (11:11 +0200)]
bump version to 5.0-13

6 years agoadd info about bluestore to disklist
Dominik Csapak [Fri, 4 Aug 2017 14:32:48 +0000 (16:32 +0200)]
add info about bluestore to disklist

this patch adds information about bluestore/db/wal to the disklist,
and we set the journal count only when we have at least one journal on
the disk

also adapt the regression tests

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agopvesm: remove superfluous space after N/A
Wolfgang Bumiller [Thu, 27 Jul 2017 12:17:02 +0000 (14:17 +0200)]
pvesm: remove superfluous space after N/A

6 years agopvesm status: improve output and its format
Thomas Lamprecht [Thu, 27 Jul 2017 10:16:46 +0000 (12:16 +0200)]
pvesm status: improve output and its format

Add column names at top of output, this allows easier understanding
of what each column means.

Use leading spaces on the percentage column so that this is lined up.

Switch out the 1/0 from the active column with the actual status
(active, inactive, disabled).

Show N/A if storage is disabled.

Use $res->{total} instead of calculating a sum of used and available.

Remove wrong rounding - if we want to display 2 digits from the
fractional part we would need to add 0.005 not 0.5, this made the
result quite wrong depending on the storage size.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agostorage_info: return also disabled storages
Thomas Lamprecht [Thu, 27 Jul 2017 10:16:45 +0000 (12:16 +0200)]
storage_info: return also disabled storages

in the Storage/Status API call we have a 'enabled' param which had no
effect because storage_info only returned enabled one way or the
other.

This affected also `pvesm status` which uses the Storage/Status API
call.

So push also disabled storages to the info array but only activate
and get their status when thei are enabled.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agobump version to 5.0-12
Dietmar Maurer [Tue, 4 Jul 2017 04:13:54 +0000 (06:13 +0200)]
bump version to 5.0-12

6 years agofix ceph_version_parser
Wolfgang Link [Mon, 3 Jul 2017 15:12:52 +0000 (17:12 +0200)]
fix ceph_version_parser

Ceph change ceph version output.

full output of 'ceph --version'

Luminous 'ceph version 12.1.0 (262617c9f16c55e863693258061c5b25dea5b086) luminous (dev)'
Jewel   'ceph version 10.2.7 (50e863e0f4bc8f4b9e31156de690d765af245185)'

6 years agobump version to 5.0-11
Wolfgang Bumiller [Fri, 30 Jun 2017 07:22:33 +0000 (09:22 +0200)]
bump version to 5.0-11

6 years agoFixes: #1415 do not block pvestatd when nfsd is stopped on the server side
Emmanuel Kasper [Thu, 29 Jun 2017 12:48:13 +0000 (14:48 +0200)]
Fixes: #1415 do not block pvestatd when nfsd is stopped on the server side
Wrap the -d test with run_or_get_killed sub this test
can make pvestatd hang on I/O wait when a nfsd process is stopped

This might help with other file based storages, for instance
directory storages on unplugged USB devices.

6 years agobump version to 5.0-10
Dietmar Maurer [Tue, 27 Jun 2017 04:20:04 +0000 (06:20 +0200)]
bump version to 5.0-10

6 years agoPVE::Storage::storage_can_replicate - hew helper
Dietmar Maurer [Tue, 27 Jun 2017 04:17:58 +0000 (06:17 +0200)]
PVE::Storage::storage_can_replicate - hew helper

6 years agobump version to 5.0-9
Dietmar Maurer [Thu, 22 Jun 2017 15:36:34 +0000 (17:36 +0200)]
bump version to 5.0-9

6 years agoimport/export: drop the 'subvol/' prefix from 'tar+size'
Wolfgang Bumiller [Thu, 22 Jun 2017 12:21:52 +0000 (14:21 +0200)]
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.

6 years agoFix #1424: allow tar.xz templates upload
Emmanuel Kasper [Thu, 22 Jun 2017 08:42:39 +0000 (10:42 +0200)]
Fix #1424: allow tar.xz templates upload

6 years agobump version to 5.0-8
Dietmar Maurer [Thu, 22 Jun 2017 10:49:31 +0000 (12:49 +0200)]
bump version to 5.0-8

6 years agoimport/export: use our standard tar flags
Wolfgang Bumiller [Thu, 22 Jun 2017 10:24:39 +0000 (12:24 +0200)]
import/export: use our standard tar flags

Custom plugins may reuse
@PVE::Storage::Plugin::COMMON_TAR_FLAGS as well.

6 years agostorage_migrate: with_snapshots parameter
Wolfgang Bumiller [Thu, 22 Jun 2017 10:24:38 +0000 (12:24 +0200)]
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.

6 years agobump version to 5.0-7
Dietmar Maurer [Thu, 22 Jun 2017 07:07:27 +0000 (09:07 +0200)]
bump version to 5.0-7

6 years agore-add changes to PVE/Storage/Plugin.pm (fixup previous commit)
Dietmar Maurer [Thu, 22 Jun 2017 07:05:29 +0000 (09:05 +0200)]
re-add changes to PVE/Storage/Plugin.pm (fixup previous commit)

This was removed by accident.

6 years agobump version to 5.0-6
Dietmar Maurer [Thu, 22 Jun 2017 06:36:11 +0000 (08:36 +0200)]
bump version to 5.0-6

6 years agomigrate: only use import/export
Wolfgang Bumiller [Wed, 21 Jun 2017 12:59:39 +0000 (14:59 +0200)]
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.

6 years agolvm: import/export: implement raw+size format
Wolfgang Bumiller [Wed, 21 Jun 2017 12:59:37 +0000 (14:59 +0200)]
lvm: import/export: implement raw+size format

6 years agoimport/export: new formats: raw, tar, qcow2, vmdk
Wolfgang Bumiller [Wed, 21 Jun 2017 12:59:36 +0000 (14:59 +0200)]
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.

6 years agoexport: add missing format query call parameter
Wolfgang Bumiller [Wed, 21 Jun 2017 12:59:35 +0000 (14:59 +0200)]
export: add missing format query call parameter

6 years agobuild: remove fakeroot from dpkg-buildpackage
Fabian Grünbichler [Mon, 12 Jun 2017 08:14:54 +0000 (10:14 +0200)]
build: remove fakeroot from dpkg-buildpackage

6 years agobuild: add substitution variable
Fabian Grünbichler [Mon, 12 Jun 2017 08:13:55 +0000 (10:13 +0200)]
build: add substitution variable

6 years agobuild: reformat b-d and depends
Fabian Grünbichler [Mon, 12 Jun 2017 08:13:38 +0000 (10:13 +0200)]
build: reformat b-d and depends

6 years agochange from dpkg-deb to dpkg-buildpackage
Thomas Lamprecht [Fri, 9 Jun 2017 15:20:09 +0000 (17:20 +0200)]
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>