]> git.proxmox.com Git - pve-container.git/log
pve-container.git
8 years agohonor acl setting with zfs
Wolfgang Bumiller [Thu, 14 Apr 2016 07:53:02 +0000 (09:53 +0200)]
honor acl setting with zfs

8 years agocleanup OVZ config recovery
Fabian Grünbichler [Thu, 21 Apr 2016 07:19:02 +0000 (09:19 +0200)]
cleanup OVZ config recovery

$conf->{rootfs} is supposed to be the property string value,
not the parsed property string. since this method is called
only twice (once for retrieving the rootfs information only,
once for retrieving the config only) and the second call
never needs the 'rootfs' part of the configuration, we can
safely not set it instead of introducing ugly workarounds
(e.g. setting a fake volume path or worse).

8 years agoDebian: correctly setup getty service on systemd based containers
Dietmar Maurer [Thu, 21 Apr 2016 05:07:15 +0000 (07:07 +0200)]
Debian: correctly setup getty service on systemd based containers

File /etc/inittab does not exist on systemd based containers.

8 years agoupdate changelog
Dietmar Maurer [Wed, 20 Apr 2016 16:07:37 +0000 (18:07 +0200)]
update changelog

8 years agocode cleanup
Dietmar Maurer [Wed, 20 Apr 2016 16:06:24 +0000 (18:06 +0200)]
code cleanup

8 years agopush/pull permissions: use octal by default
Fabian Grünbichler [Wed, 20 Apr 2016 12:04:23 +0000 (14:04 +0200)]
push/pull permissions: use octal by default

8 years agofix #942: restore ACL and other rootfs options from backup
Fabian Grünbichler [Wed, 20 Apr 2016 10:30:44 +0000 (12:30 +0200)]
fix #942: restore ACL and other rootfs options from backup

unless overridden by explicitly setting the rootfs
parameter, restoring from a backup will now copy the rootfs
properties from the backup archive, except for 'volume' and
'ro' (for obvious reasons).

8 years agoskip some additional config options when restoring
Fabian Grünbichler [Wed, 20 Apr 2016 10:30:43 +0000 (12:30 +0200)]
skip some additional config options when restoring

-unusedX in all cases, even when creating
-parent when merging config from backup

8 years agodon't keep old existing config when restoring
Fabian Grünbichler [Wed, 20 Apr 2016 10:30:42 +0000 (12:30 +0200)]
don't keep old existing config when restoring

this breaks the expected ranking of configuration options
and does not make much sense in any case.

8 years agobump version to 1.0-61
Dietmar Maurer [Wed, 20 Apr 2016 09:25:56 +0000 (11:25 +0200)]
bump version to 1.0-61

8 years agoadd support for ubuntu xenial
Dietmar Maurer [Wed, 20 Apr 2016 09:21:40 +0000 (11:21 +0200)]
add support for ubuntu xenial

8 years agobump version to 1.0-60
Dietmar Maurer [Tue, 19 Apr 2016 07:05:03 +0000 (09:05 +0200)]
bump version to 1.0-60

8 years agovm_status: return more verbose HA state
Thomas Lamprecht [Mon, 18 Apr 2016 12:52:03 +0000 (14:52 +0200)]
vm_status: return more verbose HA state

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
8 years agoupdate changelog
Dietmar Maurer [Wed, 13 Apr 2016 08:46:32 +0000 (10:46 +0200)]
update changelog

8 years agocleanup previous patch: remove unused var
Dietmar Maurer [Wed, 13 Apr 2016 08:45:42 +0000 (10:45 +0200)]
cleanup previous patch: remove unused var

8 years agoFix #929: delete veths in the post-stop hook
Wolfgang Bumiller [Wed, 13 Apr 2016 08:33:58 +0000 (10:33 +0200)]
Fix #929: delete veths in the post-stop hook

