docker snap commands fail to run from a tempdir

Bug #1618197 reported by Sylvain Pineau
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
PlainBox (Toolkit)
Fix Released
Critical
Sylvain Pineau

Bug Description

While developing the docker snap tests, all docker commands failed if I ran them from checkbox jobs but succeeded from the command line.

After some debugging, the problem comes from the plainbox controller (UserJobExecutionController) where all commands are started from a specific cwd set as a temp dir.

It seems that docker commands (at least the one from the snap) don't really like this method:

--------------[ Running job 4 / 8. Estimated time left: unknown ]---------------
---------------[ Download and run trivial hello-world container ]---------------
ID: 2013.com.canonical.certification::docker/hello-world
Category: 2013.com.canonical.certification::docker
... 8< -------------------------------------------------------------------------
unable to change to original directory. errmsg: No such file or directory
------------------------------------------------------------------------- >8 ---

Since the execution problem comes from plainbox, I'd first fix our controller before submitting a bug for docker.

My proposal for a fix would be a new flag that would prevent running job command from a tempdir cwd (I tested this approach successfully)

Tags: snappy

Related branches

description: updated
Changed in plainbox:
assignee: nobody → Sylvain Pineau (sylvain-pineau)
status: New → In Progress
Changed in plainbox:
status: In Progress → Fix Committed
Pierre Equoy (pieq)
Changed in plainbox:
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.