]> git.proxmox.com Git - pve-container.git/log
pve-container.git
8 years agoRefactor snapshot_rollback
Fabian Grünbichler [Mon, 22 Feb 2016 12:09:00 +0000 (13:09 +0100)]
Refactor snapshot_rollback

like in QemuServer.pm, but only for rootfs for now

8 years agoRefactor snapshot_delete
Fabian Grünbichler [Mon, 22 Feb 2016 12:08:59 +0000 (13:08 +0100)]
Refactor snapshot_delete

like in QemuServer.pm, but only for rootfs for now

8 years agoAdd snapshot_apply_config, cleanup prepare and commit
Fabian Grünbichler [Mon, 22 Feb 2016 12:08:58 +0000 (13:08 +0100)]
Add snapshot_apply_config, cleanup prepare and commit

snapshot_apply_config, snapshot_prepare and snapshot_commit
like in QemuServer.pm

8 years agoAdjust snapshot_create and snapshot_prepare signatures
Fabian Grünbichler [Mon, 22 Feb 2016 12:08:57 +0000 (13:08 +0100)]
Adjust snapshot_create and snapshot_prepare signatures

Add new save_vmstate parameter to snapshot_create and
snapshot_prepare, like in QemuServer.pm
Also make snapshot_prepare and snapshot_commit proper subs.

8 years agoupdate changelog
Dietmar Maurer [Thu, 18 Feb 2016 10:52:05 +0000 (11:52 +0100)]
update changelog

8 years agoexclude 'parent' from config when restoring
Dominik Csapak [Mon, 15 Feb 2016 14:10:56 +0000 (15:10 +0100)]
exclude 'parent' from config when restoring

without this, if you restore an lxc container from a backup
while it has snapshots, the parser does not understand the
'parent' option and aborts

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
8 years agobump version to 1.0-46
Dietmar Maurer [Thu, 18 Feb 2016 10:49:39 +0000 (11:49 +0100)]
bump version to 1.0-46

8 years agosuse: move setup_securetty to template_fixup()
Wolfgang Bumiller [Thu, 18 Feb 2016 09:54:52 +0000 (10:54 +0100)]
suse: move setup_securetty to template_fixup()

8 years agosetup: move setup_container_getty_service to Base
Wolfgang Bumiller [Thu, 18 Feb 2016 09:54:51 +0000 (10:54 +0100)]
setup: move setup_container_getty_service to Base

And reuse it for ArchLinux.

8 years agoAdd to unused volumes only if really unused
Fabian Grünbichler [Wed, 17 Feb 2016 13:37:15 +0000 (14:37 +0100)]
Add to unused volumes only if really unused

Add unused volumes for changed mpX and rootfs, not only for
deleted mpX.
Add check before adding to unused volumes in order to
prevent false entries (which could lead to deletion of still
used volumes!)

8 years agobump version to 1.0-45
Dietmar Maurer [Tue, 16 Feb 2016 11:15:32 +0000 (12:15 +0100)]
bump version to 1.0-45

8 years agoalpine: read /etc/alpine-release
Wolfgang Bumiller [Fri, 12 Feb 2016 08:27:34 +0000 (09:27 +0100)]
alpine: read /etc/alpine-release

8 years agouse common/userns.conf if no ostype-speicifc one exists
Wolfgang Bumiller [Fri, 12 Feb 2016 08:27:33 +0000 (09:27 +0100)]
use common/userns.conf if no ostype-speicifc one exists

(LXC doesn't ship an alpine.conf)

8 years agoinstall Alpine.pm and configure its network
Wolfgang Bumiller [Fri, 12 Feb 2016 08:27:32 +0000 (09:27 +0100)]
install Alpine.pm and configure its network

Since busybox' current default DHCPv6 client is unfinished
and alpine currently doesn't handle a 'dhcp' interface type
in its /etc/network/interfaces and bails out when
configuring the network with a broken config we have to make
sure we don't pass this on to debian's setup_network.

Unfortunately a warning at this point would only be visible
when creating a container because at this point no warning
makes it to the console/UI (and errors would be hidden
because the setup runs in our lxc prestart hook).

8 years agoalpine: cleanup
Wolfgang Bumiller [Fri, 12 Feb 2016 08:27:31 +0000 (09:27 +0100)]
alpine: cleanup

8 years agoadd Alpine Linux distribution
Jens Vehlhaber [Fri, 12 Feb 2016 08:27:30 +0000 (09:27 +0100)]
add Alpine Linux distribution

Signed-off-by: Jens Vehlhaber <jens@eisfair.org>
8 years agoupdate changelog
Dietmar Maurer [Fri, 12 Feb 2016 11:04:00 +0000 (12:04 +0100)]
update changelog

8 years agolxc: read-only bind mounts
Wolfgang Bumiller [Fri, 12 Feb 2016 10:40:35 +0000 (11:40 +0100)]
lxc: read-only bind mounts

Factored the bind-mounting into a bindmount() function since
we don't want to leave a writable bind-mount behind if the
read-only remount fails.

The read-only flag is now also removed from the initial
mount flags and is added only for the remount command and is
added separately the non-bind mounts.

8 years agoRefactor lock_container into lock_config_[xx]
Fabian Grünbichler [Fri, 12 Feb 2016 06:53:28 +0000 (07:53 +0100)]
Refactor lock_container into lock_config_[xx]

This mimics the "signatures" of the methods in
QemuServer.pm, and should allow us to use this methods in a
future abstract "Guest" class.

It also changes the various timeouts (ranging from 1, 10, 60
to undef) to use the default timeout defined in the
lock_config methods (10).

Also drop the now unused use statement for flock.

8 years agoAdd missing use statement
Fabian Grünbichler [Thu, 11 Feb 2016 11:17:36 +0000 (12:17 +0100)]
Add missing use statement

8 years agocleanup: remove unused json_config_properties_no_rootfs()
Wolfgang Bumiller [Thu, 11 Feb 2016 09:34:08 +0000 (10:34 +0100)]
cleanup: remove unused json_config_properties_no_rootfs()

8 years agobump version to 1.0-44
Dietmar Maurer [Thu, 11 Feb 2016 10:57:27 +0000 (11:57 +0100)]
bump version to 1.0-44

8 years agosnapshot: replace global sync with a namespace sync
Wolfgang Bumiller [Thu, 11 Feb 2016 08:26:36 +0000 (09:26 +0100)]
snapshot: replace global sync with a namespace sync

snapshot_create() called did a global 'sync' after freeze()
which syncs everything including all other containers and
the host. So if you want to snapshot container A while
container B tries to write to a broken NFS mount the
snapshot will hang in that sync call.
Instead we now enter the container's mount namespace and do
a syncfs() on all of its mountpoints.

8 years agoautodev hook cleanup
Wolfgang Bumiller [Thu, 11 Feb 2016 08:12:42 +0000 (09:12 +0100)]
autodev hook cleanup

8 years agoupdate changelog
Dietmar Maurer [Thu, 11 Feb 2016 07:41:58 +0000 (08:41 +0100)]
update changelog

8 years agoallow to update rootfs config
Dietmar Maurer [Thu, 11 Feb 2016 07:08:45 +0000 (08:08 +0100)]
allow to update rootfs config

8 years agolxc-pve-prestart-hook: use PVE::Tools::file_set_contents to write devlist
Dietmar Maurer [Thu, 11 Feb 2016 06:44:32 +0000 (07:44 +0100)]
lxc-pve-prestart-hook: use PVE::Tools::file_set_contents to write devlist

8 years agoadded quota flag to mountpoints
Wolfgang Bumiller [Wed, 10 Feb 2016 08:58:17 +0000 (09:58 +0100)]
added quota flag to mountpoints

quotactl(2) requires a path to the device node to work which
means we need to expose them to the container, luckily it
doesn't need r/w access to the device. Also, loop devices
will not detach from the images anymore with them being
still mounted in the monitor's mount namespace (which is
unshared from the host to prevent accidental unmounts via
lxc.monitor.unshare).

Note that quota manipulation currently does not work with
unprivileged containers.

8 years agobump version to 1.0-43
Dietmar Maurer [Thu, 11 Feb 2016 05:58:45 +0000 (06:58 +0100)]
bump version to 1.0-43

8 years agoImprove error handling in snapshot_create
Fabian Grünbichler [Wed, 10 Feb 2016 12:04:11 +0000 (13:04 +0100)]
Improve error handling in snapshot_create

