Bug 1913155

Summary: [DOCS] There are no instructions to install OCS by only using the CLI in the official documentation
Product: [Red Hat Storage] Red Hat OpenShift Container Storage Reporter: Agil Antony <agantony>
Component: documentationAssignee: Agil Antony <agantony>
Status: CLOSED CURRENTRELEASE QA Contact: shylesh <shmohan>
Severity: low Docs Contact:
Priority: medium    
Version: 4.6CC: aclewett, akaris, asriram, assingh, bkunal, ebenahar, etamir, hnallurv, jarrpa, jnordell, kbg, khartsoe, madam, mhackett, ocs-bugs, pbalogh, uchapaga
Target Milestone: ---   
Target Release: OCS 4.6.z Async   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1883223
: 1944714 (view as bug list) Environment:
Last Closed: 2022-01-24 17:56:46 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1883223    
Bug Blocks: 1944714    

Comment 6 Yaniv Kaul 2021-01-07 16:13:34 UTC
How is this bug different than the original it was cloned from?

Comment 8 Agil Antony 2021-01-08 07:13:09 UTC
(In reply to Yaniv Kaul from comment #6)
> How is this bug different than the original it was cloned from?

https://bugzilla.redhat.com/show_bug.cgi?id=1913155 is for v4.6

https://bugzilla.redhat.com/show_bug.cgi?id=1883223 if for v4.5

Comment 37 Petr Balogh 2021-04-01 14:26:29 UTC
This is wrong:
cat <<EOF | oc apply -f -
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: rbd-pvc
spec:
accessModes:
 - ReadWriteOnce
resources:
requests:
storage: 1Gi
storageClassName: ocs-storagecluster-ceph-rbd
EOF
Create CephFS PVC, ocs-storagecluster-cephfs.

cat <<EOF | oc apply -f -
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: cephfs-pvc
spec:
accessModes:
 - ReadWriteMany
resources:
requests:
storage: 1Gi
storageClassName: ocs-storagecluster-cephfs
EOF

This should be formatted like this:

cat <<EOF | oc apply -f -
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: rbd-pvc
spec:
  accessModes:
    - ReadWriteOnce
  resources:
    requests:
      storage: 1Gi
  storageClassName: ocs-storagecluster-ceph-rbd
EOF

Comment 38 Petr Balogh 2021-04-01 14:41:43 UTC
Upgrade needs some changes:
Display the install plan.

$ oc -n openshift-operators get installplans


should be replaced by
oc -n openshift-storage get installplans



For step:
Switch the Red Hat OpenShift Container Storage channel from stable-4.5 to

I think that there is missing CLI part like:
oc -n openshift-storage patch subscription ocs-operator -p '{"spec":{"channel": "stable-4.6"}}' --type merge


This also has to be fixed:
Ensure that the install plan is in the approved state.

$ oc -n openshift-operators get installplans



Actually this is mentioned several times.
$ oc -n openshift-operators get installplans 

so replace this with proper namespace please

Comment 39 shylesh 2021-04-01 20:35:55 UTC
moving back to assigned as per Petr's comments.