Unfortunately it can still happen that LXC's network link
deletion netlink messages get dropped/ignored. This is the
same issue as initially reported on the forums by sigxcpu in
October, however, it seems that some users hit this problem
more reliably currently.

8 years agobump version to 1.0-59
Dietmar Maurer [Wed, 13 Apr 2016 08:32:17 +0000 (10:32 +0200)]
bump version to 1.0-59

8 years agosetup: ability to ignore files
Wolfgang Bumiller [Wed, 13 Apr 2016 06:59:50 +0000 (08:59 +0200)]
setup: ability to ignore files

Make the ct_* file wrapper functions ignore files for which
a file named .pve-ignore.$name exists.

8 years agovzdump: fix redirection to stdout
Dietmar Maurer [Tue, 12 Apr 2016 06:52:05 +0000 (08:52 +0200)]
vzdump: fix redirection to stdout

8 years agoupdate changelog
Dietmar Maurer [Mon, 11 Apr 2016 06:57:18 +0000 (08:57 +0200)]
update changelog

8 years agodebian: support containers upgraded to use systemd
Wolfgang Bumiller [Wed, 6 Apr 2016 12:32:39 +0000 (14:32 +0200)]
debian: support containers upgraded to use systemd

These otherwise spawn consoles at /dev/pts%I and cause
errors in the logs about the container-getty@ services.
This happens for instance when dist-upgrading from wheezy to
jessie.

8 years agosymlink pct.conf.5 to ct.conf
Dietmar Maurer [Sat, 9 Apr 2016 08:16:25 +0000 (10:16 +0200)]
symlink pct.conf.5 to ct.conf

8 years agofix max disk size in container status
Dominik Csapak [Fri, 8 Apr 2016 14:10:42 +0000 (16:10 +0200)]
fix max disk size in container status

we already get the bytes from parse_ct_rootfs (via JSONParser disk_size),
no need to multiply it again

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
8 years agoregex cleanup
Wolfgang Bumiller [Wed, 6 Apr 2016 12:32:38 +0000 (14:32 +0200)]
regex cleanup

8 years agoadd missing defined check on validate_ssh_keys
Wolfgang Bumiller [Wed, 6 Apr 2016 12:32:37 +0000 (14:32 +0200)]
add missing defined check on validate_ssh_keys

8 years agouse pve-doc-generator, bump version to 1.0-58
Dietmar Maurer [Wed, 6 Apr 2016 10:36:50 +0000 (12:36 +0200)]
use pve-doc-generator, bump version to 1.0-58

8 years agobump version to 1.0-57
Dietmar Maurer [Tue, 5 Apr 2016 13:29:39 +0000 (15:29 +0200)]
bump version to 1.0-57

8 years agoExpose ssh_keys feature over API
Fabian Grünbichler [Tue, 5 Apr 2016 11:17:03 +0000 (13:17 +0200)]
Expose ssh_keys feature over API

this adds a new optional parameter to the create_vm API
method, using which public ssh keys can be setup for the
container at creation.

the ssh-public-keys parameter is mapped to a filepath for
pct using the new string->filepath mapping mechanism.

8 years agoAdd ssh key setup to create_rootfs
Fabian Grünbichler [Tue, 5 Apr 2016 11:17:02 +0000 (13:17 +0200)]
Add ssh key setup to create_rootfs

expose the new post_create_hook parameter in create_rootfs

8 years agoAdd setup tests for authorized keys
Fabian Grünbichler [Tue, 5 Apr 2016 11:17:01 +0000 (13:17 +0200)]
Add setup tests for authorized keys

include ssh keys in previous test cases, add one extra test
case for a non-default $HOME read from /etc/passwd

8 years agoAdd authorized ssh key setup to post_create_hook
Fabian Grünbichler [Tue, 5 Apr 2016 11:17:00 +0000 (13:17 +0200)]
Add authorized ssh key setup to post_create_hook

