]> git.proxmox.com Git - pve-storage.git/log
pve-storage.git
7 years agouse model from udevadm
Dominik Csapak [Mon, 17 Oct 2016 08:29:11 +0000 (10:29 +0200)]
use model from udevadm

we want this, because the model in /sys/block/<device>/device/model
is limited to 16 characters

and since the model is not always in the udevadm output (nvme),
also read the model from the model file as fallback

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agomake dir_is_empty a proper sub
Dominik Csapak [Mon, 17 Oct 2016 08:29:10 +0000 (10:29 +0200)]
make dir_is_empty a proper sub

this allows us later to mock the sub,
which we need for testing

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agomove directory test into get_sysdir_info
Dominik Csapak [Mon, 17 Oct 2016 08:29:09 +0000 (10:29 +0200)]
move directory test into get_sysdir_info

because it logically belongs there, also
this makes the testing easier

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agouse /sys/block/ path for udev instead of name
Dominik Csapak [Mon, 17 Oct 2016 08:29:08 +0000 (10:29 +0200)]
use /sys/block/ path for udev instead of name

since we iterate over the entries in /sys/block
it makes sense to use this path

this should fix #1099
because udevadm does not take
 -n cciss!c0d0 (because it only looks in dev for this)
but takes
 -p /sys/block/cciss!c0d0

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agobump version to 4.0-67
Fabian Grünbichler [Fri, 21 Oct 2016 06:54:28 +0000 (08:54 +0200)]
bump version to 4.0-67

7 years agofix #1165: only check mount status when is_mountpoint is set
Fabian Grünbichler [Wed, 12 Oct 2016 07:33:12 +0000 (09:33 +0200)]
fix #1165: only check mount status when is_mountpoint is set

otherwise the status() method returns garbage for non-mount
point directory storages.

7 years agobump version to 4.0-66
Dietmar Maurer [Fri, 7 Oct 2016 07:31:46 +0000 (09:31 +0200)]
bump version to 4.0-66

7 years agodisks: fix warnings
Wolfgang Bumiller [Fri, 7 Oct 2016 06:53:26 +0000 (08:53 +0200)]
disks: fix warnings

7 years agobump version to 4.0-65
Dietmar Maurer [Fri, 7 Oct 2016 06:18:45 +0000 (08:18 +0200)]
bump version to 4.0-65

7 years agoallow rbd images < 1M to be detected
Dominik Csapak [Thu, 6 Oct 2016 09:42:28 +0000 (11:42 +0200)]
allow rbd images < 1M to be detected

without this, having an efidisk on a ceph storage
prevents creating another disk on the same
ceph storage, because it will not be detected
and we try to allocate one with the same name

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agobump version to 4.0-64
Dietmar Maurer [Thu, 6 Oct 2016 05:53:32 +0000 (07:53 +0200)]
bump version to 4.0-64

7 years agocorrectly parse cciss devices in get_disks
Dominik Csapak [Wed, 5 Oct 2016 09:54:07 +0000 (11:54 +0200)]
correctly parse cciss devices in get_disks

cciss maps the devices to
/sys/block/cciss!cXdY

and not to

/sys/block/cXdY

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agofix #1135: refactor wear level parsing
Dominik Csapak [Wed, 5 Oct 2016 08:57:10 +0000 (10:57 +0200)]
fix #1135: refactor wear level parsing

refactored the wear level parsing into its
own function, where we can now define a
vendor <-> attribute id
mapping

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agomerge get_smart_data/health
Dominik Csapak [Wed, 5 Oct 2016 08:57:09 +0000 (10:57 +0200)]
merge get_smart_data/health

instead of parsing the output of smart in two places,
give get_smart_data a flag if we only want health

this fixes a bug (not on the bugtracker), where
an ssd with disabled smart had an empty string as health
in the gui

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agobump version to 4.0-63
Dietmar Maurer [Wed, 5 Oct 2016 05:16:45 +0000 (07:16 +0200)]
bump version to 4.0-63

7 years agofix #1123: modify NVME device path for SMART support
Fabian Grünbichler [Mon, 3 Oct 2016 11:53:37 +0000 (13:53 +0200)]
fix #1123: modify NVME device path for SMART support

seems like we need to drop the namespace part before calling
smartctl.

note that NVME devices require smartmontools >= 6.5

7 years agoadd return schema to smart API path
Fabian Grünbichler [Mon, 3 Oct 2016 11:53:36 +0000 (13:53 +0200)]
add return schema to smart API path

7 years agofix #1120: non-ATA disks with unstructured smart data
Fabian Grünbichler [Mon, 3 Oct 2016 11:53:35 +0000 (13:53 +0200)]
fix #1120: non-ATA disks with unstructured smart data

simple parser as fallback for non-ATA disks, just collect
all lines in the "SMART DATA" section.

7 years agofix #1120: SCSI SMART health parsing
Fabian Grünbichler [Mon, 3 Oct 2016 11:53:34 +0000 (13:53 +0200)]
fix #1120: SCSI SMART health parsing

SCSI disks report their health as "SMART Health Status: OK"

7 years agodisks: allow get_disks without smart checks
Fabian Grünbichler [Mon, 3 Oct 2016 11:53:33 +0000 (13:53 +0200)]
disks: allow get_disks without smart checks

the smart checks are only needed for the API call(s) that
list all disks and their status, but get_disks is also used
in disk usage checks and in the Ceph code, where the smart
status is completely irrelevant.

drop the implicit skipping of smart checks if $disk is set,
since we have an explicit parameter for this now.

7 years agobump version to 4.0-63
Dietmar Maurer [Thu, 29 Sep 2016 06:45:34 +0000 (08:45 +0200)]
bump version to 4.0-63

7 years agofix #1122: correctly create LUNs for linked clones
Fabian Grünbichler [Wed, 28 Sep 2016 11:53:42 +0000 (13:53 +0200)]
fix #1122: correctly create LUNs for linked clones

7 years agodisks: fix typo
Fabian Grünbichler [Wed, 28 Sep 2016 11:42:25 +0000 (13:42 +0200)]
disks: fix typo

7 years agodisks: parse smart attributes using RE
Fabian Grünbichler [Wed, 28 Sep 2016 11:42:24 +0000 (13:42 +0200)]
disks: parse smart attributes using RE

7 years agodisks: use smartctl -H -A
Fabian Grünbichler [Wed, 28 Sep 2016 11:42:23 +0000 (13:42 +0200)]
disks: use smartctl -H -A

to only list SMART health and attributes, instead of
"smartctl -a", which prints "all SMART information"

7 years agomove SMART error handling into get_disks
Fabian Grünbichler [Wed, 28 Sep 2016 11:42:22 +0000 (13:42 +0200)]
move SMART error handling into get_disks

because we never ever want to die in get_disks because of a
single disk, but the nodes/xyz/disks/smart API path is
allowed to fail if a disk device is unsupported by smartctl
or something else goes wrong.

7 years agoFix #1012: dir storage: add is_mountpoint option
Wolfgang Bumiller [Wed, 31 Aug 2016 08:29:09 +0000 (10:29 +0200)]
Fix #1012: dir storage: add is_mountpoint option

While the mkdir option deals with the case where we don't
want to clobber a mount point with directories (like ZFS,
gluster or NFS), putting a directory storage directly onto a
mount point is still risky:
If the path exists - which it usually does even if not
mounted - the storage will be considered successfully
activated, but empty (or with unexpected content). Some
operations will then lead to unexpected problems: the
free_disk operation for instance only warns if the disk does
not exist, but does not throw an error. In this case the
configuration might be updated without the real disk being
deleted. Once it's mounted back in, later operations which
check existing disks which are not part of the current VM
configuration (like migration) might error unexpectedly.

This adds an 'is_mountpoint' option to directory storages
which assumes the directory is an externally managed mount
point (eg. fstab or zfs) and changes activate_storage() to
throw an error if the path is not mounted.

7 years agopath based storages: improve the mkdir option
Wolfgang Bumiller [Wed, 31 Aug 2016 08:29:08 +0000 (10:29 +0200)]
path based storages: improve the mkdir option

So far this only prevented the creation of the toplevel
directory. This does not cover all problem cases,
particularly when said directory is supposed to be a mount
point, including NFS and glusterfs beside ZFS.

The directory based storages we have already use mkpath
whenever they need to create files, and for actions on files
which are supposed to exist it's fine if it errors out.
So it should also be safe to skip the creation of standard
subdirectories in activate_storage().

Additionally NFS and glusterfs storages should also accept
the mkdir option as they otherwise may exhibit similar
issues, eg. when an NFS storage is mounted onto a directory
inside a ZFS subvolume.

7 years agowhite space cleanups
Dietmar Maurer [Mon, 26 Sep 2016 11:40:02 +0000 (13:40 +0200)]
white space cleanups

7 years agoAvoid JavaScript gets a string 0.
Wolfgang Link [Mon, 26 Sep 2016 10:12:47 +0000 (12:12 +0200)]
Avoid JavaScript gets a string 0.

If the JavaScript gets a "0" it convents it to a boolean false.
So to ensure the GUI always get valid int we cast the values.

7 years agobump version to 4.0-61
Dietmar Maurer [Fri, 16 Sep 2016 05:59:14 +0000 (07:59 +0200)]
bump version to 4.0-61

7 years agoadd comments about LVM thin clones
Fabian Grünbichler [Thu, 15 Sep 2016 11:17:47 +0000 (13:17 +0200)]
add comments about LVM thin clones

7 years agofix typo
Fabian Grünbichler [Thu, 15 Sep 2016 11:17:48 +0000 (13:17 +0200)]
fix typo

7 years agoharmonize list_images code
Fabian Grünbichler [Thu, 15 Sep 2016 11:17:46 +0000 (13:17 +0200)]
harmonize list_images code

7 years agomove check for existing clones into own method
Fabian Grünbichler [Thu, 15 Sep 2016 11:17:45 +0000 (13:17 +0200)]
move check for existing clones into own method

and change its return type to boolean

7 years agoremove unused method
Fabian Grünbichler [Thu, 15 Sep 2016 11:17:44 +0000 (13:17 +0200)]
remove unused method

only used by test case, which should use what the rest of
the codebase uses as well

7 years agocode cleanup
Dietmar Maurer [Wed, 14 Sep 2016 09:31:10 +0000 (11:31 +0200)]
code cleanup

7 years agofix error message
Fabian Grünbichler [Tue, 13 Sep 2016 12:38:50 +0000 (14:38 +0200)]
fix error message

7 years agofix indentation
Fabian Grünbichler [Tue, 13 Sep 2016 12:38:49 +0000 (14:38 +0200)]
fix indentation

7 years agorbd: detect linked clones/base volumes correctly
Fabian Grünbichler [Tue, 13 Sep 2016 12:38:48 +0000 (14:38 +0200)]
rbd: detect linked clones/base volumes correctly

since the rbd images themselves are named differently than
the volumes in our config files, we need to recreate this
information from the parent relation in the ceph metadata,
otherwise list_images() might return wrong volume names/IDs

since list_images is used by PVE::Storage::vdisk_free() to
check for children still referencing a base image, because
of the wrong volume id RBDPlugin->parse_volname() does not
detect the base image of linked clones and the check fails.
this is thankfully mitigated by the protected status of the
base snapshot, but creates a rather confusing error message.

scenario (VM 701 is a linked clone of template VM 700):

$ qm config 700 | grep virtio0:
virtio0: ceph_qemu:base-700-disk-1,size=2G
$ qm config 701 | grep virtio0:
virtio0: ceph_qemu:base-700-disk-1/vm-701-disk-1,size=2G

before (pvesm list reports wrong volume ID, check fails):

$ pvesm list ceph_qemu
ceph_qemu:base-700-disk-1   raw 2147483648 700
ceph_qemu:vm-701-disk-1     raw 2147483648 701
$ pvesm free ceph_qemu:base-700-disk-1
snap_unprotect: can't unprotect; at least 1 child(ren) in pool rbd
rbd unprotect base-700-disk-1 snap '__base__' error: snap_unprotect: can't unprotect; at least 1 child(ren) in pool rbd

after (correct volume ID, check works as intended):

$ pvesm list ceph_qemu
ceph_qemu:base-700-disk-1                   raw 2147483648 700
ceph_qemu:base-700-disk-1/vm-701-disk-1     raw 2147483648 701
$ pvesm free ceph_qemu:base-700-disk-1
base volume 'base-700-disk-1' is still in use (use by 'base-700-disk-1/vm-701-disk-1')

7 years agorbd: use correct key to access hash elements
Fabian Grünbichler [Tue, 13 Sep 2016 12:38:47 +0000 (14:38 +0200)]
rbd: use correct key to access hash elements

7 years agobump version to 4.0-60
Dietmar Maurer [Fri, 9 Sep 2016 04:40:50 +0000 (06:40 +0200)]
bump version to 4.0-60

7 years agodo not automatically die on smartctl exit code > 0
Dominik Csapak [Thu, 8 Sep 2016 12:27:12 +0000 (14:27 +0200)]
do not automatically die on smartctl exit code > 0

since smartctl uses the return value to encode
disk health status (such as failure in the past)
we cannot die there, but have to parse the returncode

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agobump version to 4.0-59
Dietmar Maurer [Wed, 7 Sep 2016 09:14:29 +0000 (11:14 +0200)]
bump version to 4.0-59

7 years agoadd smartmontools as dependency
Dominik Csapak [Mon, 5 Sep 2016 14:18:20 +0000 (16:18 +0200)]
add smartmontools as dependency

since we need it in the diskmanager module, add it as a
dependency

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agouse new repoman for upload target
Dietmar Maurer [Wed, 7 Sep 2016 07:35:58 +0000 (09:35 +0200)]
use new repoman for upload target

7 years agobump version to 4.0-58
Dietmar Maurer [Wed, 7 Sep 2016 07:14:53 +0000 (09:14 +0200)]
bump version to 4.0-58

7 years agosheepdog 1.0 changed the path from /usr/sbin/dog to /usr/bin/dog
Dietmar Maurer [Wed, 7 Sep 2016 07:11:43 +0000 (09:11 +0200)]
sheepdog 1.0 changed the path from /usr/sbin/dog to /usr/bin/dog

7 years agoadd api entries for disk management
Dominik Csapak [Tue, 23 Aug 2016 10:20:46 +0000 (12:20 +0200)]
add api entries for disk management

adds a new class (intended to be used under nodes in pve-manager)
which adds the three api calls: list, smart and init

list being a general list of the available disk with infos
smart being a call to get the smart data from a given device
init being a call to write a gpt header to an unused disk

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoadd Diskmanage Utilities
Dominik Csapak [Tue, 23 Aug 2016 10:20:45 +0000 (12:20 +0200)]
add Diskmanage Utilities

this adds the functions for listing the disks (mostly copied from
the ceph code), checking if a disk is a valid blockdevice, if it
is used/in a zfs pool/as an lvm pv, and an init function (just to add a gpt header;
this is important if one wants to use a fresh disk for ceph journals)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agowhite space cleanups
Dietmar Maurer [Thu, 1 Sep 2016 04:28:54 +0000 (06:28 +0200)]
white space cleanups

7 years agorbd_unittobytes: use a local var instead of a sub
Dietmar Maurer [Thu, 1 Sep 2016 04:24:51 +0000 (06:24 +0200)]
rbd_unittobytes: use a local var instead of a sub

7 years agorbd: allow to use client custom ceph conf for each storeid
Alexandre Derumier [Wed, 24 Aug 2016 07:55:48 +0000 (09:55 +0200)]
rbd: allow to use client custom ceph conf for each storeid

If you want to use different ceph storage,
something they have differents values like ms_nocrc = true.(they are also others ones).

The client need to specify theses special options to be able to connect

This patch allow to create a ceph config file for each storeid in

/etc/pve/priv/ceph/$storeid.conf

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
7 years agoAdd support for custom storage plugins
Dmitry Petuhov [Fri, 26 Aug 2016 13:06:33 +0000 (16:06 +0300)]
Add support for custom storage plugins

PVE team cannot support specialized vendor-specific storage
plugins because of lack of hardware. But we can allow users to
add own plugins for their storages without need to rewrite any
PVE code and thus ease PVE updates to them.

Idea of this patch is to add folder /usr/share/perl5/PVE/Storage/Custom
where user can place his plugins and PVE will automatically load
them on start or warn if it could not and continue. Maybe we could
even load all plugins (except PVE::Storage::Plugin itself) this way,
because current storage plugins are not really plugins, if they
need to be explicitly loaded in PVE code :-).

Custom plugins MUST have api() method returning version for which
it was designed. If API changes from PVE side, module is just not
being registered and warnig message is printed do log, so user have
to update module. Until module update, corresponding storage will
just disappear from PVE, so it shall not impose any data damage
because of API change.

This approach works (with some limitations) if plugin works in
generic PVE way: full control of volumes lifecycle. And will not
currently work for custom plugins like iSCSI, which needs to select
pre-existing volumes. Maybe someone will add more flexible way to
pve-manager to select input elements for storage plugins to target
this.

Currently tested with my NetApp plugin.

Signed-off-by: Dmitry Petuhov <mityapetuhov@gmail.com>
7 years agobump version to 4.0-57
Wolfgang Bumiller [Fri, 19 Aug 2016 12:59:41 +0000 (14:59 +0200)]
bump version to 4.0-57

7 years agoremove compression option from lvm migration
Dominik Csapak [Thu, 4 Aug 2016 09:30:53 +0000 (11:30 +0200)]
remove compression option from lvm migration

ssh(1) mentions that compression is only disirable on slow
connections.

since migration from cluster node to cluster node needs a
fast network anyway, we can drop the compression for
a speed improvement

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agofix spelling / grammar
Fabian Grünbichler [Wed, 13 Jul 2016 11:10:30 +0000 (13:10 +0200)]
fix spelling / grammar

7 years agobump version to 4.0-56
Wolfgang Bumiller [Mon, 11 Jul 2016 12:24:32 +0000 (14:24 +0200)]
bump version to 4.0-56

7 years agoRemove unused pve-storage-monhost format
Wolfgang Bumiller [Mon, 11 Jul 2016 11:55:49 +0000 (13:55 +0200)]
Remove unused pve-storage-monhost format

7 years agorbd: use pve-storage-portal-dns-list for monhost
Wolfgang Bumiller [Mon, 11 Jul 2016 11:55:48 +0000 (13:55 +0200)]
rbd: use pve-storage-portal-dns-list for monhost

This way we get parameter verification on monitor addresses
as well as the ability to pass multiple `--monhost`
arguments to `pvesm add`.

Since our '-list' schemas default to using commas we now
need to properly support these, so all uses of the monhost
property now replace all of semicolon, space or comma into
the currently required character.
This should fix the issues reported by Alwin Antreich on the
pve-user list.

Since this schema supports both ipv6+port notations we need
to make sure we convert to the bracket enclosed variant.
Added a helper for this.

7 years agorbd: path: don't build the entire path if we don't use it
Wolfgang Bumiller [Mon, 11 Jul 2016 11:55:47 +0000 (13:55 +0200)]
rbd: path: don't build the entire path if we don't use it

7 years agofix indentation
Fabian Grünbichler [Tue, 21 Jun 2016 13:13:46 +0000 (15:13 +0200)]
fix indentation

7 years agoadd tagged_only option to LVM storage
Fabian Grünbichler [Tue, 21 Jun 2016 13:13:45 +0000 (15:13 +0200)]
add tagged_only option to LVM storage

to filter volumes by the 'pve-vm-ID' tag, which is set on
all volumes created via the PVE storage layer.

7 years agoadd check if format is defined to avoid warning
Wolfgang Link [Mon, 27 Jun 2016 10:24:26 +0000 (12:24 +0200)]
add check if format is defined to avoid warning

7 years agobump version to 4.0-55
Dietmar Maurer [Fri, 17 Jun 2016 12:57:10 +0000 (14:57 +0200)]
bump version to 4.0-55

7 years agofix #1033 storage_migrate on LVMThin - add die.
Wolfgang Link [Fri, 17 Jun 2016 12:28:15 +0000 (14:28 +0200)]
fix #1033 storage_migrate on LVMThin - add die.

This is necessary to ensure the process will proper finished.

7 years agofix #1022 correct typo
Wolfgang Link [Tue, 14 Jun 2016 07:39:36 +0000 (09:39 +0200)]
fix #1022 correct typo

7 years agobump version to 4.0-54
Dietmar Maurer [Tue, 14 Jun 2016 09:47:41 +0000 (11:47 +0200)]
bump version to 4.0-54

7 years agouse correct ceph version command
Fabian Grünbichler [Tue, 14 Jun 2016 09:39:42 +0000 (11:39 +0200)]
use correct ceph version command

"ceph version" retrieves the version from the cluster (i.e.,
from the queried monitor), but what is needed here is the
local ceph version, which is returned by "ceph --version".

7 years agobump version to 4.0-53
Dietmar Maurer [Thu, 9 Jun 2016 16:16:57 +0000 (18:16 +0200)]
bump version to 4.0-53

7 years agoDir storage creation: check for a sane path
Wolfgang Bumiller [Thu, 9 Jun 2016 14:54:49 +0000 (16:54 +0200)]
Dir storage creation: check for a sane path

Ideally we don't need this, but this with the directory
storage this is a user-input field which gets returned
by the storage's path() method which is used in various
external command calls.

7 years agosplit udevam command call
Wolfgang Bumiller [Thu, 9 Jun 2016 14:54:48 +0000 (16:54 +0200)]
split udevam command call

7 years agoupload: whitelist filename chars instead of blacklisting
Wolfgang Bumiller [Thu, 9 Jun 2016 14:54:47 +0000 (16:54 +0200)]
upload: whitelist filename chars instead of blacklisting

7 years agofix for storage migrate
Wolfgang Link [Wed, 8 Jun 2016 11:42:53 +0000 (13:42 +0200)]
fix for storage migrate

remove the sparse parameter from dd.
This destroy the lvm volume.

also remove the free_disk this will later be done.

7 years agocode cleanups
Dietmar Maurer [Wed, 8 Jun 2016 07:00:26 +0000 (09:00 +0200)]
code cleanups

7 years agocleanup: improve error message
Dietmar Maurer [Wed, 8 Jun 2016 06:36:18 +0000 (08:36 +0200)]
cleanup: improve error message

7 years agoAdd LVM-thin storage migration
Wolfgang Link [Tue, 7 Jun 2016 13:33:10 +0000 (15:33 +0200)]
Add LVM-thin storage migration

It is now possibel to migrate LVM-thin volumes offline from one node to an other.
Also LVM what is used by Qemu.

7 years agofix 1012: dir: add mkdir option
Wolfgang Bumiller [Mon, 6 Jun 2016 13:44:45 +0000 (15:44 +0200)]
fix 1012: dir: add mkdir option

By default a directory storage creates its path. In some
cases this can be undesired, mostly when storages have
nested paths (eg. a dir storage on a ZFS path or in an NFS
share, or inside custom mount points).
As a simple fix to this the 'mkdir' option (default ON)
can now be used to disable this behavior.

7 years agos/version_parser/ceph_version_parser/
Dietmar Maurer [Tue, 7 Jun 2016 08:32:42 +0000 (10:32 +0200)]
s/version_parser/ceph_version_parser/

7 years agobump version to 4.0-52
Dietmar Maurer [Tue, 7 Jun 2016 08:30:23 +0000 (10:30 +0200)]
bump version to 4.0-52

7 years agodisable jewel image features when using krdb
Fabian Grünbichler [Tue, 7 Jun 2016 06:45:43 +0000 (08:45 +0200)]
disable jewel image features when using krdb

otherwise mapping those images will fail. disabling the
features only needs to be done once per image, so it makes
sense to do this when creating the images.

unfortunately, the command does not work in hammer, so
it needs a version check for jewel or higher.

7 years agoadd ceph version helpers
Fabian Grünbichler [Tue, 7 Jun 2016 06:45:42 +0000 (08:45 +0200)]
add ceph version helpers

7 years agobump version to 4.0-51
Dietmar Maurer [Fri, 3 Jun 2016 10:06:00 +0000 (12:06 +0200)]
bump version to 4.0-51

