]> git.proxmox.com Git - pve-storage.git/log
pve-storage.git
8 years agoiSCSI ipv6 support
Wolfgang Bumiller [Mon, 31 Aug 2015 09:02:25 +0000 (11:02 +0200)]
iSCSI ipv6 support

8 years agobump version to 4.0-17
Dietmar Maurer [Fri, 28 Aug 2015 09:42:40 +0000 (11:42 +0200)]
bump version to 4.0-17

8 years agofix to prevent uninitialized variable massage.
Wolfgang Link [Fri, 28 Aug 2015 09:12:50 +0000 (11:12 +0200)]
fix to prevent uninitialized variable massage.

8 years agoscan_zfs: ignore subvolumes generated by our ZFSPoolPlugin
Dietmar Maurer [Fri, 28 Aug 2015 09:01:41 +0000 (11:01 +0200)]
scan_zfs: ignore subvolumes generated by our ZFSPoolPlugin

8 years agoallow subvolume selection in ZPool storage
Wolfgang Bumiller [Thu, 27 Aug 2015 12:53:12 +0000 (14:53 +0200)]
allow subvolume selection in ZPool storage

8 years agopath: corretly implement path to snapshots
Dietmar Maurer [Thu, 27 Aug 2015 10:03:46 +0000 (12:03 +0200)]
path: corretly implement path to snapshots

8 years agoAdd content type rootfs to RBD and extend manual
Wolfgang Link [Tue, 25 Aug 2015 07:47:53 +0000 (09:47 +0200)]
Add content type rootfs to RBD and extend manual

8 years agobump versionm to 4.0-16
Dietmar Maurer [Wed, 19 Aug 2015 13:41:19 +0000 (15:41 +0200)]
bump versionm to 4.0-16

8 years agoremove storage access permissions after delete
Alen Grizonic [Wed, 19 Aug 2015 08:28:13 +0000 (10:28 +0200)]
remove storage access permissions after delete

8 years agoadded remove storage (exist) check
Alen Grizonic [Wed, 19 Aug 2015 08:28:12 +0000 (10:28 +0200)]
added remove storage (exist) check

8 years agobump version to 4.0-15
Dietmar Maurer [Tue, 18 Aug 2015 14:28:10 +0000 (16:28 +0200)]
bump version to 4.0-15

8 years agoupload API: safer filename handling
Wolfgang Bumiller [Tue, 18 Aug 2015 11:54:06 +0000 (13:54 +0200)]
upload API: safer filename handling

Replace possibly-dangerous characters in uploaded filenames
with underscores, this includes spaces, colons, commas,
equal signs and any byte >= 128. Previously only spaces were
turned into underscores.

Also shell_quote the destination for scp.

Use '--' for some shell commands for safety.

Use brackets around the scp destination for ipv6 support.

8 years agoparse_volname: document return values
Dietmar Maurer [Wed, 12 Aug 2015 05:34:58 +0000 (07:34 +0200)]
parse_volname: document return values

8 years agoparse_volname: always return image format
Dietmar Maurer [Wed, 12 Aug 2015 05:01:07 +0000 (07:01 +0200)]
parse_volname: always return image format

8 years agoZFSPoolPlugin: improve subvol support
Dietmar Maurer [Wed, 12 Aug 2015 04:49:15 +0000 (06:49 +0200)]
ZFSPoolPlugin: improve subvol support

- return format with parse_volname
- consider subvol in zfs_find_free_diskname

8 years agoadd subvol support for directory storage
Dietmar Maurer [Wed, 12 Aug 2015 04:04:41 +0000 (06:04 +0200)]
add subvol support for directory storage

This storage type does not support subvol quotas, so we
only allow this if vdisk_alloc is called with size=0.

8 years agozfs_parse_zvol_list: do not add pool to volname
Dietmar Maurer [Mon, 10 Aug 2015 14:53:19 +0000 (16:53 +0200)]
zfs_parse_zvol_list: do not add pool to volname

Else, alloc and list return different volids.

8 years agostorage_info: fix content filter
Dietmar Maurer [Mon, 10 Aug 2015 08:05:01 +0000 (10:05 +0200)]
storage_info: fix content filter

List all storages if $content filter is undefined.

8 years agorbd: add support to krbd
Alexandre Derumier [Thu, 30 Jul 2015 07:57:31 +0000 (09:57 +0200)]
rbd: add support to krbd

Can be use by lxc (but also qemu)

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
8 years agobump version to 4.0-14
Dietmar Maurer [Fri, 7 Aug 2015 07:45:55 +0000 (09:45 +0200)]
bump version to 4.0-14

8 years agostorage status API: allow to filter multiple content types
Dietmar Maurer [Fri, 7 Aug 2015 07:44:22 +0000 (09:44 +0200)]
storage status API: allow to filter multiple content types

8 years agofix bug #664
Wolfgang Link [Thu, 23 Jul 2015 11:22:27 +0000 (13:22 +0200)]
fix bug #664

Catch the error, if the dataset doesn't exists.
If it will not catched, you can't remove a VM.

8 years agobump version to 4.0-13
Dietmar Maurer [Thu, 30 Jul 2015 06:50:53 +0000 (08:50 +0200)]
bump version to 4.0-13

8 years agomask world r and group wx permissions in vdisk_alloc
Wolfgang Bumiller [Tue, 21 Jul 2015 06:44:06 +0000 (08:44 +0200)]
mask world r and group wx permissions in vdisk_alloc

Avoid world-readable disk files being created as suggested
in #416 by setting an umask to strip world permissions as
well as group write/exec permissions before calling
alloc_image.

8 years agobump version to 4.0-12
Dietmar Maurer [Wed, 1 Jul 2015 08:08:19 +0000 (10:08 +0200)]
bump version to 4.0-12

8 years agoallow templates using .xz compression
Dietmar Maurer [Wed, 1 Jul 2015 08:06:24 +0000 (10:06 +0200)]
allow templates using .xz compression

8 years agoFix ZFSPoolPlugin path for subvol
Wolfgang Link [Mon, 22 Jun 2015 08:34:45 +0000 (10:34 +0200)]
Fix ZFSPoolPlugin path for subvol

Signed-off-by: Wolfgang Link <w.link@proxmox.com>
8 years agobump version to 4.0-11
Dietmar Maurer [Fri, 19 Jun 2015 10:12:04 +0000 (12:12 +0200)]
bump version to 4.0-11

8 years agodrbd: improve error messages
Dietmar Maurer [Fri, 19 Jun 2015 10:10:45 +0000 (12:10 +0200)]
drbd: improve error messages

8 years agobump version to 4.0-10
Dietmar Maurer [Thu, 18 Jun 2015 11:53:42 +0000 (13:53 +0200)]
bump version to 4.0-10

8 years agodrbd: implement deactivate_volume (but code is disabled for now)
Dietmar Maurer [Thu, 18 Jun 2015 11:06:30 +0000 (13:06 +0200)]
drbd: implement deactivate_volume (but code is disabled for now)

8 years agodrbd: use old code to wait for diskless assignment
Dietmar Maurer [Thu, 18 Jun 2015 10:21:44 +0000 (12:21 +0200)]
drbd: use old code to wait for diskless assignment

8 years agodrbd: remov hack, because bug is fixed upstream
Dietmar Maurer [Thu, 18 Jun 2015 09:55:56 +0000 (11:55 +0200)]
drbd: remov hack, because bug is fixed upstream

see http://git.drbd.org/gitweb.cgi?p=drbdmanage.git;a=commitdiff;h=8056e58b929673afb2d4a33d82fdeea4d43f8667

8 years agodrbd: correctly check all result codes
Dietmar Maurer [Thu, 18 Jun 2015 09:45:04 +0000 (11:45 +0200)]
drbd: correctly check all result codes

8 years agodrbd: correctly wait for diskless assignments
Dietmar Maurer [Thu, 18 Jun 2015 04:27:19 +0000 (06:27 +0200)]
drbd: correctly wait for diskless assignments

8 years agodrbd: improve workaround for set_drbdsetup_props
Dietmar Maurer [Thu, 18 Jun 2015 04:21:38 +0000 (06:21 +0200)]
drbd: improve workaround for set_drbdsetup_props

8 years agobump version to 4.0-9
Dietmar Maurer [Wed, 17 Jun 2015 09:26:32 +0000 (11:26 +0200)]
bump version to 4.0-9

8 years agodrbd: call set_drbdsetup_props after auto-deploy
Dietmar Maurer [Wed, 17 Jun 2015 09:23:52 +0000 (11:23 +0200)]
drbd: call set_drbdsetup_props after auto-deploy

Else it gets not assigned. For some unknown reason, we need to sleep
to avoid a split brain?!

8 years agobump version to 4.0-8
Dietmar Maurer [Wed, 17 Jun 2015 06:59:03 +0000 (08:59 +0200)]
bump version to 4.0-8

8 years agodrbd: set allow-two-primaries=yes
Dietmar Maurer [Wed, 17 Jun 2015 06:57:32 +0000 (08:57 +0200)]
drbd: set allow-two-primaries=yes

So that we can do live migrations.

8 years agobump version to 4.0-7
Dietmar Maurer [Tue, 16 Jun 2015 08:06:35 +0000 (10:06 +0200)]
bump version to 4.0-7

8 years agoinstall trigger for pve-api-updates
Dietmar Maurer [Tue, 16 Jun 2015 08:05:22 +0000 (10:05 +0200)]
install trigger for pve-api-updates

8 years agobump version to 4.0-6
Dietmar Maurer [Wed, 10 Jun 2015 08:56:53 +0000 (10:56 +0200)]
bump version to 4.0-6

8 years agoFix nfsscan
Wolfgang Link [Tue, 9 Jun 2015 08:01:48 +0000 (10:01 +0200)]
Fix nfsscan

Signed-off-by: Wolfgang Link <w.link@proxmox.com>
8 years agoinclude ::1 in localhost check in get_active_server
Wolfgang Bumiller [Tue, 26 May 2015 14:10:30 +0000 (16:10 +0200)]
include ::1 in localhost check in get_active_server

8 years agoNFS: replace rpcinfo with showmounts
Wolfgang Bumiller [Thu, 21 May 2015 08:24:52 +0000 (10:24 +0200)]
NFS: replace rpcinfo with showmounts

rpcinfo from rpcbind-0.2.1 in debian doesn't support ipv6 addresses.
At the same time the used command only actually tests for
portmapper/rpcbind availability, not for NFS directly.
Storage::scan_nfs uses /sbin/showmount to get a list of NFS exports from a
server and happily accepts ipv6 addresses. It is also more specific to NFS.

Replacing the rpcinfo call with showmount here means checking explicitly
for NFS and supporting IPv6 without the need for an updated rpcbind
package.

8 years agoNFSPlugin: deal with ipv6 addresses and fix regexps
Wolfgang Bumiller [Wed, 20 May 2015 14:57:31 +0000 (16:57 +0200)]
NFSPlugin: deal with ipv6 addresses and fix regexps

NFS needs brackets around ipv6 addresses.
Also: nfs_is_mounted needs to quote the variables. This becomes apparent
when ipv6 addresses are used as then the address would otherwise be
treated as a character class, causing the check to always fail.

8 years agoallow ipv6 addresses in Storage::verify_server
Wolfgang Bumiller [Wed, 20 May 2015 14:57:30 +0000 (16:57 +0200)]
allow ipv6 addresses in Storage::verify_server

Replaced regex with existing PVE::JSONSchema::verify_... functions.

8 years agodrbd: avoid warning about undefined value
Dietmar Maurer [Mon, 18 May 2015 12:15:35 +0000 (14:15 +0200)]
drbd: avoid warning about undefined value

8 years agofix typo
Dietmar Maurer [Mon, 18 May 2015 12:12:59 +0000 (14:12 +0200)]
fix typo

8 years agobump version to 4.0-5
Dietmar Maurer [Tue, 12 May 2015 08:40:12 +0000 (10:40 +0200)]
bump version to 4.0-5

8 years agoipv6 support for Storage::resolv_server
Wolfgang Bumiller [Tue, 12 May 2015 07:42:37 +0000 (09:42 +0200)]
ipv6 support for Storage::resolv_server

While in posix gethostbyname(3) does support ipv6, perl's gethostbyname
usually returns wrong results for names, or no results for ipv6
addresses. Since we provide a getaddrinfo helper already, we now use
that instead.

8 years agoremove running from Storage and check it in QemuServer
Wolfgang Link [Wed, 6 May 2015 07:57:35 +0000 (09:57 +0200)]
remove running from Storage and check it in QemuServer

It is better to check if a VM is running in QemuServer then in Storage.
for the Storage there is no difference if it is running or not.

Signed-off-by: Wolfgang Link <w.link@proxmox.com>
9 years agozfspool: new format 'subvol' to handle filesystems inside datasets
Dietmar Maurer [Fri, 1 May 2015 12:42:49 +0000 (14:42 +0200)]
zfspool: new format 'subvol' to handle filesystems inside datasets

We use this for containers.

9 years agocorrectly parse lxc backup files
Dietmar Maurer [Fri, 1 May 2015 09:29:15 +0000 (11:29 +0200)]
correctly parse lxc backup files

9 years agoZFSPoolPlugin: allow nested datasets
Dietmar Maurer [Thu, 30 Apr 2015 04:45:29 +0000 (06:45 +0200)]
ZFSPoolPlugin: allow nested datasets

9 years agoadd newlines to error messages
Dietmar Maurer [Wed, 29 Apr 2015 04:59:48 +0000 (06:59 +0200)]
add newlines to error messages

9 years agowhitespace cleanups
Dietmar Maurer [Mon, 27 Apr 2015 08:09:18 +0000 (10:09 +0200)]
whitespace cleanups

9 years agoimplement offline migration on zfs
Wolfgang Link [Mon, 27 Apr 2015 07:27:47 +0000 (09:27 +0200)]
implement offline migration on zfs

Signed-off-by: Wolfgang Link <w.link@proxmox.com>
9 years agobump version to 4.0-4
Dietmar Maurer [Mon, 23 Mar 2015 11:52:27 +0000 (12:52 +0100)]
bump version to 4.0-4

9 years agoDRBDPlugin: hack - wait until device is acessible
Dietmar Maurer [Mon, 23 Mar 2015 11:50:13 +0000 (12:50 +0100)]
DRBDPlugin: hack - wait until device is acessible

9 years agoDRBDPlugin: automatically create diskless assignments
Dietmar Maurer [Mon, 23 Mar 2015 10:44:04 +0000 (11:44 +0100)]
DRBDPlugin: automatically create diskless assignments

9 years agoDRBDPlugin: correctly use default redundancy
Dietmar Maurer [Mon, 23 Mar 2015 08:38:39 +0000 (09:38 +0100)]
DRBDPlugin: correctly use default redundancy

9 years agomark drbd as shared storage
Dietmar Maurer [Sat, 21 Mar 2015 10:20:18 +0000 (11:20 +0100)]
mark drbd as shared storage

9 years agoDRBDPlugin: fix bug in status
Dietmar Maurer [Sat, 21 Mar 2015 10:02:47 +0000 (11:02 +0100)]
DRBDPlugin: fix bug in status

9 years agobump version to 4.0-3
Dietmar Maurer [Sat, 21 Mar 2015 09:58:44 +0000 (10:58 +0100)]
bump version to 4.0-3

9 years agoDRBDPlugin: use Net::DBus
Dietmar Maurer [Sat, 21 Mar 2015 09:58:06 +0000 (10:58 +0100)]
DRBDPlugin: use Net::DBus

9 years agoadd dummy for DRBD9
Dietmar Maurer [Fri, 20 Mar 2015 16:44:15 +0000 (17:44 +0100)]
add dummy for DRBD9

9 years agopvesm add: pass storage type as first argument
Dietmar Maurer [Fri, 20 Mar 2015 15:52:18 +0000 (16:52 +0100)]
pvesm add: pass storage type as first argument

9 years agofix rpcinfo path
Wolfgang Link [Tue, 3 Mar 2015 08:41:30 +0000 (09:41 +0100)]
fix rpcinfo path

change path in jessie of package rpcbind
from /usr/bin/rpcinfo to /usr/sbin/rpcinfo

Signed-off-by: Wolfgang Link <w.link@proxmox.com>
9 years agobump version to 4.0-2
Dietmar Maurer [Fri, 6 Mar 2015 09:17:41 +0000 (10:17 +0100)]
bump version to 4.0-2

9 years agofix bug #602: now zfs will wait 5 sec if error msg is "dataset is busy"
Wolfgang Link [Fri, 6 Mar 2015 08:38:30 +0000 (09:38 +0100)]
fix bug #602: now zfs will wait 5 sec if error msg is "dataset is busy"

Signed-off-by: Wolfgang Link <w.link@proxmox.com>
9 years agodepend on cstream
Dietmar Maurer [Fri, 6 Mar 2015 07:35:54 +0000 (08:35 +0100)]
depend on cstream

Because it is used by new LVM saferemove_throughput option.

9 years agoFixed LV cleaning function. saferemove_throughput parameter added.
Pawel Boguslawski [Wed, 4 Mar 2015 07:27:12 +0000 (08:27 +0100)]
Fixed LV cleaning function. saferemove_throughput parameter added.

Signed-off-by: Pawel Boguslawski <pawel.boguslawski@ib.pl>
9 years agorbd: monhost string : escape only ":" character
Alexandre Derumier [Thu, 5 Mar 2015 09:29:29 +0000 (10:29 +0100)]
rbd: monhost string : escape only ":" character

we need to escape ":" used to defined mon ports

"10.5.0.11:6789; 10.5.0.12:6789; 10.5.0.13:6789"

->

"10.5.0.11\:6789; 10.5.0.12\:6789; 10.5.0.13\:6789"

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
9 years agoupdate package dependencies for Debian Jessie
Dietmar Maurer [Thu, 26 Feb 2015 12:38:01 +0000 (13:38 +0100)]
update package dependencies for Debian Jessie

9 years agobump version to 3.0-31
Dietmar Maurer [Mon, 16 Feb 2015 10:36:47 +0000 (11:36 +0100)]
bump version to 3.0-31

9 years agochange var name to prevent side effects.
Wolfgang Link [Mon, 16 Feb 2015 09:14:50 +0000 (10:14 +0100)]
change var name to prevent side effects.

Signed-off-by: Wolfgang Link <w.link@proxmox.com>
9 years agoBug-fix alloc_image in ZFSPlugin.pm
Wolfgang Link [Mon, 16 Feb 2015 09:14:49 +0000 (10:14 +0100)]
Bug-fix alloc_image in ZFSPlugin.pm

Signed-off-by: Wolfgang Link <w.link@proxmox.com>
9 years agobump version to 3.0-30
Dietmar Maurer [Thu, 12 Feb 2015 08:42:31 +0000 (09:42 +0100)]
bump version to 3.0-30

9 years agobug-fix for size output
Wolfgang Link [Thu, 12 Feb 2015 10:38:17 +0000 (11:38 +0100)]
bug-fix for size output

Signed-off-by: Wolfgang Link <w.link@proxmox.com>
9 years agoZFSPoolPlugin: use udevadm settle with --exit-if-exists
Dietmar Maurer [Thu, 12 Feb 2015 10:40:55 +0000 (11:40 +0100)]
ZFSPoolPlugin: use udevadm settle with --exit-if-exists

And silently ignore error if that command fails.

9 years agocleanup error messages
Dietmar Maurer [Thu, 12 Feb 2015 08:40:17 +0000 (09:40 +0100)]
cleanup error messages

9 years agocall volume_rollback_is_possible from PVE::Storage::volume_snapshot_rollback
Dietmar Maurer [Thu, 12 Feb 2015 08:28:52 +0000 (09:28 +0100)]
call volume_rollback_is_possible from PVE::Storage::volume_snapshot_rollback

That way it is automatically called for all plungins.

9 years agoStorage: add method volume_rollback_is_possible
Wolfgang Link [Thu, 12 Feb 2015 07:41:35 +0000 (08:41 +0100)]
Storage: add method volume_rollback_is_possible

add method volume_rollback_is_possible and redactor
Improve error handling
If snapshot is not reversible catch it before vm will lock and shutdown.
This is the case if zfs has an younger snapshot.