Set unfreeze before trying to freeze, otherwise an aborted
or failed lxc-freeze will not be reversed by our error
handling, leaving the container in a (partially) frozen
state.

Make snapshot_create failure handling more resembling
to the QemuServer codebase and prepare for future code
convergence:
* use $drivehash parameter in snapshot_delete to bypass
check_lock() and delete config lock
* call $snapshot_commit last, it's only needed now if
there were no errors

8 years agoVZDump lock update, drop lock_aquire/lock_release
Fabian Grünbichler [Wed, 10 Feb 2016 11:01:17 +0000 (12:01 +0100)]
VZDump lock update, drop lock_aquire/lock_release

Since VZDump was the only user of lock_aquire and
lock_release, and does not actually need this split,
we can drop lock_aquire and lock_release.

Since lock_file_full in PVE::Tools now uses the same
refcounting implementation that lock_aquire/release
had, lock_container can simply wrap lock_file_full.

8 years agoprevent snapshot name 'vzdump' from user
Dominik Csapak [Wed, 10 Feb 2016 14:04:11 +0000 (15:04 +0100)]
prevent snapshot name 'vzdump' from user

if someone makes a snapshot named 'vzdump', it would get deleted
when using vzdump in snapshot mode, since we use that name for
making a temporary one

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
8 years agoimprove mountpoint parsing
Dominik Csapak [Thu, 4 Feb 2016 12:40:15 +0000 (13:40 +0100)]
improve mountpoint parsing

changes from v1:
renamed function to verify_*
added check for ../ at the beginning
cleaned up regex (\.)? -> \.?

currently we sanitize mountpoints with sanitize_mountpoint, which
tries to remove dots, double-dots and multiple slashes, but it does it
not correctly (e.g. /test/././ gets truncated to /test./ )

instead of trying to truncate the path, we create a format for mp strings
which throws an error if /./ or /../ exist (also /. and /.. at the end or
../ at the beginning) since there should be no valid use for these in
mountpoint paths anyway

with the new behaviour, we don't need sanitize_mountpoint anymore:

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
8 years agobump version to 1.0-42
Dietmar Maurer [Mon, 8 Feb 2016 11:17:36 +0000 (12:17 +0100)]
bump version to 1.0-42

8 years agoRemove mknod call from pre-start hook
Fabian Grünbichler [Thu, 4 Feb 2016 12:07:03 +0000 (13:07 +0100)]
Remove mknod call from pre-start hook

Since lxc.autodev defaults to 1, LXC will mount /dev as
tmpfs an populate it. The removed code was unnecessary,
since the device node was not accessable in the container
anyway. A /dev mountpoint is mounted into the rootfs and
accessable under its mountpoint, even if there is no
associated /dev node in the container.

To make matters worse, there was no cleanup for this device
node, which made all but the first boot of containers with
a configured /dev mountpoint fail until the host itself was
rebooted.

8 years agoOnly add actual volumes to volid_list
Fabian Grünbichler [Thu, 4 Feb 2016 10:08:05 +0000 (11:08 +0100)]
Only add actual volumes to volid_list

skip /dev and bind mounts, otherwise stop backups will
fail in parse_volume_id.

8 years agofix growing of a running container's memory limit
Wolfgang Bumiller [Mon, 8 Feb 2016 07:48:28 +0000 (08:48 +0100)]
fix growing of a running container's memory limit

Since the memory cgroup has a memory and a "total" value
depending on whether you're increasing or decreasing the
values you have to set then in a working order. (Eg. you
can't reduce the total amount to less than the swap limit
or grow the swap limit to more than the total one.)

8 years agoopensuse 13.2 support
Wolfgang Bumiller [Mon, 8 Feb 2016 07:48:27 +0000 (08:48 +0100)]
opensuse 13.2 support

Needs the apparmor /run -> /var/run bind mount patch in
lxc-pve.

8 years agoadded $skiplock parameter for pct start/stop
Wolfgang Bumiller [Mon, 8 Feb 2016 07:48:26 +0000 (08:48 +0100)]
added $skiplock parameter for pct start/stop

Like with qemu the root user can use -skiplock with 'pct
start' and 'pct stop'.

This does not alter the container's lxc config, instead we
pass PVE_SKIPLOCK=1 via the environment which will be seen
from the prestart hook but not from inside the container.

