Description of problem: After delete migplan, migmigration resource are not deleted Version-Release number of selected component (if applicable): OCP4: 4.2.0-0.nightly-2019-08-06-195545 mig-controller: quay.io/ocpmigrate/mig-controller@sha256:89067b5fd1ee3800a121b32d089ddb71e0790184b2becfd3f7e5cc3fc91b3b52 How reproducible: always Steps to Reproduce: 1. install mig-controller & mig-ui on OCP4, and add ocp 3 & s3 bucket to the controller in UI. 2. create a project test to migrate 3. create a migplan to migration project test. 4. do migration, this will succeed. 5. delete migplan from UI, Actual results: The migplan deleted, but migmigration is not deleted. [zitang@localhost ~]$ oc get migplan No resources found. [zitang@localhost ~]$ oc get migmigration NAME AGE 18f2c0b0-b9a7-11e9-ba38-f50a1e23a54d 150m Expected results: the migplan related migmigration should also deleted. Additional info:
Jeff has been working in this area, I think this is resolved or will be very shortly. Below may be the PR to add ownerReferences to 'migrations' https://github.com/fusor/mig-controller/pull/291
(In reply to John Matthews from comment #1) > Jeff has been working in this area, I think this is resolved or will be very > shortly. > > Below may be the PR to add ownerReferences to 'migrations' > https://github.com/fusor/mig-controller/pull/291 Merged. Yes. This has resolved.
According to #comment2, move to ON_QA
I am unable to delete a plan from UI. I am using Image: quay.io/ocpmigrate/mig-ui:stable Image ID: quay.io/ocpmigrate/mig-ui@sha256:f38a52d944227cb7b9e7e175a2dc0df0ae032fd67cdffd8f11a9c4d73855153d Image: quay.io/ocpmigrate/mig-operator:stable Image ID: quay.io/ocpmigrate/mig-operator@sha256:e9f7132c9f87c243574274720eb8938896b949e5ab276bdd267ca249f7b2e604 Image: quay.io/ocpmigrate/mig-controller:stable Image ID: quay.io/ocpmigrate/mig-controller@sha256:7ec48a557240f1d2fa6ee6cd62234b0e75f178eca2a0cc5b95124e01bcd2c114 I see the following error in the controller pod. {"level":"info","ts":1567023954.6623616,"logger":"migration|d829d","msg":"Migration [RUN]","name":"ad63fdb0-c9d1-11e9-bc9c-699223545c53","stage":false,"phase":"FinalRestoreCreated"} {"level":"info","ts":1567023956.406489,"logger":"migration|4csl4","msg":"Migration [RUN]","name":"ad63fdb0-c9d1-11e9-bc9c-699223545c53","stage":false,"phase":"FinalRestoreCreated"} {"level":"info","ts":1567023958.2018256,"logger":"migration|dx2bn","msg":"Migration [RUN]","name":"ad63fdb0-c9d1-11e9-bc9c-699223545c53","stage":false,"phase":"FinalRestoreCreated"} {"level":"info","ts":1567023959.2071495,"logger":"migration|8pfcm","msg":"Migration [RUN]","name":"ad63fdb0-c9d1-11e9-bc9c-699223545c53","stage":false,"phase":"FinalRestoreCreated"} {"level":"info","ts":1567023959.908206,"logger":"migration|mqv9c","msg":"Migration [RUN]","name":"ad63fdb0-c9d1-11e9-bc9c-699223545c53","stage":false,"phase":"FinalRestoreCreated"} {"level":"info","ts":1567023960.1524994,"logger":"migration|mfxcw","msg":"Migration [RUN]","name":"ad63fdb0-c9d1-11e9-bc9c-699223545c53","stage":false,"phase":"FinalRestoreCreated"} {"level":"info","ts":1567023963.4425704,"logger":"migration|8xvlg","msg":"Migration [RUN]","name":"ad63fdb0-c9d1-11e9-bc9c-699223545c53","stage":false,"phase":"FinalRestoreCreated"} {"level":"info","ts":1567023963.6731553,"logger":"migration|fqq9m","msg":"Migration [RUN]","name":"ad63fdb0-c9d1-11e9-bc9c-699223545c53","stage":false,"phase":"FinalRestoreCreated"} {"level":"info","ts":1567023964.5673382,"logger":"migration|sjpdg","msg":"Migration [RUN]","name":"ad63fdb0-c9d1-11e9-bc9c-699223545c53","stage":false,"phase":"FinalRestoreCreated"} {"level":"info","ts":1567023964.9520333,"logger":"migration|sbd49","msg":"Migration [RUN]","name":"ad63fdb0-c9d1-11e9-bc9c-699223545c53","stage":false,"phase":"FinalRestoreCreated"} {"level":"info","ts":1567023965.4403622,"logger":"migration|8bx22","msg":"Migration [RUN]","name":"ad63fdb0-c9d1-11e9-bc9c-699223545c53","stage":false,"phase":"FinalRestoreCreated"} {"level":"info","ts":1567023965.8401623,"logger":"migration|8dskr","msg":"Migration [RUN]","name":"ad63fdb0-c9d1-11e9-bc9c-699223545c53","stage":false,"phase":"FinalRestoreCreated"} {"level":"info","ts":1567023966.1500087,"logger":"migration|m2nxj","msg":"Migration [RUN]","name":"ad63fdb0-c9d1-11e9-bc9c-699223545c53","stage":false,"phase":"FinalRestoreCreated"} {"level":"info","ts":1567023966.633831,"logger":"migration|flqmz","msg":"Migration [RUN]","name":"ad63fdb0-c9d1-11e9-bc9c-699223545c53","stage":false,"phase":"FinalRestoreCreated"} {"level":"info","ts":1567023967.0347936,"logger":"migration|xzz7n","msg":"Migration [RUN]","name":"ad63fdb0-c9d1-11e9-bc9c-699223545c53","stage":false,"phase":"FinalRestoreCreated"} {"level":"info","ts":1567023968.456267,"logger":"migration|c7bjl","msg":"Migration [RUN]","name":"ad63fdb0-c9d1-11e9-bc9c-699223545c53","stage":false,"phase":"FinalRestoreCreated"} {"level":"info","ts":1567023970.3210309,"logger":"migration|cx925","msg":"Migration [RUN]","name":"ad63fdb0-c9d1-11e9-bc9c-699223545c53","stage":false,"phase":"FinalRestoreCreated"} {"level":"info","ts":1567023970.6410506,"logger":"migration|rlmpf","msg":"Migration [RUN]","name":"ad63fdb0-c9d1-11e9-bc9c-699223545c53","stage":false,"phase":"FinalRestoreCreated"} {"level":"info","ts":1567023972.836314,"logger":"migration|hb9d4","msg":"Migration [RUN]","name":"ad63fdb0-c9d1-11e9-bc9c-699223545c53","stage":false,"phase":"FinalRestoreCreated"} {"level":"info","ts":1567023973.0543146,"logger":"migration|rnwpv","msg":"Migration [RUN]","name":"ad63fdb0-c9d1-11e9-bc9c-699223545c53","stage":false,"phase":"FinalRestoreCreated"} {"level":"info","ts":1567023973.2512093,"logger":"migration|rnwpv","msg":"Migration [COMPLETED]","name":"ad63fdb0-c9d1-11e9-bc9c-699223545c53"} E0828 20:26:15.792080 1 reflector.go:134] sigs.k8s.io/controller-runtime/pkg/cache/internal/informers_map.go:196: Failed to list *v1.Deployment: deployments.apps is forbidden: User "system:serviceaccount:openshift-migration:migration-controller" cannot list resource "deployments" in API group "apps" at the cluster scope E0828 20:26:16.793720 1 reflector.go:134] sigs.k8s.io/controller-runtime/pkg/cache/internal/informers_map.go:196: Failed to list *v1.Deployment: deployments.apps is forbidden: User "system:serviceaccount:openshift-migration:migration-controller" cannot list resource "deployments" in API group "apps" at the cluster scope E0828 20:26:17.795351 1 reflector.go:134] sigs.k8s.io/controller-runtime/pkg/cache/internal/informers_map.go:196: Failed to list *v1.Deployment: deployments.apps is forbidden: User "system:serviceaccount:openshift-migration:migration-controller" cannot list resource "deployments" in API group "apps" at the cluster scope E0828 20:26:18.796987 1 reflector.go:134] sigs.k8s.io/controller-runtime/pkg/cache/internal/informers_map.go:196: Failed to list *v1.Deployment: deployments.apps is forbidden: User "system:serviceaccount:openshift-migration:migration-controller" cannot list resource "deployments" in API group "apps" at the cluster scope E0828 20:26:19.798557 1 reflector.go:134] sigs.k8s.io/controller-runtime/pkg/cache/internal/informers_map.go:196: Failed to list *v1.Deployment: deployments.apps is forbidden: User "system:serviceaccount:openshift-migration:migration-controller" cannot list resource "deployments" in API group "apps" at the cluster scope E0828 20:26:20.800377 1 reflector.go:134] sigs.k8s.io/controller-runtime/pkg/cache/internal/informers_map.go:196: Failed to list *v1.Deployment: deployments.apps is forbidden: User "system:serviceaccount:openshift-migration:migration-controller" cannot list resource "deployments" in API group "apps" at the cluster scope E0828 20:26:21.801990 1 reflector.go:134] sigs.k8s.io/controller-runtime/pkg/cache/internal/informers_map.go:196: Failed to list *v1.Deployment: deployments.apps is forbidden: User "system:serviceaccount:openshift-migration:migration-controller" cannot list resource "deployments" in API group "apps" at the cluster scope E0828 20:26:22.803787 1 reflector.go:134] sigs.k8s.io/controller-runtime/pkg/cache/internal/informers_map.go:196: Failed to list *v1.Deployment: deployments.apps is forbidden: User "system:serviceaccount:openshift-migration:migration-controller" cannot list resource "deployments" in API group "apps" at the cluster scope E0828 20:26:23.805338 1 reflector.go:134] sigs.k8s.io/controller-runtime/pkg/cache/internal/informers_map.go:196: Failed to list *v1.Deployment: deployments.apps is forbidden: User "system:serviceaccount:openshift-migration:migration-controller" cannot list resource "deployments" in API group "apps" at the cluster scope E0828 20:26:24.807248 1 reflector.go:134] sigs.k8s.io/controller-runtime/pkg/cache/internal/informers_map.go:196: Failed to list *v1.Deployment: deployments.apps is forbidden: User "system:serviceaccount:openshift-migration:migration-controller" cannot list resource "deployments" in API group "apps" at the cluster scope E0828 20:26:25.808983 1 reflector.go:134] sigs.k8s.io/controller-runtime/pkg/cache/internal/informers_map.go:196: Failed to list *v1.Deployment: deployments.apps is forbidden: User "system:serviceaccount:openshift-migration:migration-controller" cannot list resource "deployments" in API group "apps" at the cluster scope E0828 20:26:26.810489 1 reflector.go:134] sigs.k8s.io/controller-runtime/pkg/cache/internal/informers_map.go:196: Failed to list *v1.Deployment: deployments.apps is forbidden: User "system:serviceaccount:openshift-migration:migration-controller" cannot list resource "deployments" in API group "apps" at the cluster scope E0828 20:26:27.812227 1 reflector.go:134] sigs.k8s.io/controller-runtime/pkg/cache/internal/informers_map.go:196: Failed to list *v1.Deployment: deployments.apps is forbidden: User "system:serviceaccount:openshift-migration:migration-controller" cannot list resource "deployments" in API group "apps" at the cluster scope E0828 20:26:28.814591 1 reflector.go:134] sigs.k8s.io/controller-runtime/pkg/cache/internal/informers_map.go:196: Failed to list *v1.Deployment: deployments.apps is forbidden: User "system:serviceaccount:openshift-migration:migration-controller" cannot list resource "deployments" in API group "apps" at the cluster scope E0828 20:26:29.816140 1 reflector.go:134] sigs.k8s.io/controller-runtime/pkg/cache/internal/informers_map.go:196: Failed to list *v1.Deployment: deployments.apps is forbidden: User "system:serviceaccount:openshift-migration:migration-controller" cannot list resource "deployments" in API group "apps" at the cluster scope E0828 20:26:30.817755 1 reflector.go:134] sigs.k8s.io/controller-runtime/pkg/cache/internal/informers_map.go:196: Failed to list *v1.Deployment: deployments.apps is forbidden: User "system:serviceaccount:openshift-migration:migration-controller" cannot list resource "deployments" in API group "apps" at the cluster scope E0828 20:26:31.819550 1 reflector.go:134] sigs.k8s.io/controller-runtime/pkg/cache/internal/informers_map.go:196: Failed to list *v1.Deployment: deployments.apps is forbidden: User "system:serviceaccount:openshift-migration:migration-controller" cannot list resource "deployments" in API group "apps" at the cluster scope E0828 20:26:32.821164 1 reflector.go:134] sigs.k8s.io/controller-runtime/pkg/cache/internal/informers_map.go:196: Failed to list *v1.Deployment: deployments.apps is forbidden: User "system:serviceaccount:openshift-migration:migration-controller" cannot list resource "deployments" in API group "apps" at the cluster scope E0828 20:26:33.822980 1 reflector.go:134] sigs.k8s.io/controller-runtime/pkg/cache/internal/informers_map.go:196: Failed to list *v1.Deployment: deployments.apps is forbidden: User "system:serviceaccount:openshift-migration:migration-controller" cannot list resource "deployments" in API group "apps" at the cluster scope E0828 20:26:34.824729 1 reflector.go:134] sigs.k8s.io/controller-runtime/pkg/cache/internal/informers_map.go:196: Failed to list *v1.Deployment: deployments.apps is forbidden: User "system:serviceaccount:openshift-migration:migration-controller" cannot list resource "deployments" in API group "apps" at the cluster scope E0828 20:26:35.826574 1 reflector.go:134] sigs.k8s.io/controller-runtime/pkg/cache/internal/informers_map.go:196: Failed to list *v1.Deployment: deployments.apps is forbidden: User "system:serviceaccount:openshift-migration:migration-controller" cannot list resource "deployments" in API group "apps" at the cluster scope E0828 20:26:36.828286 1 reflector.go:134] sigs.k8s.io/controller-runtime/pkg/cache/internal/informers_map.go:196: Failed to list *v1.Deployment: deployments.apps is forbidden: User "system:serviceaccount:openshift-migration:migration-controller" cannot list resource "deployments" in API group "apps" at the cluster scope E0828 20:26:37.829991 1 reflector.go:134] sigs.k8s.io/controller-runtime/pkg/cache/internal/informers_map.go:196: Failed to list *v1.Deployment: deployments.apps is forbidden: User "system:serviceaccount:openshift-migration:migration-controller" cannot list resource "deployments" in API group "apps" at the cluster scope E0828 20:26:38.831548 1 reflector.go:134] sigs.k8s.io/controller-runtime/pkg/cache/internal/informers_map.go:196: Failed to list *v1.Deployment: deployments.apps is forbidden: User "system:serviceaccount:openshift-migration:migration-controller" cannot list resource "deployments" in API group "apps" at the cluster scope E0828 20:26:39.833201 1 reflector.go:134] sigs.k8s.io/controller-runtime/pkg/cache/internal/informers_map.go:196: Failed to list *v1.Deployment: deployments.apps is forbidden: User "system:serviceaccount:openshift-migration:migration-controller" cannot list resource "deployments" in API group "apps" at the cluster scope E0828 20:26:40.834799 1 reflector.go:134] sigs.k8s.io/controller-runtime/pkg/cache/internal/informers_map.go:196: Failed to list *v1.Deployment: deployments.apps is forbidden: User "system:serviceaccount:openshift-migration:migration-controller" cannot list resource "deployments" in API group "apps" at the cluster scope E0828 20:26:41.836456 1 reflector.go:134] sigs.k8s.io/controller-runtime/pkg/cache/internal/informers_map.go:196: Failed to list *v1.Deployment: deployments.apps is forbidden: User "system:serviceaccount:openshift-migration:migration-controller" cannot list resource "deployments" in API group "apps" at the cluster scope E0828 20:26:42.838121 1 reflector.go:134] sigs.k8s.io/controller-runtime/pkg/cache/internal/informers_map.go:196: Failed to list *v1.Deployment: deployments.apps is forbidden: User "system:serviceaccount:openshift-migration:migration-controller" cannot list resource "deployments" in API group "apps" at the cluster scope E0828 20:26:43.839832 1 reflector.go:134] sigs.k8s.io/controller-runtime/pkg/cache/internal/informers_map.go:196: Failed to list *v1.Deployment: deployments.apps is forbidden: User "system:serviceaccount:openshift-migration:migration-controller" cannot list resource "deployments" in API group "apps" at the cluster scope E0828 20:26:44.841367 1 reflector.go:134] sigs.k8s.io/controller-runtime/pkg/cache/internal/informers_map.go:196: Failed to list *v1.Deployment: deployments.apps is forbidden: User "system:serviceaccount:openshift-migration:migration-controller" cannot list resource "deployments" in API group "apps" at the cluster scope E0828 20:26:45.845417 1 reflector.go:134] sigs.k8s.io/controller-runtime/pkg/cache/internal/informers_map.go:196: Failed to list *v1.Deployment: deployments.apps is forbidden: User "system:serviceaccount:openshift-migration:migration-controller" cannot list resource "deployments" in API group "apps" at the cluster scope E0828 20:26:46.847007 1 reflector.go:134] sigs.k8s.io/controller-runtime/pkg/cache/internal/informers_map.go:196: Failed to list *v1.Deployment: deployments.apps is forbidden: User "system:serviceaccount:openshift-migration:migration-controller" cannot list resource "deployments" in API group "apps" at the cluster scope E0828 20:26:47.848671 1 reflector.go:134] sigs.k8s.io/controller-runtime/pkg/cache/internal/informers_map.go:196: Failed to list *v1.Deployment: deployments.apps is forbidden: User "system:serviceaccount:openshift-migration:migration-controller" cannot list resource "deployments" in API group "apps" at the cluster scope E0828 20:26:48.850263 1 reflector.go:134] sigs.k8s.io/controller-runtime/pkg/cache/internal/informers_map.go:196: Failed to list *v1.Deployment: deployments.apps is forbidden: User "system:serviceaccount:openshift-migration:migration-controller" cannot list resource "deployments" in API group "apps" at the cluster scope E0828 20:26:49.852110 1 reflector.go:134] sigs.k8s.io/controller-runtime/pkg/cache/internal/informers_map.go:196: Failed to list *v1.Deployment: deployments.apps is forbidden: User "system:serviceaccount:openshift-migration:migration-controller" cannot list resource "deployments" in API group "apps" at the cluster scope E0828 20:26:50.853656 1 reflector.go:134] sigs.k8s.io/controller-runtime/pkg/cache/internal/informers_map.go:196: Failed to list *v1.Deployment: deployments.apps is forbidden: User "system:serviceaccount:openshift-migration:migration-controller" cannot list resource "deployments" in API group "apps" at the cluster scope E0828 20:26:51.855304 1 reflector.go:134] sigs.k8s.io/controller-runtime/pkg/cache/internal/informers_map.go:196: Failed to list *v1.Deployment: deployments.apps is forbidden: User "system:serviceaccount:openshift-migration:migration-controller" cannot list resource "deployments" in API group "apps" at the cluster scope E0828 20:26:52.856871 1 reflector.go:134] sigs.k8s.io/controller-runtime/pkg/cache/internal/informers_map.go:196: Failed to list *v1.Deployment: deployments.apps is forbidden: User "system:serviceaccount:openshift-migration:migration-controller" cannot list resource "deployments" in API group "apps" at the cluster scope E0828 20:26:53.858536 1 reflector.go:134] sigs.k8s.io/controller-runtime/pkg/cache/internal/informers_map.go:196: Failed to list *v1.Deployment: deployments.apps is forbidden: User "system:serviceaccount:openshift-migration:migration-controller" cannot list resource "deployments" in API group "apps" at the cluster scope E0828 20:26:54.860195 1 reflector.go:134] sigs.k8s.io/controller-runtime/pkg/cache/internal/informers_map.go:196: Failed to list *v1.Deployment: deployments.apps is forbidden: User "system:serviceaccount:openshift-migration:migration-controller" cannot list resource "deployments" in API group "apps" at the cluster scope E0828 20:26:55.862112 1 reflector.go:134] sigs.k8s.io/controller-runtime/pkg/cache/internal/informers_map.go:196: Failed to list *v1.Deployment: deployments.apps is forbidden: User "system:serviceaccount:openshift-migration:migration-controller" cannot list resource "deployments" in API group "apps" at the cluster scope E0828 20:26:56.863664 1 reflector.go:134] sigs.k8s.io/controller-runtime/pkg/cache/internal/informers_map.go:196: Failed to list *v1.Deployment: deployments.apps is forbidden: User "system:serviceaccount:openshift-migration:migration-controller" cannot list resource "deployments" in API group "apps" at the cluster scope E0828 20:26:57.865251 1 reflector.go:134] sigs.k8s.io/controller-runtime/pkg/cache/internal/informers_map.go:196: Failed to list *v1.Deployment: deployments.apps is forbidden: User "system:serviceaccount:openshift-migration:migration-controller" cannot list resource "deployments" in API group "apps" at the cluster scope E0828 20:26:58.866726 1 reflector.go:134] sigs.k8s.io/controller-runtime/pkg/cache/internal/informers_map.go:196: Failed to list *v1.Deployment: deployments.apps is forbidden: User "system:serviceaccount:openshift-migration:migration-controller" cannot list resource "deployments" in API group "apps" at the cluster scope E0828 20:26:59.868221 1 reflector.go:134] sigs.k8s.io/controller-runtime/pkg/cache/internal/informers_map.go:196: Failed to list *v1.Deployment: deployments.apps is forbidden: User "system:serviceaccount:openshift-migration:migration-controller" cannot list resource "deployments" in API group "apps" at the cluster scope E0828 20:27:00.869785 1 reflector.go:134] sigs.k8s.io/controller-runtime/pkg/cache/internal/informers_map.go:196: Failed to list *v1.Deployment: deployments.apps is forbidden: User "system:serviceaccount:openshift-migration:migration-controller" cannot list resource "deployments" in API group "apps" at the cluster scope E0828 20:27:01.871570 1 reflector.go:134] sigs.k8s.io/controller-runtime/pkg/cache/internal/informers_map.go:196: Failed to list *v1.Deployment: deployments.apps is forbidden: User "system:serviceaccount:openshift-migration:migration-controller" cannot list resource "deployments" in API group "apps" at the cluster scope E0828 20:27:02.873140 1 reflector.go:134] sigs.k8s.io/controller-runtime/pkg/cache/internal/informers_map.go:196: Failed to list *v1.Deployment: deployments.apps is forbidden: User "system:serviceaccount:openshift-migration:migration-controller" cannot list resource "deployments" in API group "apps" at the cluster scope E0828 20:27:03.874764 1 reflector.go:134] sigs.k8s.io/controller-runtime/pkg/cache/internal/informers_map.go:196: Failed to list *v1.Deployment: deployments.apps is forbidden: User "system:serviceaccount:openshift-migration:migration-controller" cannot list resource "deployments" in API group "apps" at the cluster scope
Using oc command to delete migplan will delete migmigration resource. But in UI can not delete migplan, 'delete' button is unclickable, @Roshni can you open a separate bug for UI. I change this status to Verified.
Done https://bugzilla.redhat.com/show_bug.cgi?id=1746899
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, 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/RHBA-2019:2922