[lxc-users] Cannot delete container
Serge Hallyn
serge.hallyn at ubuntu.com
Wed Jul 29 18:16:02 UTC 2015
And that should be fixed by https://github.com/lxc/lxd/pull/916 - thanks
valerio and Zachary. I'm still looking for other ways to reach this
"cannot delete or edit container" state, but we seem to be pretty good
about not allowing bogus configs now. I remember this being more of a
problem some time ago.
-serge
Quoting Serge Hallyn (serge.hallyn at ubuntu.com):
> Yes, probably. '/' is reserved for use in snapshots. So one part
> of the bug is that that name shouldn't have been allowed in the first
> place.
>
> -serge
>
> Quoting Zachary Coffey (clickwir631 at gmail.com):
> > Can we assume the problem is caused by the / in the name?
> >
> > On Wed, Jul 29, 2015, 11:01 AM Valerio Mariani <valerio.mariani at gmx.de>
> > wrote:
> >
> > > It is very small, I will email it to you privately!
> > >
> > > Thank you again!
> > >
> > > Valerio
> > >
> > > On 29.07.2015 16:53, Serge Hallyn wrote:
> > > > Depending on the size, you can just email it to me privately if
> > > > you like, or upload to paste.ubuntu.com.
> > > >
> > > > Quoting Valerio Mariani (valerio.mariani at gmx.de):
> > > >> Yes, I have a log. Can I upload it somewhere?
> > > >>
> > > >> For the cotnainer, I will follow your advice and wipe lxd!
> > > >>
> > > >> Thanks!
> > > >>
> > > >> Valerio
> > > >>
> > > >> On 29.07.2015 16:42, Serge Hallyn wrote:
> > > >>> So assuming you don't have any containers yet which you want to keep
> > > >>> around, the easiest thing might be to do
> > > >>>
> > > >>> sudo rm -rf /var/lib/lxd
> > > >>>
> > > >>> and start over.
> > > >>>
> > > >>> Do you happen to have a log of the steps you had previously done with
> > > >>> the container? I can imagine what's happening, and I'm opening a new
> > > >>> issue to try to make sure this doesn't ever happen, but an easy
> > > >>> reproducer would help :)
> > > >>>
> > > >>> thanks,
> > > >>> -serge
> > > >>>
> > > >>> Quoting Valerio Mariani (valerio.mariani at gmx.de):
> > > >>>> Dear Serge,
> > > >>>>
> > > >>>> I installed it using the stable lxd ppa, on ubuntu vivid 15.04
> > > >>>>
> > > >>>> Valerio
> > > >>>>
> > > >>>> On 29.07.2015 15:23, Serge Hallyn wrote:
> > > >>>>> Hi,
> > > >>>>>
> > > >>>>> Valerio's using lxd, not straight lxc.
> > > >>>>>
> > > >>>>> Valerio,
> > > >>>>>
> > > >>>>> how did you install lxd? (to help decide how to debug it)
> > > >>>>>
> > > >>>>> -serge
> > > >>>>>
> > > >>>>> Quoting Divya Vyas (edivya.vyas at gmail.com):
> > > >>>>>> lxc-destroy should do that
> > > >>>>>>
> > > >>>>>> On Wed, Jul 29, 2015 at 2:24 PM, Valerio Mariani <
> > > valerio.mariani at gmx.de>
> > > >>>>>> wrote:
> > > >>>>>>
> > > >>>>>>> Dear All,
> > > >>>>>>>
> > > >>>>>>> I am trying to delete all containers from my system. If I type
> > > lxc
> > > >>>>>>> list, I see:
> > > >>>>>>>
> > > >>>>>>> vmariani at cfeld-valerio2:~/Downloads$ lxc list
> > > >>>>>>> +----------+---------+------+------+-----------+-----------+
> > > >>>>>>> | NAME | STATE | IPV4 | IPV6 | EPHEMERAL | SNAPSHOTS |
> > > >>>>>>> +----------+---------+------+------+-----------+-----------+
> > > >>>>>>> | centos/6 | STOPPED | | | NO | 0 |
> > > >>>>>>> +----------+---------+------+------+-----------+-----------+
> > > >>>>>>>
> > > >>>>>>> However, if I try to delete it with lxc delete centos/6, I get:
> > > >>>>>>>
> > > >>>>>>> error: not found
> > > >>>>>>>
> > > >>>>>>> This is lxc version 0.14
> > > >>>>>>>
> > > >>>>>>> I realize I can delete the container by deleting the rootfs, but I
> > > am
> > > >>>>>>> afraid that will leave the config data in the database. Is there a
> > > way
> > > >>>>>>> to delete this container?
> > > >>>>>>>
> > > >>>>>>> Thank you for your help
> > > >>>>>>>
> > > >>>>>>> Valerio
> > > >>>>>>> _______________________________________________
> > > >>>>>>> lxc-users mailing list
> > > >>>>>>> lxc-users at lists.linuxcontainers.org
> > > >>>>>>> http://lists.linuxcontainers.org/listinfo/lxc-users
> > > >>>>>> _______________________________________________
> > > >>>>>> lxc-users mailing list
> > > >>>>>> lxc-users at lists.linuxcontainers.org
> > > >>>>>> http://lists.linuxcontainers.org/listinfo/lxc-users
> > > >>>>> _______________________________________________
> > > >>>>> lxc-users mailing list
> > > >>>>> lxc-users at lists.linuxcontainers.org
> > > >>>>> http://lists.linuxcontainers.org/listinfo/lxc-users
> > > >>>> _______________________________________________
> > > >>>> lxc-users mailing list
> > > >>>> lxc-users at lists.linuxcontainers.org
> > > >>>> http://lists.linuxcontainers.org/listinfo/lxc-users
> > > >>> _______________________________________________
> > > >>> lxc-users mailing list
> > > >>> lxc-users at lists.linuxcontainers.org
> > > >>> http://lists.linuxcontainers.org/listinfo/lxc-users
> > > >> _______________________________________________
> > > >> lxc-users mailing list
> > > >> lxc-users at lists.linuxcontainers.org
> > > >> http://lists.linuxcontainers.org/listinfo/lxc-users
> > > > _______________________________________________
> > > > lxc-users mailing list
> > > > lxc-users at lists.linuxcontainers.org
> > > > http://lists.linuxcontainers.org/listinfo/lxc-users
> > >
> > > _______________________________________________
> > > lxc-users mailing list
> > > lxc-users at lists.linuxcontainers.org
> > > http://lists.linuxcontainers.org/listinfo/lxc-users
>
> > _______________________________________________
> > lxc-users mailing list
> > lxc-users at lists.linuxcontainers.org
> > http://lists.linuxcontainers.org/listinfo/lxc-users
>
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
More information about the lxc-users
mailing list