Bug 1738840
| Summary: | Delete migplan should also delete migmigration resource | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Zihan Tang <zitang> |
| Component: | Migration Tooling | Assignee: | Jeff Ortel <jortel> |
| Status: | CLOSED ERRATA | QA Contact: | Zhang Cheng <chezhang> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 4.2.0 | CC: | chezhang, rpattath, sregidor, xjiang |
| Target Milestone: | --- | ||
| Target Release: | 4.2.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-10-16 06:35:15 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
Zihan Tang
2019-08-08 09:15:30 UTC
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. 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. 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 |