8 years agoFix #791: warn when resize2fs fails
Wolfgang Bumiller [Mon, 8 Feb 2016 07:48:25 +0000 (08:48 +0100)]
Fix #791: warn when resize2fs fails

At this point the underlying file has already been
successfully resized which means it makes sense to refelct
that change in the config, but the guest will not see the
effect of it, however, a subsequent resize command will
further increase the size relative to the 'new' size, so
after such an error the best option is to manually deal with
the error and perform the necessary resize steps.

8 years agoFix #881: uninitialized value on valid lxc.cgroup keys
Wolfgang Bumiller [Tue, 2 Feb 2016 07:21:12 +0000 (08:21 +0100)]
Fix #881: uninitialized value on valid lxc.cgroup keys

We have no lxc.cgroup.* keys in $valid_lxc_conf_keys so they
and unknown keys showed an uninitialized value warning for
the new 'eq' operation.
This also avoids the second hash access.

8 years agoupdate changelog
Dietmar Maurer [Thu, 28 Jan 2016 16:12:26 +0000 (17:12 +0100)]
update changelog

8 years agoCloses #877: Skip mps with backup=0 for snapshot backups
Fabian Grünbichler [Thu, 28 Jan 2016 15:10:59 +0000 (16:10 +0100)]
Closes #877: Skip mps with backup=0 for snapshot backups

8 years agoupdate changelog
Dietmar Maurer [Thu, 28 Jan 2016 10:05:53 +0000 (11:05 +0100)]
update changelog

8 years agocreate firewall dir on ct restore, if it does not exists.
Wolfgang Link [Thu, 28 Jan 2016 08:00:40 +0000 (09:00 +0100)]
create firewall dir on ct restore, if it does not exists.

8 years agoupdate changelog
Dietmar Maurer [Wed, 27 Jan 2016 16:15:21 +0000 (17:15 +0100)]
update changelog

8 years agofix PVE::HA use clauses
Thomas Lamprecht [Wed, 27 Jan 2016 13:25:49 +0000 (14:25 +0100)]
fix PVE::HA use clauses

remove to unecessary use clauses and add the PVE2 environment use
clause to the other so that the correct HA resource plugins get
registered

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
8 years agobump version to 1.0-41
Dietmar Maurer [Wed, 27 Jan 2016 15:43:50 +0000 (16:43 +0100)]
bump version to 1.0-41

8 years agoadded 'acl' and 'ro' mountpoint options
Wolfgang Bumiller [Wed, 27 Jan 2016 10:10:23 +0000 (11:10 +0100)]
added 'acl' and 'ro' mountpoint options

Note that read-only bind mounts are currently not supported.

8 years agolxc.rootfs and lxc.rootfs.options are now invalid
Wolfgang Bumiller [Wed, 27 Jan 2016 10:10:22 +0000 (11:10 +0100)]
lxc.rootfs and lxc.rootfs.options are now invalid

lxc.rootfs has been a conflicting option already but now
lxc.rootfs.options is too

$valid_lxc_conf_keys can now containe an optional warning to
be printed when such a key is used.

8 years agoRemove weird config key entries
Wolfgang Bumiller [Wed, 27 Jan 2016 10:10:21 +0000 (11:10 +0100)]
Remove weird config key entries

8 years agobump version to 1.0-40
Dietmar Maurer [Sat, 23 Jan 2016 07:56:50 +0000 (08:56 +0100)]
bump version to 1.0-40

8 years agocheck sh instead of file for templates architecture type
Thomas Lamprecht [Fri, 22 Jan 2016 17:34:57 +0000 (18:34 +0100)]
check sh instead of file for templates architecture type

/usr/bin/file may not be available, while that has no high
probability we already had bug reports regarding this.

To ensure better compatibility use /bin/sh which every Linux
has (POSIX 1003.1-2004).

See: http://pubs.opengroup.org/onlinepubs/009695399/utilities/sh.html

8 years agoAdd dependency to 'file' package, which we use in src/PVE/LXC/Create.pm
Emmanuel Kasper [Thu, 21 Jan 2016 14:53:09 +0000 (15:53 +0100)]
Add dependency to 'file' package, which we use in src/PVE/LXC/Create.pm

Debian can be installed with the 'Minimal' or the 'Standard' package selection.
'Minimal' debian installations have the package missing.