provide helpers to copy public ssh keys to a user's
$HOME/.ssh/authorized_keys file, creating directories and
files when needed.

Use these in post_create_hook to setup provided ssh keys for
the root user.

8 years agoAdd missing '\n' to content in ct_modify_file
Fabian Grünbichler [Tue, 5 Apr 2016 10:22:40 +0000 (12:22 +0200)]
Add missing '\n' to content in ct_modify_file

if the provided content is not '\n'-terminated and non-empty,
add a trailing '\n', otherwise the END marker breaks.

8 years agoAdd 'perms' option to ct_modify_file
Fabian Grünbichler [Tue, 5 Apr 2016 09:32:10 +0000 (11:32 +0200)]
Add 'perms' option to ct_modify_file

passing this option allows the caller to (re)set the file
permissions of the modified file.

8 years agobump version to 1.0-56
Dietmar Maurer [Mon, 4 Apr 2016 14:39:43 +0000 (16:39 +0200)]
bump version to 1.0-56

8 years agouse consistent prefix for worker names
Dietmar Maurer [Mon, 4 Apr 2016 14:38:30 +0000 (16:38 +0200)]
use consistent prefix for worker names

8 years agoupdate changelog
Dietmar Maurer [Fri, 1 Apr 2016 07:36:07 +0000 (09:36 +0200)]
update changelog

8 years agoFix #925: activate volume before trying to resize
Wolfgang Bumiller [Thu, 31 Mar 2016 07:52:35 +0000 (09:52 +0200)]
Fix #925: activate volume before trying to resize

8 years agoupdate changelog
Dietmar Maurer [Fri, 1 Apr 2016 07:18:59 +0000 (09:18 +0200)]
update changelog

8 years agoenable quotas for passed through /dev devices
Wolfgang Bumiller [Thu, 24 Mar 2016 07:47:50 +0000 (08:47 +0100)]
enable quotas for passed through /dev devices

8 years agostyle fix
Wolfgang Bumiller [Thu, 24 Mar 2016 07:47:49 +0000 (08:47 +0100)]
style fix

8 years agobump version to 1.0-55
Dietmar Maurer [Fri, 1 Apr 2016 05:21:03 +0000 (07:21 +0200)]
bump version to 1.0-55

8 years agoAdd read_password sub for 'pct create'
Fabian Grünbichler [Wed, 30 Mar 2016 11:51:52 +0000 (13:51 +0200)]
Add read_password sub for 'pct create'

Read the container root password from stdin when creating a
container with 'pct create ... -password', instead of
providing it as command line argument. This is consistent
with 'pveum adduser' and pvesh, as described in #737 and #777.

8 years agouse ascicode compatible markup
Dietmar Maurer [Wed, 23 Mar 2016 09:36:19 +0000 (10:36 +0100)]
use ascicode compatible markup

s/Note:/NOTE:/

8 years agobump version to 1.0-54
Dietmar Maurer [Fri, 18 Mar 2016 15:35:27 +0000 (16:35 +0100)]
bump version to 1.0-54

8 years agoFix #918: add /dev/mapper symlinks for dm-* devices
Wolfgang Bumiller [Fri, 18 Mar 2016 09:11:10 +0000 (10:11 +0100)]
Fix #918: add /dev/mapper symlinks for dm-* devices

