lxd fails in beta15 when installing via snap

Bug #1612653 reported by Matthew Helmke
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-core
Triaged
High
Unassigned

Bug Description

I did a successful test install using the juju/devel PPA. Then, I tried a fresh install in a fresh VM to test the snap package.

ubuntu@matthelmke-bastion:~$ ssh 20160812-beta15-snap
Warning: Permanently added '20160812-beta15-snap,10.5.0.57' (ECDSA) to the list of known hosts.
Welcome to Ubuntu 16.04.1 LTS (GNU/Linux 4.4.0-31-generic x86_64)

 * Documentation: https://help.ubuntu.com
 * Management: https://landscape.canonical.com
 * Support: https://ubuntu.com/advantage

  Get cloud support with Ubuntu Advantage Cloud Guest:
    http://www.ubuntu.com/business/services/cloud

0 packages can be updated.
0 updates are security updates.

The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.

To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.

ubuntu@20160812-beta15-snap:~$ sudo apt update
...

ubuntu@20160812-beta15-snap:~$ sudo apt full-upgrade -y && sudo apt install zfsutils-linux
...

ubuntu@20160812-beta15-snap:~$ sudo snap install juju --beta --devmode
28.75 MB / 30.32 MB [==============================================================================================================>_______] 94.83 % 15.66 MB/s

juju (beta) 2.0-beta15 from 'juju' installed

ubuntu@20160812-beta15-snap:~$ groups
ubuntu adm dialout cdrom floppy sudo audio dip video plugdev netdev lxd

ubuntu@20160812-beta15-snap:~$ sudo lxd init
Name of the storage backend to use (dir or zfs): zfs
Create a new ZFS pool (yes/no)? yes
Name of the new ZFS pool: lxd-pool
Would you like to use an existing block device (yes/no)? no
Size in GB of the new loop device (1GB minimum): 32
Would you like LXD to be available over the network (yes/no)? no
Do you want to configure the LXD bridge (yes/no)? yes
Warning: Stopping lxd.service, but it can still be activated by:
  lxd.socket
LXD has been successfully configured.

ubuntu@20160812-beta15-snap:~$ juju bootstrap lxd-test localhost
ERROR invalid config: can't connect to the local LXD server: LXD socket not found; is LXD installed & running?

Please install LXD by running:
 $ sudo apt-get install lxd
and then configure it with:
 $ newgrp lxd
 $ lxd init

Changed in juju-core:
status: New → Triaged
importance: Undecided → High
milestone: none → 2.0.0
Revision history for this message
Richard Harding (rharding) wrote :

This is a snap specific issue I think and not directly tied to a juju release. Targeting at 2.1 since we should not block the release of Juju 2.0 on this, but I want to make sure we track it. Ideally we should look into starting a project for just the snap and associating this bug with that work there to work out what we need to do to have Juju and LXD play nice together in a snap world on the same system.

summary: - bootstrap fails in beta15 when installing via snap
+ lxd fails in beta15 when installing via snap
Changed in juju-core:
milestone: 2.0.0 → 2.1.0
Revision history for this message
Nicholas Skaggs (nskaggs) wrote :

This is actually a problem with snap-confine, not the juju snap specifically. See the duped bug.

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.