Cannot run spread hello world on all-snaps image

Bug #1638988 reported by Max Brustkern
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd
Triaged
Low
Unassigned

Bug Description

I'm running the all-snaps-pc image in kvm. I've installed spread using devmode, and I'm attempting to run the hello world example defined here:
https://github.com/snapcore/spread
I get:
nuclearbob@allsnaps-kvm:~$ spread
2016/11/03 17:13:39 Allocating lxd:ubuntu-16.04...
2016/11/03 17:13:39 Cannot allocate lxd:ubuntu-16.04: cannot launch lxd container: exec: "lxc": executable file not found in $PATH
2016/11/03 17:13:39 Error preparing project content for delivery: tar command killed
2016/11/03 17:13:39 Successful tasks: 0
2016/11/03 17:13:39 Aborted tasks: 1
error: tar command killed
lxd.lxc is in my path, but lxc is not. I ran
alias lxc=lxd.lxc
but this doesn't seem to propagate to the spread snap's environment. How can I make the lxc command available to spread?

Revision history for this message
Zygmunt Krynicki (zyga) wrote :

Currently snaps cannot execute other snaps explicitly or implicitly.

We are working on a set of changes that would allow applications to act as launchers but this is driven by the needs of working in a desktop session. Unfortunately on core systems there is nothing that would allow one snap (spread) to run another (lxd) for now.

Changed in snappy:
status: New → Triaged
importance: Undecided → Low
affects: snappy → snapd
Revision history for this message
John Lenton (chipaca) wrote :

FTR this is fixable by tweaking the packaging of spread. I'll try to look into that.

Revision history for this message
Ian Johnson (anonymouse67) wrote :

@chipaca should we move this issue to GitHub for spread: https://github.com/snapcore/spread/issues ?

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.