Mount canonicalizes paths unless the -c option is used. This
is mostly fine but for device-mapper nodes (/dev/dm-*) it'll
fetch the /dev/mapper/* path and pass that to the mount
system call resulting in /proc/mounts showing the
/dev/mapper path. This is neither the one we provided (since
we use /dev/$vg/$lv), nor the one userspace tools will find
in /dev currently.
Since the dm-* paths are rather inconvenient to look at we
decided to keep mount's behavior and compensate by providing
the /dev/mapper symlinks for devices via the autodev hook.

8 years agocleanup: avoid an -o '' empty-string option
Wolfgang Bumiller [Fri, 18 Mar 2016 09:11:09 +0000 (10:11 +0100)]
cleanup: avoid an -o '' empty-string option

8 years agocleanup: $mounted_dev is never set in this code path
Wolfgang Bumiller [Fri, 18 Mar 2016 09:11:08 +0000 (10:11 +0100)]
cleanup: $mounted_dev is never set in this code path

This might avoid some confusion in the future...

8 years agoautodev: create missing paths
Wolfgang Bumiller [Fri, 18 Mar 2016 09:11:07 +0000 (10:11 +0100)]
autodev: create missing paths

8 years agobump version to 1.0-53
Dietmar Maurer [Wed, 16 Mar 2016 15:52:24 +0000 (16:52 +0100)]
bump version to 1.0-53

8 years agospelling/typo correction
Fabian Grünbichler [Wed, 16 Mar 2016 14:45:56 +0000 (15:45 +0100)]
spelling/typo correction

8 years agoAdd force parameter for migration with bind/dev mp
Fabian Grünbichler [Wed, 16 Mar 2016 14:45:55 +0000 (15:45 +0100)]
Add force parameter for migration with bind/dev mp

Add a new 'force' parameter that allows to force the
migration of a container despite configured bind or device
mountpoints, which will be ignored/skipped.

8 years agoRefactor content type check into sub
Fabian Grünbichler [Wed, 16 Mar 2016 09:53:13 +0000 (10:53 +0100)]
Refactor content type check into sub

8 years agocall create_disks after updating rootfs
Fabian Grünbichler [Wed, 16 Mar 2016 09:14:01 +0000 (10:14 +0100)]
call create_disks after updating rootfs

this allows to set the rootfs to <storage>:<size>,
automatically creating an empty volume of the specified
size on the specified storage, like for non-rootfs mps.

8 years agoCheck content type when adding/updating volumes
Fabian Grünbichler [Wed, 16 Mar 2016 09:14:00 +0000 (10:14 +0100)]
Check content type when adding/updating volumes

the non-'rootdir' storages are filtered out in the web
interface already, but using the API/CLI it was still
possible to add volumes on storages without the 'rootdir'
content type.

this check is only used for mountpoints using our storage
backends, bind/dev mounts still work like before.

8 years agoupdate changelog
Dietmar Maurer [Tue, 15 Mar 2016 08:19:09 +0000 (09:19 +0100)]
update changelog

8 years agorequire -experimental for pct clone and template
Fabian Grünbichler [Tue, 15 Mar 2016 08:01:18 +0000 (09:01 +0100)]
require -experimental for pct clone and template

8 years agobump version to 1.0-52
Dietmar Maurer [Mon, 14 Mar 2016 08:00:25 +0000 (09:00 +0100)]
bump version to 1.0-52

8 years agoPrevent race conditions in snapshot mode backup
Fabian Grünbichler [Fri, 11 Mar 2016 10:44:47 +0000 (11:44 +0100)]
Prevent race conditions in snapshot mode backup

Instead of dropping the 'backup' lock early on when doing
snapshot backups, drop it temporarily for snapshot
operations that set their own 'snapshot' lock, and protect
the "unlock_vm, snapshot_XX, lock_vm" sequence by holding an
flock for the config file.

Before this change it was possible to interfere with the
backup job by setting a different lock with another
operation inbetween the call to unlock_vm and
snapshot_create (or snapshot_delete).

The final lock_vm is re-introduced in order to be more
consistent with the other backup modes and to prevent
changes to the configuration file before assemble()
reloads the configuration that is included in the backup.

8 years agoUse set_lock and remove_lock
Fabian Grünbichler [Fri, 11 Mar 2016 10:37:33 +0000 (11:37 +0100)]
Use set_lock and remove_lock

instead of manually setting and removing the lock config
parameter.

8 years agoupdate changelog
Dietmar Maurer [Wed, 9 Mar 2016 16:56:04 +0000 (17:56 +0100)]
update changelog

8 years agofix #912: centos/redhat confusion
Wolfgang Bumiller [Wed, 9 Mar 2016 09:13:00 +0000 (10:13 +0100)]
fix #912: centos/redhat confusion

With the introduction of unmanaged containers a check was
added to verify that the ostype is the same as the
autodetected one.
Since our CentOS plugin was named 'redhat' but the ostype
setting was 'centos' this error triggered and rendered
centos containers unusable.

Renamed the LXC::Setup::Redhat package LXC::Setup::CentOS
and changed the plugin name to and autodetected type from
'redhat' to 'centos' as well.

8 years agobump version to 1.0-51
Dietmar Maurer [Wed, 9 Mar 2016 16:52:48 +0000 (17:52 +0100)]
bump version to 1.0-51

8 years agoimplement cpulimit hotplugging
Wolfgang Bumiller [Wed, 9 Mar 2016 09:01:14 +0000 (10:01 +0100)]
implement cpulimit hotplugging

8 years agoconfig: allow deleting cpuunits and cpulimit
Wolfgang Bumiller [Wed, 9 Mar 2016 09:01:13 +0000 (10:01 +0100)]
config: allow deleting cpuunits and cpulimit

These were simply missing.

8 years agoupdate changelog
Dietmar Maurer [Tue, 8 Mar 2016 14:56:31 +0000 (15:56 +0100)]
update changelog

8 years agoimplement rate limiting
Wolfgang Bumiller [Tue, 8 Mar 2016 12:55:40 +0000 (13:55 +0100)]
implement rate limiting

8 years agobump version to 1.0-50
Dietmar Maurer [Tue, 8 Mar 2016 10:37:40 +0000 (11:37 +0100)]
bump version to 1.0-50

8 years agoDecide whether volume is added as unused in subclass
Fabian Grünbichler [Mon, 7 Mar 2016 11:39:28 +0000 (12:39 +0100)]
Decide whether volume is added as unused in subclass

follow the change in PVE::AbstractConfig

8 years agolist_active_containers: fix regex
Dietmar Maurer [Tue, 8 Mar 2016 06:28:50 +0000 (07:28 +0100)]
list_active_containers: fix regex

allow \s+ as seperator

8 years agobump version to 1.0-49
Dietmar Maurer [Mon, 7 Mar 2016 08:50:07 +0000 (09:50 +0100)]
bump version to 1.0-49

8 years agochange update_etc_hosts to use ct_modify_file
Wolfgang Bumiller [Tue, 1 Mar 2016 09:50:33 +0000 (10:50 +0100)]
change update_etc_hosts to use ct_modify_file

8 years agoSetup::Base: more generic ct_modify_file function
Wolfgang Bumiller [Tue, 1 Mar 2016 09:50:32 +0000 (10:50 +0100)]
Setup::Base: more generic ct_modify_file function

Replaced ct_modify_file_head_portion() with ct_modify_file()
taking a header and and replacing the section in-place
rather than always moving it to the top of the file.

The behavior for when a section is not defined can be
defined via the provided options (replace, prepend, or
append).

8 years agoDocument the difference between stop and shutdown
Emmanuel Kasper [Thu, 3 Mar 2016 12:52:52 +0000 (13:52 +0100)]
Document the difference between stop and shutdown

8 years agobump version to 1.0-48
Dietmar Maurer [Thu, 3 Mar 2016 09:38:47 +0000 (10:38 +0100)]
bump version to 1.0-48

8 years agoMove JSONFormat code to PVE::LXC::Config
Fabian Grünbichler [Wed, 2 Mar 2016 13:03:52 +0000 (14:03 +0100)]
Move JSONFormat code to PVE::LXC::Config

Some of this should move into PVE::AbstractConfig soon.

8 years agoRefactor mountpoint and general conf methods
Fabian Grünbichler [Wed, 2 Mar 2016 13:03:51 +0000 (14:03 +0100)]
Refactor mountpoint and general conf methods

Move add_unused_volume into abstract
pve-common/src/PVE/AbstractConfig.pm, because it is
identical for LXC and Qemu.

Move classify_mountpoint, is_volume_in_use, has_dev_console,
mountpoint_names, foreach_mountpoint_XX and get_vm_volumes
to PVE::LXC::Config because they only deal with config
related matters.

(Some of) the latter methods might get moved to or become
implementations of methods in PVE::AbstractConfig in the
future.

8 years agoRework snapshot code, has_feature
Fabian Grünbichler [Wed, 2 Mar 2016 13:03:50 +0000 (14:03 +0100)]
Rework snapshot code, has_feature

Move snapshot_create, snapshot_delete and snapshot_rollback
into abstract pve-common/src/PVE/AbstractConfig.pm,
splitting LXC-specific parts into __snapshot_XX methods in
src/PVE/LXC/Config.pm.

check_freeze_needed, snapshot_prepare and snapshot_commit
are downgraded to private __snapshot_XX methods (in
PVE::AbstractConfig and PVE::LXC::Config).

has_feature is made an implementation of the abstract
has_feature, and thus moves into src/PVE/LXC/Config.pm

8 years agoRefactor config-related methods into AbstractConfig
Fabian Grünbichler [Wed, 2 Mar 2016 13:03:49 +0000 (14:03 +0100)]
Refactor config-related methods into AbstractConfig

Move load_config, write_config, lock_config[_xx],
check_lock, has_lock, set_lock, remove_lock, is_template,
check_protection and config_file to pve-common/src/PVE/
AbstractConfig.pm since they are identical for LXC and
Qemu.

Move cfs_config_path and config_file_lock to implementation
of PVE::AbstractConfig in src/PVE/LXC/Config.pm

Drop create_config and replace it with write_config.

8 years agopct list: Add a 'Lock' column
Wolfgang Bumiller [Tue, 1 Mar 2016 10:07:49 +0000 (11:07 +0100)]
pct list: Add a 'Lock' column

This seems more useful than a 'mounted' state as a
mount-locked container can also be running.

8 years agoDrop used unused volumes when writing config
Fabian Grünbichler [Tue, 1 Mar 2016 09:57:44 +0000 (10:57 +0100)]
Drop used unused volumes when writing config

instead of only when updating the config via pct set or the
API.

This enables us to add unused volumes without calling
is_volume_in_use and mimics the behaviour in QemuServer.pm

8 years agoDon't apply snapshot config in snapshot_commit
Fabian Grünbichler [Tue, 1 Mar 2016 08:14:29 +0000 (09:14 +0100)]
Don't apply snapshot config in snapshot_commit

We hold a lock from snapshot_prepare until snapshot_commit,
so there is no need to copy back the snapshot config to the
actual config.

This allows us to move snapshot_commit to the abstract
 common code base.

8 years agocleanup: remove duplicate code
Dietmar Maurer [Tue, 1 Mar 2016 08:07:49 +0000 (09:07 +0100)]
cleanup: remove duplicate code

8 years agorun_with_loopdev: reuse existing loopdevs
Wolfgang Bumiller [Mon, 29 Feb 2016 08:44:18 +0000 (09:44 +0100)]
run_with_loopdev: reuse existing loopdevs

This will avoid triggering the MMP when mounting a
container locally outside lxc.

8 years agobump version to 1.0-47
Dietmar Maurer [Sat, 27 Feb 2016 13:38:42 +0000 (14:38 +0100)]
bump version to 1.0-47

8 years agoallow starting and stopping a mounted container
Wolfgang Bumiller [Fri, 26 Feb 2016 10:42:12 +0000 (11:42 +0100)]
allow starting and stopping a mounted container

8 years agoImplement pct mount/unmount
Wolfgang Bumiller [Fri, 26 Feb 2016 10:42:10 +0000 (11:42 +0100)]
Implement pct mount/unmount

These are for emergency maintenance and put the container
into a locked state ('mounted' lock).

8 years agoadded set_lock and remove_lock
Wolfgang Bumiller [Fri, 26 Feb 2016 10:42:09 +0000 (11:42 +0100)]
added set_lock and remove_lock

Since set_lock does the implied lock_config() and
load_config() it also returns the loaded config afterwards
as there is no other meaningful return value defined for
this function since failure to apply the lock throws an
exception.

remove_lock() also takes a lock name in order to make sure
only the correct lock is being removed.

8 years agoImplement pct push/pull
Wolfgang Bumiller [Fri, 26 Feb 2016 10:42:08 +0000 (11:42 +0100)]
Implement pct push/pull

These commands are for running containers only.

To avoid symlink problems these implementations switch
between the host's and container's namespace to open the
corresponding file handles, then copy the data.

With unprivileged containers we also enter the container's
user-namespace with pct-push and switch to the container's
root user before opening the destination for writing in
order to create new files with the mapped root user.

8 years agoRefactor has_feature
Fabian Grünbichler [Fri, 26 Feb 2016 08:19:44 +0000 (09:19 +0100)]
Refactor has_feature

add unused running flag for signature compatibility to
QemuServer.pm
add backup_only flag to replace former feature workaround,
needed to skip backup=no mountpoints if called from VZDump.

8 years agoMake snapshot_save_vmstate proper sub
Fabian Grünbichler [Fri, 26 Feb 2016 08:19:43 +0000 (09:19 +0100)]
Make snapshot_save_vmstate proper sub

8 years agoFix #898: typo
Wolfgang Bumiller [Fri, 26 Feb 2016 07:07:46 +0000 (08:07 +0100)]
Fix #898: typo

8 years agoAdapt and add testcases for mp support
Fabian Grünbichler [Wed, 24 Feb 2016 11:28:35 +0000 (12:28 +0100)]
Adapt and add testcases for mp support

8 years agoAdd mp support to snapshots
Fabian Grünbichler [Wed, 24 Feb 2016 11:28:34 +0000 (12:28 +0100)]
Add mp support to snapshots

Modelled after QemuServer's way of handling multiple drives.

8 years agoCheck volume usage in snapshots before deleting
Fabian Grünbichler [Wed, 24 Feb 2016 11:28:33 +0000 (12:28 +0100)]
Check volume usage in snapshots before deleting

8 years agopct enter: check if container runs before lxc-attach
Thomas Lamprecht [Wed, 24 Feb 2016 08:33:41 +0000 (09:33 +0100)]
pct enter: check if container runs before lxc-attach

else we get:
 >
 > lxc-attach: attach.c: lxc_attach: 710 failed to get the init pid

which an arbitrary user could misunderstand.

8 years agoAdd snapshot rollback testcases
Fabian Grünbichler [Tue, 23 Feb 2016 14:00:14 +0000 (15:00 +0100)]
Add snapshot rollback testcases

8 years agoCleanup test output
Fabian Grünbichler [Tue, 23 Feb 2016 14:00:13 +0000 (15:00 +0100)]
Cleanup test output

8 years agoUse run_command instead of system to stop CT
Fabian Grünbichler [Tue, 23 Feb 2016 14:00:12 +0000 (15:00 +0100)]
Use run_command instead of system to stop CT

8 years agoAdd '\n' to die statements
Fabian Grünbichler [Tue, 23 Feb 2016 14:00:11 +0000 (15:00 +0100)]
Add '\n' to die statements

8 years agoonly root@pam should be able to add bind mounts
Wolfgang Bumiller [Tue, 23 Feb 2016 08:54:03 +0000 (09:54 +0100)]
only root@pam should be able to add bind mounts