[lxc-users] snapshot listing
hi, I remember, that not very long time ago the 'lxc list' command also listed snapshots too. But now it doesn't. How can I do that now? Thanks, tamas ps. Naming lxd client as lxc was a very bad idea from googlers perspective:/ ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users
Re: [lxc-users] snapshot listing
On 03/17/2016 12:09 AM, Serge Hallyn wrote: Quoting Tamas Papp (tom...@martos.bme.hu): hi, I remember, that not very long time ago the 'lxc list' command also listed snapshots too. But now it doesn't. How can I do that now? You can see the number of snapshots with lxc list -c nS +--+---+ | NAME | SNAPSHOTS | +--+---+ | x1 | 1 | +--+---+ then see the actual snapshots with lxc info x1 Name: x1 Architecture: x86_64 Created: 2016/03/14 22:16 UTC Status: Stopped Type: persistent Profiles: default Snapshots: x1/snap0 (taken at 2016/03/16 23:07 UTC) (stateless) ShhI should have though on that:) But: Snapshots: zas_2016-03-08 (taken at 2016/03/08 09:22 UTC) (stateless) zas_2016-03-09 (taken at 2016/03/09 03:32 UTC) (stateless) zas_2016-03-10 (taken at 2016/03/10 03:30 UTC) (stateless) zas_2016-03-11 (taken at 2016/03/11 03:32 UTC) (stateless) zas_2016-03-12 (taken at 2016/03/12 03:32 UTC) (stateless) zas_2016-03-13 (taken at 2016/03/13 03:32 UTC) (stateless) zas_2016-03-14 (taken at 2016/03/14 03:32 UTC) (stateless) zas_2016-03-15 (taken at 2016/03/15 03:32 UTC) (stateless) zas_2016-03-16 (taken at 2016/03/16 03:32 UTC) (stateless) zas_2016-03-17 (taken at 2016/03/17 00:55 UTC) (stateful) zas_2016-03-17a (taken at 2016/03/17 00:56 UTC) (stateful) zas_2016-03-17b (taken at 2016/03/17 00:56 UTC) (stateful) zas_2016-03-17c (taken at 2016/03/17 01:03 UTC) (stateful) zas_2016-03-17d (taken at 2016/03/17 01:05 UTC) (stateful) It's marked as stateful, but checkpoint was failing due to old criu version: $ lxc snapshot --stateful connect error: checkpoint failed It's a bug, right? thanks, tamas ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users
Re: [lxc-users] snapshot listing
On 03/17/2016 04:02 AM, Serge Hallyn wrote: Quoting Tamas Papp (tom...@martos.bme.hu): On 03/17/2016 12:09 AM, Serge Hallyn wrote: Quoting Tamas Papp (tom...@martos.bme.hu): hi, I remember, that not very long time ago the 'lxc list' command also listed snapshots too. But now it doesn't. How can I do that now? You can see the number of snapshots with lxc list -c nS +--+---+ | NAME | SNAPSHOTS | +--+---+ | x1 | 1 | +--+---+ then see the actual snapshots with lxc info x1 Name: x1 Architecture: x86_64 Created: 2016/03/14 22:16 UTC Status: Stopped Type: persistent Profiles: default Snapshots: x1/snap0 (taken at 2016/03/16 23:07 UTC) (stateless) ShhI should have though on that:) But: Snapshots: zas_2016-03-08 (taken at 2016/03/08 09:22 UTC) (stateless) zas_2016-03-09 (taken at 2016/03/09 03:32 UTC) (stateless) zas_2016-03-10 (taken at 2016/03/10 03:30 UTC) (stateless) zas_2016-03-11 (taken at 2016/03/11 03:32 UTC) (stateless) zas_2016-03-12 (taken at 2016/03/12 03:32 UTC) (stateless) zas_2016-03-13 (taken at 2016/03/13 03:32 UTC) (stateless) zas_2016-03-14 (taken at 2016/03/14 03:32 UTC) (stateless) zas_2016-03-15 (taken at 2016/03/15 03:32 UTC) (stateless) zas_2016-03-16 (taken at 2016/03/16 03:32 UTC) (stateless) zas_2016-03-17 (taken at 2016/03/17 00:55 UTC) (stateful) zas_2016-03-17a (taken at 2016/03/17 00:56 UTC) (stateful) zas_2016-03-17b (taken at 2016/03/17 00:56 UTC) (stateful) zas_2016-03-17c (taken at 2016/03/17 01:03 UTC) (stateful) zas_2016-03-17d (taken at 2016/03/17 01:05 UTC) (stateful) It's marked as stateful, but checkpoint was failing due to old criu version: $ lxc snapshot --stateful connect error: checkpoint failed It's a bug, right? Sounds like a bug. https://github.com/lxc/lxd/issues/1768 I have a slightly related question. Do you plan to have a more computer friendly list of snapshots? It would be great to see them listed as containers, like defining, what detail(s) I want to see and list only snapshots, greppable etc. 10x tamas ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users
Re: [lxc-users] snapshot listing
Quoting Tamas Papp (tom...@martos.bme.hu): > hi, > > I remember, that not very long time ago the 'lxc list' command also > listed snapshots too. > But now it doesn't. How can I do that now? > You can see the number of snapshots with lxc list -c nS +--+---+ | NAME | SNAPSHOTS | +--+---+ | x1 | 1 | +--+---+ then see the actual snapshots with lxc info x1 Name: x1 Architecture: x86_64 Created: 2016/03/14 22:16 UTC Status: Stopped Type: persistent Profiles: default Snapshots: x1/snap0 (taken at 2016/03/16 23:07 UTC) (stateless) ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users
Re: [lxc-users] snapshot listing
Quoting Tamas Papp (tom...@martos.bme.hu): > > > On 03/17/2016 04:02 AM, Serge Hallyn wrote: > >Quoting Tamas Papp (tom...@martos.bme.hu): > >> > >>On 03/17/2016 12:09 AM, Serge Hallyn wrote: > >>>Quoting Tamas Papp (tom...@martos.bme.hu): > hi, > > I remember, that not very long time ago the 'lxc list' command also > listed snapshots too. > But now it doesn't. How can I do that now? > > >>>You can see the number of snapshots with > >>> > >>>lxc list -c nS > >>>+--+---+ > >>>| NAME | SNAPSHOTS | > >>>+--+---+ > >>>| x1 | 1 | > >>>+--+---+ > >>> > >>>then see the actual snapshots with > >>> > >>>lxc info x1 > >>>Name: x1 > >>>Architecture: x86_64 > >>>Created: 2016/03/14 22:16 UTC > >>>Status: Stopped > >>>Type: persistent > >>>Profiles: default > >>>Snapshots: > >>> x1/snap0 (taken at 2016/03/16 23:07 UTC) (stateless) > >>> > >>ShhI should have though on that:) > >> > >> > >>But: > >> > >>Snapshots: > >> zas_2016-03-08 (taken at 2016/03/08 09:22 UTC) (stateless) > >> zas_2016-03-09 (taken at 2016/03/09 03:32 UTC) (stateless) > >> zas_2016-03-10 (taken at 2016/03/10 03:30 UTC) (stateless) > >> zas_2016-03-11 (taken at 2016/03/11 03:32 UTC) (stateless) > >> zas_2016-03-12 (taken at 2016/03/12 03:32 UTC) (stateless) > >> zas_2016-03-13 (taken at 2016/03/13 03:32 UTC) (stateless) > >> zas_2016-03-14 (taken at 2016/03/14 03:32 UTC) (stateless) > >> zas_2016-03-15 (taken at 2016/03/15 03:32 UTC) (stateless) > >> zas_2016-03-16 (taken at 2016/03/16 03:32 UTC) (stateless) > >> zas_2016-03-17 (taken at 2016/03/17 00:55 UTC) (stateful) > >> zas_2016-03-17a (taken at 2016/03/17 00:56 UTC) (stateful) > >> zas_2016-03-17b (taken at 2016/03/17 00:56 UTC) (stateful) > >> zas_2016-03-17c (taken at 2016/03/17 01:03 UTC) (stateful) > >> zas_2016-03-17d (taken at 2016/03/17 01:05 UTC) (stateful) > >> > >> > >> > >>It's marked as stateful, but checkpoint was failing due to old criu version: > >> > >> > >>$ lxc snapshot --stateful connect > >>error: checkpoint failed > >> > >> > >>It's a bug, right? > >Sounds like a bug. > > > > https://github.com/lxc/lxd/issues/1768 > > > I have a slightly related question. > Do you plan to have a more computer friendly list of snapshots? > It would be great to see them listed as containers, like defining, > what detail(s) I want to see and list only snapshots, greppable etc. It's not planned. Can you open an issue requesting it? Seems like something which must be scriptable and the only way I can think of right now is to use the rest api to get the list of snapshot urls. ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users
Re: [lxc-users] snapshot listing
Quoting Tamas Papp (tom...@martos.bme.hu): > > > On 03/17/2016 12:09 AM, Serge Hallyn wrote: > >Quoting Tamas Papp (tom...@martos.bme.hu): > >>hi, > >> > >>I remember, that not very long time ago the 'lxc list' command also > >>listed snapshots too. > >>But now it doesn't. How can I do that now? > >> > >You can see the number of snapshots with > > > >lxc list -c nS > >+--+---+ > >| NAME | SNAPSHOTS | > >+--+---+ > >| x1 | 1 | > >+--+---+ > > > >then see the actual snapshots with > > > >lxc info x1 > >Name: x1 > >Architecture: x86_64 > >Created: 2016/03/14 22:16 UTC > >Status: Stopped > >Type: persistent > >Profiles: default > >Snapshots: > > x1/snap0 (taken at 2016/03/16 23:07 UTC) (stateless) > > > > ShhI should have though on that:) > > > But: > > Snapshots: > zas_2016-03-08 (taken at 2016/03/08 09:22 UTC) (stateless) > zas_2016-03-09 (taken at 2016/03/09 03:32 UTC) (stateless) > zas_2016-03-10 (taken at 2016/03/10 03:30 UTC) (stateless) > zas_2016-03-11 (taken at 2016/03/11 03:32 UTC) (stateless) > zas_2016-03-12 (taken at 2016/03/12 03:32 UTC) (stateless) > zas_2016-03-13 (taken at 2016/03/13 03:32 UTC) (stateless) > zas_2016-03-14 (taken at 2016/03/14 03:32 UTC) (stateless) > zas_2016-03-15 (taken at 2016/03/15 03:32 UTC) (stateless) > zas_2016-03-16 (taken at 2016/03/16 03:32 UTC) (stateless) > zas_2016-03-17 (taken at 2016/03/17 00:55 UTC) (stateful) > zas_2016-03-17a (taken at 2016/03/17 00:56 UTC) (stateful) > zas_2016-03-17b (taken at 2016/03/17 00:56 UTC) (stateful) > zas_2016-03-17c (taken at 2016/03/17 01:03 UTC) (stateful) > zas_2016-03-17d (taken at 2016/03/17 01:05 UTC) (stateful) > > > > It's marked as stateful, but checkpoint was failing due to old criu version: > > > $ lxc snapshot --stateful connect > error: checkpoint failed > > > It's a bug, right? Sounds like a bug. ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users
Re: [lxc-users] snapshot listing
On 03/17/2016 07:20 PM, Serge Hallyn wrote: Quoting Tamas Papp (tom...@martos.bme.hu): On 03/17/2016 04:02 AM, Serge Hallyn wrote: Quoting Tamas Papp (tom...@martos.bme.hu): On 03/17/2016 12:09 AM, Serge Hallyn wrote: Quoting Tamas Papp (tom...@martos.bme.hu): hi, I remember, that not very long time ago the 'lxc list' command also listed snapshots too. But now it doesn't. How can I do that now? You can see the number of snapshots with lxc list -c nS +--+---+ | NAME | SNAPSHOTS | +--+---+ | x1 | 1 | +--+---+ then see the actual snapshots with lxc info x1 Name: x1 Architecture: x86_64 Created: 2016/03/14 22:16 UTC Status: Stopped Type: persistent Profiles: default Snapshots: x1/snap0 (taken at 2016/03/16 23:07 UTC) (stateless) ShhI should have though on that:) But: Snapshots: zas_2016-03-08 (taken at 2016/03/08 09:22 UTC) (stateless) zas_2016-03-09 (taken at 2016/03/09 03:32 UTC) (stateless) zas_2016-03-10 (taken at 2016/03/10 03:30 UTC) (stateless) zas_2016-03-11 (taken at 2016/03/11 03:32 UTC) (stateless) zas_2016-03-12 (taken at 2016/03/12 03:32 UTC) (stateless) zas_2016-03-13 (taken at 2016/03/13 03:32 UTC) (stateless) zas_2016-03-14 (taken at 2016/03/14 03:32 UTC) (stateless) zas_2016-03-15 (taken at 2016/03/15 03:32 UTC) (stateless) zas_2016-03-16 (taken at 2016/03/16 03:32 UTC) (stateless) zas_2016-03-17 (taken at 2016/03/17 00:55 UTC) (stateful) zas_2016-03-17a (taken at 2016/03/17 00:56 UTC) (stateful) zas_2016-03-17b (taken at 2016/03/17 00:56 UTC) (stateful) zas_2016-03-17c (taken at 2016/03/17 01:03 UTC) (stateful) zas_2016-03-17d (taken at 2016/03/17 01:05 UTC) (stateful) It's marked as stateful, but checkpoint was failing due to old criu version: $ lxc snapshot --stateful connect error: checkpoint failed It's a bug, right? Sounds like a bug. https://github.com/lxc/lxd/issues/1768 I have a slightly related question. Do you plan to have a more computer friendly list of snapshots? It would be great to see them listed as containers, like defining, what detail(s) I want to see and list only snapshots, greppable etc. It's not planned. Can you open an issue requesting it? Seems like something which must be scriptable and the only way I can think of right now is to use the rest api to get the list of snapshot urls. https://github.com/lxc/lxd/issues/1789 Thank you, tamas ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users