Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1554865 - [3.7] subpath volume mounts do not work with secret, configmap, projected, or downwardAPI volumes
[3.7] subpath volume mounts do not work with secret, configmap, projected, or...
Status: CLOSED ERRATA
Product: OpenShift Container Platform
Classification: Red Hat
Component: Storage (Show other bugs)
3.7.1
Unspecified Unspecified
high Severity high
: ---
: 3.7.z
Assigned To: Jan Safranek
Qin Ping
:
Depends On: 1554670
Blocks:
  Show dependency treegraph
 
Reported: 2018-03-13 09:40 EDT by Jan Safranek
Modified: 2018-05-01 22:42 EDT (History)
21 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1554670
Environment:
Last Closed: 2018-04-29 10:36:36 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 3390461 None None None 2018-04-11 00:56 EDT
Red Hat Knowledge Base (Solution) 3391931 None None None 2018-04-26 11:54 EDT
Red Hat Product Errata RHSA-2018:1231 None None None 2018-04-29 10:37 EDT

  None (edit)
Description Jan Safranek 2018-03-13 09:40:27 EDT
+++ This bug was initially created as a clone of Bug #1554670 +++

Description of problem:

Version-Release number of selected component (if applicable):

3.9.7-1

How reproducible:

Always

Steps to Reproduce:
1. Create a pod with a secret, configmap, downwardAPI and projected volume
2. Create volume mounts for each of those volumes that make use of the subPath feature

Actual results:

The pod will not start with errors like 

failed to prepare subPath for volumeMount "config" of container "mumble": subpath "/var/lib/kubelet/pods/66fa673c-266d-11e8-8ebf-00155d00a406/volumes/kubernetes.io~configmap/config/..2018_03_13_03_19_55.572152209/mumble.ini" not within volume path "/var/lib/kubelet/pods/66fa673c-266d-11e8-8ebf-00155d00a406/volumes/kubernetes.io~configmap/config"


Expected results:

Pod starts properly and volume mounts work


Regression introduced as part of the fix for https://bugzilla.redhat.com/show_bug.cgi?id=1519365

Upstream issue: https://github.com/kubernetes/kubernetes/issues/61076#issuecomment-372554309

The security fix was backported all the way to 3.3, which means this regression was as well.

--- Additional comment from Jordan Liggitt on 2018-03-13 09:10:27 EDT ---

this affects use of subPath volume mounts with any secret, configmap, projected, or downwardAPI volume

--- Additional comment from Jordan Liggitt on 2018-03-13 09:13:45 EDT ---

upstream fix in https://github.com/kubernetes/kubernetes/pull/61080
Comment 1 Jan Safranek 2018-03-13 14:25:17 EDT
OSE PR: https://github.com/openshift/ose/pull/1113
Comment 6 Qin Ping 2018-04-17 03:41:25 EDT
verified in OCP v3.7.44
Comment 11 Vítor Corrêa 2018-04-26 15:47 EDT
Created attachment 1427395 [details]
amp 3scale yml
Comment 13 errata-xmlrpc 2018-04-29 10:36:36 EDT
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/RHSA-2018:1231

Note You need to log in before you can comment on or make changes to this bug.