Bug 2100828

Summary: [MTC UI] Error popup in UI on deleting migstorage resource
Product: Migration Toolkit for Containers Reporter: Prasad Joshi <prajoshi>
Component: UIAssignee: Mike Turley <mturley>
Status: ASSIGNED --- QA Contact: ssingla
Severity: low Docs Contact: Richard Hoch <rhoch>
Priority: low    
Version: 1.7.2CC: jmatthew
Target Milestone: ---   
Target Release: 1.7.z   
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: 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 Prasad Joshi 2022-06-24 11:43:24 UTC
Description of problem: Created a backupStorage cred secret in openshift-migration, when I removed migstorage object from UI. Got a 404 error in popup. Also the underlying secret is not getting removed.

Version-Release number of selected component (if applicable):
Source GCP 4.6   MTC 1.7.2 + OADP 1.0.3
Target GCP  4.10   MTC 1.7.2 + OADP 1.0.3


How reproducible: 
Always


Steps to Reproduce:
1. Create a backupStorage cred secret in openshift-migration namespace.
2. Create migstorage resource from backend
3. Remove migstorage object from UI 

Actual results:  Getting 404 status code popup in UI, also the secrets are not getting removed.


Expected results: popup message shouldn’t display 404 error in UI, secret should get removed from the namespace.


Additional info:

$ oc get migstorage -n openshift-migration camreplication -o yaml

apiVersion: migration.openshift.io/v1alpha1
kind: MigStorage
metadata:
  name: camreplication
  namespace: openshift-migration
spec:
  backupStorageConfig:
    credsSecretRef:
      name: automatic-xbxmz
      namespace: openshift-migration
    gcpBucket: camreplication
  backupStorageProvider: gcp
  volumeSnapshotConfig:
    credsSecretRef:
      name: automatic-xbxmz
      namespace: openshift-migration
  volumeSnapshotProvider: gcp