Skip to content

tools/hotplug: systemd changes for 4.5

Olaf Hering xen-devel 3 versions – NAK

Status from this message: Nacked-by: Ian Jackson <[email protected]>

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest7 patches 50 repliesNAK
  2. v24 patches 9 repliesSuperseded
  3. v15 patches 30 repliesSuperseded

Patches in v3

#Subject and filesSizeRepliesApplied
1/7tools/hotplug: remove SELinux options from var-lib-xenstored.mounttools/hotplug/Linux/systemd/var-lib-xenstored.mount.in+1 -319 replies
2/7tools/hotplug: remove XENSTORED_ROOTDIR from xenstored.servicetools/hotplug/Linux/systemd/xenstored.service.in+0 -10 replies
3/7tools/hotplug: xendomains.service depends on networktools/hotplug/Linux/systemd/xendomains.service.in+2 -00 replies
4/7tools/hotplug: use xencommons as EnvironmentFile in xenconsoled.servicetools/hotplug/Linux/systemd/xenconsoled.service.in+1 -12 replies
5/7tools/hotplug: use XENCONSOLED_TRACE in xenconsoled.servicetools/hotplug/Linux/systemd/xenconsoled.service.in+2 -23 replies
6/7tools/hotplug: remove EnvironmentFile from xen-qemu-dom0-disk-backend.servicetools/hotplug/Linux/systemd/xen-qemu-dom0-disk-backend.service.in+0 -12 replies
7/7tools/hotplug: add wrapper to start xenstored.gitignore tools/configure tools/configure.ac +4 more+17 -614 replies

Reviews trailers per patch

6 of 7 patches have a Reviewed-by or Acked-by.

PatchIan JacksonWei LiuKonrad Rzeszutek WilkIan Campbell
SeriesRelease-Acked-by T-b Release-Acked-by T-b T-b
1/7A-b A-b
2/7A-b
3/7A-b
4/7A-b A-b
5/7A-b A-b
6/7A-b A-b
7/7Nacked-by

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v3 thread

Cover letter [PATCH 0/7 v3] tools/hotplug: systemd changes for 4.5

This is a resend of these two series:
http://lists.xenproject.org/archives/html/xen-devel/2014-12/msg00858.html
http://lists.xenproject.org/archives/html/xen-devel/2014-12/msg00669.html

New in v3 is a wrapper to run xenstored. See its patch description for details.

Patch 2-6 should be applied for 4.5.0.

The first and the last one still has issues with xenstored and SELinux. See below. Up to now no solution is known to me.

The first patch fixes Arch Linux and does not break anything. As such it should be safe to be applied for 4.5.0. SELinux users (who build from source) should put their special mount options into fstab. Distro packages will most likely include a proper .service file.

The last patch addresses the XENSTORED_TRACE issue. But SELinux will most likely still not work.

Possible ways to handle launching xenstored and SELinux:

- do nothing
pro: - no Xen source changes required
con: - possible unhappy users who build from source and still have
SELinux enabled

- use newly added wrapper
pro: - XENSTORED_TRACE boolean is handled
con: - the wrapper may have the very same issue as the current
launching with sh -c 'exec xenstored'. But maybe there is a way to mark the new wrapper script as "this is the native xenstored". Someone familiar with SELinux may be able to answer this.

- Use ExecStart=@XENSTORED@
pro: - socket passing will most likely work
con: - All options have to be passed in XENSTORED_ARGS, a new variable
which is not yet mentioned in the sysconfig file.
- Switching xenstored requires a private copy of xenstored.service in /etc/systemd instead of adjusting the XENSTORED= variable in the sysconfig file.

- Use ExecStart=/usr/bin/env $XENSTORED
pro: - $XENSTORED can be set in sysconfig file
con: - may have the same socket issue as starting via shell
- XENSTORED_TRACE boolean is not handled

I will be offline until 2015-01-07, so any further adjustments to this series has to be done by someone else.

Good luck!

Olaf

Olaf Hering (7):
tools/hotplug: remove SELinux options from var-lib-xenstored.mount tools/hotplug: remove XENSTORED_ROOTDIR from xenstored.service tools/hotplug: xendomains.service depends on network tools/hotplug: use xencommons as EnvironmentFile in
xenconsoled.service
tools/hotplug: use XENCONSOLED_TRACE in xenconsoled.service tools/hotplug: remove EnvironmentFile from
xen-qemu-dom0-disk-backend.service
tools/hotplug: add wrapper to start xenstored

 .gitignore                                                        | 1 +
 tools/configure                                                   | 3 ++-
 tools/configure.ac                                                | 1 +
 tools/hotplug/Linux/Makefile                                      | 2 ++
 tools/hotplug/Linux/init.d/xencommons.in                          | 6 ++++--
 tools/hotplug/Linux/systemd/var-lib-xenstored.mount.in            | 4 +---
 tools/hotplug/Linux/systemd/xen-qemu-dom0-disk-backend.service.in | 1 -
 tools/hotplug/Linux/systemd/xenconsoled.service.in                | 6 +++---
 tools/hotplug/Linux/systemd/xendomains.service.in                 | 2 ++
 tools/hotplug/Linux/systemd/xenstored.service.in                  | 6 ++----
 tools/hotplug/Linux/xenstored.sh.in                               | 6 ++++++
 11 files changed, 24 insertions(+), 14 deletions(-)
 create mode 100644 tools/hotplug/Linux/xenstored.sh.in