8 years agoimplement linked clones
Dietmar Maurer [Thu, 21 Jan 2016 10:50:56 +0000 (11:50 +0100)]
implement linked clones

8 years agoRework snapshot config removal logic
Fabian Grünbichler [Wed, 20 Jan 2016 12:14:52 +0000 (13:14 +0100)]
Rework snapshot config removal logic

Correctly update parent relations in config file upon snapshot removal.

Previously, only the parent of the current state was updated/removed,
which led to broken parent relations if any snapshot other then the
immediate parent of the current snapshot was removed. To fix this,
the parent relation of all children snapshots of the removed snapshot
are updated/removed as well.

Based on code in qemu-server/PVE/QemuServer.pm and parts
of a patch by Gerrit Venema <gmoniker at gmail.com>

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
8 years agoDon't hold flock for whole backup operation
Fabian Grünbichler [Tue, 19 Jan 2016 12:47:24 +0000 (13:47 +0100)]
Don't hold flock for whole backup operation

Instead of holding the flock for the whole backup operation,
release it at the end of prepare(), and use
lock_container() to remove a potential 'backup' lock
from the config file when the backup is finished.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
8 years agoUse lock_container when checking locks
Fabian Grünbichler [Tue, 19 Jan 2016 12:47:23 +0000 (13:47 +0100)]
Use lock_container when checking locks

This should prevent race conditions by preventing config
file changes inbetween checking locks and actually doing
the start/stop/.. operation.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
8 years agoFix typo in lxc-checkpoint dump directory
Fabian Grünbichler [Tue, 19 Jan 2016 12:10:51 +0000 (13:10 +0100)]
Fix typo in lxc-checkpoint dump directory

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
8 years agoFix typos in comments, descriptions and messages
Fabian Grünbichler [Tue, 19 Jan 2016 12:10:50 +0000 (13:10 +0100)]
Fix typos in comments, descriptions and messages

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
8 years agobump version to 1.0-39
Dietmar Maurer [Mon, 18 Jan 2016 16:01:51 +0000 (17:01 +0100)]
bump version to 1.0-39

8 years agoadd support for network trunks
Wolfgang Bumiller [Mon, 18 Jan 2016 08:29:53 +0000 (09:29 +0100)]
add support for network trunks

Like in qemu:

allow only 802.1Q packets with vlanid 2,3,4 :
netx: .....,trunks=2,3,4

allow only 802.1Q packets with vlanid 2,3,4 and tag non-802.1Q packets to vlanid 5 :
netx: tag=5,trunks=2,3,4

tag non-802.1Q packets to vlanid 5
netx: tag=5

8 years agobump version to 1.0-38
Dietmar Maurer [Fri, 15 Jan 2016 16:13:49 +0000 (17:13 +0100)]
bump version to 1.0-38

8 years agoCheck lock in lxc-pre-start-hook script as well
Fabian Grünbichler [Fri, 15 Jan 2016 10:40:11 +0000 (11:40 +0100)]
Check lock in lxc-pre-start-hook script as well

Fixes: #847
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
8 years agoCheck lock for pct start, stop, suspend, shutdown
Fabian Grünbichler [Fri, 15 Jan 2016 10:40:10 +0000 (11:40 +0100)]
Check lock for pct start, stop, suspend, shutdown

Correctly error out upon encountering a locked container
when doing pct start, pct stop, pct suspend or pct shutdown

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
8 years agoadd some newlines to improve readability
Dietmar Maurer [Fri, 15 Jan 2016 16:01:46 +0000 (17:01 +0100)]
add some newlines to improve readability

8 years agoSet backup lock during stop and suspend backups
Fabian Grünbichler [Fri, 15 Jan 2016 10:40:09 +0000 (11:40 +0100)]
Set backup lock during stop and suspend backups

Correctly set a 'backup' lock while a 'stop' or 'suspend'
mode backup is in progress.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
8 years agofix mount_all, improve bind mount handling
Dietmar Maurer [Fri, 15 Jan 2016 09:19:50 +0000 (10:19 +0100)]
fix mount_all, improve bind mount handling

8 years agoimplement parse_ct_rootfs
Dietmar Maurer [Fri, 15 Jan 2016 09:14:53 +0000 (10:14 +0100)]
implement parse_ct_rootfs

