Cannot build LXC container after botched install

Bug #1509174 reported by Will Pimblett
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Unity8 Desktop Preview in LXC
Fix Committed
Critical
Christopher Townsend
unity8-lxc (Ubuntu)
Fix Released
Critical
Christopher Townsend

Bug Description

I accidently installed the package from the 15.10 repo rather than the PPA, this failed to install. Added the PPA, upgraded and running `unity8-lxc-setup` yields:

```
usage: unity8-lxc-setup [-h] [--rebuild] [--test SECONDS] [--destroy]
                        [--update-lxc]
unity8-lxc-setup: error: The container already exists.
```

Whereas with the `--rebuild` flag:

```
[~]$ sudo unity8-lxc-setup --rebuild
Deleting current unity8-lxc container...
Creating the new unity8-lxc container...
Configuring the Unity8 LXC...
Traceback (most recent call last):
  File "/usr/bin/unity8-lxc-setup", line 128, in <module>
    with open(os.path.join(rootfs_path, "etc", "hostname"), "w+") as fd:
FileNotFoundError: [Errno 2] No such file or directory: '/var/lib/lxc/unity8-lxc/rootfs/etc/hostname'
```

Will Pimblett (wjdp)
summary: - Cannot build LXC container
+ Cannot build LXC container after botched install
Revision history for this message
Christopher Townsend (townsend) wrote :

Thanks for reporting this. This error is due to xenial being open and active, but no lxc images of xenial exist yet. The code tries to be smart and use the latest Ubuntu development release (xenial in this case), but that lxc image doesn't exist yet.

I'm just going to hardcode wily for now until the xenial lxc image is available.

Changed in unity8-preview-lxc:
status: New → Triaged
Changed in unity8-lxc (Ubuntu):
status: New → Triaged
Changed in unity8-preview-lxc:
importance: Undecided → Critical
Changed in unity8-lxc (Ubuntu):
importance: Undecided → Critical
Changed in unity8-preview-lxc:
assignee: nobody → Christopher Townsend (townsend)
Changed in unity8-lxc (Ubuntu):
assignee: nobody → Christopher Townsend (townsend)
Changed in unity8-preview-lxc:
milestone: none → 1.0.4
status: Triaged → In Progress
Changed in unity8-lxc (Ubuntu):
status: Triaged → In Progress
Changed in unity8-preview-lxc:
status: In Progress → Fix Committed
Changed in unity8-lxc (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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