Bug 1980078 - Cannot read property 'apiGroup' of undefined error when installing the ACM operator
Summary: Cannot read property 'apiGroup' of undefined error when installing the ACM op...
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 4.9
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: ---
: ---
Assignee: Zac Herman
QA Contact: Yadan Pei
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-07-07 17:28 UTC by Irina Mihai
Modified: 2022-04-21 16:50 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-01-25 15:38:08 UTC
Target Upstream Version:
Embargoed:
imihai: needinfo+


Attachments (Terms of Use)
Screenshot of OCP error (299.33 KB, image/png)
2021-07-07 17:28 UTC, Irina Mihai
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1948556 1 unspecified CLOSED Cannot read property 'apiGroup' of undefined error viewing operator CSV 2022-08-10 10:36:37 UTC

Description Irina Mihai 2021-07-07 17:28:14 UTC
Created attachment 1799384 [details]
Screenshot of OCP error

Description of problem:
Error installing the ACM operator from OCP web console using OperatorHub: "Cannot read property 'apiGroup' of undefined"

Also reported here: https://bugzilla.redhat.com/show_bug.cgi?id=1948556


Version-Release number of selected component (if applicable): OCP 4.9 (4.9.0-0.nightly-2021-07-06-133521), ACM release-2.1 & ACM release-2.2


How reproducible:
All the time on the current hypervisor I got assigned from CI.
0 times on the previous hypervisor I was working on.

Steps to Reproduce:
1.
Installed cluster with kcli using the follow hub_parameters.yaml file:
# cat hub_parameters.yml 
network_type: OVNKubernetes
masters: 3
version: nightly
tag: 4.9
numcpus: 8
memory: 20000
cluster: hub-dev

The kcli command:
kcli create cluster openshift --paramfile=hub_parameters.yml

2.From the OCP web console, install the ACM operator from OperatorHub


Actual results:
Shortly after that, 
on the Operators -> Installed Operators -> ACM for Kubernetes, the following error is seen:

Oh no! Something went wrong.

TypeError
Description:
Cannot read property 'apiGroup' of undefined

Component Trace:
at ye (https://console-openshift-console.apps.hub-dev.karmalabs.com/static/clusterserviceversion-chunk-6b3b6fc695dac14d4e44.min.js:1:39003)
    at div
    at div
    at div
    at div
    at Ce (https://console-openshift-console.apps.hub-dev.karmalabs.com/static/clusterserviceversion-chunk-6b3b6fc695dac14d4e44.min.js:1:40027)
    at t (https://console-openshift-console.apps.hub-dev.karmalabs.com/static/vendors~main-chunk-b28ee748918cf8167863.min.js:27:63163)
    at t (https://console-openshift-console.apps.hub-dev.karmalabs.com/static/vendors~main-chunk-b28ee748918cf8167863.min.js:27:65206)
    at Suspense
    at div
    at O (https://console-openshift-console.apps.hub-dev.karmalabs.com/static/main-chunk-65f623bf30e258d579ad.min.js:1:164937)
    at C (https://console-openshift-console.apps.hub-dev.karmalabs.com/static/main-chunk-65f623bf30e258d579ad.min.js:1:165385)
    at div
    at https://console-openshift-console.apps.hub-dev.karmalabs.com/static/main-chunk-65f623bf30e258d579ad.min.js:1:876259
    at m.memo.t.children.e.children.t.reduxes.e.reduxes.t.reduxes.every.reduxID (https://console-openshift-console.apps.hub-dev.karmalabs.com/static/main-chunk-65f623bf30e258d579ad.min.js:1:509982)
    at S (https://console-openshift-console.apps.hub-dev.karmalabs.com/static/vendors~main-chunk-b28ee748918cf8167863.min.js:99:2537)
    at <anonymous> (https://console-openshift-console.apps.hub-dev.karmalabs.com/static/main-chunk-65f623bf30e258d579ad.min.js:1:511651)
    at S (https://console-openshift-console.apps.hub-dev.karmalabs.com/static/vendors~main-chunk-b28ee748918cf8167863.min.js:99:2537)
    at https://console-openshift-console.apps.hub-dev.karmalabs.com/static/main-chunk-65f623bf30e258d579ad.min.js:1:938663
    at o (https://console-openshift-console.apps.hub-dev.karmalabs.com/static/main-chunk-65f623bf30e258d579ad.min.js:1:220859)
    at DetailsPage
    at we (https://console-openshift-console.apps.hub-dev.karmalabs.com/static/clusterserviceversion-chunk-6b3b6fc695dac14d4e44.min.js:1:45700)
    at l (https://console-openshift-console.apps.hub-dev.karmalabs.com/static/main-chunk-65f623bf30e258d579ad.min.js:1:257216)
    at https://console-openshift-console.apps.hub-dev.karmalabs.com/static/main-chunk-65f623bf30e258d579ad.min.js:1:524932
    at S (https://console-openshift-console.apps.hub-dev.karmalabs.com/static/vendors~main-chunk-b28ee748918cf8167863.min.js:99:2537)
    at t (https://console-openshift-console.apps.hub-dev.karmalabs.com/static/vendors~main-chunk-b28ee748918cf8167863.min.js:27:63163)
    at t (https://console-openshift-console.apps.hub-dev.karmalabs.com/static/vendors~main-chunk-b28ee748918cf8167863.min.js:27:65206)
    at Suspense
    at div
    at div
    at section
    at p (https://console-openshift-console.apps.hub-dev.karmalabs.com/static/vendors~main-chunk-b28ee748918cf8167863.min.js:210:143461)
    at t.a (https://console-openshift-console.apps.hub-dev.karmalabs.com/static/main-chunk-65f623bf30e258d579ad.min.js:1:1305660)
    at div
    at div
    at c (https://console-openshift-console.apps.hub-dev.karmalabs.com/static/vendors~main-chunk-b28ee748918cf8167863.min.js:205:348888)
    at u (https://console-openshift-console.apps.hub-dev.karmalabs.com/static/vendors~main-chunk-b28ee748918cf8167863.min.js:163:89928)
    at div
    at u (https://console-openshift-console.apps.hub-dev.karmalabs.com/static/vendors~main-chunk-b28ee748918cf8167863.min.js:78:12668)
    at c (https://console-openshift-console.apps.hub-dev.karmalabs.com/static/main-chunk-65f623bf30e258d579ad.min.js:1:1094945)
    at https://console-openshift-console.apps.hub-dev.karmalabs.com/static/main-chunk-65f623bf30e258d579ad.min.js:1:562230
    at S (https://console-openshift-console.apps.hub-dev.karmalabs.com/static/vendors~main-chunk-b28ee748918cf8167863.min.js:99:2537)
    at main
    at div
    at y (https://console-openshift-console.apps.hub-dev.karmalabs.com/static/vendors~main-chunk-b28ee748918cf8167863.min.js:93:99218)
    at div
    at div
    at c (https://console-openshift-console.apps.hub-dev.karmalabs.com/static/vendors~main-chunk-b28ee748918cf8167863.min.js:210:145593)
    at div
    at div
    at c (https://console-openshift-console.apps.hub-dev.karmalabs.com/static/vendors~main-chunk-b28ee748918cf8167863.min.js:205:348888)
    at u (https://console-openshift-console.apps.hub-dev.karmalabs.com/static/vendors~main-chunk-b28ee748918cf8167863.min.js:163:89928)
    at div
    at u (https://console-openshift-console.apps.hub-dev.karmalabs.com/static/vendors~main-chunk-b28ee748918cf8167863.min.js:78:12668)
    at t.a (https://console-openshift-console.apps.hub-dev.karmalabs.com/static/main-chunk-65f623bf30e258d579ad.min.js:1:1428564)
    at V (https://console-openshift-console.apps.hub-dev.karmalabs.com/static/main-chunk-65f623bf30e258d579ad.min.js:1:1432176)
    at V (https://console-openshift-console.apps.hub-dev.karmalabs.com/static/main-chunk-65f623bf30e258d579ad.min.js:1:1432176)
    at V (https://console-openshift-console.apps.hub-dev.karmalabs.com/static/main-chunk-65f623bf30e258d579ad.min.js:1:1432176)
    at t.a (https://console-openshift-console.apps.hub-dev.karmalabs.com/static/main-chunk-65f623bf30e258d579ad.min.js:1:1427815)
    at l (https://console-openshift-console.apps.hub-dev.karmalabs.com/static/main-chunk-65f623bf30e258d579ad.min.js:1:1426667)
    at K (https://console-openshift-console.apps.hub-dev.karmalabs.com/static/main-chunk-65f623bf30e258d579ad.min.js:1:1432306)
    at https://console-openshift-console.apps.hub-dev.karmalabs.com/static/main-chunk-65f623bf30e258d579ad.min.js:1:1434943
    at r (https://console-openshift-console.apps.hub-dev.karmalabs.com/static/vendors~main-chunk-b28ee748918cf8167863.min.js:42:95665)
    at t (https://console-openshift-console.apps.hub-dev.karmalabs.com/static/vendors~main-chunk-b28ee748918cf8167863.min.js:27:63163)
    at t (https://console-openshift-console.apps.hub-dev.karmalabs.com/static/vendors~main-chunk-b28ee748918cf8167863.min.js:27:65206)
    at t (https://console-openshift-console.apps.hub-dev.karmalabs.com/static/vendors~main-chunk-b28ee748918cf8167863.min.js:27:59770)
    at q (https://console-openshift-console.apps.hub-dev.karmalabs.com/static/main-chunk-65f623bf30e258d579ad.min.js:1:1435223)
    at t.a (https://console-openshift-console.apps.hub-dev.karmalabs.com/static/main-chunk-65f623bf30e258d579ad.min.js:1:789359)
    at t.a (https://console-openshift-console.apps.hub-dev.karmalabs.com/static/vendors~main-chunk-b28ee748918cf8167863.min.js:163:417770)
    at Suspense
Stack Trace:
TypeError: Cannot read property 'apiGroup' of undefined
    at h (https://console-openshift-console.apps.hub-dev.karmalabs.com/static/main-chunk-65f623bf30e258d579ad.min.js:1:152419)
    at ye (https://console-openshift-console.apps.hub-dev.karmalabs.com/static/clusterserviceversion-chunk-6b3b6fc695dac14d4e44.min.js:1:39247)
    at ea (https://console-openshift-console.apps.hub-dev.karmalabs.com/static/vendors~main-chunk-b28ee748918cf8167863.min.js:233:58875)
    at zs (https://console-openshift-console.apps.hub-dev.karmalabs.com/static/vendors~main-chunk-b28ee748918cf8167863.min.js:233:111305)
    at _c (https://console-openshift-console.apps.hub-dev.karmalabs.com/static/vendors~main-chunk-b28ee748918cf8167863.min.js:233:98549)
    at bc (https://console-openshift-console.apps.hub-dev.karmalabs.com/static/vendors~main-chunk-b28ee748918cf8167863.min.js:233:98477)
    at gc (https://console-openshift-console.apps.hub-dev.karmalabs.com/static/vendors~main-chunk-b28ee748918cf8167863.min.js:233:98340)
    at lc (https://console-openshift-console.apps.hub-dev.karmalabs.com/static/vendors~main-chunk-b28ee748918cf8167863.min.js:233:95327)
    at https://console-openshift-console.apps.hub-dev.karmalabs.com/static/vendors~main-chunk-b28ee748918cf8167863.min.js:233:44775
    at t.unstable_runWithPriority (https://console-openshift-console.apps.hub-dev.karmalabs.com/static/vendors~main-chunk-b28ee748918cf8167863.min.js:241:3766)

Expected results:
Successful deployment of the ACM operator in the open-cluster-management namespace

Additional info:
- On a different hypervisor, I've used the exact same yaml file to deploy the same cluster with kcli and I was able to install ACM with no issues.

- I've tried with ACM release-2.1 and release-2.2 and the error was identical
# oc get sub -n open-cluster-management
NAME                          PACKAGE                       SOURCE             CHANNEL
advanced-cluster-management   advanced-cluster-management   redhat-operators   release-2.1

# oc get sub -n open-cluster-management -o yaml
apiVersion: v1
items:
- apiVersion: operators.coreos.com/v1alpha1
  kind: Subscription
  metadata:
    creationTimestamp: "2021-07-06T22:14:23Z"
    generation: 1
    labels:
      operators.coreos.com/advanced-cluster-management.open-cluster-management: ""
    managedFields:
    - apiVersion: operators.coreos.com/v1alpha1
      fieldsType: FieldsV1
      fieldsV1:
        f:spec:
          .: {}
          f:channel: {}
          f:installPlanApproval: {}
          f:name: {}
          f:source: {}
          f:sourceNamespace: {}
          f:startingCSV: {}
      manager: Mozilla
      operation: Update
      time: "2021-07-06T22:14:23Z"
    - apiVersion: operators.coreos.com/v1alpha1
      fieldsType: FieldsV1
      fieldsV1:
        f:metadata:
          f:labels:
            .: {}
            f:operators.coreos.com/advanced-cluster-management.open-cluster-management: {}
      manager: olm
      operation: Update
      time: "2021-07-06T22:14:24Z"
    - apiVersion: operators.coreos.com/v1alpha1
      fieldsType: FieldsV1
      fieldsV1:
        f:status:
          .: {}
          f:catalogHealth: {}
          f:conditions: {}
          f:currentCSV: {}
          f:installPlanGeneration: {}
          f:installPlanRef:
            .: {}
            f:apiVersion: {}
            f:kind: {}
            f:name: {}
            f:namespace: {}
            f:resourceVersion: {}
            f:uid: {}
          f:installedCSV: {}
          f:installplan:
            .: {}
            f:apiVersion: {}
            f:kind: {}
            f:name: {}
            f:uuid: {}
          f:lastUpdated: {}
          f:state: {}
      manager: catalog
      operation: Update
      time: "2021-07-06T22:14:41Z"
    name: advanced-cluster-management
    namespace: open-cluster-management
    resourceVersion: "35446"
    uid: 68ed090b-7793-47db-9fd7-d0567afe4c41
  spec:
    channel: release-2.1
    installPlanApproval: Automatic
    name: advanced-cluster-management
    source: redhat-operators
    sourceNamespace: openshift-marketplace
    startingCSV: advanced-cluster-management.v2.1.6
  status:
    catalogHealth:
    - catalogSourceRef:
        apiVersion: operators.coreos.com/v1alpha1
        kind: CatalogSource
        name: certified-operators
        namespace: openshift-marketplace
        resourceVersion: "30447"
        uid: d1af0072-b667-4ea1-ac4e-1159e14da081
      healthy: true
      lastUpdated: "2021-07-06T22:14:24Z"
    - catalogSourceRef:
        apiVersion: operators.coreos.com/v1alpha1
        kind: CatalogSource
        name: community-operators
        namespace: openshift-marketplace
        resourceVersion: "32989"
        uid: 52530f7f-3c0a-4828-8504-91314cfb700d
      healthy: true
      lastUpdated: "2021-07-06T22:14:24Z"
    - catalogSourceRef:
        apiVersion: operators.coreos.com/v1alpha1
        kind: CatalogSource
        name: redhat-marketplace
        namespace: openshift-marketplace
        resourceVersion: "34538"
        uid: a049f2f2-9695-4d57-bc85-13e427f805b2
      healthy: true
      lastUpdated: "2021-07-06T22:14:24Z"
    - catalogSourceRef:
        apiVersion: operators.coreos.com/v1alpha1
        kind: CatalogSource
        name: redhat-operators
        namespace: openshift-marketplace
        resourceVersion: "33137"
        uid: 7aecfa72-be8d-464f-92a7-158fe01e9e40
      healthy: true
      lastUpdated: "2021-07-06T22:14:24Z"
    conditions:
    - lastTransitionTime: "2021-07-06T22:14:24Z"
      message: all available catalogsources are healthy
      reason: AllCatalogSourcesHealthy
      status: "False"
      type: CatalogSourcesUnhealthy
    - lastTransitionTime: "2021-07-06T22:15:43Z"
      reason: InstallComponentFailed
      status: "True"
      type: InstallPlanFailed
    currentCSV: advanced-cluster-management.v2.1.6
    installPlanGeneration: 1
    installPlanRef:
      apiVersion: operators.coreos.com/v1alpha1
      kind: InstallPlan
      name: install-27s8s
      namespace: open-cluster-management
      resourceVersion: "34933"
      uid: 627fea40-344d-4ca3-9177-83132bbc4d0b
    installedCSV: advanced-cluster-management.v2.1.6
    installplan:
      apiVersion: operators.coreos.com/v1alpha1
      kind: InstallPlan
      name: install-27s8s
      uuid: 627fea40-344d-4ca3-9177-83132bbc4d0b
    lastUpdated: "2021-07-06T22:15:43Z"
    state: AtLatestKnown
kind: List
metadata:
  resourceVersion: ""
  selfLink: ""

- Many other VMs were running on the same HV:
# kcli list vm

+----------------------+--------+-----------------+-----------------------------------------------------------------+---------+-----------------------------------------------------------------+
|         Name         | Status |       Ips       |                              Source                             |   Plan  |                             Profile                             |
+----------------------+--------+-----------------+-----------------------------------------------------------------+---------+-----------------------------------------------------------------+
|    boring-fiambre    |  down  |                 |  /storage/CentOS-Stream-GenericCloud-8-20210210.0.x86_64.qcow2  |  kvirt  |  /storage/CentOS-Stream-GenericCloud-8-20210210.0.x86_64.qcow2  |
|   cnfdc3-bootstrap   |  down  |                 |                                                                 |  cnfdc3 |                              kvirt                              |
|   cnfdc3-installer   |   up   |   10.19.17.60   |                    rhel-8.2-x86_64-kvm.qcow2                    |  cnfdc3 |                              kvirt                              |
| cnfdc4-installer-alt |   up   |   10.19.17.74   |              Fedora-Cloud-Base-33-1.2.x86_64.qcow2              |  kvirt  |                             fedora33                            |
|   cnfdc5-installer   |   up   |   10.19.17.184  |                    rhel-8.4-x86_64-kvm.qcow2                    |  yk_ci  |                              kvirt                              |
|   cnfdc5-master-0    |   up   |   172.22.0.240  |                                                                 |  yk_ci  |                              kvirt                              |
|   cnfdc5-master-1    |   up   |                 |                                                                 |  yk_ci  |                              kvirt                              |
|   cnfdc5-master-2    |   up   |    172.22.0.3   |                                                                 |  yk_ci  |                              kvirt                              |
|   cnfdc8-bootstrap   |  down  |                 |                                                                 |  cnfdc8 |                              kvirt                              |
|   cnfdc8-installer   |   up   |   10.19.17.180  |                    rhel-8.4-x86_64-kvm.qcow2                    |  cnfdc8 |                              kvirt                              |
|   cnfdc9-bootstrap   |  down  |                 |                                                                 |  cnfdc9 |                              kvirt                              |
|   cnfdc9-installer   |  down  |                 |                    rhel-8.4-x86_64-kvm.qcow2                    |  cnfdc9 |                              kvirt                              |
|  cnfocto2-installer  |   up   |   10.19.17.59   |      CentOS-8-GenericCloud-8.3.2011-20201204.2.x86_64.qcow2     |  kvirt  |                             centos8                             |
|   drunk-heisenberg   |  down  |                 |      CentOS-8-GenericCloud-8.3.2011-20201204.2.x86_64.qcow2     |  kvirt  |                             centos8                             |
|   furious-goodall    |  down  |                 | /storage/CentOS-8-GenericCloud-8.3.2011-20201204.2.x86_64.qcow2 |  kvirt  | /storage/CentOS-8-GenericCloud-8.3.2011-20201204.2.x86_64.qcow2 |
|   hub-dev-master-0   |   up   | 192.168.122.217 |           rhcos-48.84.202105190318-0-qemu.x86_64.qcow2          | hub-dev |                              kvirt                              |
|   hub-dev-master-1   |   up   | 192.168.122.102 |           rhcos-48.84.202105190318-0-qemu.x86_64.qcow2          | hub-dev |                              kvirt                              |
|   hub-dev-master-2   |   up   |  192.168.122.60 |           rhcos-48.84.202105190318-0-qemu.x86_64.qcow2          | hub-dev |                              kvirt                              |
|      martinbox       |  down  |                 |      CentOS-8-GenericCloud-8.2.2004-20200611.2.x86_64.qcow2     |  kvirt  |      CentOS-8-GenericCloud-8.2.2004-20200611.2.x86_64.qcow2     |
|  nostalgic-lalande   |  down  |                 |                /storage/rhel-8.2-x86_64-kvm.qcow2               |  kvirt  |                /storage/rhel-8.2-x86_64-kvm.qcow2               |
|      spoke1-sno      |   up   |  192.168.122.54 |                                                                 |  spoke1 |                              kvirt                              |
|    stoic-xhamster    |  down  |                 |      CentOS-8-GenericCloud-8.3.2011-20201204.2.x86_64.qcow2     |  kvirt  |                             centos8                             |
|    test-tempnode     |  down  |                 |                                                                 |  kvirt  |                              kvirt                              |
+----------------------+--------+-----------------+-----------------------------------------------------------------+---------+-----------------------------------------------------------------+

- Memory and disk usage:
[root@cnfdc1 kcli-stuff]# free -mh
              total        used        free      shared  buff/cache   available
Mem:          376Gi       221Gi       1.6Gi       1.5Gi       153Gi       150Gi
Swap:         4.0Gi       116Mi       3.9Gi
[root@cnfdc1 kcli-stuff]# 
[root@cnfdc1 kcli-stuff]# df -h
Filesystem                                                                  Size  Used Avail Use% Mounted on
devtmpfs                                                                    189G     0  189G   0% /dev
tmpfs                                                                       189G  168K  189G   1% /dev/shm
tmpfs                                                                       189G  1.6G  187G   1% /run
tmpfs                                                                       189G     0  189G   0% /sys/fs/cgroup
/dev/mapper/rhel_cnfdc1-root                                                 50G  5.3G   45G  11% /
/dev/nvme0n1                                                                1.5T  628G  863G  43% /storage
/dev/sda1                                                                  1006M  167M  840M  17% /boot
/dev/mapper/rhel_cnfdc1-home                                                392G   12G  381G   3% /home
cnfdb0.clus2.t5g.lab.eng.bos.redhat.com:/var/www/kcli-openshift4-baremetal  3.3T  361G  3.0T  11% /home/kni/cnf-plans
tmpfs                                                                        38G  8.0K   38G   1% /run/user/1000
tmpfs                                                                        38G     0   38G   0% /run/user/1001

Comment 1 Irina Mihai 2021-07-07 18:03:19 UTC
I've also done a must-gather on the cluster. Logs are here: https://drive.google.com/drive/folders/1e4hGN1K_Fxo_TrKizp3ShUFzI3irTRjN?usp=sharing

Comment 2 Zac Herman 2021-07-12 17:37:42 UTC
@(In reply to Irina Mihai from comment #1)
> I've also done a must-gather on the cluster. Logs are here:
> https://drive.google.com/drive/folders/
> 1e4hGN1K_Fxo_TrKizp3ShUFzI3irTRjN?usp=sharing

I think you need to use ACM 2.3 with the 4.9 nightly build because the apis have been updated.  Please try and let me know.

Comment 3 Yadan Pei 2021-07-14 03:50:28 UTC
Hi, seems I can reproduced the issue when visiting some operators which are in Pending status, here are detailed reproducible steps from web console:

1. Subscribe `etcd`, `Advanced Cluster Management for Kubernetes` and `OpenShift Virtualization` operator from OperatorHub, keep all selections as default and subscribe
$ oc get csv --all-namespaces 
NAMESPACE                              NAME                                      DISPLAY                                      VERSION   REPLACES                                  PHASE
default                                etcdoperator.v0.9.4                       etcd                                         0.9.4     etcdoperator.v0.9.2                       Pending
open-cluster-management                advanced-cluster-management.v2.2.5        Advanced Cluster Management for Kubernetes   2.2.5     advanced-cluster-management.v2.2.4        Pending
openshift-cnv                          kubevirt-hyperconverged-operator.v2.6.5   OpenShift Virtualization                     2.6.5     kubevirt-hyperconverged-operator.v2.6.4   Pending


2. Visit CSV page of operators above, I encounter `Cannot read property 'apiGroup' of undefined` error when visiting CSV page for `Advanced Cluster Management for Kubernetes` and `OpenShift Virtualization`
, visiting CSV page of `etcd` operator doesn't reproduce the issue


$ oc get csv etcdoperator.v0.9.4 -n default -o json | jq '.spec.customresourcedefinitions.owned[] | .name + " its api version is: " + .version'
"etcdclusters.etcd.database.coreos.com its api version is: v1beta2"
"etcdbackups.etcd.database.coreos.com its api version is: v1beta2"
"etcdrestores.etcd.database.coreos.com its api version is: v1beta2"

$ oc get csv advanced-cluster-management.v2.2.5 -n open-cluster-management -o json | jq '.spec.customresourcedefinitions.owned[] | .name + " its api version is: " + .version'
"multiclusterhubs.operator.open-cluster-management.io its api version is: v1"
"clustermanagers.operator.open-cluster-management.io its api version is: v1"
"multiclusterobservabilities.observability.open-cluster-management.io its api version is: v1beta1"
"observatoria.core.observatorium.io its api version is: v1alpha1"
"observabilityaddons.observability.open-cluster-management.io its api version is: v1beta1"
"submarinerconfigs.submarineraddon.open-cluster-management.io its api version is: v1alpha1"
"clusterdeployments.hive.openshift.io its api version is: v1"
"clusterstates.hive.openshift.io its api version is: v1"
"dnszones.hive.openshift.io its api version is: v1"
"clusterclaims.hive.openshift.io its api version is: v1"
"clusterimagesets.hive.openshift.io its api version is: v1"
"clusterpools.hive.openshift.io its api version is: v1"
"clusterrelocates.hive.openshift.io its api version is: v1"
"checkpoints.hive.openshift.io its api version is: v1"
"clustersyncleases.hiveinternal.openshift.io its api version is: v1alpha1"
"selectorsyncsets.hive.openshift.io its api version is: v1"
"machinepools.hive.openshift.io its api version is: v1"
"clusterprovisions.hive.openshift.io its api version is: v1"
"clusterdeprovisions.hive.openshift.io its api version is: v1"
"clustersyncs.hiveinternal.openshift.io its api version is: v1alpha1"
"syncidentityproviders.hive.openshift.io its api version is: v1"
"machinepoolnameleases.hive.openshift.io its api version is: v1"
"hiveconfigs.hive.openshift.io its api version is: v1"
"syncsets.hive.openshift.io its api version is: v1"
"selectorsyncidentityproviders.hive.openshift.io its api version is: v1"
"subscriptions.apps.open-cluster-management.io its api version is: v1"
"channels.apps.open-cluster-management.io its api version is: v1"
"helmreleases.apps.open-cluster-management.io its api version is: v1"
"deployables.apps.open-cluster-management.io its api version is: v1"
"placementrules.apps.open-cluster-management.io its api version is: v1"
"applications.app.k8s.io its api version is: v1beta1"


$ oc get csv kubevirt-hyperconverged-operator.v2.6.5  -n openshift-cnv  -o json | jq '.spec.customresourcedefinitions.owned[] | .name + " its api version is: " + .version'
"hyperconvergeds.hco.kubevirt.io its api version is: v1beta1"
"v2vvmwares.v2v.kubevirt.io its api version is: v1alpha1"
"ovirtproviders.v2v.kubevirt.io its api version is: v1alpha1"
"networkaddonsconfigs.networkaddonsoperator.network.kubevirt.io its api version is: v1"
"kubevirts.kubevirt.io its api version is: v1alpha3"
"ssps.ssp.kubevirt.io its api version is: v1beta1"
"cdis.cdi.kubevirt.io its api version is: v1beta1"
"nodemaintenances.nodemaintenance.kubevirt.io its api version is: v1beta1"
"hostpathprovisioners.hostpathprovisioner.kubevirt.io its api version is: v1beta1"
"vmimportconfigs.v2v.kubevirt.io its api version is: v1beta1"

All these operators are in Pending status since they all have CRDs using legacy API, why visiting etcd CSV page returns correct page while visiting other two operators returns 'Cannot read property 'apiGroup' of undefined error'?   

It looks like the issue is apiVersion related, however I can not figure out the differences between operators. correct me if I'm wrong.

Comment 4 Samuel Padgett 2021-07-14 17:09:26 UTC
(In reply to Zac Herman from comment #2)

> I think you need to use ACM 2.3 with the 4.9 nightly build because the apis
> have been updated.  Please try and let me know.

Even if there's an issue with the API version of the CRD, it shouldn't cause a runtime error in the console. We should tolerate the missing type.

Comment 6 Zac Herman 2022-01-14 15:37:08 UTC
@yapei - Have you tried this recently?  I am curious if you are still getting this error.

Comment 8 Yadan Pei 2022-01-17 07:33:54 UTC
Tried on 4.10.0-0.nightly-2022-01-15-092722, since all operators in OperatorHub seems have latest api versions, I didn't reproduce the issue 

So I tried to install one etcd operator (not `Advanced Cluster Management for Kubernetes` neither `OpenShift Virtualization` because both can be subscribed successfully) who still has old CRD version

$ oc get csv -n yapei-etcd
NAME                             DISPLAY                            VERSION   REPLACES                     PHASE
etcdoperator.v0.9.4              etcd                               0.9.4                                  Pending

$ oc get csv etcdoperator.v0.9.4 -n yapei-etcd -o json | jq '.spec.customresourcedefinitions.owned[] | .name + " its api version is: " + .version'
"etcdclusters.etcd.database.coreos.com its api version is: v1beta2"
"etcdbackups.etcd.database.coreos.com its api version is: v1beta2"
"etcdrestores.etcd.database.coreos.com its api version is: v1beta2"

Visiting Operators -> Installed Operators -> etcd, CSV details is correctly shown

Let me know if any steps are needed

Comment 9 Zac Herman 2022-01-17 15:47:42 UTC
@yapei - Since I could not reproduce this and you cannot reproduce, can we please go ahead and close this out?

Comment 10 Yadan Pei 2022-01-25 06:17:05 UTC
Hi,

We didn't reproduce the bug on latest 4.10, so can we close this bug?


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