Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated SystemD version #21

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

tdslot
Copy link

@tdslot tdslot commented Nov 7, 2022

CentOS7 has 219 version that not support cgroups v2. So it not working systemd with latest containers desktop software like Rancher Desktop, Podman Desktop and Docker Desktop.

Solution is upgrade systemd to latest: https://maciej.lasyk.info/2016/Dec/16/systemd-231-latest-in-centos-7-thx-to-facebook/

So I modified Dockerfile

Image build successful and runs.

❯ podman images
REPOSITORY                 TAG         IMAGE ID      CREATED        SIZE
localhost/centos7-ansible  latest      8b90aa09f595  2 hours ago    994 MB
quay.io/centos/centos      7           8652b9f0cb4c  24 months ago  212 MB

Run

docker-centos7-ansible on  master 
❯ podman exec -it silly_solomon bash
[root@146df88e0ac0 /]# systemctl --version
systemd 234
+PAM +AUDIT +SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 +IDN default-hierarchy=hybrid
[root@146df88e0ac0 /]# systemctl status
● 146df88e0ac0
    State: running
     Jobs: 0 queued
   Failed: 0 units
    Since: Mon 2022-11-07 16:01:05 UTC; 11min ago
   CGroup: /
           ├─init.scope
           │ ├─  1 /usr/lib/systemd/systemd
           │ ├─121 bash
           │ ├─131 systemctl status
           │ └─132 more
           └─system.slice
             ├─systemd-udevd.service
             │ └─28 /usr/lib/systemd/systemd-udevd
             ├─systemd-journald.service
             │ └─21 /usr/lib/systemd/systemd-journald
             ├─dbus.service
             │ └─78 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
             └─systemd-logind.service
               └─77 /usr/lib/systemd/systemd-logind
[root@146df88e0ac0 /]# 

Can you merge those changes to you main repo and update image in https://hub.docker.com/r/geerlingguy/docker-centos7-ansible

So it will help me not modify a lot of molecule configuration :)

Thank you in advance.

CentOS7 has 219 version that not support `cgroups v2`. So it not working systemd with latest containers desktop software like Rancher Desktop, Podman Desktop and Docker Desktop.
@andrewjlowery
Copy link

@geerlingguy This seems to work as expected

@geerlingguy
Copy link
Owner

There are a lot of other changes in here, too—and I specifically am not upgrading the Python/Pip version because Python's yum/dnf integration that Ansible uses breaks on CentOS 7 and earlier if you run Python 3... it's a bit of a mess on CentOS 7 unfortunately :(

@tdslot
Copy link
Author

tdslot commented Dec 22, 2022

Hello,

Main thing is her probably that works. Python2 is outdated and Python3.6 also in CenOS7 so here in my opinion latest what it can be.
If you don't want accept my changes just close this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants