|
| 1 | +// Module included in the following assemblies: |
| 2 | +// |
| 3 | +// * edge_computing/ztp-migrate-clusterinstance.adoc |
| 4 | + |
| 5 | +:_mod-docs-content-type: PROCEDURE |
| 6 | +[id="ztp-clusterinstance-troubleshooting_{context}"] |
| 7 | += Troubleshooting the migration to ClusterInstance CRs |
| 8 | + |
| 9 | +Consider the following troubleshooting steps if you encounter issues during the migration from `SiteConfig` CRs to `ClusterInstance` CRs. |
| 10 | + |
| 11 | +.Procedure |
| 12 | + |
| 13 | +* Verify that the SiteConfig Operator rendered all the required deployment resources by running the following command: |
| 14 | ++ |
| 15 | +[source,bash] |
| 16 | +---- |
| 17 | +$ oc -n <target_cluster> get clusterinstances <target_cluster> -ojson | jq .status.manifestsRendered |
| 18 | +---- |
| 19 | ++ |
| 20 | +.Example output |
| 21 | +[source,json] |
| 22 | +---- |
| 23 | +[ |
| 24 | + { |
| 25 | + "apiGroup": "extensions.hive.openshift.io/v1beta1", |
| 26 | + "kind": "AgentClusterInstall", |
| 27 | + "lastAppliedTime": "2025-01-13T11:10:52Z", |
| 28 | + "name": "sno1", |
| 29 | + "namespace": "sno1", |
| 30 | + "status": "rendered", |
| 31 | + "syncWave": 1 |
| 32 | + }, |
| 33 | + { |
| 34 | + "apiGroup": "metal3.io/v1alpha1", |
| 35 | + "kind": "BareMetalHost", |
| 36 | + "lastAppliedTime": "2025-01-13T11:10:53Z", |
| 37 | + "name": "sno1.example.com", |
| 38 | + "namespace": "sno1", |
| 39 | + "status": "rendered", |
| 40 | + "syncWave": 1 |
| 41 | + }, |
| 42 | + { |
| 43 | + "apiGroup": "hive.openshift.io/v1", |
| 44 | + "kind": "ClusterDeployment", |
| 45 | + "lastAppliedTime": "2025-01-13T11:10:53Z", |
| 46 | + "name": "sno1", |
| 47 | + "namespace": "sno1", |
| 48 | + "status": "rendered", |
| 49 | + "syncWave": 1 |
| 50 | + }, |
| 51 | + { |
| 52 | + "apiGroup": "agent-install.openshift.io/v1beta1", |
| 53 | + "kind": "InfraEnv", |
| 54 | + "lastAppliedTime": "2025-01-13T11:10:53Z", |
| 55 | + "name": "sno1", |
| 56 | + "namespace": "sno1", |
| 57 | + "status": "rendered", |
| 58 | + "syncWave": 1 |
| 59 | + }, |
| 60 | + { |
| 61 | + "apiGroup": "agent-install.openshift.io/v1beta1", |
| 62 | + "kind": "NMStateConfig", |
| 63 | + "lastAppliedTime": "2025-01-13T11:10:53Z", |
| 64 | + "name": "sno1.example.com", |
| 65 | + "namespace": "sno1", |
| 66 | + "status": "rendered", |
| 67 | + "syncWave": 1 |
| 68 | + }, |
| 69 | + { |
| 70 | + "apiGroup": "agent.open-cluster-management.io/v1", |
| 71 | + "kind": "KlusterletAddonConfig", |
| 72 | + "lastAppliedTime": "2025-01-13T11:10:53Z", |
| 73 | + "name": "sno1", |
| 74 | + "namespace": "sno1", |
| 75 | + "status": "rendered", |
| 76 | + "syncWave": 2 |
| 77 | + }, |
| 78 | + { |
| 79 | + "apiGroup": "cluster.open-cluster-management.io/v1", |
| 80 | + "kind": "ManagedCluster", |
| 81 | + "lastAppliedTime": "2025-01-13T11:10:53Z", |
| 82 | + "name": "sno1", |
| 83 | + "status": "rendered", |
| 84 | + "syncWave": 2 |
| 85 | + } |
| 86 | +] |
| 87 | +---- |
0 commit comments