Bug 1913155 - [DOCS] There are no instructions to install OCS by only using the CLI in the official documentation
Summary: [DOCS] There are no instructions to install OCS by only using the CLI in the ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat OpenShift Container Storage
Classification: Red Hat Storage
Component: documentation
Version: 4.6
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ---
: OCS 4.6.z Async
Assignee: Agil Antony
QA Contact: shylesh
URL:
Whiteboard:
Depends On: 1883223
Blocks: 1944714
TreeView+ depends on / blocked
 
Reported: 2021-01-06 07:05 UTC by Agil Antony
Modified: 2024-10-01 17:16 UTC (History)
17 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1883223
: 1944714 (view as bug list)
Environment:
Last Closed: 2022-01-24 17:56:46 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Article) 5683981 0 None None None 2021-02-08 11:12:29 UTC
Red Hat Knowledge Base (Article) 5692201 0 None None None 2021-02-08 11:12:29 UTC

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.


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