Bug 2013545

Summary: Service binding created outside topology is not visible
Product: OpenShift Container Platform Reporter: Mohammed Saud <msaud>
Component: Dev ConsoleAssignee: Mohammed Saud <msaud>
Status: CLOSED ERRATA QA Contact: Debsmita Santra <dsantra>
Severity: medium Docs Contact:
Priority: high    
Version: 4.8CC: aos-bugs, dsantra, kjeeyar, nmukherj
Target Milestone: ---   
Target Release: 4.10.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
* Before this update, the service binding connector did not appear in topology if you used a `resource` property instead of a `kind` property to define a `ServiceBinding` custom resource (CR). This update resolves the issue by reading the CR's `resource` property to display the connector on the topology. (link:https://bugzilla.redhat.com/show_bug.cgi?id=2013545[BZ#2013545])
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-03-10 16:19:33 UTC Type: Bug
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:    
Bug Blocks: 2017484    

Description Mohammed Saud 2021-10-13 07:57:48 UTC
Description of problem:

Sample:
apiVersion: binding.operators.coreos.com/v1alpha1
kind: ServiceBinding
metadata:
  selfLink: >-
    /apis/binding.operators.coreos.com/v1alpha1/namespaces/wtrocki-fix/servicebindings/mmclaugh-inventory-91a1
  resourceVersion: '8509826'
  name: mmclaugh-inventory-91a1
  uid: b04e7a2c-7cfc-4796-b57b-4558d20b6156
  creationTimestamp: '2021-04-21T16:22:07Z'
  generation: 2
  managedFields:
    - apiVersion: binding.operators.coreos.com/v1alpha1
      fieldsType: FieldsV1
      fieldsV1:
        'f:metadata':
          'f:finalizers':
            .: {}
            'v:"finalizer.servicebinding.openshift.io"': {}
        'f:status':
          .: {}
          'f:conditions':
            .: {}
            'k:{"type":"CollectionReady"}':
              .: {}
              'f:lastTransitionTime': {}
              'f:message': {}
              'f:reason': {}
              'f:status': {}
              'f:type': {}
            'k:{"type":"InjectionReady"}':
              .: {}
              'f:lastTransitionTime': {}
              'f:message': {}
              'f:reason': {}
              'f:status': {}
              'f:type': {}
            'k:{"type":"Ready"}':
              .: {}
              'f:lastTransitionTime': {}
              'f:message': {}
              'f:reason': {}
              'f:status': {}
              'f:type': {}
          'f:secret': {}
      manager: manager
      operation: Update
      time: '2021-04-21T16:22:07Z'
    - apiVersion: binding.operators.coreos.com/v1alpha1
      fieldsType: FieldsV1
      fieldsV1:
        'f:spec':
          .: {}
          'f:application':
            .: {}
            'f:group': {}
            'f:name': {}
            'f:resource': {}
            'f:version': {}
          'f:bindAsFiles': {}
          'f:services': {}
      manager: rhoas
      operation: Update
      time: '2021-04-21T16:22:07Z'
    - apiVersion: binding.operators.coreos.com/v1alpha1
      fieldsType: FieldsV1
      fieldsV1:
        'f:spec':
          'f:detectBindingResources': {}
      manager: Mozilla
      operation: Update
      time: '2021-04-21T16:40:02Z'
  namespace: wtrocki-fix
  finalizers:
    - finalizer.servicebinding.openshift.io
spec:
  application:
    group: apps
    name: nginx-sample
    resource: deployments
    version: v1
  bindAsFiles: true
  detectBindingResources: true
  services:
    - group: rhoas.redhat.com
      name: mmclaugh-inventory
      resource: kafkaconnections
      version: v1alpha1
status:
  conditions:
    - lastTransitionTime: '2021-04-21T16:22:07Z'
      message: ''
      reason: DataCollected
      status: 'True'
      type: CollectionReady
    - lastTransitionTime: '2021-04-21T16:22:07Z'
      message: ''
      reason: ApplicationUpdated
      status: 'True'
      type: InjectionReady
    - lastTransitionTime: '2021-04-21T16:22:07Z'
      message: ''
      reason: ApplicationsBound
      status: 'True'
      type: Ready
  secret: mmclaugh-inventory-91a1-ff90e502

Creating binding from UI will work (the only noticable difference is name of the binding resource)
Refreshing page or any other operation doesn't seem to work.

Note that this problem happens to RHOAS plugin.
Binding is fully functional and operator works


Version-Release number of selected component (if applicable):
4.8


How reproducible:
Always


Actual results:
Service binding edge is not visible


Expected results:
Edge should be visible

Comment 3 Debsmita Santra 2021-10-28 15:46:55 UTC
verified on 4.10.0-0.nightly-2021-10-27-230233

Comment 8 errata-xmlrpc 2022-03-10 16:19:33 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: OpenShift Container Platform 4.10.3 security update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:0056