Bug 1324280
Summary: | Fluentd pod refused to start up due to SCC constrain | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Xia Zhao <xiazhao> |
Component: | Logging | Assignee: | Luke Meyer <lmeyer> |
Status: | CLOSED WORKSFORME | QA Contact: | chunchen <chunchen> |
Severity: | low | Docs Contact: | |
Priority: | low | ||
Version: | 3.1.0 | CC: | aos-bugs, llange, wsun |
Target Milestone: | --- | Keywords: | Reopened |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-06-15 02:47:47 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: |
Description
Xia Zhao
2016-04-06 03:56:07 UTC
This is proved to be a script issue. I'm actually using $ oadm policy add-scc-to-user hostmount-anyuid system:serviceaccount:logging:aggregated-logging-fluentd instead of $ oadm policy add-scc-to-user privileged system:serviceaccount:logging:aggregated-logging-fluentd which caused the issue. Did not repro after scirpt is updated. Closing. I tried both of the above command to fix my fluentd not starting up, but had no luck. I'm running OSE 3.2. This is my error : May 23 12:50:51 tmaster atomic-openshift-master: E0523 12:50:51.429178 913 replication_controller.go:442] unable to create pods: pods "logging-fluentd-6-" is forbidden: unable to validate against any security context constraint: [spec.containers[0].securityContext.privileged: Invalid value: true: Privileged containers are not allowed spec.containers[0].securityContext.volumes[0]: Invalid value: "hostPath": hostPath volumes are not allowed to be used spec.containers[0].securityContext.volumes[1]: Invalid value: "hostPath": hostPath volumes are not allowed to be used spec.containers[0].securityContext.volumes[3]: Invalid value: "hostPath": hostPath volumes are not allowed to be used spec.containers[0].securityContext.containers[0].hostPort: Invalid value: 1095: Host ports are not allowed to be used] (In reply to Lutz Lange from comment #3) > I tried both of the above command to fix my fluentd not starting up, but had > no luck. I'm running OSE 3.2. Does "both of the above" mean: $ oadm policy add-scc-to-user hostmount-anyuid system:serviceaccount:logging:aggregated-logging-fluentd and $ oadm policy add-scc-to-user privileged system:serviceaccount:logging:aggregated-logging-fluentd ? Is your logging deployment in the `logging` namespace or somewhere else? The errors you list indicate that the serviceaccount in your namespace has not been added to either indicated SCC (need only the `privileged` one above, at least for now). If you can't get it working, it may help to attach the yaml: $ oc get sa,dc,scc -o yaml This runs in the openshift project like the documentation point me to. Please find my yamls attached. The problem is our documentation that had me creating this in the "openshift" project. Can you link to which documentation points you to using the "openshift" project? It's fine to use that, you just need to adjust the commands to apply the SCC and roles to the service accounts in the right project. So, for example, $ oadm policy add-scc-to-user privileged system:serviceaccount:openshift:aggregated-logging-fluentd See step 7 under https://docs.openshift.com/enterprise/3.2/install_config/aggregate_logging.html#pre-deployment-configuration Closing this for now, docs bugs welcome. |