Libertine won't destroy named container

Bug #1609086 reported by padraic
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Libertine
Invalid
Undecided
Unassigned

Bug Description

Expected behaviour: libertine-container-manager will destroy contained indicated with the '-i' flag.

Result: error message received as follows:

````
phablet@ubuntu-phablet:~$ libertine-container-manager destroy -i vivid2
Traceback (most recent call last):
  File "/usr/bin/libertine-container-manager", line 857, in <module>
args.func(args)
  File "/usr/bin/libertine-container-manager", line 430, in destroy
destroy_container_by_id(args.id)
  File "/usr/bin/libertine-container-manager", line 416, in destroy_container_by_id
    container = LibertineContainer(id)
  File "/usr/lib/python3/dist-packages/libertine/Libertine.py", line 287, in __init__
from libertine.LxcContainer import LibertineLXC
ImportError: No module named 'libertine.LxcContainer'

````

Ubuntu-touch
OTA-12

Phenonomen discussed on askubuntu at https://askubuntu.com/questions/804856/how-to-correctly-delete-libertine-containers-on-ubuntu-touch

Revision history for this message
Christopher Townsend (townsend) wrote :

Seems you might have tried to create an LXC type container??? Could you attach the contents of ~/.local/share/libertine/ContainersConfig.json?

Thanks!

Changed in libertine:
status: New → Incomplete
Revision history for this message
Larry Price (larryprice) wrote :

Thanks for the bug report. This seems to be the result of creating an lxc container in a vivid-based system, where it's not possible to create lxc containers due to kernel limitations.

Do you remember the commands you used to create this container? Can you attach the contents of the file located at /home/phablet/.local/share/libertine/ContainersConfig.json?

Revision history for this message
padraic (padraic7a) wrote :
Download full text (5.3 KiB)

Ok, that makes sense. After seeing a blog post about them I had previously tried to create an LXC container, I didn't realise at the time that it wasn't possible in vivid.

I tried to create it with

````
libertine-container-manager create -t lxc -d vivid -i vivid2

I have created and removed containers a number of times so the file contents you asked for might not be in line with the bug re file names at this stage but here it is anyway:

{
    "containerList": [
        {
            "distro": "vivid",
            "id": "puritine",
            "installStatus": "ready",
            "installedApps": [
                {
                    "appStatus": "installed",
                    "packageName": "gedit"
                },
                {
                    "appStatus": "installed",
                    "packageName": "libreoffice"
                },
                {
                    "appStatus": "installed",
                    "packageName": "firefox"
                },
                {
                    "appStatus": "installed",
                    "packageName": "xchat-gnome"
                },
                {
                    "appStatus": "installed",
                    "packageName": "gimp"
                },
                {
                    "appStatus": "installed",
                    "packageName": "language-pack-gnome-en"
                },
                {
                    "appStatus": "installed",
                    "packageName": "firefox-locale-en"
                },
                {
                    "appStatus": "installed",
                    "packageName": "libreoffice-help-en-gb"
                },
                {
                    "appStatus": "installed",
                    "packageName": "libreoffice-help-en-us"
                },
                {
                    "appStatus": "installed",
                    "packageName": "language-pack-gnome-es"
                },
                {
                    "appStatus": "installed",
                    "packageName": "firefox-locale-es"
                },
                {
                    "appStatus": "installed",
                    "packageName": "libreoffice-help-es"
                },
                {
                    "appStatus": "installed",
                    "packageName": "language-pack-gnome-fr"
                },
                {
                    "appStatus": "installed",
                    "packageName": "firefox-locale-fr"
                },
                {
                    "appStatus": "installed",
                    "packageName": "libreoffice-help-fr"
                },
                {
                    "appStatus": "installed",
                    "packageName": "language-pack-gnome-de"
                },
                {
                    "appStatus": "installed",
                    "packageName": "firefox-locale-de"
                },
                {
                    "appStatus": "installed",
                    "packageName": "libreoffice-help-de"
                },
                {
                    "appStatus": "installed",
                    "packageName": "language-pack...

Read more...

Revision history for this message
Larry Price (larryprice) wrote :

Yup, it's just as we expected. We fixed this issue fairly recently, preventing users from installing lxc containers if their kernel does not support it.

Unfortunately, you'll need to manually delete those containers which you don't want. To do this, you can delete the contents of ~/.cache/libertine-container/$container-name and manually remove the entries from the ContainersConfig.json file. I've attached a new version of ContainersConfig.json for you to drop in-place if you prefer.

Changed in libertine:
status: Incomplete → Invalid
Revision history for this message
padraic (padraic7a) wrote :

Cool, thanks for that.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.