8 years agoAdd mp to required in pct set mount-point.
Wolfgang Link [Fri, 15 Jan 2016 06:25:08 +0000 (07:25 +0100)]
Add mp to required in pct set mount-point.

If map is not set you get a warning of an empty variable without real information.
And when you try to start the container, it will not start without an explication.

8 years agosnapshot_create: unfreeze after snapshot creation
Dietmar Maurer [Tue, 12 Jan 2016 06:33:13 +0000 (07:33 +0100)]
snapshot_create: unfreeze after snapshot creation

As pointed out by Gerrit Venema. Also make sure to unfreeze in
case of errors (exceptions).

8 years agoallow to create containers on lvmthin storage
Dietmar Maurer [Tue, 12 Jan 2016 06:24:17 +0000 (07:24 +0100)]
allow to create containers on lvmthin storage

8 years agobump version to 1.0-37
Dietmar Maurer [Sun, 10 Jan 2016 14:15:05 +0000 (15:15 +0100)]
bump version to 1.0-37

8 years agocheck for quorum when starting a container
Wolfgang Bumiller [Fri, 8 Jan 2016 13:32:37 +0000 (14:32 +0100)]
check for quorum when starting a container

8 years agovm_stop: make sure the container is stopped using lxc-wait
Dietmar Maurer [Fri, 8 Jan 2016 10:46:21 +0000 (11:46 +0100)]
vm_stop: make sure the container is stopped using lxc-wait

8 years agobump version to 1.0-36
Dietmar Maurer [Tue, 22 Dec 2015 14:49:36 +0000 (15:49 +0100)]
bump version to 1.0-36

8 years agovzdump stop mode: wait until container is stopped
Dietmar Maurer [Tue, 22 Dec 2015 14:48:26 +0000 (15:48 +0100)]
vzdump stop mode: wait until container is stopped

8 years agobump version to 1.0-35
Dietmar Maurer [Fri, 18 Dec 2015 08:10:02 +0000 (09:10 +0100)]
bump version to 1.0-35

8 years agoSetup: order fqdn before hostname in /etc/hosts
Wolfgang Bumiller [Mon, 14 Dec 2015 13:02:18 +0000 (14:02 +0100)]
Setup: order fqdn before hostname in /etc/hosts

Some services seem to require this to lookup the local fqdn.
This only affects /etc/hosts while /etc/hostname still uses
the non-fqdn hostname.

This is also consistent with behavior in 4.0 (before commit
ce289e3c6e).

Fixes #845

8 years agobump version to 1.0-34
Dietmar Maurer [Thu, 17 Dec 2015 11:28:24 +0000 (12:28 +0100)]
bump version to 1.0-34

8 years agoRevert "set memory.kmem.limit_in_bytes"
Dietmar Maurer [Thu, 17 Dec 2015 11:26:25 +0000 (12:26 +0100)]
Revert "set memory.kmem.limit_in_bytes"

This reverts commit d4eeba779e0e77c65b7324f6a48b8e6a7013a870.

ZFS memory is accounted, so users run out of memory this way!

8 years agofix bug #840: vzdump - fix compression command pipe
Wolfgang Bumiller [Wed, 9 Dec 2015 15:30:34 +0000 (16:30 +0100)]
fix bug #840: vzdump - fix compression command pipe

bump version to 1.0-33

$comp is a command string and needs to be split. The set of
possible commands is limited and known so splitting by
/\s+/ (as suggested by Marc Cousin) should be safe enough.

8 years agoimprove some 'implement me' error messages
Wolfgang Bumiller [Mon, 7 Dec 2015 14:12:46 +0000 (15:12 +0100)]
improve some 'implement me' error messages

8 years agobump version to 1.0-32
Dietmar Maurer [Wed, 9 Dec 2015 07:10:52 +0000 (08:10 +0100)]
bump version to 1.0-32

8 years agoRevert "Mounting of zfspool snapshots are not necessary."
Dietmar Maurer [Wed, 9 Dec 2015 06:44:12 +0000 (07:44 +0100)]
Revert "Mounting of zfspool snapshots are not necessary."

This reverts commit 258dad4af068fead7a41ba26e69d6bd5e497a1ff.

For some unknown reason (zfs bug?), accessing .zfs/snapshot/snapname is
not reliable.

