Bug 1686707

Summary: [marketplace]The csc won't update if the package is deleted in the remote registory
Product: OpenShift Container Platform Reporter: Fan Jia <jfan>
Component: OLMAssignee: Aravindh Puthiyaparambil <aravindh>
Status: CLOSED DUPLICATE QA Contact: Fan Jia <jfan>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.1.0CC: chezhang, dyan, jiazha, zitang
Target Milestone: ---   
Target Release: 4.1.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-03-08 05:13:39 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:

Description Fan Jia 2019-03-08 05:02:54 UTC
Description of problem:
The csc won't update if the CSC's package is deleted in remote registory.

Version-Release number of the following components:
cv:4.0.0-0.nightly-2019-03-06-074438
marketplace image:quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:77893a9582ba7b8875ed2eb4cffdb0eb9734dd38eb3342fe70a21d569fb38f76
marketplace commit:aabac93da42773f29c4230bd8b7906facc6c42f9

How reproducible:
always

Steps to Reproduce:
1.create a customer operatorsource with package like "etcd-test"
####
apiVersion: "marketplace.redhat.com/v1alpha1"
kind: "OperatorSource"
metadata:
  name: "test"
  namespace: "openshift-marketplace"
  labels:
    opsrc-provider: dddd
spec:
  type: appregistry
  endpoint: "https://quay.io/cnr"
  registryNamespace: "jfan"
  displayName: "dddd"
  publisher: "dddd"
####
2.create a csc with the package "etcd-test" from customer operatorsource
####
apiVersion: v1
items:
- apiVersion: marketplace.redhat.com/v1alpha1
  kind: CatalogSourceConfig
  metadata:
    name: mongotest
    namespace: openshift-marketplace
  spec:
    packages: etcd-test
    targetNamespace: openshift-operators
kind: List
metadata:
  resourceVersion: ""
  selfLink: ""
####
3.delete the package "etcd-test" from the registory
4.wait for one hour

Actual results:
1.after step 4 the csc has no action

Expected results:
1.the csc should delete the package "etcd-test" from its' config, and if the csc only has this package it should be deleted.

Additional info:

Comment 1 Fan Jia 2019-03-08 05:13:39 UTC

*** This bug has been marked as a duplicate of bug 1686668 ***