Commit Graph

7 Commits

Author SHA1 Message Date
Emilien Macchi d0e81c22ca Retire Paunch
Change-Id: I8b2e9e20e477f2f00ad922f03e82114ff13212fe
2020-06-15 10:07:12 -04:00
Emilien Macchi 5e88de63f5 Add --cpuset-cpus support for both Docker and Podman
Limit the specific CPUs or cores a container can use.

If cpuset-cpus is configured in the container layout, then the value
will be used when running the container cli with --cpuset-cpus.
If 'all' is used as a value, we'll then take all available cpus,
computed by: "0-" + str(psutil.cpu_count()-1)

If unset (default), the cpuset-cpus value is computed by using psutil with a
new function which returns a comma-separated list range of CPUs that a
container can use.

This parameter is particulary useful for NFV:
https://bugzilla.redhat.com/show_bug.cgi?id=1750781
Indeed, for NFV workloads, in order to achieve 0 packet loss, linux processes,
ovs-dpdk (if applicable) and VMs are isolated thanks to kernel args (isolcpus)
and tuned profiles (cpu-partitioning).

Change-Id: I9443ad60affe9c7823b17daa259efee542c6fe22
2019-09-24 03:48:54 +00:00
Bogdan Dobrelya 510f091353 Implement podman rename via re-apply of containers
To w/a the missing a container rename feature of podman, implement
renaming via removing of the original container and re-applying it from
the same configs but using the new name.

This fixes idempotency issues when service containers are executed
under ephemeral names created via the paunch's unique containers names
generator, while it is expected to have them executed under its wanted
config names.

Change-Id: If851604d25b6c7982d950bb9e13dceada3bfc161
Closes-Bug: #1805410
Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
2019-01-22 16:43:36 +01:00
Steve Baker 5c7a785053 Use tenacity to retry image pulls
Image pulls often fail due to network or registry load. This change
implements pull retries, up to 4 times with jittered exponential
backoff.

Closes-Bug #1752036

Change-Id: I09c601f357200e734aa9d887c6ce6b4e53fc2589
2018-02-27 11:17:04 +00:00
Steve Baker c4a016465b Fix testenv
Change-Id: Id366a7b47c9ae94a0272451ba2d2cd26926bb094
2017-05-23 09:54:08 +12:00
Steve Baker d89877d19b Create stub commands 2017-03-28 16:29:24 +13:00
Steve Baker ceed164766 Initial Cookiecutter Commit. 2017-01-25 11:24:31 +13:00