Bug 1279335
| Summary: | PV could not be available when policy is recycle for host path volume | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Chao Yang <chaoyang> |
| Component: | Storage | Assignee: | Mark Turansky <mturansk> |
| Status: | CLOSED NOTABUG | QA Contact: | Liang Xia <lxia> |
| Severity: | low | Docs Contact: | |
| Priority: | medium | ||
| Version: | 3.1.0 | CC: | aos-bugs, bchilds, bleanhar, chaoyang, dma, jkrieger, jliggitt, jokerman, lxia, pruan, sdodson, xtian |
| Target Milestone: | --- | Keywords: | Reopened |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | atomic-openshift-3.1.0.4-1.git.8.4cc134c.el7aos | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-02-15 16:14:24 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
Chao Yang
2015-11-09 08:27:21 UTC
Recycling with UID:GID will be fixed by https://github.com/openshift/origin/pull/5792 *** Bug 1279683 has been marked as a duplicate of this bug. *** https://github.com/openshift/origin/pull/5792 is superceded by https://github.com/openshift/origin/pull/5847 ForkAMI available at https://ci.openshift.redhat.com/jenkins/job/fork_ami/132/ Fixed in origin in https://github.com/openshift/origin/pull/5847 Re-test this on the load devenv-rhel7_2695, this issue is still exist [root@ip-172-18-6-161 /]# oc get pv NAME LABELS CAPACITY ACCESSMODES STATUS CLAIM REASON AGE local type=local 5Gi RWX Failed default/localc 8m load version is oc v1.0.8-40-g42ad235 kubernetes v1.1.0-origin-1107-g4c8e6f4 can you look at the docker container that performed the recycler operation and show the logs? "docker ps -a" and near the top -- after the failed recycling run -- will be the container that ran the recycler. "docker logs <id>" of the container. I see this is a HostPath PV. HostPath is not an officially supported PersistentVolume. I re-test on the devenv-rhel7_2712, this time the recycle pv is become available. [root@ip-172-18-15-144 ~]# oc get pv NAME LABELS CAPACITY ACCESSMODES STATUS CLAIM REASON AGE local type=local 5Gi RWX Available 2m [root@ip-172-18-15-144 ~]# docker logs 5ea09fa29460 Scrub OK I test this on the ose env, it still exist. [root@openshift-140 ~]# oc version oc v3.1.0.4-9-g72d3991 kubernetes v1.1.0-origin-1107-g4c8e6f4 from the /var/log/message Nov 16 15:06:11 openshift-149 atomic-openshift-node: I1116 15:06:11.008370 5090 kubelet.go:2115] SyncLoop (REMOVE, "api"): "pv-recycler-hostpath-yhq6k_default" Nov 16 15:06:11 openshift-149 atomic-openshift-node: I1116 15:06:11.008458 5090 kubelet.go:1926] Killing unwanted pod "pv-recycler-hostpath-yhq6k" but there is no output for docker logs HostPath PV is not officially supported because there is no guarantee your pod ends up on the correct node with the HostPath. Are you running in a multi-node cluster? I tried HostPath PV and encountered permission issues. This might be affecting you, too. It would be interesting to figure out why HostPath is or isn't working for this BZ, but I think the priority is low because HostPath is not a supported PV. There are no docs for it and we do not tell anyone to use it as a PV. yes, I test it on multi-node cluster env. For this bug, if we disable selinux, the recycler can scrub hostpath dir successfully. when enable selinux, it always failed with error like: Scrub failed: /scrub (drwxrwxrwx), reading dir names as 1000: open /scrub: permission denied Closing per comments above. Please create feature request if required. (In reply to Bradley Childs from comment #19) > Closing per comments above. Please create feature request if required. It should be a bug and will fix in the UpcomingRelease (see the keywords). So I re-opened it。 @chaoyang This is not a bug. Perhaps the "UpcomingRelease" keyword should be removed. We do not support HostPath as a PV and there is no supported local storage at this time. |