[lxc-devel] [lxc/lxc] 9f30a1: Enable network namespace sharing in lxc-start

GitHub noreply at github.com
Mon Nov 25 21:55:31 UTC 2013


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: 9f30a1908937fb62906e608f708bdec4fbdec1bc
      https://github.com/lxc/lxc/commit/9f30a1908937fb62906e608f708bdec4fbdec1bc
  Author: Marek Majkowski <marek at cloudflare.com>
  Date:   2013-11-06 (Wed, 06 Nov 2013)

  Changed paths:
    M src/lxc/arguments.h
    M src/lxc/conf.c
    M src/lxc/conf.h
    M src/lxc/lxc_start.c
    M src/lxc/start.c
    M src/lxc/start.h

  Log Message:
  -----------
  Enable network namespace sharing in lxc-start

Right now lxc-start always does one of two things: it creates
a new namespace or inherits it from the parent environment.
This patch adds a third option: share a namespace with another
container (actually: a process).

In some situations this is handy. For example by sharing a network
namespace it is possible to migrate services between containers
without (or with little) downtime.

This patch creates an infrastructure for inheriting any type
of namespace, but only the network namespace is supported for now.


  Commit: 02b4f2e1d8cde273d03fda101411a02694309f10
      https://github.com/lxc/lxc/commit/02b4f2e1d8cde273d03fda101411a02694309f10
  Author: Marek Majkowski <marek at cloudflare.com>
  Date:   2013-11-11 (Mon, 11 Nov 2013)

  Changed paths:
    M src/lxc/lxc_start.c

  Log Message:
  -----------
  Allow specifying a container by name or pid in --share-net option.


  Commit: 38521a3b5d53598684955531ce2e54cc3ef696c0
      https://github.com/lxc/lxc/commit/38521a3b5d53598684955531ce2e54cc3ef696c0
  Author: Marek Majkowski <marek at cloudflare.com>
  Date:   2013-11-12 (Tue, 12 Nov 2013)

  Changed paths:
    M src/lxc/start.c

  Log Message:
  -----------
  Cosmetic - clean up error message


  Commit: 11373487a11dc816a9b27e386b7e593984037a1d
      https://github.com/lxc/lxc/commit/11373487a11dc816a9b27e386b7e593984037a1d
  Author: Marek Majkowski <marek at cloudflare.com>
  Date:   2013-11-12 (Tue, 12 Nov 2013)

  Changed paths:
    M doc/lxc-start.sgml.in

  Log Message:
  -----------
  Describe --share-net in the lxc-start manual


  Commit: d4afa440764bc515b4c4be60934c0ba83c0848d0
      https://github.com/lxc/lxc/commit/d4afa440764bc515b4c4be60934c0ba83c0848d0
  Author: Marek Majkowski <marek at cloudflare.com>
  Date:   2013-11-12 (Tue, 12 Nov 2013)

  Changed paths:
    M src/lxc/lxc_start.c

  Log Message:
  -----------
  Cosmetic.


  Commit: 3c93577b43943f653194f6189cb2c4b6a17bf96a
      https://github.com/lxc/lxc/commit/3c93577b43943f653194f6189cb2c4b6a17bf96a
  Author: Marek Majkowski <marek at cloudflare.com>
  Date:   2013-11-12 (Tue, 12 Nov 2013)

  Changed paths:
    M doc/lxc-start.sgml.in
    M src/lxc/arguments.h
    M src/lxc/lxc_start.c
    M src/lxc/start.c

  Log Message:
  -----------
  Create --share-ipc option


  Commit: 3d67411d7fb1149b6f5dd84788a1dfb66281489b
      https://github.com/lxc/lxc/commit/3d67411d7fb1149b6f5dd84788a1dfb66281489b
  Author: Marek Majkowski <marek at cloudflare.com>
  Date:   2013-11-12 (Tue, 12 Nov 2013)

  Changed paths:
    M src/lxc/af_unix.c
    M src/lxc/lxc_user_nic.c
    M src/lxc/lxccontainer.c
    M src/tests/concurrent.c

  Log Message:
  -----------
  Merge remote-tracking branch 'lxc/master' into share-namespaces


  Commit: f8059880687576b84d48baae0fa4499da390638d
      https://github.com/lxc/lxc/commit/f8059880687576b84d48baae0fa4499da390638d
  Author: Marek Majkowski <marek at cloudflare.com>
  Date:   2013-11-12 (Tue, 12 Nov 2013)

  Changed paths:
    M src/lxc/lxc_start.c

  Log Message:
  -----------
  Fix memory leak in pid_from_lxcname and use ns_proc_name in open_ns.


  Commit: 4692616518ce993fd333d597dae6c6d95da87c3d
      https://github.com/lxc/lxc/commit/4692616518ce993fd333d597dae6c6d95da87c3d
  Author: Marek Majkowski <marek at cloudflare.com>
  Date:   2013-11-12 (Tue, 12 Nov 2013)

  Changed paths:
    M src/lxc/arguments.h
    M src/lxc/lxc_start.c

  Log Message:
  -----------
  Refactoring - make the option parsing code generic


  Commit: 6c544cb300752a9f799cda19e9c5b57ab890c8dd
      https://github.com/lxc/lxc/commit/6c544cb300752a9f799cda19e9c5b57ab890c8dd
  Author: Marek Majkowski <marek at cloudflare.com>
  Date:   2013-11-13 (Wed, 13 Nov 2013)

  Changed paths:
    M doc/lxc-start.sgml.in
    M src/lxc/conf.c
    M src/lxc/lxc_start.c
    M src/lxc/start.c

  Log Message:
  -----------
  Make it possible to share UTS namespace


  Commit: 304dc8b3ff5d14229942d314bb3bfc44cede68de
      https://github.com/lxc/lxc/commit/304dc8b3ff5d14229942d314bb3bfc44cede68de
  Author: Marek Majkowski <marek at cloudflare.com>
  Date:   2013-11-13 (Wed, 13 Nov 2013)

  Changed paths:
    M doc/lxc-start.sgml.in
    M src/lxc/lxc_start.c

  Log Message:
  -----------
  Cosmetic: shorten the options summary in documentation


  Commit: 7faa7f52004943f339199bcbad1848cdf50d5f4c
      https://github.com/lxc/lxc/commit/7faa7f52004943f339199bcbad1848cdf50d5f4c
  Author: hallyn <serge at hallyn.com>
  Date:   2013-11-25 (Mon, 25 Nov 2013)

  Changed paths:
    M doc/lxc-start.sgml.in
    M src/lxc/arguments.h
    M src/lxc/conf.c
    M src/lxc/conf.h
    M src/lxc/lxc_start.c
    M src/lxc/start.c
    M src/lxc/start.h

  Log Message:
  -----------
  Merge pull request #92 from majek/share-namespaces

Add options to `lxc-start` to inherit network, ipc and uts namespaces


Compare: https://github.com/lxc/lxc/compare/5266cf0a640f...7faa7f520049


More information about the lxc-devel mailing list