Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Snap on LXD
lxc launch ubuntu:16.04 charm-snap -c security.nesting=true -c security.privileged=true
lxc exec charm-snap -- apt update
lxc exec charm-snap -- apt install -y squashfuse
# Restart required to avoid 'Setup snap "core" (3748) security profiles (cannot setup udev for snap "core": cannot reload udev rules: exit status 2'
lxc restart charm-snap
lxc exec charm-snap -- snap install charm
lxc exec charm-snap -- sh -c "rm -rf charms/layers; mkdir -p charms/layers; cd charms/layers; charm create simple; cd simple; charm build"

INFO: Using default charm template (reactive-python). To select a different template, use the -t option.                                
INFO: Generating charm for simple in ./simple                       
INFO: No simple in apt cache; creating an empty charm instead.      
Cloning into '/tmp/tmpG0nLtV'...  
warning: templates not found /snap/charm/114/share/git-core/templates                                                                   
remote: Counting objects: 27, done.
remote: Total 27 (delta 0), reused 0 (delta 0), pack-reused 27
Unpacking objects: 100% (27/27), done.                              
Checking connectivity... done.    
build: Destination charm directory: /root/charms/layers/simple/trusty/simple                                                            
build: Please add a `repo` key to your layer.yaml, with a url from which your layer can be cloned.                                      
build: Processing layer: layer:basic                                
build: Processing layer: simple (from .)                            
Collecting pip<8.2.0,>=7.0.0 (from -r /root/charms/layers/simple/deps/layer/basic/wheelhouse.txt (line 1))                              
  Using cached pip-8.1.2.tar.gz   
  Saved /tmp/tmpZ9e0aW/pip-8.1.2.tar.gz                             
Collecting charmhelpers<1.0.0,>=0.4.0 (from -r /root/charms/layers/simple/deps/layer/basic/wheelhouse.txt (line 2))                     
  Using cached charmhelpers-0.18.3.tar.gz                           
  Saved /tmp/tmpZ9e0aW/charmhelpers-0.18.3.tar.gz                   
Collecting charms.reactive<2.0.0,>=0.1.0 (from -r /root/charms/layers/simple/deps/layer/basic/wheelhouse.txt (line 3))                  
  Using cached charms.reactive-0.6.0.tar.gz                         
  Saved /tmp/tmpZ9e0aW/charms.reactive-0.6.0.tar.gz                 
Collecting netaddr (from charmhelpers<1.0.0,>=0.4.0->-r /root/charms/layers/simple/deps/layer/basic/wheelhouse.txt (line 2))            
  Using cached netaddr-0.7.19.tar.gz                                
  Saved /tmp/tmpZ9e0aW/netaddr-0.7.19.tar.gz                        
Collecting PyYAML (from charmhelpers<1.0.0,>=0.4.0->-r /root/charms/layers/simple/deps/layer/basic/wheelhouse.txt (line 2))             
  Using cached PyYAML-3.12.tar.gz 
  Saved /tmp/tmpZ9e0aW/PyYAML-3.12.tar.gz                           
Collecting Tempita (from charmhelpers<1.0.0,>=0.4.0->-r /root/charms/layers/simple/deps/layer/basic/wheelhouse.txt (line 2))            
  Using cached Tempita-0.5.2.tar.gz                                 
  Saved /tmp/tmpZ9e0aW/Tempita-0.5.2.tar.gz                         
Collecting Jinja2 (from charmhelpers<1.0.0,>=0.4.0->-r /root/charms/layers/simple/deps/layer/basic/wheelhouse.txt (line 2))             
  Using cached Jinja2-2.10.tar.gz 
  Saved /tmp/tmpZ9e0aW/Jinja2-2.10.tar.gz                           
Collecting six (from charmhelpers<1.0.0,>=0.4.0->-r /root/charms/layers/simple/deps/layer/basic/wheelhouse.txt (line 2))                
  Using cached six-1.11.0.tar.gz  
  Saved /tmp/tmpZ9e0aW/six-1.11.0.tar.gz                            
Collecting pyaml (from charms.reactive<2.0.0,>=0.1.0->-r /root/charms/layers/simple/deps/layer/basic/wheelhouse.txt (line 3))           
  Using cached pyaml-17.12.1.tar.gz                                 
bash: line 1:   949 Bad system call         (core dumped) pip3 download --no-binary :all: -d /tmp/tmpZ9e0aW -r /root/charms/layers/simple/deps/layer/basic/wheelhouse.txt

Command failed: bash -c . /tmp/tmpiSeOmy/bin/activate ; pip3 download --no-binary :all: -d /tmp/tmpZ9e0aW -r /root/charms/layers/simple/deps/layer/basic/wheelhouse.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.