Get traces for Crossplane reconciliation
If a Custom Resource of the Cennso Database extension, such as the database operator or the database instance, is not ready after applying to the cluster, you can use the crossplaneOpens in a new tab utility to get tracing of the events related to this resource.
You can download this utility using the following command:
The following section explains how to inspect Crossplane's reconciliation of a resource tree and check why a composite resource is stuck in a pending or error state.
Step-by-step trace
The crossplane beta trace command shows the tree of resources that Crossplane creates for a Custom Resource, together with the status of every resource in the tree. To trace a Custom Resource, execute the following steps:
List the resources you are interested in. Use the resource name that corresponds to the Custom Resource:
To get the list of all Cluster-scoped resources, use the following command:
bashTo get the list of all Namespace-scoped resources, use the following command:
bashRun the trace command for the resource you are interested in and capture the logs of events, references, and status updates.
To trace a Cluster-scoped resource, use the following command:
bashTo trace a Namespaced resource, use the following command:
bashCheck the status of the objects created by the composition. If there are errors in the output of the
crossplanecommand above, you can find more information by inspecting the object that returned an error.-
A Cluster-scoped resource creates Cluster-scoped objects. To inspect such an object, use the following command:
bash -
A Namespaced resource creates Namespaced objects in the namespace of the Custom Resource. To inspect such an object, use the following command:
bash
-