[refactor] extract out basic container management

Refactor the container creation code to isolate the building/retrieving
of a container namedtuple out of the core container creation code.

This simplifies quite a bit the different branches of this code, and
makes the core create method almost entirely dedicated to just launching
a command.
19 jobs for <span class="ref-name">refactor-container-management</span> in 5 minutes and 17 seconds (queued for 6 minutes and 9 seconds)
Status Job ID Name Coverage
  Build
passed #18074
integration
containers.build

00:00:01

passed #18075
integration
libnrm.build

00:00:01

passed #18076
integration
nrm.build

00:00:05

 
  Test
passed #18082
integration
Hello.test

00:00:10

failed #18092
knl
KNL-Hello.test

00:00:42

passed #18089
knl
KNL-Listen.test

00:00:42

failed #18088
knl
KNL-Perfwrapper.test

00:00:42

passed #18087
knl
KNL-Power.test

00:00:42

failed #18091
knl
KNL-STREAM.test

00:00:42

passed #18080
integration
Listen.test

00:00:11

passed #18078
integration
Perfwrapper.test

00:00:10

passed #18085
rapl
py.test

00:01:04

failed #18083
knl
KNL-Hello.test

00:00:41

failed #18090
knl
KNL-Hello.test

00:00:42

failed #18081
knl
KNL-Listen.test

00:00:39

failed #18079
knl
KNL-Perfwrapper.test

00:00:39

failed #18077
knl
KNL-Power.test

00:00:39

canceled #18084
knl
KNL-STREAM.test

00:00:38

 
  Style
skipped #18086
flake8
 
Name Stage Failure
failed
KNL-STREAM.test Test
Info: Cleaned the argo config.
Info: argo_nodeos_config successfully cleaned the container config.
[ daemon , cmd run , cmd listen (-f) progress ]
Info: Processes cancelled due to termination of: cmd run with exit information: Right (ExitSuccess,Clean,Clean)
Error: cmd run died before a message could be found with error code ExitSuccess
Uploading artifacts...
_output/*: found 8 matching files
Uploading artifacts to coordinator... ok id=18091 responseStatus=201 Created token=ULxdszwZ
ERROR: Job failed: exit status 1
failed
KNL-Perfwrapper.test Test
  )
]
Info: Processes started.
Info: Processes cancelled due to termination of: cmd run with exit information: Right (ExitSuccess,Clean,Clean)
Error: cmd run died before a message could be found with error code ExitSuccess
Uploading artifacts...
_output/*: found 8 matching files
Uploading artifacts to coordinator... ok id=18088 responseStatus=201 Created token=kWiZqnWj
ERROR: Job failed: exit status 1
failed
KNL-Hello.test Test
  )
]
Info: Processes started.
Info: Processes cancelled due to termination of: cmd run with exit information: Right (ExitSuccess,Clean,Clean)
Error: cmd run died before a message could be found with error code ExitSuccess
Uploading artifacts...
_output/*: found 6 matching files
Uploading artifacts to coordinator... ok id=18092 responseStatus=201 Created token=ujkWaeHm
ERROR: Job failed: exit status 1