[lxc-devel] [linuxcontainers.org/master] Update Japanese getting started with OpenStack
The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/linuxcontainers.org/pull/202 This e-mail was sent by the LXC bot, direct replies will not reach the author unless they happen to be subscribed to this list. === Description (from pull-request) === Update for commit 5365be3 Signed-off-by: KATOH YasufumiFrom dc1cb2b6d70701b9ab95e3c68b47bcfcfe970134 Mon Sep 17 00:00:00 2001 From: KATOH Yasufumi Date: Tue, 2 Aug 2016 14:31:45 +0900 Subject: [PATCH] Update Japanese getting started with OpenStack Update for commit 5365be3 Signed-off-by: KATOH Yasufumi --- content/lxd/getting-started-openstack.ja.md | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/content/lxd/getting-started-openstack.ja.md b/content/lxd/getting-started-openstack.ja.md index 883bb1c..eb4d0a1 100644 --- a/content/lxd/getting-started-openstack.ja.md +++ b/content/lxd/getting-started-openstack.ja.md @@ -61,10 +61,9 @@ Bundle が LVM を使ってコンテナルートファイルシステム用の ## OpenStack 用の LXD イメージ -LXD は KVM で使われる qcow2 イメージフォーマットの使用はサポートしていません。LXD にはイメージベースの "raw" ファイルシステムのアーカイヴの使用が必要です。Canonical は必要なフォーマットの Ubuntu イメージを公開しています。 +LXD では、通常ディスクパーティションや LVM ボリュームのようなブロックデバイス上にインストールされる、'raw' イメージの使用が必要です。カノニカルは色々なアーキテクチャの Ubuntu の raw イメージをリリースしています (arm64, armhf, i386, amd64, ppc64el)。これらのイメージは以下のサンプルと同様にインポートできます。このサンプルは amd64 Ubuntu trusty イメージのインポートを行っています。 glance image-create --name="trusty" --public --progress \ --container-format=bare --disk-format=raw \ @@ -73,14 +72,14 @@ LXD は KVM で使われる qcow2 イメージフォーマットの使用はサ ## コンテナの作成 -LXD コンテナは KVM コンテナと全く同じ方法で管理します。Horizon 経由、または Nova CLI 経由で管理します。 +LXD コンテナは KVM コンテナと同じ方法で管理します。Horizon 経由、または Nova CLI 経由で管理します。 nova boot --image=trusty --flavor=m1.tiny my-first-openstack-lxd-container Floating IP アドレスを追加したり、お使いのネットワークと OpenStack クラウドのセキュリティ設定から決まる適切なセキュリティルールを設定する必要があるかもしれません。 ___ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel
[lxc-devel] [lxc/master] doc: Add documentation of lxc.syslog to Korean lxc.container.conf(5)
The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/lxc/pull/ This e-mail was sent by the LXC bot, direct replies will not reach the author unless they happen to be subscribed to this list. === Description (from pull-request) === Update for commit 204dfdf From df07390b0e6f306e83e4b857d56727ff3504e065 Mon Sep 17 00:00:00 2001 From: Sungbae YooDate: Tue, 2 Aug 2016 11:44:12 +0900 Subject: [PATCH] doc: Add documentation of lxc.syslog to Korean lxc.container.conf(5) Update for commit 204dfdf Signed-off-by: Sungbae Yoo --- doc/ko/lxc.container.conf.sgml.in | 16 1 file changed, 16 insertions(+) diff --git a/doc/ko/lxc.container.conf.sgml.in b/doc/ko/lxc.container.conf.sgml.in index 90b36c2..b623762 100644 --- a/doc/ko/lxc.container.conf.sgml.in +++ b/doc/ko/lxc.container.conf.sgml.in @@ -2313,6 +2313,22 @@ mknod errno 0 + + + lxc.syslog + + + + + 로그정보를 syslog에 보낸다. 로그 수준은 lxc.loglevel로 지정할 수 있다. 인자는 syslog에 정의된 값으로만 지정할 수 있다. 사용 가능한 값은 다음과 같다 : daemon, local0, local1, local2, local3, local4, local5, local5, local7 + + + ___ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel
[lxc-devel] [lxd/master] Initial documentation for production use of LXD
The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/2256 This e-mail was sent by the LXC bot, direct replies will not reach the author unless they happen to be subscribed to this list. === Description (from pull-request) === A collection of server changes in order for LXD to function correctly when many file operations are requried From f2d1102d1a7bfde56f2b4fe839e169007dccd73c Mon Sep 17 00:00:00 2001 From: EricDate: Mon, 1 Aug 2016 20:15:26 -0400 Subject: [PATCH] Initial documentation for production use of LXD A collection of server changes in order for LXD to function correctly when many file operations are requried --- doc/production-setup.md | 47 +++ 1 file changed, 47 insertions(+) create mode 100644 doc/production-setup.md diff --git a/doc/production-setup.md b/doc/production-setup.md new file mode 100644 index 000..9b28114 --- /dev/null +++ b/doc/production-setup.md @@ -0,0 +1,47 @@ +# Introduction +So you've made it past trying out [LXD live online](https://linuxcontainers.org/lxd/try-it/), +or on a server scavanged from random parts. You like what you see, +and now you want to try doing some serious work with LXD. + +With the vanilla installation of Ubuntu Server 16.04, there will +need to be some modifications to the server configuration to avoid +common pitfalls when using containers that require tens of thousands +of file operations. + + +## Common errors that may be encountered + +`Failed to allocate directory watch: Too many open files` + +` : Too many open files` + +`failed to open stream: Too many open files in...` + + +# Server Changes +## /etc/security/limits.conf + +Domain | Type | Item| Value | Default | Description +:- | :--- | : | : | : | :-- +* | soft | nofile | 1048576 | unset | maximum number of open files +* | hard | nofile | 1048576 | unset | maximum number of open files +root| soft | nofile | 1048576 | unset | maximum number of open files +root| hard | nofile | 1048576 | unset | maximum number of open files +* | soft | memlock | unlimited | unset | maximum locked-in-memory address space (KB) +* | hard | memlock | unlimited | unset | maximum locked-in-memory address space (KB) + + +## /etc/sysctl.conf + +Parameter | Value | Default | Description +:-| :--- | :---| :--- +fs.inotify.max_queued_events | 1048576 | 16384 | This specifies an upper limit on the number of events that can be queued to the corresponding inotify instance. [1] +fs.inotify.max_user_instances | 1048576 | 128 | This specifies an upper limit on the number of inotify instances that can be created per real user ID. [1] +fs.inotify.max_user_watches | 1048576 | 8192| This specifies an upper limit on the number of watches that can be created per real user ID. [1] +vm.max_map_count | 262144| 65530 | This file contains the maximum number of memory map areas a process may have. Memory map areas are used as a side-effect of calling malloc, directly by mmap and mprotect, and also when loading shared libraries. + + +Then, reboot the server. + + +[1]: http://man7.org/linux/man-pages/man7/inotify.7.html ___ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel
[lxc-devel] [lxd/master] remember the return code in the non wait-for-websocket case
The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/2253 This e-mail was sent by the LXC bot, direct replies will not reach the author unless they happen to be subscribed to this list. === Description (from pull-request) === Closes #2243 Signed-off-by: Tycho AndersenFrom dec46251f3c22d59156d4d74d358c1bbeca9e60a Mon Sep 17 00:00:00 2001 From: Tycho Andersen Date: Mon, 1 Aug 2016 12:30:54 -0600 Subject: [PATCH] remember the return code in the non wait-for-websocket case Closes #2243 Signed-off-by: Tycho Andersen --- lxd/container_exec.go | 9 - test/suites/basic.sh | 4 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/lxd/container_exec.go b/lxd/container_exec.go index 71aee79..57b310b 100644 --- a/lxd/container_exec.go +++ b/lxd/container_exec.go @@ -14,6 +14,8 @@ import ( "github.com/gorilla/websocket" "github.com/lxc/lxd/shared" + + log "gopkg.in/inconshreveable/log15.v2" ) type commandPostContent struct { @@ -329,7 +331,12 @@ func containerExecPost(d *Daemon, r *http.Request) Response { } defer nullDev.Close() - _, cmdErr := c.Exec(post.Command, env, nil, nil, nil) + cmdResult, cmdErr := c.Exec(post.Command, env, nil, nil, nil) + metadata := shared.Jmap{"return": cmdResult} + err = op.UpdateMetadata(metadata) + if err != nil { + shared.Log.Error("error updating metadata for cmd", log.Ctx{"err": err, "cmd": post.Command}) + } return cmdErr } diff --git a/test/suites/basic.sh b/test/suites/basic.sh index b45ef7b..dcbfe21 100644 --- a/test/suites/basic.sh +++ b/test/suites/basic.sh @@ -259,6 +259,10 @@ test_basic_usage() { lxc exec --env BEST_BAND=meshuggah foo env | grep meshuggah lxc exec foo ip link show | grep eth0 + # check that we can get the return code for a non- wait-for-websocket exec + op=$(my_curl -X POST "https://${LXD_ADDR}/1.0/containers/foo/exec; -d '{"command": ["sleep", "1"], "environment": {}, "wait-for-websocket": false, "interactive": false}' | jq -r .operation) + [ "$(my_curl "https://${LXD_ADDR}${op}/wait; | jq -r .metadata.metadata.return)" != "null" ] + # test file transfer echo abc > "${LXD_DIR}/in" ___ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel
[lxc-devel] [lxc/lxc] 917420: doc: Add documentation of lxc.syslog to Japanese l...
Branch: refs/heads/master Home: https://github.com/lxc/lxc Commit: 917420ddcb6757a64b0cb203b502925f266a7dff https://github.com/lxc/lxc/commit/917420ddcb6757a64b0cb203b502925f266a7dff Author: KATOH YasufumiDate: 2016-08-01 (Mon, 01 Aug 2016) Changed paths: M doc/ja/lxc.container.conf.sgml.in M doc/lxc.container.conf.sgml.in Log Message: --- doc: Add documentation of lxc.syslog to Japanese lxc.container.conf(5) and add local6 to valid facility Signed-off-by: KATOH Yasufumi Commit: 40292280e6725102e348ac6bf5616dfd41f03aec https://github.com/lxc/lxc/commit/40292280e6725102e348ac6bf5616dfd41f03aec Author: Christian Brauner Date: 2016-08-01 (Mon, 01 Aug 2016) Changed paths: M doc/ja/lxc.container.conf.sgml.in M doc/lxc.container.conf.sgml.in Log Message: --- Merge pull request #1110 from tenforward/japanese doc: Add documentation of lxc.syslog to Japanese lxc.container.conf(5) Compare: https://github.com/lxc/lxc/compare/b336ea596ba6...40292280e672___ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel
[lxc-devel] [lxc/master] doc: Add documentation of lxc.syslog to Japanese lxc.container.conf(5)
The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/lxc/pull/1110 This e-mail was sent by the LXC bot, direct replies will not reach the author unless they happen to be subscribed to this list. === Description (from pull-request) === and add local6 to valid facility Signed-off-by: KATOH YasufumiFrom 917420ddcb6757a64b0cb203b502925f266a7dff Mon Sep 17 00:00:00 2001 From: KATOH Yasufumi Date: Mon, 1 Aug 2016 20:46:16 +0900 Subject: [PATCH] doc: Add documentation of lxc.syslog to Japanese lxc.container.conf(5) and add local6 to valid facility Signed-off-by: KATOH Yasufumi --- doc/ja/lxc.container.conf.sgml.in | 16 doc/lxc.container.conf.sgml.in| 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/doc/ja/lxc.container.conf.sgml.in b/doc/ja/lxc.container.conf.sgml.in index f5b8afa..1aadcc3 100644 --- a/doc/ja/lxc.container.conf.sgml.in +++ b/doc/ja/lxc.container.conf.sgml.in @@ -2371,6 +2371,22 @@ mknod errno 0 + + +lxc.syslog + + + + + ログ情報を syslog に送ります。ログレベルとして lxc.loglevel の値を使用します。指定する値は使用する syslog の facility です。有効な値は daemon, local0, local1, local2, local3, local4, local5, local5, local6, local7 のいずれかです。 + + + diff --git a/doc/lxc.container.conf.sgml.in b/doc/lxc.container.conf.sgml.in index 1f1fdb8..1b740a5 100644 --- a/doc/lxc.container.conf.sgml.in +++ b/doc/lxc.container.conf.sgml.in @@ -1706,7 +1706,7 @@ mknod errno 0 Send logging info to syslog. It respects the log level defined in lxc.loglevel. The argument should be the syslog facility to use, valid ones are: daemon, local0, local1, local2, -local3, local4, local5, local5, local7. +local3, local4, local5, local5, local6, local7. ___ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel