Christian Brauner
421a42bfe3
Merge pull request #1504 from Blub/limits-fixup
...
start: fix error handling when limits fail to apply
2017-04-11 17:10:57 +02:00
Wolfgang Bumiller
84ff3af745
start: fix error handling when limits fail to apply
...
(The code was moved here from the child side of the startup
without adapting the error case.)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2017-04-11 16:43:41 +02:00
Christian Brauner
64f26a8902
Merge pull request #1276 from Blub/limits
...
Resource Limits
2017-04-11 16:35:06 +02:00
Wolfgang Bumiller
a6390f01cc
conf: less error prone pointer access
...
These functions define pointer to their key shifted by a
number and guard access to it later via another variable.
Let's make this more explicit (and additionally have the
pointer be NULL in the case where it is not supposed to be
used).
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2017-04-11 14:01:11 +02:00
Wolfgang Bumiller
fe17b651c5
test: resource limit config entries
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2017-04-11 14:01:11 +02:00
Wolfgang Bumiller
93f9e90d72
doc: add lxc.limit to lxc.container.conf
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2017-04-11 14:01:11 +02:00
Wolfgang Bumiller
c6d09e15c5
conf: implement resource limits
...
This adds lxc.limit.<name> options consisting of one or two
colon separated numerical values (soft and optional hard
limit). If only one number is specified it'll be used for
both soft and hard limit. Additionally the word 'unlimited'
can be used instead of numbers.
Eg.
lxc.limit.nofile = 30000:32768
lxc.limit.stack = unlimited
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2017-04-11 14:01:11 +02:00
Christian Brauner
359f86f975
Merge pull request #1501 from jgillich/patch-1
...
remove obsolete note about api stability
2017-04-08 06:18:43 +02:00
Jakob Gillich
0cb906e681
remove obsolete note about api stability
...
Signed-off-by: Jakob Gillich <jakob@gillich.me>
2017-04-08 03:16:33 +02:00
Stéphane Graber
57f0c5808e
Merge pull request #1500 from BegBlev/1498
...
make Alpine template more POSIX shell friendly #1498
2017-04-07 12:09:54 -04:00
Vincent Catros
7276799bd7
avoid assigning to a variable which is not POSIX shell proof (bug #1498 )
...
Signed-off-by: Vincent Catros <vincent.catros@laposte.net>
2017-04-07 17:14:44 +02:00
Stéphane Graber
67c9752186
Merge pull request #1494 from d4s/lxcinfo
...
Increased buffer length in print_stats()
2017-03-30 12:26:27 -04:00
Stéphane Graber
1266eb51fb
Merge pull request #1493 from t-fohrer/t-fohrer-patch-4
...
Avoid waiting for bridge interface on bootup
2017-03-30 12:11:19 -04:00
Denis Pynkin
1bbc627538
Increased buffer length in print_stats()
...
Some "/sys" entries exceeds buffer size.
This results to some statistics loss ('BlkIO' in particular):
wc -c /sys/fs/cgroup/blkio/lxc/alt/blkio.throttle.io_service_bytes
318 /sys/fs/cgroup/blkio/lxc/alt/blkio.throttle.io_service_bytes
Signed-off-by: Denis Pynkin <dans@altlinux.org>
2017-03-30 18:43:25 +03:00
Torsten Fohrer
723d30f7ff
Avoid waiting for bridge interface if disabled in sysconfig/lxc | lxc-net via USE_LXC_BRIDGE
...
Signed-off-by: Torsten Fohrer <tfohrer@googlemail.com>
2017-03-30 11:57:14 +02:00
Stéphane Graber
1a9eaaab20
Merge pull request #1432 from brauner/2017-02-15/fix_lxc_execute_return_code
...
tools: exit with return code of lxc_execute()
2017-03-23 17:49:56 -04:00
Christian Brauner
d04813f9b5
Makefile: fix static clang init.lxc build
...
Signed-off-by: Serge Hallyn <serge@hallyn.com>
2017-03-23 22:22:10 +01:00
Stéphane Graber
fcab4fecdb
Merge pull request #1487 from t-fohrer/t-fohrer-patch-3
...
Keep veth.pair.name on network shutdown
2017-03-23 11:43:58 -04:00
Torsten Fohrer
ea80ca74d2
Keep veth.pair.name on network shutdown
...
In case of a container that is rebooting, freeing veth.pair.name here results in losing given veth.pair name
(Only if given lxc_netdev is reused).
Signed-off-by: Torsten Fohrer <tfohrer@googlemail.com>
2017-03-23 14:58:33 +01:00
Christian Brauner
69d47ee1c4
Merge pull request #1486 from stgraber/master
...
fedora: Fix i386 handling
2017-03-22 22:30:36 +01:00
Stéphane Graber
e8672a9d71
fedora: Fix i386 handling
...
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2017-03-22 17:18:47 -04:00
Stéphane Graber
0ccaa85b5b
Merge pull request #1483 from johnchen902/patch-1
...
Fix opening wrong file in suggest_default_idmap
2017-03-22 00:38:34 -04:00
John Chen
6be7389a70
Fix opening wrong file in suggest_default_idmap
...
Fixing the typo making `suggest_default_idmap` open `subuidfile`
instead of `subgidfile` to read subgid information.
Signed-off-by: Pochang Chen <johnchen902@gmail.com>
2017-03-22 11:08:47 +08:00
Stéphane Graber
f73d368b72
Merge pull request #1479 from brauner/2017-03-20/sysmacro
...
tree-wide: include <sys/sysmacros.h> directly
2017-03-21 19:19:50 -04:00
Christian Brauner
79061184c2
Merge pull request #1482 from stgraber/master
...
tests: Support running on IPv6 networks
2017-03-21 22:18:16 +01:00
Stéphane Graber
09ef083882
tests: Kill containers (don't wait for shutdown)
...
We waste a lot of time waiting for Ubuntu containers to cleanly stop
right before we destroy them anyway.
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2017-03-21 16:35:44 -04:00
Stéphane Graber
f332b5d0a0
tests: Support running on IPv6 networks
...
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2017-03-21 16:23:27 -04:00
Christian Brauner
66c1f8c270
tree-wide: include <sys/sysmacros.h> directly
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2017-03-21 12:03:16 +01:00
Stéphane Graber
f5c3ae5928
Merge pull request #1476 from brauner/2017-03-20/sysmacro
...
tree-wide: include <sys/sysmacros.h> directly
2017-03-20 11:10:57 -04:00
Christian Brauner
ce831b3b88
tree-wide: include <sys/sysmacros.h> directly
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2017-03-20 15:42:50 +01:00
Stéphane Graber
81f8080a6a
Merge pull request #1474 from evgeni/no-default-passwords
...
don't set a default password for altlinux, gentoo, openmandriva and pld
2017-03-19 15:01:21 -04:00
Stéphane Graber
f341f1aea8
Merge pull request #1473 from taikedz/keyservfix
...
Allow setting the key server as an environment variable
2017-03-19 15:00:03 -04:00
Evgeni Golov
436ab4be72
don't set a default password for altlinux, gentoo, openmandriva and pld
...
Refs: #1158
Signed-off-by: Evgeni Golov <evgeni@debian.org>
2017-03-19 18:48:22 +01:00
Tai Kedzierski
a9a53b5070
Change variable check to match existing style
...
Signed-off-by: Tai Kedzierski <dch.tai@gmail.com>
2017-03-19 17:28:26 +00:00
Tai Kedzierski
d2e5c5d18f
lxc-download.in / Document keyserver change in help
...
Signed-off-by: Tai Kedzierski <dch.tai@gmail.com>
2017-03-19 09:27:42 +00:00
Tai Kedzierski
a6a7c7d191
lxc-download.in / allow setting keyserver from env
...
Checks if DOWNLOAD_KEYSERVER has already been set in the environment before setting a value
Signed-off-by: Tai Kedzierski <dch.tai@gmail.com>
2017-03-19 09:21:29 +00:00
Christian Brauner
b49bb7dce8
Merge pull request #1468 from stgraber/master
...
python3: Deal with potential NULL char*
2017-03-17 10:45:10 +01:00
Stéphane Graber
f194007973
python3: Deal with potential NULL char*
...
Closes #1466
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2017-03-17 10:15:02 +01:00
Stéphane Graber
1fc76a07d4
Merge pull request #1433 from rjmccabe3701/bugfix/run-within-docker
...
Added 'mkdir -p' functionality in create_or_remove_cgroup
2017-03-15 19:41:13 -04:00
Stéphane Graber
6e42a5ea63
Merge pull request #1465 from geaaru/lxc-sabayon-unpriv
...
[lxc-sabayon] Disable _unprivileged_shift_owner for create unprivileg…
2017-03-15 19:10:36 -04:00
Geaaru
3d288bbe37
[lxc-sabayon] Disable _unprivileged_shift_owner for create unprivileged container images for lxd and lxc-download.
...
Signed-off-by: Geaaru <geaaru@gmail.com>
2017-03-15 20:23:39 +01:00
Stéphane Graber
bb2f438985
Merge pull request #1463 from armchair-philosophy/up_templates_arch
...
[templates] archlinux: resolve conflicting files
2017-03-14 20:47:21 -04:00
otofune
d720fa1130
[templates] archlinux: noneed default_timezone variable
...
Signed-off-by: otofune <otofune@gmail.com>
2017-03-15 09:38:18 +09:00
otofune
349fadd6e3
[templates] archlinux: resolve conflicting files
...
- already found /etc/localtime
- duplicate creation /etc/resolv.conf
Signed-off-by: otofune <otofune@gmail.com>
2017-03-15 09:17:07 +09:00
Christian Brauner
9b001960df
Merge pull request #1462 from hallyn/2017-03-14/checknewuidmap
...
lxc-checkconfig: verify new[ug]idmap are setuid-root
2017-03-14 20:41:25 +01:00
Serge Hallyn
f974149d92
lxc-checkconfig: verify new[ug]idmap are setuid-root
...
Signed-off-by: Serge Hallyn <serge@hallyn.com>
2017-03-14 13:18:01 -05:00
Christian Brauner
50de283493
Merge pull request #1461 from jirutka/alpine
...
lxc-alpine: few modifications
2017-03-14 19:01:08 +01:00
Jakub Jirutka
72ead1c054
lxc-alpine: use dl-cdn.a.o as default mirror instead of random one
...
Some mirrors from the mirrors list are not very reliable and it seems
that no one really wants to use some random mirror as the default
option.
Signed-off-by: Jakub Jirutka <jakub@jirutka.cz>
2017-03-14 17:58:19 +01:00
Jakub Jirutka
288142218a
lxc-alpine: add community repository to default repositories
...
Signed-off-by: Jakub Jirutka <jakub@jirutka.cz>
2017-03-14 17:50:35 +01:00
Christian Brauner
d32e7cd7f3
Merge pull request #1460 from stgraber/master
...
Patch from Harald Dunkel + tweak
2017-03-14 14:36:02 +01:00