Paunch: extend systemd unit flags

Bug #1814764 reported by Cédric Jeanneret
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Medium
Cédric Jeanneret

Bug Description

Hellow,

It would be great to allow paunch to extend a bit the content of the systemd unit created for the containers. I especially think the following are of interest:
RuntimeDirectory
StateDirectory
CacheDirectory

The path is relative, so if we set RuntimeDirectory=foo, it will mean /run/foo

Since the /var/run is usually emptied upon reboot, and as podman doesn't create host directories for its volumes, injecting those flags would provide a really nice way to avoid issues.

More doc about those flags might be found here:
https://www.freedesktop.org/software/systemd/man/systemd.exec.html

We might also take the opportunity to allow for CPU/Memory limitation.

Thanks!

Cheers,

C.

Tags: containers
Changed in tripleo:
importance: Undecided → Medium
milestone: none → stein-3
status: New → Triaged
tags: added: containers
Changed in tripleo:
assignee: nobody → Cédric Jeanneret (cjeanner)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to paunch (master)

Fix proposed to branch: master
Review: https://review.openstack.org/635133

Changed in tripleo:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to paunch (master)

Reviewed: https://review.openstack.org/635133
Committed: https://git.openstack.org/cgit/openstack/paunch/commit/?id=b452a33030a19c34fdc3dbf65f39aa5f511de1e3
Submitter: Zuul
Branch: master

commit b452a33030a19c34fdc3dbf65f39aa5f511de1e3
Author: Cédric Jeanneret <email address hidden>
Date: Wed Feb 6 11:24:07 2019 +0100

    Allow to pass some of systemd.exec flags

    It may happen we have some shared directory mounted within
    the container - if it is located in /run or in some other
    tmpfs location, it won't persist across reboots.

    SystemD provides the capability to create those directories, and
    this patch allows to take advantage of this capacity.

    Basically, we might add as many flag as we want.

    Closes-Bug: #1814764
    Change-Id: I5d2ef49ec205b7a43c488d4ceef0724e5ef2b6cc

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/paunch 4.3.0

This issue was fixed in the openstack/paunch 4.3.0 release.

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.