Deploying openshift fails on RHEL8 due to selinux issues
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
Undecided
|
Martin André |
Bug Description
Originally reported by Marius Cornea at https:/
Deployment on RHEL8 fails while running /usr/bin/
[root@undercloud-0 stack]# cat /var/lib/
--config-
Trying to pull 192.168.
Copying blob 2cb1196a3b27: 72.31 MiB / 72.31 MiB 5s
Copying blob c9c433594a59: 1.21 KiB / 1.21 KiB 5s
Copying blob b9bf6fa9627f: 128.46 MiB / 128.46 MiB 5s
Copying config 0498430e0cc8: 5.57 KiB / 5.57 KiB 0s
Writing manifest to image destination
Storing signatures
cp: cannot stat '/var/lib/
cp: cannot stat '/var/lib/
cp: cannot stat '/var/lib/
cp: cannot stat '/var/lib/
cp: cannot stat '/var/lib/
cp: cannot stat '/var/lib/
cp: cannot stat '/var/lib/
cp: cannot stat '/var/lib/
cp: cannot stat '/var/lib/
cp: cannot stat '/var/lib/
Additional debugging shows we need to add 'z' option while mounting the /var/lib/
(undercloud) [stack@undercloud-0 ~]$ ls -l /var/lib/
total 20
-rw-rw-r--. 1 tripleo-admin tripleo-admin 383 Mar 22 16:00 global_
-rw-rw-r--. 1 tripleo-admin tripleo-admin 3206 Mar 22 16:01 global_vars.yml
drwxr-xr-x. 2 tripleo-admin root 4096 Mar 22 16:01 inventory
-rw-rw-r--. 1 tripleo-admin tripleo-admin 1190 Mar 22 16:01 playbook.log
-rw-rw-r--. 1 tripleo-admin tripleo-admin 1262 Mar 22 16:01 playbook.yml
(undercloud) [stack@undercloud-0 ~]$ sudo podman run --net=host -u 0 -v /var/lib/
ls: cannot access /var/lib/
ls: cannot access /var/lib/
ls: cannot access /var/lib/
total 8
-?????????? ? ? ? ? ? global_
-?????????? ? ? ? ? ? global_vars.yml
drwxr-xr-x. 2 1002 root 4096 Mar 22 20:01 inventory
-rw-rw-r--. 1 1002 1003 1190 Mar 22 20:01 playbook.log
-?????????? ? ? ? ? ? playbook.yml
(undercloud) [stack@undercloud-0 ~]$ sudo podman run --net=host -u 0 -v /var/lib/
total 20
-rw-rw-r--. 1 1002 1003 383 Mar 22 20:00 global_
-rw-rw-r--. 1 1002 1003 3206 Mar 22 20:01 global_vars.yml
drwxr-xr-x. 2 1002 root 4096 Mar 22 20:01 inventory
-rw-rw-r--. 1 1002 1003 1190 Mar 22 20:01 playbook.log
-rw-rw-r--. 1 1002 1003 1262 Mar 22 20:01 playbook.yml
Fix proposed to branch: master /review. openstack. org/645979
Review: https:/