Bug 1587825
Summary: | CFME httpd pod fail to get started after deployed on ocp-3.10 | |||
---|---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Gaoyun Pei <gpei> | |
Component: | Installer | Assignee: | Scott Dodson <sdodson> | |
Status: | CLOSED ERRATA | QA Contact: | Gaoyun Pei <gpei> | |
Severity: | high | Docs Contact: | ||
Priority: | high | |||
Version: | 3.10.0 | CC: | aos-bugs, bleanhar, gpei, jokerman, mmccomas, ncarboni, pasik, xtian | |
Target Milestone: | --- | |||
Target Release: | 3.10.0 | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | Bug Fix | ||
Doc Text: |
A recent change in SELinux policy requires that an additional SEBoolean is set when running any pods with systemd which includes CFME.
|
Story Points: | --- | |
Clone Of: | ||||
: | 1589929 (view as bug list) | Environment: | ||
Last Closed: | 2018-07-30 19:17:19 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1589929 |
Description
Gaoyun Pei
2018-06-06 07:38:35 UTC
This may be fixed by https://github.com/openshift/openshift-ansible/pull/8423 Can you try enabling the container_manage_cgroup sebool on the nodes and see if that fixes the issue? Thanks for your reply Nick! It did fix the issue. container_manage_cgroup sebool on the nodes are in "off" status in the beginning, after setting it as "on", restart cfme httpd deployment, the pod could run well. Here's my verify steps: 1. On all nodes [root@gpei-bz1587825-node-registry-router-1 ~]# setsebool container_manage_cgroup on [root@gpei-bz1587825-node-registry-router-1 ~]# getsebool -a |grep container_manage_cgroup container_manage_cgroup --> on 2. Rollout the httpd deployment [root@gpei-bz1587825-master-etcd-1 ~]# oc rollout latest httpd deploymentconfig "httpd" rolled out [root@gpei-bz1587825-master-etcd-1 ~]# oc get pod NAME READY STATUS RESTARTS AGE cloudforms-0 1/1 Running 0 17h httpd-1-deploy 0/1 Error 0 17h httpd-2-dwc9t 1/1 Running 0 38s memcached-1-8tk4k 1/1 Running 0 17h postgresql-1-fm8jp 1/1 Running 0 17h [root@gpei-bz1587825-master-etcd-1 ~]# oc get route NAME HOST/PORT PATH SERVICES PORT TERMINATION WILDCARD httpd httpd-openshift-management.apps.0607-y8f.qe.rhcloud.com httpd http edge/Redirect None [root@gpei-bz1587825-master-etcd-1 ~]# curl -Ik https://httpd-openshift-management.apps.0607-y8f.qe.rhcloud.com/ HTTP/1.1 200 OK Date: Fri, 08 Jun 2018 02:36:01 GMT ... Verify this bug with openshift-ansible-3.10.0-0.67.0.git.107.1bd1f01.el7.noarch. Deploy CFME-46 on ocp-3.10 cluster using openshift-management/config.yml playbook. container_manage_cgroup sebool got changed during deployment. PLAY [Enable sebool container_manage_cgroup] ******************************************************************************************************************************** TASK [Setting sebool container_manage_cgroup] ******************************************************************************************************************************* changed: [ec2-54-174-15-179.compute-1.amazonaws.com] => {"changed": true, "failed": false, "name": "container_manage_cgroup"} changed: [ec2-34-201-220-201.compute-1.amazonaws.com] => {"changed": true, "failed": false, "name": "container_manage_cgroup"} changed: [ec2-54-87-220-234.compute-1.amazonaws.com] => {"changed": true, "failed": false, "name": "container_manage_cgroup"} changed: [ec2-54-173-226-200.compute-1.amazonaws.com] => {"changed": true, "failed": false, "name": "container_manage_cgroup"} changed: [ec2-18-232-99-88.compute-1.amazonaws.com] => {"changed": true, "failed": false, "name": "container_manage_cgroup"} [root@ip-172-18-14-218 ~]# getsebool -a |grep container_manage_cgroup container_manage_cgroup --> on [root@ip-172-18-14-218 ~]# oc get pod -n openshift-management NAME READY STATUS RESTARTS AGE cloudforms-0 1/1 Running 0 2h httpd-1-xf8wg 1/1 Running 0 2h memcached-1-fc4dv 1/1 Running 0 2h postgresql-1-dz5qb 1/1 Running 0 2h All pods running well and CFME webconsole is available. Move this bug to verified. Move this bug to Modified for now we have a new PR to address this: https://github.com/openshift/openshift-ansible/pull/8838/ Verify this bug with openshift-ansible-3.10.8-1.git.230.830efc0.el7.noarch. container_manage_cgroup sebool is set to "on" during node installation. TASK [openshift_node : Setting sebool container_manage_cgroup] ***************** Tuesday 26 June 2018 02:51:35 -0400 (0:00:00.508) 0:02:05.109 ********** changed: [ec2-34-230-27-81.compute-1.amazonaws.com] => {"changed": true, "failed": false, "name": "container_manage_cgroup"} changed: [ec2-54-80-211-244.compute-1.amazonaws.com] => {"changed": true, "failed": false, "name": "container_manage_cgroup"} changed: [ec2-35-173-204-154.compute-1.amazonaws.com] => {"changed": true, "failed": false, "name": "container_manage_cgroup"} When deploying CFME on the ocp-3.10 cluster, httpd pod could run well. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2018:1816 |