7 years agoadd pvesm extractconfig
Fabian Grünbichler [Fri, 3 Jun 2016 09:08:08 +0000 (11:08 +0200)]
add pvesm extractconfig

7 years agoadd extract vzdump config methods
Fabian Grünbichler [Fri, 3 Jun 2016 09:08:07 +0000 (11:08 +0200)]
add extract vzdump config methods

extract_vzdump_config_tar is an adapted combination
of tar_archive_search_conf() and the first part of
recover_config(), both from PVE::LXC::Create.

a compressed vma backup file needs special error
handling because vma exits as soon as it found the config
file, which the used decompressors treat as error.

8 years agodocs: typo, newlines, cleanup
Fabian Grünbichler [Fri, 15 Apr 2016 11:11:47 +0000 (13:11 +0200)]
docs: typo, newlines, cleanup

8 years agobump version to 4.0-50
Dietmar Maurer [Fri, 15 Apr 2016 06:09:41 +0000 (08:09 +0200)]
bump version to 4.0-50

8 years agoDRBDPlugin: check_drbd_res() ignore info codes
Dietmar Maurer [Fri, 15 Apr 2016 06:07:01 +0000 (08:07 +0200)]
DRBDPlugin: check_drbd_res() ignore info codes

Messages for return codes 1 to 99 are not considered an error.

8 years agorbd: fix error message
Wolfgang Bumiller [Mon, 11 Apr 2016 10:52:42 +0000 (12:52 +0200)]
rbd: fix error message

8 years agogenerate manpage with pve-doc-generator, bump version to 4.0-49
Dietmar Maurer [Wed, 6 Apr 2016 09:26:44 +0000 (11:26 +0200)]
generate manpage with pve-doc-generator, bump version to 4.0-49

8 years agoIn path use parsed volname not the volid and add 'basevol'
Wolfgang Link [Mon, 4 Apr 2016 11:58:34 +0000 (13:58 +0200)]
In path use parsed volname not the volid and add 'basevol'

8 years agoadd test PVE::Storage::path
Wolfgang Link [Mon, 4 Apr 2016 11:58:33 +0000 (13:58 +0200)]
add test PVE::Storage::path

8 years agoSelect test form command
Wolfgang Link [Mon, 4 Apr 2016 11:58:32 +0000 (13:58 +0200)]
Select test form command

It is possible to select the test what should run.
synopsis: run_test_zfspoolplugin.pl [<test_num> | <start_test_num> <end_test_num>]

8 years agobump version to 4.0-48
Dietmar Maurer [Mon, 4 Apr 2016 06:56:56 +0000 (08:56 +0200)]
bump version to 4.0-48

8 years agozfs_parse_zvol_list: simplify regex
Dietmar Maurer [Mon, 4 Apr 2016 06:51:13 +0000 (08:51 +0200)]
zfs_parse_zvol_list: simplify regex

8 years agofix zfs tests: isBase is a boolean flag
Dietmar Maurer [Mon, 4 Apr 2016 06:50:12 +0000 (08:50 +0200)]
fix zfs tests: isBase is a boolean flag

8 years agoAdd Tests for ZFSPoolPlugin
Wolfgang Link [Thu, 31 Mar 2016 07:10:23 +0000 (09:10 +0200)]
Add Tests for ZFSPoolPlugin

8 years agoChange zfs path when link clone are used
Wolfgang Link [Thu, 31 Mar 2016 07:10:22 +0000 (09:10 +0200)]
Change zfs path when link clone are used

The new naming is coherent to Dir plugin.

So if we make an licked clone the parent will be coded in the path of the storage.

8 years agoSkip invalid property's in storage parser
Wolfgang Link [Thu, 31 Mar 2016 13:18:38 +0000 (15:18 +0200)]
Skip invalid property's in storage parser

There is no need to remove the hole storage, if one property is not valid.
Just ignore the property.

8 years agoAdd write_config, drop cfs_read_file
Fabian Grünbichler [Fri, 25 Mar 2016 14:07:24 +0000 (15:07 +0100)]
Add write_config, drop cfs_read_file

Use PVE::Storage::config() and the new
PVE::Storage::write_config() instead of cfs_read_file and
cfs_write_file with a hardcoded filename.