Uploaded image for project: 'OpenShift Over the Air'
  1. OpenShift Over the Air
  2. OTA-1844

[DOC] Could not get clusterserviceversions after creating subscription by cli

XMLWordPrintable

    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      When I followed update-service-install-cli_updating-disconnected-cluster-osus to create OSUS by cli, I could not get clusterserviceversions.

      [jianl@jianl-thinkpadt14gen4 421]$ oc -n openshift-update-service create -f sub.yaml 
      subscription.operators.coreos.com/update-service-subscription created
      [jianl@jianl-thinkpadt14gen4 421]$ 
      [jianl@jianl-thinkpadt14gen4 421]$ 
      [jianl@jianl-thinkpadt14gen4 421]$ oc -n openshift-update-service get sub
      NAME                          PACKAGE               SOURCE             CHANNEL
      update-service-subscription   cincinnati-operator   redhat-operators   v1
      [jianl@jianl-thinkpadt14gen4 421]$ 
      [jianl@jianl-thinkpadt14gen4 421]$ 
      [jianl@jianl-thinkpadt14gen4 421]$ oc -n openshift-update-service get clusterserviceversions
      No resources found in openshift-update-service namespace.
      [jianl@jianl-thinkpadt14gen4 421]$
      

      I tried below two subscription yaml files:

      [jianl@jianl-thinkpadt14gen4 421]$ cat sub.yaml 
      apiVersion: operators.coreos.com/v1alpha1
      kind: Subscription
      metadata:
        name: update-service-subscription
        namespace: openshift-update-service
      spec:
        channel: v1
        installPlanApproval: "Automatic"
        source: "redhat-operators"
        sourceNamespace: "openshift-marketplace"
        name: "cincinnati-operator"
        startingCSV: "update-service-operator.v5.dev"
      [jianl@jianl-thinkpadt14gen4 421]$ 
      [jianl@jianl-thinkpadt14gen4 421]$ cat sub_qe.yaml 
      apiVersion: operators.coreos.com/v1alpha1
      kind: Subscription
      metadata:
        name: update-service-subscription
        namespace: openshift-update-service
      spec:
        channel: v1
        installPlanApproval: "Automatic"
        source: "qe-app-registry"
        sourceNamespace: "openshift-marketplace"
        name: "cincinnati-operator"
        startingCSV: "update-service-operator.v5.dev"
      [jianl@jianl-thinkpadt14gen4 421]$ 
      

              Unassigned Unassigned
              rhn-support-jianl Jian Li
              None
              None
              None
              None
              None
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: