Commit Graph

441 Commits

Author SHA1 Message Date
402df80b12 added remove storage (exist) check 2015-08-19 15:14:29 +02:00
48daf9a56b bump version to 4.0-15 2015-08-18 16:28:10 +02:00
53ec90e23e 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.
2015-08-18 16:23:53 +02:00
a6f1262677 parse_volname: document return values 2015-08-12 07:34:58 +02:00
7800e84d28 parse_volname: always return image format 2015-08-12 07:01:07 +02:00
55525ad265 ZFSPoolPlugin: improve subvol support
- return format with parse_volname
- consider subvol in zfs_find_free_diskname
2015-08-12 06:49:15 +02:00
35533c68fb 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.
2015-08-12 06:11:10 +02:00
dec97937f2 zfs_parse_zvol_list: do not add pool to volname
Else, alloc and list return different volids.
2015-08-10 16:53:19 +02:00
d73060becd storage_info: fix content filter
List all storages if $content filter is undefined.
2015-08-10 10:05:01 +02:00
9f20a8a643 rbd: add support to krbd
Can be use by lxc (but also qemu)

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2015-08-07 11:56:40 +02:00
7859eb1617 bump version to 4.0-14 2015-08-07 09:46:49 +02:00
583c2802f8 storage status API: allow to filter multiple content types 2015-08-07 09:46:49 +02:00
27ff0e99e2 fix bug #664
Catch the error, if the dataset doesn't exists.
If it will not catched, you can't remove a VM.
2015-07-30 11:50:46 +02:00
205e81339f bump version to 4.0-13 2015-07-30 08:50:53 +02:00
afdfbe5594 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.
2015-07-30 08:49:46 +02:00
d75b2a72bb bump version to 4.0-12 2015-07-01 10:08:19 +02:00
13d2cb7980 allow templates using .xz compression 2015-07-01 10:06:24 +02:00
d6d924d0bf Fix ZFSPoolPlugin path for subvol
Signed-off-by: Wolfgang Link <w.link@proxmox.com>
2015-06-22 11:03:11 +02:00
ce37886b59 bump version to 4.0-11 2015-06-19 12:12:04 +02:00
30a1369b91 drbd: improve error messages 2015-06-19 12:10:45 +02:00
b081b6a6e1 bump version to 4.0-10 2015-06-18 13:53:42 +02:00
ae9e512e91 drbd: implement deactivate_volume (but code is disabled for now) 2015-06-18 13:06:30 +02:00
9913665327 drbd: use old code to wait for diskless assignment 2015-06-18 12:21:44 +02:00
b0e0ed1abe drbd: remov hack, because bug is fixed upstream
see http://git.drbd.org/gitweb.cgi?p=drbdmanage.git;a=commitdiff;h=8056e58b929673afb2d4a33d82fdeea4d43f8667
2015-06-18 11:55:56 +02:00
31ba75ff58 drbd: correctly check all result codes 2015-06-18 11:45:04 +02:00
4959ea20c1 drbd: correctly wait for diskless assignments 2015-06-18 10:43:43 +02:00
d1e7ac11de drbd: improve workaround for set_drbdsetup_props 2015-06-18 06:21:38 +02:00
7ab6adc02a bump version to 4.0-9 2015-06-17 11:33:57 +02:00
98e250aa41 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?!
2015-06-17 11:33:49 +02:00
98073365d6 bump version to 4.0-8 2015-06-17 08:59:03 +02:00
07af07cc16 drbd: set allow-two-primaries=yes
So that we can do live migrations.
2015-06-17 08:57:32 +02:00
4b6bcad485 bump version to 4.0-7 2015-06-16 10:06:35 +02:00
e7e82e0475 install trigger for pve-api-updates 2015-06-16 10:05:22 +02:00
2e7912ae1c bump version to 4.0-6 2015-06-10 10:56:53 +02:00
ee302b1caa Fix nfsscan
Signed-off-by: Wolfgang Link <w.link@proxmox.com>
2015-06-10 10:55:06 +02:00
6564419625 include ::1 in localhost check in get_active_server 2015-05-27 08:29:39 +02:00
f8b0d82fe6 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.
2015-05-21 11:49:35 +02:00
da63f58832 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.
2015-05-21 11:49:21 +02:00
6bf617a954 allow ipv6 addresses in Storage::verify_server
Replaced regex with existing PVE::JSONSchema::verify_... functions.
2015-05-21 11:48:08 +02:00
69a093c7fd drbd: avoid warning about undefined value 2015-05-18 14:15:35 +02:00
47dbb901c3 fix typo 2015-05-18 14:12:59 +02:00
317d8ee3c0 bump version to 4.0-5 2015-05-12 10:40:12 +02:00
c67daeac17 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.
2015-05-12 10:39:15 +02:00
f5640e7d3b 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>
2015-05-06 11:42:38 +02:00
1ccae4490e zfspool: new format 'subvol' to handle filesystems inside datasets
We use this for containers.
2015-05-01 14:46:17 +02:00
4cb6e060c3 correctly parse lxc backup files 2015-05-01 11:29:15 +02:00
93124ef4fe ZFSPoolPlugin: allow nested datasets 2015-04-30 06:48:39 +02:00
6d788031b0 add newlines to error messages 2015-04-29 06:59:48 +02:00
e0852ba7dc whitespace cleanups 2015-04-27 10:44:32 +02:00
3d621977f4 implement offline migration on zfs
Signed-off-by: Wolfgang Link <w.link@proxmox.com>
2015-04-27 10:44:23 +02:00