Signed-off-by: Wolfgang Link <w.link@proxmox.com>
9 years agozfspoolplugin: fix volume_resize
Wolfgang Link [Tue, 10 Feb 2015 11:24:26 +0000 (12:24 +0100)]
zfspoolplugin: fix volume_resize

copy methode volume_resize form ZFSPlugin.pm to ZFSPoolPlugin.pm
refactor volume_resize

Signed-off-by: Wolfgang Link <w.link@proxmox.com>
9 years agobump version to 3.0-29
Dietmar Maurer [Mon, 9 Feb 2015 11:28:15 +0000 (12:28 +0100)]
bump version to 3.0-29

9 years agozfs: auto import after reboot
Wolfgang Link [Tue, 3 Feb 2015 11:59:08 +0000 (12:59 +0100)]
zfs: auto import after reboot

this is necessary, because after a reboot all pools except rpool are gone

Signed-off-by: Wolfgang Link <w.link@proxmox.com>
9 years agoZfsPoolPlugin: fix add disks
Wolfgang Link [Mon, 2 Feb 2015 08:48:09 +0000 (09:48 +0100)]
ZfsPoolPlugin: fix add disks

now it is possible add disk to an vm on rpool

Signed-off-by: Wolfgang Link <w.link@proxmox.com>
9 years agobump version to 3.0-28
Dietmar Maurer [Fri, 30 Jan 2015 05:27:26 +0000 (06:27 +0100)]
bump version to 3.0-28

9 years agozfs: fix wait by alloc_image
Wolfgang Link [Wed, 28 Jan 2015 09:37:58 +0000 (10:37 +0100)]
zfs: fix wait by alloc_image

Signed-off-by: Wolfgang Link <w.link@proxmox.com>
9 years agoimplement zfsscan to list local zfs pools
Dietmar Maurer [Mon, 26 Jan 2015 08:05:09 +0000 (09:05 +0100)]
implement zfsscan to list local zfs pools

9 years agomove activate_storage into ZFSPoolPlugin
Dietmar Maurer [Sat, 24 Jan 2015 13:30:10 +0000 (14:30 +0100)]
move activate_storage into ZFSPoolPlugin

9 years agorename ZFSDirPlugin to ZFSPoolPlugin
Dietmar Maurer [Sat, 24 Jan 2015 13:13:24 +0000 (14:13 +0100)]
rename ZFSDirPlugin to ZFSPoolPlugin

Turned out it makes no sense to duplicated DirPlugin features. So I
also changed the name to make it less confusing. So we can only
create zvols inside a zfs pool with this plugin.

9 years agobump version to 3.0-27
Dietmar Maurer [Fri, 23 Jan 2015 12:02:31 +0000 (13:02 +0100)]
bump version to 3.0-27

9 years agozfs: remove useless warning inside clone_image
Dietmar Maurer [Fri, 23 Jan 2015 11:44:50 +0000 (12:44 +0100)]
zfs: remove useless warning inside clone_image

9 years agozfs: move and refactor code
Wolfgang Link [Fri, 23 Jan 2015 09:32:45 +0000 (10:32 +0100)]
zfs: move and refactor code

copy and modify create_base and refactor clone_image

Signed-off-by: Wolfgang Link <w.link@proxmox.com>
9 years agozfs: implement zfs_get_latest_snapshot
Dietmar Maurer [Fri, 23 Jan 2015 11:38:21 +0000 (12:38 +0100)]
zfs: implement zfs_get_latest_snapshot

To improve code sharing.

9 years agozfs: move code fix metode call
Wolfgang Link [Fri, 23 Jan 2015 09:32:44 +0000 (10:32 +0100)]
zfs: move code fix metode call

duplicate code because can't refactor volume_snapshot_rollback

Signed-off-by: Wolfgang Link <w.link@proxmox.com>
9 years agozfs: move code
Wolfgang Link [Fri, 23 Jan 2015 09:32:43 +0000 (10:32 +0100)]
zfs: move code

move activate_volume deactivate_volume from ZFSPlugin to ZFSDirPlugin

Signed-off-by: Wolfgang Link <w.link@proxmox.com>