Persistent container builds are broken

Bug #1780997 reported by Kyle Fazzari
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
Fix Released
Critical
Kyle Fazzari

Bug Description

Get this every time:

Device /root/build_my-snap-name removed from snapcraft-my-snap-name
Waiting for a network connection...
Network connection established
Mounting /tmp/foo into container
Device /root/build_my-snap-name added to snapcraft-my-snap-name
Stopping local:snapcraft-my-snap-name
Sorry, Snapcraft ran into an error when trying to running through its
lifecycle that generated the following traceback:
Traceback (most recent call last):
  File "/home/kyrofa/venv/snapcraft/bin/snapcraft", line 11, in <module>
    load_entry_point('snapcraft', 'console_scripts', 'snapcraft')()
  File "/home/kyrofa/venv/snapcraft/lib/python3.6/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/home/kyrofa/venv/snapcraft/lib/python3.6/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/home/kyrofa/venv/snapcraft/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/kyrofa/venv/snapcraft/lib/python3.6/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/kyrofa/venv/snapcraft/lib/python3.6/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/home/kyrofa/src/snapcraft/snapcraft/cli/lifecycle.py", line 116, in prime
    _execute(steps.PRIME, parts, **kwargs)
  File "/home/kyrofa/src/snapcraft/snapcraft/cli/lifecycle.py", line 38, in _execute
    lifecycle.containerbuild(command, project_options, parts)
  File "/home/kyrofa/src/snapcraft/snapcraft/internal/lifecycle/_containers.py", line 45, in containerbuild
    metadata=config.get_metadata()).execute(step, args)
  File "/home/kyrofa/src/snapcraft/snapcraft/internal/lxd/_containerbuild.py", line 198, in execute
    user=self._user)
  File "/home/kyrofa/src/snapcraft/snapcraft/internal/lxd/_containerbuild.py", line 214, in _container_run
    ' '.join(pipes.quote(arg) for arg in cmd))]
  File "/home/kyrofa/src/snapcraft/snapcraft/internal/lxd/_containerbuild.py", line 214, in <genexpr>
    ' '.join(pipes.quote(arg) for arg in cmd))]
  File "/usr/lib/python3.6/shlex.py", line 314, in quote
    if _find_unsafe(s) is None:
TypeError: expected string or bytes-like object

Kyle Fazzari (kyrofa)
Changed in snapcraft:
status: New → In Progress
importance: Undecided → Critical
assignee: nobody → Kyle Fazzari (kyrofa)
Changed in snapcraft:
milestone: none → 2.43
Kyle Fazzari (kyrofa)
Changed in snapcraft:
status: In Progress → Fix Committed
Changed in snapcraft:
status: Fix Committed → Fix Released
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.