[lxc-users] Mount additional storage into unprivileged container
Hi, all! I am learning LXC features because we are going to implement it in our production environment. Could somebody explain me is there any well documented way to mount additional filesystems or (preferable) block devices into Unprivileged containers? is it supports live migration of container? I've read a lot of articles and man pages but unfortunatly this question is still unclear for me... Currently my config looks like: name: test-container profiles: - default config: raw.lxc: lxc.aa_profile=unconfined * security.privileged: "true"* volatile.base_image: a19c9ae2bd2e7bf99b0e2d31a0707cc534781a4eba47f44f172f486d2e01c96b volatile.eth0.hwaddr: 00:16:3e:87:d6:d9 volatile.last_state.idmap: '[]' devices: data: path: /datastorage source: /dev/sdf type: disk But when I try to change security.privileged to ‘false’ I lost an ability to write to /datastorage path inside container. Currently I’m using version 2.0.5 of LXC -- WBR, Andriy Tovstik ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users
Re: [lxc-users] Mount additional storage into unprivileged container
Hi, Andrey! вт, 8 нояб. 2016 г. в 12:20, Andrey Repin : > Greetings, Andriy Tovstik! > > > I am learning LXC features because we are going to implement it in our > > production environment. > > LXC or LXD? Your configuration smells the latter. > > LXD, you are right. But AFAIK LXD is an extension that was built over LXC subsystem, isn't it? > Could somebody explain me is there any well documented way to mount > > additional filesystems or (preferable) block devices into Unprivileged > > containers? is it supports live migration of container? > > You could do better at explaining, what you need that for. It'll speed up > the > answer. > Normally, you don't need to "mount block devices into container". > > Well... I'm going to use LXD to isolate two applications that will be heavily loaded. May be it will be necessary to give for each other dedicated storage. Rootfs i'll put to ZFS pool. Alternative way is to use zfs over high speed storage system and use IOPS limit for each container... > I've read a lot of articles and man pages but unfortunatly this question > is still unclear for me... > > > > Currently my config looks like: > > > > > > > > name: test-container > > profiles: > > - default > > config: > > raw.lxc: lxc.aa_profile=unconfined > > security.privileged: "true" > > volatile.base_image: > a19c9ae2bd2e7bf99b0e2d31a0707cc534781a4eba47f44f172f486d2e01c96b > > volatile.eth0.hwaddr: 00:16:3e:87:d6:d9 > > volatile.last_state.idmap: '[]' > > devices: > > data: > > path: /datastorage > > source: /dev/sdf > > type: disk > > > > > But when I try to change security.privileged to ‘false’ I lost an ability > > to write to /datastorage path inside container. > > > > Currently I’m using version 2.0.5 of LXC > > Doesn't match to your listed config. Smells like LXD. > > All versions looks like something like this: ii lxc-common 2.0.5-0ubuntu1~ubuntu16.04.2 amd64Linux Containers userspace tools (common tools) ii lxc2 2.0.5-0ubuntu1~ubuntu16.04.1 all Container hypervisor based on LXC - metapackage ii lxcfs 2.0.4-0ubuntu1~ubuntu16.04.1 amd64FUSE based filesystem for LXC ii lxd2.0.5-0ubuntu1~ubuntu16.04.1 amd64Container hypervisor based on LXC - daemon ii lxd-client 2.0.5-0ubuntu1~ubuntu16.04.1 amd64Container hypervisor based on LXC - client ii lxd-tools 2.0.5-0ubuntu1~ubuntu16.04.1 amd64Container hypervisor based on LXC - extra tools > > -- > With best regards, > Andrey Repin > Tuesday, November 8, 2016 13:13:21 > > Sorry for my terrible english... > ___ > lxc-users mailing list > lxc-users@lists.linuxcontainers.org > http://lists.linuxcontainers.org/listinfo/lxc-users -- WBR, Andriy Tovstik ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users
Re: [lxc-users] Mount additional storage into unprivileged container
вт, 8 нояб. 2016 г. в 13:57, Andrey Repin : > Greetings, Andriy Tovstik! > > >>> I am learning LXC features because we are going to implement it in our > >>> production environment. > >> > >> LXC or LXD? Your configuration smells the latter. > > > LXD, you are right. But AFAIK LXD is an extension that was built over LXC > > subsystem, isn't it? > > LXD is an environment by and in itself. It uses different configuration > tools > to setup and manage containers. Ok, lets forget about lxc, lets talking about lxd. > > My (overly simplified) explanation of use case is that LXC is what I'd use > if > I need to setup a system once and forget (as a figure of speech) it exists, > while LXD is a tool for mass-deployment of applications/appliances. With > leaning to the latter, since LXD deploys entire stack in a single > container. > I have big plans :) so LXD looks more suitable for me > >>> Could somebody explain me is there any well documented way to mount > >>> additional filesystems or (preferable) block devices into Unprivileged > >>> containers? is it supports live migration of container? > >> > >> You could do better at explaining, what you need that for. It'll speed > up the > >> answer. > >> Normally, you don't need to "mount block devices into container". > > > Well... I'm going to use LXD to isolate two applications that will be > > heavily loaded. May be it will be necessary to give for each other > dedicated storage. > > You can do that by just mounting that dedicated storage in the profile. You > don't really need block devices inside a container, unless your use case > demands specifically block-level access. > Ok, let me clarify my question. As i've read in https://github.com/lxc/lxd/blob/master/doc/configuration.md there are two storage option can be mounted into container: disk and unix-block device. I played with the both ones. Lets talk about disk device. As you can see in my example i've used disk device with a block device as a source. I can change source option and set directory as a source. Anyway i recieve "permission denied" error when i try to access to this directory inside my container... Remember we talk about unprivileged container. Privileged container works fine. I have found a lot of topics about this problem, but i'm seeking for official, best practice soluiton. -- > With best regards, > Andrey Repin > Tuesday, November 8, 2016 14:25:33 > > Sorry for my terrible english... > ___ > lxc-users mailing list > lxc-users@lists.linuxcontainers.org > http://lists.linuxcontainers.org/listinfo/lxc-users -- WBR, Andriy Tovstik ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users
[lxc-users] Feature request: raw lxc utilities output format and operations with multiplie containers?
Hi all! During LXD learning i encountered with lack of some features. The first one is "raw" output format of lxc list. Currently lxc list supports two formats: table and json. Unfortunately both formats are unusable for scripting. It is very difficult to pass to script output likes: # lxc list --format table -c n ++ |NAME| ++ | mysql-rep1 | ++ | mysql-rep2 | ++ | mysql-rep3 | ++ When i try to use json format i see that useful fields like container name are missing in output. May be it will be useful to implement feature like: # lxc list --format raw -c n --no-header mysql-rep1 mysql-rep2 mysql-rep3 The second feature looks useful is ability run commands on multiplie containers simultaneously. For example: # lxc exec web-node* -- apt update What do you think about it? -- WBR, Andriy Tovstik ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users
Re: [lxc-users] Feature request: raw lxc utilities output format and operations with multiplie containers?
Hi, Janjaap Bos! I tried jq. But as i have already wrote, some useful fileds like container name are missing in json output... чт, 10 нояб. 2016 г. в 14:27, Janjaap Bos : > You can pipe the json through jq. > > See: https://stedolan.github.io/jq/tutorial > > > 2016-11-10 11:17 GMT+01:00 Andriy Tovstik : > > Hi all! > > During LXD learning i encountered with lack of some features. > > The first one is "raw" output format of lxc list. Currently lxc list > supports two formats: table and json. Unfortunately both formats are > unusable for scripting. > It is very difficult to pass to script output likes: > # lxc list --format table -c n > ++ > |NAME| > ++ > | mysql-rep1 | > ++ > | mysql-rep2 | > ++ > | mysql-rep3 | > ++ > > When i try to use json format i see that useful fields like container name > are missing in output. May be it will be useful to implement feature like: > > # lxc list --format raw -c n --no-header > mysql-rep1 > mysql-rep2 > mysql-rep3 > > The second feature looks useful is ability run commands on multiplie > containers simultaneously. For example: > > # lxc exec web-node* -- apt update > > What do you think about it? > -- > WBR, Andriy Tovstik > > ___ > lxc-users mailing list > lxc-users@lists.linuxcontainers.org > http://lists.linuxcontainers.org/listinfo/lxc-users > > > ___________ > lxc-users mailing list > lxc-users@lists.linuxcontainers.org > http://lists.linuxcontainers.org/listinfo/lxc-users -- WBR, Andriy Tovstik ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users
Re: [lxc-users] Feature request: raw lxc utilities output format and operations with multiplie containers?
Thanks, Stéphane, i'm very inattentive... Now it looks better. Additional output format seems to be more comfortable than additional tools. But it insignificantly. And what do you think about the second question about ability to run commands on multiplie containers simultaneously using regexps as container name ? Is this feature looks useful? чт, 10 нояб. 2016 г. в 15:25, Stéphane Graber : > stgraber@castiana:~$ lxc list --format=json | jq .[].name > "android" > "lxd" > "snapcraft" > "test" > "ubuntu-core" > "ubuntu-zesty" > "xen" > "yak" > > On Thu, Nov 10, 2016 at 12:31:01PM +, Andriy Tovstik wrote: > > Hi, Janjaap Bos! > > > > I tried jq. But as i have already wrote, some useful fileds like > container > > name are missing in json output... > > > > чт, 10 нояб. 2016 г. в 14:27, Janjaap Bos : > > > > > You can pipe the json through jq. > > > > > > See: https://stedolan.github.io/jq/tutorial > > > > > > > > > 2016-11-10 11:17 GMT+01:00 Andriy Tovstik : > > > > > > Hi all! > > > > > > During LXD learning i encountered with lack of some features. > > > > > > The first one is "raw" output format of lxc list. Currently lxc list > > > supports two formats: table and json. Unfortunately both formats are > > > unusable for scripting. > > > It is very difficult to pass to script output likes: > > > # lxc list --format table -c n > > > ++ > > > |NAME| > > > ++ > > > | mysql-rep1 | > > > ++ > > > | mysql-rep2 | > > > ++ > > > | mysql-rep3 | > > > ++ > > > > > > When i try to use json format i see that useful fields like container > name > > > are missing in output. May be it will be useful to implement feature > like: > > > > > > # lxc list --format raw -c n --no-header > > > mysql-rep1 > > > mysql-rep2 > > > mysql-rep3 > > > > > > The second feature looks useful is ability run commands on multiplie > > > containers simultaneously. For example: > > > > > > # lxc exec web-node* -- apt update > > > > > > What do you think about it? > > > -- > > > WBR, Andriy Tovstik > > > > > > ___ > > > lxc-users mailing list > > > lxc-users@lists.linuxcontainers.org > > > http://lists.linuxcontainers.org/listinfo/lxc-users > > > > > > > > > ___________ > > > lxc-users mailing list > > > lxc-users@lists.linuxcontainers.org > > > http://lists.linuxcontainers.org/listinfo/lxc-users > > > > -- > > WBR, Andriy Tovstik > > > ___ > > lxc-users mailing list > > lxc-users@lists.linuxcontainers.org > > http://lists.linuxcontainers.org/listinfo/lxc-users > > > -- > Stéphane Graber > Ubuntu developer > http://www.ubuntu.com > ___ > lxc-users mailing list > lxc-users@lists.linuxcontainers.org > http://lists.linuxcontainers.org/listinfo/lxc-users -- WBR, Andriy Tovstik ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users
Re: [lxc-users] Feature request: raw lxc utilities output format and operations with multiplie containers?
Yep! nice idea, boys! moreover i can use -r switch with jq. But unfortunately your solution can't execute tasks in parallel ;) чт, 10 нояб. 2016 г. в 19:33, Ingo Baab : > Andriy, (meanwhile) you can help yourself with (doing that sequentially).. > > for container in `lxc list mysql-rep --format=json | jq .[].name | tr -d > '"'`; do lxc exec $container -- apt update; done > > -Ingo > > > Am 10.11.2016 um 15:36 schrieb Andriy Tovstik: > > Thanks, Stéphane, i'm very inattentive... Now it looks better. Additional > output format seems to be more comfortable than additional tools. But it > insignificantly. > > And what do you think about the second question about ability to run > commands on multiplie containers simultaneously using regexps as container > name ? Is this feature looks useful? > > > чт, 10 нояб. 2016 г. в 15:25, Stéphane Graber : > > stgraber@castiana:~$ lxc list --format=json | jq .[].name > "android" > "lxd" > "snapcraft" > "test" > "ubuntu-core" > "ubuntu-zesty" > "xen" > "yak" > > On Thu, Nov 10, 2016 at 12:31:01PM +, Andriy Tovstik wrote: > > Hi, Janjaap Bos! > > > > I tried jq. But as i have already wrote, some useful fileds like > container > > name are missing in json output... > > > > чт, 10 нояб. 2016 г. в 14:27, Janjaap Bos : > > > > > You can pipe the json through jq. > > > > > > See: https://stedolan.github.io/jq/tutorial > > > > > > > > > 2016-11-10 11:17 GMT+01:00 Andriy Tovstik : > > > > > > Hi all! > > > > > > During LXD learning i encountered with lack of some features. > > > > > > The first one is "raw" output format of lxc list. Currently lxc list > > > supports two formats: table and json. Unfortunately both formats are > > > unusable for scripting. > > > It is very difficult to pass to script output likes: > > > # lxc list --format table -c n > > > ++ > > > |NAME| > > > ++ > > > | mysql-rep1 | > > > ++ > > > | mysql-rep2 | > > > ++ > > > | mysql-rep3 | > > > ++ > > > > > > When i try to use json format i see that useful fields like container > name > > > are missing in output. May be it will be useful to implement feature > like: > > > > > > # lxc list --format raw -c n --no-header > > > mysql-rep1 > > > mysql-rep2 > > > mysql-rep3 > > > > > > The second feature looks useful is ability run commands on multiplie > > > containers simultaneously. For example: > > > > > > # lxc exec web-node* -- apt update > > > > > > What do you think about it? > > > -- > > > WBR, Andriy Tovstik > > > > > > ___ > > > lxc-users mailing list > > > lxc-users@lists.linuxcontainers.org > > > http://lists.linuxcontainers.org/listinfo/lxc-users > > > > > > > > > ___ > > > lxc-users mailing list > > > lxc-users@lists.linuxcontainers.org > > > http://lists.linuxcontainers.org/listinfo/lxc-users > > > > -- > > WBR, Andriy Tovstik > > > _______ > > lxc-users mailing list > > lxc-users@lists.linuxcontainers.org > > http://lists.linuxcontainers.org/listinfo/lxc-users > > > -- > Stéphane Graber > Ubuntu developer > http://www.ubuntu.com > ___ > lxc-users mailing list > lxc-users@lists.linuxcontainers.org > http://lists.linuxcontainers.org/listinfo/lxc-users > > -- > WBR, Andriy Tovstik > > > ___ > lxc-users mailing > listlxc-users@lists.linuxcontainers.orghttp://lists.linuxcontainers.org/listinfo/lxc-users > > > ___ > lxc-users mailing list > lxc-users@lists.linuxcontainers.org > http://lists.linuxcontainers.org/listinfo/lxc-users -- WBR, Andriy Tovstik ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users
[lxc-users] LXC containers recovery from pool
Hi, all! Due to hardware failure i loose my system HDD with ubuntu installation. I'm going to reinstall system. Also i have two HDD with ZFS filesystem - lxc pool from this system. Could anyone explain me, is it possible to import my containers from this pool to new system after installation? -- WBR, Andrew -- WBR, Andriy Tovstik ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users
[lxc-users] Convert system bridge to lxc managed network
Hi, all! Could anyone explain me, what is the best way to convert unmanaged lxc network built over system defined bridge to the same bridge but managed by lxc network framework? -- WBR, Andrey Tovstik ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users
[lxc-users] LXD cluster is unresponsible: all lxc related commands hangs
Hi, all! Some time ago I installed a dual node LXD cluster. Today I logged in to the node and tried to execute lxc exec container -- bash but command hanged. Also, all lxc commands are unresponsible: i'm not able to interact with my cluster and my containers. I tried to restart snap.lxd.daemon but it didn't help. journalctl -u snap.lxd.daemon - in attachment. Any suggestion? -- WBR, Andriy Tovstik -- Logs begin at Fri 2018-07-20 11:50:12 CEST, end at Fri 2018-08-17 12:18:41 CEST. -- Jul 20 13:52:52 jobpulz1 lxd.daemon[2074]: lvl=warn msg="Detected poll(POLLNVAL) event." t=2018-07-20T11:52:52+ Jul 23 11:53:53 jobpulz1 lxd.daemon[2074]: lvl=warn msg="Detected poll(POLLNVAL) event: exiting." t=2018-07-23T09:53:53+ Jul 23 11:53:53 jobpulz1 lxd.daemon[2074]: lvl=warn msg="Detected poll(POLLNVAL) event." t=2018-07-23T09:53:53+ Jul 23 21:27:02 jobpulz1 lxd.daemon[2074]: lvl=warn msg="Detected poll(POLLNVAL) event." t=2018-07-23T19:27:02+ Jul 27 22:16:35 jobpulz1 lxd.daemon[2074]: lvl=warn msg="Detected poll(POLLNVAL) event." t=2018-07-27T20:16:35+ Jul 28 16:27:20 jobpulz1 lxd.daemon[2074]: lvl=warn msg="Detected poll(POLLNVAL) event." t=2018-07-28T14:27:20+ Jul 28 16:27:40 jobpulz1 lxd.daemon[2074]: lvl=warn msg="Detected poll(POLLNVAL) event." t=2018-07-28T14:27:40+ Jul 28 16:55:53 jobpulz1 lxd.daemon[2074]: lvl=warn msg="Raft: Heartbeat timeout from \"10.0.0.20:8443\" reached, starting election" t=2018-07-28T14:55:53+ Jul 28 16:55:59 jobpulz1 lxd.daemon[2074]: lvl=warn msg="Raft: Election timeout reached, restarting election" t=2018-07-28T14:55:59+ Jul 28 16:56:00 jobpulz1 lxd.daemon[2074]: lvl=warn msg="Failed to get current cluster nodes: failed to begin transaction: gRPC grpcConnection failed: context deadline exceeded" t=2018-07-28T14:56:00+ Jul 28 16:56:04 jobpulz1 lxd.daemon[2074]: lvl=warn msg="Raft: Election timeout reached, restarting election" t=2018-07-28T14:56:04+ Jul 28 16:56:08 jobpulz1 lxd.daemon[2074]: lvl=warn msg="Raft: Election timeout reached, restarting election" t=2018-07-28T14:56:08+ Jul 28 16:56:12 jobpulz1 lxd.daemon[2074]: lvl=warn msg="Raft: Election timeout reached, restarting election" t=2018-07-28T14:56:12+ Jul 28 16:56:14 jobpulz1 lxd.daemon[2074]: lvl=warn msg="Failed to get current cluster nodes: failed to begin transaction: gRPC grpcConnection failed: context deadline exceeded" t=2018-07-28T14:56:14+ Jul 28 16:56:15 jobpulz1 lxd.daemon[2074]: lvl=warn msg="Raft: Election timeout reached, restarting election" t=2018-07-28T14:56:15+ Jul 28 16:56:21 jobpulz1 lxd.daemon[2074]: lvl=warn msg="Raft: Election timeout reached, restarting election" t=2018-07-28T14:56:21+ Jul 28 16:56:25 jobpulz1 lxd.daemon[2074]: lvl=warn msg="Raft: Election timeout reached, restarting election" t=2018-07-28T14:56:25+ Jul 28 16:56:27 jobpulz1 lxd.daemon[2074]: lvl=warn msg="Failed to get current cluster nodes: failed to begin transaction: gRPC grpcConnection failed: context deadline exceeded" t=2018-07-28T14:56:27+ Jul 28 16:56:28 jobpulz1 lxd.daemon[2074]: lvl=warn msg="Raft: Election timeout reached, restarting election" t=2018-07-28T14:56:28+ Jul 28 16:56:34 jobpulz1 lxd.daemon[2074]: lvl=warn msg="Raft: Election timeout reached, restarting election" t=2018-07-28T14:56:34+ Jul 28 16:56:38 jobpulz1 lxd.daemon[2074]: lvl=warn msg="Raft: Election timeout reached, restarting election" t=2018-07-28T14:56:38+ Jul 28 16:56:39 jobpulz1 lxd.daemon[2074]: lvl=warn msg="Failed to get current cluster nodes: failed to begin transaction: gRPC grpcConnection failed: context deadline exceeded" t=2018-07-28T14:56:39+ Jul 28 16:56:42 jobpulz1 lxd.daemon[2074]: lvl=warn msg="Raft: Election timeout reached, restarting election" t=2018-07-28T14:56:42+ Jul 28 16:56:45 jobpulz1 lxd.daemon[2074]: lvl=warn msg="Raft: Election timeout reached, restarting election" t=2018-07-28T14:56:45+ Jul 28 16:56:50 jobpulz1 lxd.daemon[2074]: lvl=warn msg="Raft: Election timeout reached, restarting election" t=2018-07-28T14:56:50+ Jul 28 16:56:51 jobpulz1 lxd.daemon[2074]: lvl=warn msg="Failed to get current cluster nodes: failed to begin transaction: gRPC grpcConnection failed: context deadline exceeded" t=2018-07-28T14:56:51+ Jul 28 16:56:53 jobpulz1 lxd.daemon[2074]: lvl=warn msg="Raft: Election timeout reached, restarting election" t=2018-07-28T14:56:53+ Jul 28 16:56:57 jobpulz1 lxd.daemon[2074]: lvl=warn msg="Raft: Election timeout reached, restarting election" t=2018-07-28T14:56:57+ Jul 28 16:57:03 jobpulz1 lxd.daemon[2074]: lvl=warn msg="Raft: Election timeout reached, restarting election" t=2018-07-28T14:57:03
Re: [lxc-users] LXD cluster is unresponsible: all lxc related commands hangs
Hi! пт, 17 авг. 2018 г. в 17:46, Stéphane Graber : > On Fri, Aug 17, 2018 at 01:20:42PM +0300, Andriy Tovstik wrote: > > Hi, all! > > > > Some time ago I installed a dual node LXD cluster. Today I logged in to > the > > node and tried to execute > > lxc exec container -- bash > > but command hanged. > > Also, all lxc commands are unresponsible: i'm not able to interact with > my > > cluster and my containers. > > I tried to restart snap.lxd.daemon but it didn't help. journalctl -u > > snap.lxd.daemon - in attachment. > > > > Any suggestion? > > Are both nodes running the same snap revision according to `snap list`? > > LXD cluster nodes must all run the exact same version, otherwise they > effectively wait until this becomes the case before they start replying > to API queries. > snap output: $ snap list lxd Name Version Rev Tracking Publisher Notes lxd 3.4 8297 stablecanonical - the same on both nodes > > -- > Stéphane Graber > Ubuntu developer > http://www.ubuntu.com > ___ > lxc-users mailing list > lxc-users@lists.linuxcontainers.org > http://lists.linuxcontainers.org/listinfo/lxc-users ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users
Re: [lxc-users] LXD cluster is unresponsible: all lxc related commands hangs
Hi! Both lxd.log are empty :( ps output - in attachment пт, 17 авг. 2018 г. в 18:06, Stéphane Graber : > On Fri, Aug 17, 2018 at 05:56:24PM +0300, Andriy Tovstik wrote: > > Hi! > > > > пт, 17 авг. 2018 г. в 17:46, Stéphane Graber : > > > > > On Fri, Aug 17, 2018 at 01:20:42PM +0300, Andriy Tovstik wrote: > > > > Hi, all! > > > > > > > > Some time ago I installed a dual node LXD cluster. Today I logged in > to > > > the > > > > node and tried to execute > > > > lxc exec container -- bash > > > > but command hanged. > > > > Also, all lxc commands are unresponsible: i'm not able to interact > with > > > my > > > > cluster and my containers. > > > > I tried to restart snap.lxd.daemon but it didn't help. journalctl -u > > > > snap.lxd.daemon - in attachment. > > > > > > > > Any suggestion? > > > > > > Are both nodes running the same snap revision according to `snap list`? > > > > > > LXD cluster nodes must all run the exact same version, otherwise they > > > effectively wait until this becomes the case before they start replying > > > to API queries. > > > > > > > snap output: > > $ snap list lxd > > Name Version Rev Tracking Publisher Notes > > lxd 3.4 8297 stablecanonical - > > > > the same on both nodes > > Thanks, can you provide the following from both nodes: > - ps fauxww > - cat /var/snap/lxd/common/lxd/logs/lxd.log > > And can you try running "lxc cluster list" see if that gets stuck too? > > > -- > Stéphane Graber > Ubuntu developer > http://www.ubuntu.com > ___ > lxc-users mailing list > lxc-users@lists.linuxcontainers.org > http://lists.linuxcontainers.org/listinfo/lxc-users node-1-ps.log Description: Binary data node-2-ps.log Description: Binary data ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users
Re: [lxc-users] LXD cluster is unresponsible: all lxc related commands hangs
Hi I stopped lxd via systemctl, then ran 'killlall lxd' and started lxd again. Problem was fixed. сб, 18 авг. 2018 г. в 17:50, Stéphane Graber : > Hi, > > Your logs show multiple LXD processes running at the same time. > The latest revision of the stable snap (8393) should have a fix which > detects that and clean things up. > > Stéphane > > On Fri, Aug 17, 2018 at 10:46:29PM +0300, Andriy Tovstik wrote: > > Hi! > > > > Both lxd.log are empty :( > > > > ps output - in attachment > > > > пт, 17 авг. 2018 г. в 18:06, Stéphane Graber : > > > > > On Fri, Aug 17, 2018 at 05:56:24PM +0300, Andriy Tovstik wrote: > > > > Hi! > > > > > > > > пт, 17 авг. 2018 г. в 17:46, Stéphane Graber : > > > > > > > > > On Fri, Aug 17, 2018 at 01:20:42PM +0300, Andriy Tovstik wrote: > > > > > > Hi, all! > > > > > > > > > > > > Some time ago I installed a dual node LXD cluster. Today I > logged in > > > to > > > > > the > > > > > > node and tried to execute > > > > > > lxc exec container -- bash > > > > > > but command hanged. > > > > > > Also, all lxc commands are unresponsible: i'm not able to > interact > > > with > > > > > my > > > > > > cluster and my containers. > > > > > > I tried to restart snap.lxd.daemon but it didn't help. > journalctl -u > > > > > > snap.lxd.daemon - in attachment. > > > > > > > > > > > > Any suggestion? > > > > > > > > > > Are both nodes running the same snap revision according to `snap > list`? > > > > > > > > > > LXD cluster nodes must all run the exact same version, otherwise > they > > > > > effectively wait until this becomes the case before they start > replying > > > > > to API queries. > > > > > > > > > > > > > snap output: > > > > $ snap list lxd > > > > Name Version Rev Tracking Publisher Notes > > > > lxd 3.4 8297 stablecanonical - > > > > > > > > the same on both nodes > > > > > > Thanks, can you provide the following from both nodes: > > > - ps fauxww > > > - cat /var/snap/lxd/common/lxd/logs/lxd.log > > > > > > And can you try running "lxc cluster list" see if that gets stuck too? > > > > > > > > > -- > > > Stéphane Graber > > > Ubuntu developer > > > http://www.ubuntu.com > > > ___ > > > lxc-users mailing list > > > lxc-users@lists.linuxcontainers.org > > > http://lists.linuxcontainers.org/listinfo/lxc-users > > > > > ___ > > lxc-users mailing list > > lxc-users@lists.linuxcontainers.org > > http://lists.linuxcontainers.org/listinfo/lxc-users > > > -- > Stéphane Graber > Ubuntu developer > http://www.ubuntu.com > ___ > lxc-users mailing list > lxc-users@lists.linuxcontainers.org > http://lists.linuxcontainers.org/listinfo/lxc-users ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users
[lxc-users] Different storage pool drivers for cluster members
Hi, all! I have two-node LXD cluster, based on lxd 3.9 from snap. Both nodes having local storage created over LVM. Now i'm going to join another node to the cluster. But new node storage pool use ZFS driver. Is it possible to use storage pools having same name but different driver across cluster nodes? -- WBR, Andriy Tovstik ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users