Skip to content
This repository was archived by the owner on Mar 23, 2020. It is now read-only.
This repository was archived by the owner on Mar 23, 2020. It is now read-only.

Error deploying CNV #148

@jparrill

Description

@jparrill

Following this flow OCP42 > OCS > CNV I've been hitting an issue on CNV deployment:

OCP42 and OCS went fine but the CNV deployment went bad for me:

+ echo 'Creating registry secret'
Creating registry secret
+ cat
+ oc create -f -
secret/quay-registry-rh-osbs-operators created
+ echo 'Creating OperatorGroup'
Creating OperatorGroup
+ cat
+ oc create -f -
operatorgroup.operators.coreos.com/openshift-cnv-group created
+ echo 'Creating OperatorSource'
Creating OperatorSource
+ oc create -f -
+ cat
operatorsource.operators.coreos.com/rh-osbs-operators created
+ echo 'Give the cluster 30 seconds to create the catalogSourceConfig...'
Give the cluster 30 seconds to create the catalogSourceConfig...
+ sleep 30
+ cat
+ oc apply -f -
catalogsourceconfig.operators.coreos.com/hco-catalogsource-config created
+ echo 'Give the cluster 30 seconds to process catalogSourceConfig...'
Give the cluster 30 seconds to process catalogSourceConfig...
+ sleep 30
+ oc wait deploy hco-catalogsource-config --for condition=available -n openshift-marketplace --timeout=360s
deployment.extensions/hco-catalogsource-config condition met
++ seq 1 10
+ for i in $(seq 1 $RETRIES)
+ echo 'Waiting for packagemanifest '\''kubevirt-hyperconverged'\'' to be created in namespace '\''openshift-cnv'\''...'
Waiting for packagemanifest 'kubevirt-hyperconverged' to be created in namespace 'openshift-cnv'...
+ oc get packagemanifest -n openshift-cnv kubevirt-hyperconverged
NAME                      CATALOG             AGE
kubevirt-hyperconverged   rh-osbs-operators   59s
+ break
+ echo 'Creating Subscription'
Creating Subscription
+ cat
+ oc create -f -
subscription.operators.coreos.com/hco-operatorhub created
+ echo 'Give OLM 60 seconds to process the subscription...'
Give OLM 60 seconds to process the subscription...
+ sleep 60
+ sed 's/approved: false/approved: true/'
+ oc apply -n openshift-cnv -f -
++ oc get installplan -n openshift-cnv --no-headers
++ grep 'kubevirt-hyperconverged-operator.v{CNV_VERSION}'
++ awk '{print $1}'
No resources found.
+ oc get installplan -o yaml -n openshift-cnv
error: no objects passed to apply
make: *** [Makefile:8: deploy] Error 1
Ending Time: 16:11:54
Seconds: 123

The actual status:

[root@nostromo ~]# oc get pods -n openshift-marketplace
NAME                                        READY   STATUS    RESTARTS   AGE
certified-operators-7bc89d8c5d-h4rsk        1/1     Running   0          49m
community-operators-9d6976f8f-72b5q         1/1     Running   0          49m
hco-catalogsource-config-75ffbc7577-sstms   1/1     Running   0          17m
local-storage-manifests-8z662               1/1     Running   0          29m
marketplace-operator-874f769f6-52hk8        1/1     Running   0          50m
ocs-catalogsource-l7x9v                     1/1     Running   0          29m
redhat-operators-75c54d5bc4-9gb2f           1/1     Running   0          49m
rh-osbs-operators-6fbc6c5dcc-q9rpj          1/1     Running   0          18m
[root@nostromo ~]# oc get ip -n openshift-cnv
No resources found.
[root@nostromo ~]# oc get csv -n openshift-cnv
No resources found.

image

PS: Also mentioned here

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions