Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1594218

Summary: oc set volume has no readOnly mount option
Product: OpenShift Container Platform Reporter: Bob Kozdemba <bkozdemb>
Component: ocAssignee: Juan Vallejo <jvallejo>
Status: CLOSED CURRENTRELEASE QA Contact: Xingxing Xia <xxia>
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: aos-bugs, jhou, jokerman, lxia, mmccomas
Target Milestone: ---Keywords: Rebase, UpcomingRelease
Target Release: 3.11.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-12-21 15:16:39 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 Bob Kozdemba 2018-06-22 12:07:40 UTC
Description of problem: A volume can not be mounted readOnly via the oc CLI. This can be done using the web console or by editing the deployment config.


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


How reproducible:
100%

Steps to Reproduce:
1.oc set volume -h
2.
3.

Actual results:
no readOnly option


Expected results:
Perhaps add a --read-only:true mount option

Additional info:
This would be useful when performing storage migrations between projects or clusters.

Comment 1 Juan Vallejo 2018-06-22 18:48:09 UTC
Origin PR: https://github.com/openshift/origin/pull/20083

Comment 2 Juan Vallejo 2018-07-10 14:41:57 UTC
Fixed in https://github.com/openshift/origin/pull/20139

Comment 3 Xingxing Xia 2018-07-11 07:48:54 UTC
No 3.11 puddle yet

Comment 4 Xingxing Xia 2018-07-18 10:07:05 UTC
Verified with ./oc version
oc v3.11.0-0.4.0
kubernetes v1.11.0+d4cacc0
features: Basic-Auth GSSAPI Kerberos SPNEGO

When --read-only is used, the resource yaml has readOnly:
        volumeMounts:
        - mountPath: /var/mycm
          name: volume-nhgt2
          readOnly: true

Comment 5 Luke Meyer 2018-12-21 15:16:39 UTC
Closing bugs that were verified and targeted for GA but for some reason were not picked up by errata. This bug fix should be present in current 3.11 release content.