8 years agobump version to 1.0-31
Dietmar Maurer [Fri, 4 Dec 2015 15:33:25 +0000 (16:33 +0100)]
bump version to 1.0-31

8 years agoRevert "use the unmount-namespace stop hook"
Wolfgang Bumiller [Fri, 4 Dec 2015 14:10:43 +0000 (15:10 +0100)]
Revert "use the unmount-namespace stop hook"

This reverts commit c0681d663238486cfaeb3a9f81376caa75b94df1.

With some setups this can cause read-only mount options to
be propagated to the host and needs to be investigated
further before being enabled.

8 years agobump version to 1.0-30
Dietmar Maurer [Wed, 2 Dec 2015 10:04:01 +0000 (11:04 +0100)]
bump version to 1.0-30

8 years agoOpenSUSE support added
Wolfgang Bumiller [Tue, 1 Dec 2015 14:53:48 +0000 (15:53 +0100)]
OpenSUSE support added

* Detection via /etc/SuSE-brand
* Currently only supporting version 13.1 (This apparently
ships no systemd-networkd and has no wicked yet.)
* Introduced ct_modify_file_head_portion: Both Redhat and
SuSE have separate route files for network interfaces, but
with a different formats. For consistency the SuSE code also
only changes routes between the BEGIN/END PVE comment lines.
This version also fixes a bug where the route file got
deleted instead of left untouched when no changes were made
(now caught by a testcase).

8 years agocreate: don't skip arch detection on unpack errors
Wolfgang Bumiller [Tue, 1 Dec 2015 13:55:05 +0000 (14:55 +0100)]
create: don't skip arch detection on unpack errors

The -ignore-unpack-errors option needs to be taken into
account in restore_archive instead of restore_and_configure
as restore_archive is also responsible for arch detection.

8 years agobump version to 1.0-29
Dietmar Maurer [Tue, 1 Dec 2015 10:24:55 +0000 (11:24 +0100)]
bump version to 1.0-29

8 years agoadd 'fedora' to ostype schema enum
Wolfgang Bumiller [Tue, 1 Dec 2015 09:56:04 +0000 (10:56 +0100)]
add 'fedora' to ostype schema enum

8 years agoset RELEASE=4.1
Dietmar Maurer [Tue, 1 Dec 2015 09:07:09 +0000 (10:07 +0100)]
set RELEASE=4.1

8 years agobump version to 1.0-28
Dietmar Maurer [Tue, 1 Dec 2015 08:57:04 +0000 (09:57 +0100)]
bump version to 1.0-28

8 years agorenamed lxc.start.unshare to lxc.monitor.unshare
Wolfgang Bumiller [Mon, 30 Nov 2015 12:44:37 +0000 (13:44 +0100)]
renamed lxc.start.unshare to lxc.monitor.unshare

8 years agofix bug #827: Setup: don't replace fqdn with searchdomain in /etc/hosts
Wolfgang Bumiller [Fri, 27 Nov 2015 11:24:03 +0000 (12:24 +0100)]
fix bug #827: Setup: don't replace fqdn with searchdomain in /etc/hosts

8 years agoadded Setup::Fedora
Wolfgang Bumiller [Tue, 24 Nov 2015 08:48:24 +0000 (09:48 +0100)]
added Setup::Fedora

For now only Fedora 22 is tested. The setup routines from
the Redhat base can be kept, so the only difference for now
is the version scheme and 'ostype'.

8 years agoupdate changelog
Dietmar Maurer [Thu, 26 Nov 2015 11:23:13 +0000 (12:23 +0100)]
update changelog

8 years agowarn when trying to delete non-existent options
Wolfgang Bumiller [Wed, 25 Nov 2015 14:25:17 +0000 (15:25 +0100)]
warn when trying to delete non-existent options

Otherwise this runs through the code causing all kinds of
different errors like use of uninitialized values in
peculiar places or format errors trying to validate empty
string or 'missing property' errors trying to parse empty
property strings...

8 years agocreate_disks: don't drop extra parameters
Wolfgang Bumiller [Wed, 25 Nov 2015 14:25:16 +0000 (15:25 +0100)]
create_disks: don't drop extra parameters

When using the 'storage:size' notation to allocate a disk we
only modify the volume id, so it makes sense to just update
this along with the size rather than creating a new hash
which would drop extra parameters such as 'backup=yes'.