Bug 1594201
| Summary: | Pod uses local block volume can not run succcessfully | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Qin Ping <piqin> |
| Component: | Storage | Assignee: | Matthew Wong <mawong> |
| Status: | CLOSED ERRATA | QA Contact: | Qin Ping <piqin> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 3.10.0 | CC: | aos-bugs, aos-storage-staff, bchilds, xtian |
| Target Milestone: | --- | Keywords: | UpcomingRelease |
| Target Release: | 3.11.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | No Doc Update | |
| Doc Text: |
undefined
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2018-10-11 07:20:54 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
Qin Ping
2018-06-22 11:26:28 UTC
Thank you!
So if we add something like
{
"type": "bind",
"source": "/mnt/local-storage",
"destination": "/mnt/local-storage",
"options": [
"rbind",
"rw",
"mode=755"
]
}
to kubelet mounts, i.e. on the compute node, edit /var/lib/containers/atomic/atomic-openshift-node.0/config.json then `systemctl restart atomic-openshift-node` then losetup succeeds and pod starts running with device attached, as expected.
We can add this mount to all kubelet configs upon openshift installation, but the directory is configurable by the user. We do document that the user must use /mnt/local-storage for our instructions to work, but users may have different requirements about where to mount volumes...
I am not sure if there is a way we can get around this using the /rootfs mount similar to how we do nsenter mounting when containerized
Also, this error would not be limited to local volume since any Block PV with Path inaccessible by kubelet will have this error. Disregard last comment :) . I am thinking now the fix is to evaluate the symlink so we end up with a /dev devicepath. Yeah, the other Block volumes(e.g. GCE PD, AWS EBS) do not have this issue. PR opened origin https://github.com/openshift/origin/pull/20117 Verified in OCP: oc v3.11.0-0.25.0 openshift v3.11.0-0.25.0 kubernetes v1.11.0+d4cacc0 # uname -a Linux qe-piqin-master-etcd-1 3.10.0-862.11.6.el7.x86_64 #1 SMP Fri Aug 10 16:55:11 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux # cat /etc/redhat-release Red Hat Enterprise Linux Atomic Host release 7.5 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:2652 |