docker snap commands fail to run from a tempdir
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 (UserJobExecuti
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.
Category: 2013.com.
... 8< -------
unable to change to original directory. errmsg: No such file or directory
-------
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)
Related branches
- Sylvain Pineau (community): Approve
- Maciej Kisielewski (community): Approve
-
Diff: 61 lines (+26/-3)3 files modifiedplainbox/docs/manpages/plainbox-job-units.rst (+8/-0)
plainbox/plainbox/impl/ctrl.py (+9/-3)
plainbox/plainbox/impl/unit/job.py (+9/-0)
description: | updated |
Changed in plainbox: | |
assignee: | nobody → Sylvain Pineau (sylvain-pineau) |
status: | New → In Progress |
Changed in plainbox: | |
status: | In Progress → Fix Committed |
Changed in plainbox: | |
status: | Fix Committed → Fix Released |