Serge Hallyn
bced9b015a
Merge pull request #1005 from tych0/warn-about-unexpected-sync-size
...
sync: fail on unexpected message sizes
2016-05-06 18:16:21 -05:00
Tycho Andersen
fcd59cf0c8
sync: fail on unexpected message sizes
...
I think (?) this may be related to our hanging monitor bug. Let's do this
anyway, as it's probably a good idea.
Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
2016-05-06 11:21:39 -05:00
Christian Brauner
297dbb7b4f
Merge pull request #1004 from Lisio/alpine-hostname
...
Force DHCP client to send hostname
2016-05-05 22:51:21 +02:00
Lisio
7f1473c315
Force DHCP client to send hostname
...
Required for proper applying dnsmasq config entries.
Signed-off-by: Andrey Kostin <andrey@kostin.email>
2016-05-05 17:59:28 +03:00
Christian Brauner
561067aa22
Merge pull request #998 from thtanaka/network-config
...
Improve on the case where default networking config is incomplete
2016-05-02 23:14:46 +02:00
Thomas Tanaka
bc3b327244
Improve on the case where default networking config is incomplete
...
Signed-off-by: Thomas Tanaka <thomas.tanaka@oracle.com>
2016-05-02 11:57:15 -07:00
Christian Brauner
5bb64b32b8
Merge pull request #997 from ysbnim/master
...
Update Korean manuals
2016-05-02 11:46:20 +02:00
Sungbae Yoo
f7fe38741d
doc: Add logging option to Korean lxc-attach(1)
...
Update for commit f43d63b
Signed-off-by: Sungbae Yoo <sungbae.yoo@samsung.com>
2016-05-02 18:25:29 +09:00
Christian Brauner
25e032fb43
Merge pull request #995 from ar45/fix_system_error_init_container_failed
...
set PyErr when Container.__init__ fails
2016-05-01 23:42:15 +02:00
Christian Brauner
b4e73f49f3
Merge pull request #996 from ar45/add_network_type_to_keys
...
Expose lxc.network.type through lxc_list_nicconfigs()
2016-05-01 20:38:57 +02:00
Aron Podrigal
7483699228
Added type
to keys in lxc_list_nicconfigs
...
Signed-off-by: Aron Podrigal <aronp@guaranteedplus.com>
2016-05-01 12:15:51 -04:00
Aron Podrigal
9dfb0ad9be
Fixed - set PyErr when Container.__init__ fails
...
When container init failed for whatever reason, previously it resulted
in a `SystemError: NULL result without error in PyObject_Call`
This will now result in a RuntimeError with the error message
previously printed to stderr.
Signed-off-by: Aron Podrigal <aronp@guaranteedplus.com>
2016-05-01 11:38:33 -04:00
Stéphane Graber
0aeed838e7
Merge pull request #993 from walkerning/check-tty
...
Check if the stdout is a terminal in lxc-checkconfig
2016-05-01 04:17:42 +02:00
walkerning
8513d8cd02
Check if stdout is a terminal in lxc-checkconfig
...
Let lxc-checkconfig write to non-tty stdout without color control
characters
Signed-off-by: walkerning <foxdoraame@gmail.com>
2016-05-01 10:05:10 +08:00
Serge Hallyn
1970a777ed
Merge pull request #991 from brauner/2016-04-28/less_syscall_for_lxc_ls
...
2016 04 28/less syscall for lxc ls
2016-04-29 13:26:26 -05:00
Christian Brauner
688cd8439d
lxc-ls: non-functional changes
...
Signed-off-by: Christian Brauner <christian.brauner@mailbox.org>
2016-04-28 23:45:05 +02:00
Christian Brauner
6daa3ea5ba
lxc-ls: use fewer syscalls when doing ipc
...
Signed-off-by: Christian Brauner <christian.brauner@mailbox.org>
2016-04-28 23:45:00 +02:00
Stéphane Graber
1bf4292e3f
Merge pull request #978 from evgeni/lsb-init-scripts
...
don't make sysv init scripts dependant on distribution specifics
2016-04-25 15:55:49 +02:00
Christian Brauner
a14574ba84
Merge pull request #987 from tenforward/japanese
...
doc: Add logging option to Japanese lxc-attach(1)
2016-04-25 12:35:19 +02:00
KATOH Yasufumi
8359be8c82
doc: Add logging option to Japanese lxc-attach(1)
...
Update for commit f43d63b
Signed-off-by: KATOH Yasufumi <karma@jazz.email.ne.jp>
2016-04-25 19:30:03 +09:00
Stéphane Graber
53d6eeded2
Update maintainers
...
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2016-04-24 18:34:31 -04:00
Leonid Isaev
5590a671bc
Initialize a pointer in split_init_cmd() to avoid gcc warnings
...
gcc -Wall warns about uninitialized variables (-Wmaybe-uninitialized), and
-Werror makes it fatal. This change allows the build to succeed by NULL'ifying
the pointer passed to strtok_r().
Note that strtok_r(3) anyway ignores a non-NULL arg3 pointer on the 1st call
with non-NULL arg1 string.
Signed-off-by: Leonid Isaev <leonid.isaev@jila.colorado.edu>
Acked-by: Serge Hallyn <serge.hallyn@ubuntu.com>
2016-04-22 16:29:13 -05:00
Serge Hallyn
1ee85fbcc4
Merge pull request #982 from brauner/2016-04-19/mimic_ssh
...
use raw settings of ssh for pty
2016-04-19 13:27:16 -05:00
Christian Brauner
a7c97a40ec
use raw settings of ssh for pty
...
Signed-off-by: Christian Brauner <christian.brauner@mailbox.org>
2016-04-19 15:17:19 +02:00
Christian Brauner
cb730f0125
Merge pull request #981 from LynxChaus/master
...
Switch console pty to raw mode.
2016-04-18 21:25:41 +02:00
Andrey Jr. Melnikov
d389339970
Switch console pty to raw mode. Without this some ncurses-based programs behave incorrectly
...
Signed-off-by: Andrey Jr. Melnikov <temnota.am@gmail.com>
2016-04-18 19:16:08 +03:00
Evgeni Golov
3083782cf8
don't make sysv init scripts dependant on distribution specifics
...
- /etc(/rc.d)?/init.d/functions does not exist on all distributions
- LSB does not define a message function without an explicit status
- Debian-derived systems add a log_daemon_msg for that
lets define an own log_daemon_msg as echo and try to load LSB init
functions afterwards, which might overload it with a nicer version
that way the init scripts should work on any system, without hard
dependencies on neither LSB nor /etc/init.d/functions
Closes #309 #310 #311
Signed-off-by: Evgeni Golov <evgeni@debian.org>
2016-04-15 21:23:57 +02:00
Christian Brauner
85145234e7
Merge pull request #976 from evgeni/drop-syslog.target
...
drop obsolete syslog.target from lxc.service.in
2016-04-15 13:11:29 +02:00
Evgeni Golov
a5747ee708
drop obsolete syslog.target from lxc.service.in
...
the target is obsolete since systemd v38 which everybody should have.
original patch by Daniel Baumann
Signed-off-by: Evgeni Golov <evgeni@debian.org>
2016-04-14 18:03:29 +02:00
Stéphane Graber
da1eace1de
Merge pull request #974 from ar45/lxc_python_create_with_tuple
...
Fixed python-lxc reference to var before assignment
2016-04-14 00:41:12 -04:00
Aron Podrigal
9cee41def4
Fixed python-lxc reference to var before assignment
...
```
>>> c = lxc.Container('ct')
>>> c.create('debian', args=('-r', 'jessie'))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3/dist-packages/lxc/__init__.py", line 229, in
create
template_args['args'] = tuple(tmp_args)
UnboundLocalError: local variable 'tmp_args' referenced before
assignment
```
Signed-off-by: Aron Podrigal <aronp@guaranteedplus.com>
2016-04-14 00:24:08 -04:00
Stéphane Graber
8157403674
Merge pull request #972 from evgeni/lsb-headers
...
add missing lsb headers to sysvinit scripts
2016-04-13 18:47:53 -04:00
Christian Brauner
dd132eaa27
Merge pull request #973 from evgeni/debian-no-rootpw
...
do not set the root password in the debian template
2016-04-14 00:32:56 +02:00
Evgeni Golov
515fb8d20c
do not set the root password in the debian template
...
closes #302
Signed-off-by: Evgeni Golov <evgeni@debian.org>
2016-04-13 18:04:19 +02:00
Evgeni Golov
26ca5e5bcf
add missing lsb headers to sysvinit scripts
...
original patch by Daniel Baumann
closes #308
Signed-off-by: Evgeni Golov <evgeni@debian.org>
2016-04-13 17:55:48 +02:00
Serge Hallyn
ba03fa64b9
Merge pull request #970 from brauner/2016-04-13/lxc_attach_log
...
lxc-attach: error on -L/--pty-log + redirection
2016-04-13 10:19:03 -05:00
Christian Brauner
804bd6e32f
only execute last test when we are a pty
...
Signed-off-by: Christian Brauner <christian.brauner@mailbox.org>
2016-04-13 16:54:15 +02:00
Christian Brauner
e4be55c41f
Merge pull request #971 from hallyn/2016-04-12/nosystemd
...
cgfsng: don't require that systemd subsystem be mounted
2016-04-13 16:40:19 +02:00
Christian Brauner
c87524b77b
lxc-attach: error on -L/--pty-log + redirection
...
pty logging only works correctly when stdout and stderr refer to a pty. If they
do not, we do not dup2() them and lxc_console_cb_con() will never write to the
corresponding log file descriptor.
When redirection on stdout and stderr is used we can safely assume that the user
is already logging to a file or /dev/null and creating an additional pty log
doesn't seem to make sense.
Signed-off-by: Christian Brauner <christian.brauner@mailbox.org>
2016-04-13 15:23:35 +02:00
Stéphane Graber
c4828d7416
Merge pull request #966 from evgeni/SOURCE_DATE_EPOCH
...
nicer date format and support for SOURCE_DATE_EPOCH in LXC_GENERATE_DATE
2016-04-12 15:38:01 -04:00
Serge Hallyn
c30b61c376
cgfsng: don't require that systemd subsystem be mounted
...
Note that is_crucial_subsystem still lists name=systemd. That is
used in cgfs and cgmanager. Cgmanager is typically setup to create
name=systemd, so it is ok. cgfs uses is_crucial_subsystem() only
to decide whether failure to create or chown a directory should be
terminal. That's ok, because (a) if name=systemd is not mounted then
we won't hit that, and (b) if name=systemd is mounted, then we'd
really still like to set it up for containers.
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
2016-04-12 12:41:39 -05:00
Evgeni Golov
8d256e4de7
nicer date format and support for SOURCE_DATE_EPOCH in LXC_GENERATE_DATE
...
Using $(date) for LXC_GENERATE_DATE has various flaws:
* formating depends on the locale of the system we execute configure on
* the output is not really a date but more a timestamp
Let's use $(date --utc '+%Y-%m-%d') instead.
While at it, also support SOURCE_DATE_EPOCH [1] to make the build
reproducible
[1] https://reproducible-builds.org/specs/source-date-epoch/
Signed-off-by: Evgeni Golov <evgeni@debian.org>
2016-04-12 19:20:10 +02:00
Serge Hallyn
1f7c5761aa
Merge pull request #964 from brauner/2016-04-11/lxc_attach_manpage
...
lxc-attach: add logging option to manpage
2016-04-12 10:22:41 -05:00
Serge Hallyn
3e9b7c1bde
Merge pull request #965 from brauner/2016-04-12/lxc_destroy_avoid_double_print
...
lxc-destroy: avoid double print
2016-04-11 17:42:17 -05:00
Christian Brauner
446ca81091
lxc-destroy: avoid double print
...
Signed-off-by: Christian Brauner <christian.brauner@mailbox.org>
2016-04-12 00:02:21 +02:00
Serge Hallyn
d227bed9de
Merge pull request #962 from staticfox/gitignore
...
Ignore temporary files generated by doxygen
2016-04-11 15:10:07 -05:00
Christian Brauner
f43d63bc66
lxc-attach: add logging option to manpage
...
Signed-off-by: Christian Brauner <christian.brauner@mailbox.org>
2016-04-11 18:14:16 +02:00
Serge Hallyn
9f616d8453
Merge pull request #963 from brauner/2016-04-11/lxc_create_best_storage
...
lxc-create: fix -B best option
2016-04-11 10:28:54 -05:00
Christian Brauner
e2a348395a
Merge pull request #961 from staticfox/iterations
...
Use size_t as an iteration point over int
2016-04-11 17:25:32 +02:00
Christian Brauner
fb5ab35bfa
lxc-create: fix -B best option
...
Signed-off-by: Christian Brauner <christian.brauner@mailbox.org>
2016-04-11 17:15:21 +02:00