]> git.proxmox.com Git - pve-container.git/log
pve-container.git
7 years agofix and improve bindmount tests
Wolfgang Bumiller [Fri, 3 Jun 2016 07:54:04 +0000 (09:54 +0200)]
fix and improve bindmount tests

fixed leftover mounts after running the tests
added another testcase:
  inject symlink before mount() and restore before verify()

7 years agobindmount: catch rw/ro race and add tests
Wolfgang Bumiller [Thu, 2 Jun 2016 14:23:09 +0000 (16:23 +0200)]
bindmount: catch rw/ro race and add tests

rw/ro race occurs when a container contains the same bind
mount twice and another container contains a bind mount
containing the first container's destination. If the double
bind mounts are both meant to be read-only then the second
container could theoretically swap them out between the
mount and the read-only remount call, then swap them back
for the test. So to verify this we use the same file
descriptor we use for the dev/inode check and perform an
faccessat() call and expect it to return EROFS and nothing
else.

Also include O_NOFOLLOW in the checks' openat() calls.

7 years agomore changelogs...
Dietmar Maurer [Wed, 1 Jun 2016 09:31:09 +0000 (11:31 +0200)]
more changelogs...

7 years agoupdate changelog
Dietmar Maurer [Wed, 1 Jun 2016 09:27:38 +0000 (11:27 +0200)]
update changelog

7 years agodeal with a check_mount_path race condition
Wolfgang Bumiller [Wed, 1 Jun 2016 07:44:51 +0000 (09:44 +0200)]
deal with a check_mount_path race condition

While the container itself might not be running and cannot
influence the mounting between check_mount_path() and
mount(), this is a possibility when multiple containers
have write access to the same recursive bind mount
hierarchy.

This patch adds a walk_tree_nofollow() function performing
two things: It walks a path from a starting point following
no symlinks and erroring if it encounters one. And if
requested creates all the missing directories.
This replaces both the combination of check_mount_path() and
mkpath(), and the check_mount_path() in bindmount() while
giving the latter the ability to also access the "last
component" of the path via openat() a second time after
mounting (as an alternative to also including an fstatat()
syscall) in order to verify the path which was ultimately
mounted is indeed the path walked in the first check.

7 years agodon't allow automatic restore to dev/bind rootfs
Fabian Grünbichler [Mon, 30 May 2016 12:40:24 +0000 (14:40 +0200)]
don't allow automatic restore to dev/bind rootfs

we cannot delay the rootfs, but we also don't want
to automatically restore to a device or bind mount
because that might destroy existing data..

only allow this when explicitly requested via -rootfs

7 years agowarn about unsupported backup configuration
Fabian Grünbichler [Mon, 30 May 2016 12:40:22 +0000 (14:40 +0200)]
warn about unsupported backup configuration

7 years agoadd ignore_ro flag to mount_all
Fabian Grünbichler [Mon, 30 May 2016 12:40:20 +0000 (14:40 +0200)]
add ignore_ro flag to mount_all

7 years agoautomatically restore mountpoints from backup
Fabian Grünbichler [Mon, 30 May 2016 12:40:19 +0000 (14:40 +0200)]
automatically restore mountpoints from backup

if the mountpoint configuration is not explicitly provided
via -rootfs or -mpX , recreate all volume mountpoints on the
provided -storage , restore the archive and then add
non-volume mountpoints back to the configuration.

if -rootfs (and optionally any -mpX) are provided, the old
configuration contained in the backup archive is ignored.
this allows reconfiguration of mountpoints when restoring a
backup, e.g. to change mountpoint paths or other options. in
this mode restoring backups to bind or device mountpoints is
also possible.

7 years agoupdate changelog
Dietmar Maurer [Wed, 25 May 2016 08:18:38 +0000 (10:18 +0200)]
update changelog

7 years agodelete correct parent key
Fabian Grünbichler [Wed, 25 May 2016 08:05:18 +0000 (10:05 +0200)]
delete correct parent key

7 years agofix deletion of backup snapshots
Fabian Grünbichler [Wed, 25 May 2016 08:05:17 +0000 (10:05 +0200)]
fix deletion of backup snapshots

add missing checks for non-backed up mountpoints

7 years agoexclude non-volume mps from backup
Fabian Grünbichler [Wed, 25 May 2016 08:05:16 +0000 (10:05 +0200)]
exclude non-volume mps from backup

even if backup is set to 1.

inform about excluded bind/dev/backup-disabled mountpoints

7 years agoLXC::Config: make mountpoint_backup_enabled a class method
Wolfgang Bumiller [Tue, 24 May 2016 08:57:45 +0000 (10:57 +0200)]
LXC::Config: make mountpoint_backup_enabled a class method

All subs in there are defined as class method and the commit
which introduced this also used it as one in
PVE::VZDump::LXC and thereby broke vzdump on containers
as it passes wrong parameters to the function.

7 years agoClose #999: gentoo: hostname is in /etc/conf.d/hostname
Wolfgang Bumiller [Mon, 23 May 2016 10:53:06 +0000 (12:53 +0200)]
Close #999: gentoo: hostname is in /etc/conf.d/hostname

This is also a shell-style assignment but should only
contain the hostname and nothing else. Although if someone
complains we could switch to ct_modify_file there as well.

7 years agouse BEGIN/END markers for gateway scripts
Wolfgang Bumiller [Fri, 13 May 2016 09:10:21 +0000 (11:10 +0200)]
use BEGIN/END markers for gateway scripts

remove_gateway_scripts() for debian containers can easily
match user-created scripts since it's not strict enough,
which now that we always clean up gateways appears to be an
issue for some.

To deal with this we update this portion to also use
BEGIN/END markers like we did with other files. (Note that
this means we explicitly include the BEGIN/END comment lines
in the 'attribute' list while parsing sections.)

In order to not break existing container configurations we
now remove either a begin/end marked section in
remove_gateway_scripts(), or if none was found fall back to
a much stricter variant of the old matching algorithm which
only triggers if the gateway setup lines are complete and
unmodified.

7 years agobump version to 1.0-66
Dietmar Maurer [Mon, 23 May 2016 05:05:28 +0000 (07:05 +0200)]
bump version to 1.0-66

7 years agoSetup: add gentoo support
Wolfgang Bumiller [Thu, 19 May 2016 13:21:43 +0000 (15:21 +0200)]
Setup: add gentoo support

With DHCPv6 we're in a similar boat as with Alpine: The
default templates only ship busybox' udhcpc which doesn't do
ipv6 at all, and if dhclient/dhcpcd are installed there'd
still be no way to configure ONLY dhcpv6 without including
dhcpv4. (We could just dump in a dhclientv6.sh script to
/lib64/netifrc/net/dhclientv6.sh if someone absolutely needs
it...)

Also the fact that the network configuration can in *theory*
be a full blown bash script is a bit inconvenient.

7 years agocleanup descriptions
Dietmar Maurer [Thu, 19 May 2016 14:10:47 +0000 (16:10 +0200)]
cleanup descriptions

7 years agobump version to 1.0-65
Dietmar Maurer [Wed, 18 May 2016 09:30:35 +0000 (11:30 +0200)]
bump version to 1.0-65

7 years agoallow VLAN 1 tag in containers
Dietmar Maurer [Wed, 18 May 2016 09:29:12 +0000 (11:29 +0200)]
allow VLAN 1 tag in containers

7 years agoremove backup property from rootfs
Dietmar Maurer [Wed, 18 May 2016 08:26:14 +0000 (10:26 +0200)]
remove backup property from rootfs

Because it only makes sense for mount points. We always backup
rootfs anyways.

7 years agonew helper mountpoint_backup_enabled()
Dietmar Maurer [Wed, 18 May 2016 05:40:59 +0000 (07:40 +0200)]
new helper mountpoint_backup_enabled()

to test if backup is enabled for a specific mount point.

7 years agoadd missing class PVE::LXC::Config
Dietmar Maurer [Wed, 18 May 2016 05:25:14 +0000 (07:25 +0200)]
add missing class PVE::LXC::Config

7 years agobump version to 1.0-64
Dietmar Maurer [Sat, 14 May 2016 07:06:36 +0000 (09:06 +0200)]
bump version to 1.0-64

7 years agosetup: add ct_is_executable wrapper
Wolfgang Bumiller [Thu, 12 May 2016 08:46:41 +0000 (10:46 +0200)]
setup: add ct_is_executable wrapper

(This is only a minor fix since these functions are run
while chrooted into the container directory anyway.)

7 years agoAlpine.pm: remove unused variable
Dietmar Maurer [Thu, 12 May 2016 07:32:04 +0000 (09:32 +0200)]
Alpine.pm: remove unused variable

7 years agosetup: check if securetty exists
Thomas Lamprecht [Wed, 11 May 2016 15:06:14 +0000 (17:06 +0200)]
setup: check if securetty exists

