Skip to content

Commit 5867ff9

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Install systemd-python from distribution package"
2 parents aef50ed + 7e3428b commit 5867ff9

5 files changed

Lines changed: 3 additions & 28 deletions

File tree

doc/source/systemd.rst

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -196,31 +196,6 @@ See the `remote-pdb`_ home page for more options.
196196

197197
.. _`remote-pdb`: https://pypi.org/project/remote-pdb/
198198

199-
Known Issues
200-
============
201-
202-
Be careful about systemd python libraries. There are 3 of them on
203-
pypi, and they are all very different. They unfortunately all install
204-
into the ``systemd`` namespace, which can cause some issues.
205-
206-
- ``systemd-python`` - this is the upstream maintained library, it has
207-
a version number like systemd itself (currently ``234``). This is
208-
the one you want.
209-
- ``systemd`` - a python 3 only library, not what you want.
210-
- ``python-systemd`` - another library you don't want. Installing it
211-
on a system will break ansible's ability to run. The package has now
212-
been renamed to ``cysystemd``, which avoids the namespace collision.
213-
214-
215-
If we were using user units, the ``[Service]`` - ``Group=`` parameter
216-
doesn't seem to work with user units, even though the documentation
217-
says that it should. This means that we will need to do an explicit
218-
``/usr/bin/sg``. This has the downside of making the SYSLOG_IDENTIFIER
219-
be ``sg``. We can explicitly set that with ``SyslogIdentifier=``, but
220-
it's really unfortunate that we're going to need this work
221-
around. This is currently not a problem because we're only using
222-
system units.
223-
224199
Future Work
225200
===========
226201

files/debs/general

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ pkg-config
2828
psmisc
2929
python3-dev
3030
python3-pip
31+
python3-systemd
3132
python3-venv
3233
tar
3334
tcpdump

files/rpms-suse/general

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ openssl
2020
pcre-devel # python-pcre
2121
postgresql-devel # psycopg2
2222
psmisc
23+
python3-systemd
2324
python-cmd2 # dist:opensuse-12.3
2425
python-devel # pyOpenSSL
2526
python-xml
26-
systemd-devel # for systemd-python
2727
tar
2828
tcpdump
2929
unzip

files/rpms/general

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ postgresql-devel # psycopg2
2525
psmisc
2626
python3-devel
2727
python3-pip
28+
python3-systemd
2829
redhat-rpm-config # missing dep for gcc hardening flags, see rhbz#1217376
29-
systemd-devel # for systemd-python
3030
tar
3131
tcpdump
3232
unzip

stack.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,6 @@ fixup_all
761761
# Install subunit for the subunit output stream
762762
pip_install -U os-testr
763763

764-
pip_install_gr systemd-python
765764
# the default rate limit of 1000 messages / 30 seconds is not
766765
# sufficient given how verbose our logging is.
767766
iniset -sudo /etc/systemd/journald.conf "Journal" "RateLimitBurst" "0"

0 commit comments

Comments
 (0)