If securetty does not exists yet (e.g. some Alpine 3.2 templates do
that) this leads to an die on CT creation, although we do not need
an existing securetty file as all login devices/ttys are already
allowed if not existing.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 years agoimprove error message on container without rootfs
Dietmar Maurer [Thu, 12 May 2016 04:21:07 +0000 (06:21 +0200)]
improve error message on container without rootfs

7 years agouse run_cli_handler() instead of depreciated run_cli()
Dietmar Maurer [Thu, 12 May 2016 04:09:34 +0000 (06:09 +0200)]
use run_cli_handler() instead of depreciated run_cli()

7 years agoremove unneccessary format_description
Dietmar Maurer [Wed, 11 May 2016 09:23:26 +0000 (11:23 +0200)]
remove unneccessary format_description

7 years agohwaddr: improve property description
Dietmar Maurer [Sat, 7 May 2016 09:08:44 +0000 (11:08 +0200)]
hwaddr: improve property description

7 years agoexport $netconf_desc, so that we can generate docs
Dietmar Maurer [Sat, 7 May 2016 06:58:01 +0000 (08:58 +0200)]
export $netconf_desc, so that we can generate docs

7 years agoupdate changelog
Dietmar Maurer [Wed, 4 May 2016 10:05:09 +0000 (12:05 +0200)]
update changelog

7 years agofix typos
Fabian Grünbichler [Wed, 4 May 2016 09:08:32 +0000 (11:08 +0200)]
fix typos

7 years agofix #971: don't activate shared storage in offline migration
Fabian Grünbichler [Wed, 4 May 2016 09:08:31 +0000 (11:08 +0200)]
fix #971: don't activate shared storage in offline migration

7 years agoupdate changelog
Dietmar Maurer [Tue, 3 May 2016 06:04:46 +0000 (08:04 +0200)]
update changelog

7 years agoAlpine: generate correct inittab
Thomas Lamprecht [Mon, 2 May 2016 14:10:59 +0000 (16:10 +0200)]
Alpine: generate correct inittab

Previously inittab had a hardcoded number of ttys, remove them and
re-add the ones configured by the user.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 years agoAlpine: fixup securetty
Thomas Lamprecht [Mon, 2 May 2016 13:26:50 +0000 (15:26 +0200)]
Alpine: fixup securetty

It seems busybox has some problems with links thus the tty dev
detection doesn't work, as workaround add also the lxc/tty[1-4] and
lxc/console devs to securetty to allow root login over the console.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 years agobump version to 1.0-63
Dietmar Maurer [Tue, 3 May 2016 05:19:38 +0000 (07:19 +0200)]
bump version to 1.0-63

7 years agocleanup gateway hooks in debian network setup
Fabian Grünbichler [Mon, 2 May 2016 13:41:14 +0000 (15:41 +0200)]
cleanup gateway hooks in debian network setup

remove the calls to "ip route" in post-up and pre-down even
if no new gateway was defined for an interface, otherwise
those hooks will remain until manually removed.

7 years agofix uninitialized value warning
Fabian Grünbichler [Mon, 2 May 2016 13:41:13 +0000 (15:41 +0200)]
fix uninitialized value warning

8 years agobump version to 1.0-62, set RELEASE=4.2
Dietmar Maurer [Tue, 26 Apr 2016 14:01:04 +0000 (16:01 +0200)]
bump version to 1.0-62, set RELEASE=4.2

8 years agocentos: fixup ipv6 out-of-subnet route
Wolfgang Bumiller [Mon, 25 Apr 2016 14:20:43 +0000 (16:20 +0200)]
centos: fixup ipv6 out-of-subnet route

Centos needs these in route6-$iface, not route-$iface.
It also seems to make sense to not include the
IPV6_DEFAULTGW when a route6-$iface file is used containing
the default gateway.

Also adding the device to the routes.

8 years agodebian: always include the 'dev' portion in explicit routes
Wolfgang Bumiller [Mon, 25 Apr 2016 14:20:42 +0000 (16:20 +0200)]
debian: always include the 'dev' portion in explicit routes

This should be safer (and would have fixed the link-local
case for debian, too).

8 years agosetup: deal with link-local gateways
Wolfgang Bumiller [Mon, 25 Apr 2016 14:20:41 +0000 (16:20 +0200)]
setup: deal with link-local gateways

We used to write out special routes for gateways outside the
IP address' subnet, but link-local addresses don't need the
extra route.

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.