Skip to content

Commit 0633c46

Browse files
(DOCSP-8051): enhance resource deployment status troubleshooting (#163)
* (DOCSP-8051): enhance resource deployment status troubleshooting * (DOCSP-8051): copy review feedback * DOCSP-8051: tech review feedback
1 parent a3c4924 commit 0633c46

File tree

3 files changed

+65
-21
lines changed

3 files changed

+65
-21
lines changed

source/includes/check-resource-status.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ The ``-w`` flag means "watch". With the "watch" flag set, the output
99
refreshes immediately when something changes until the status phase
1010
achieves the ``Running`` state.
1111

12-
If the deployment fails, see :doc:`/reference/troubleshooting`.
12+
See :doc:`/reference/troubleshooting` for information about the resource
13+
deployment statuses.

source/includes/steps-deploy-k8s-opsmgr.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,5 +530,6 @@ content: |
530530
url: http://om-backup-svc.dev.svc.cluster.local:8080
531531
version: 4.2.0
532532
533-
If the deployment fails, see :doc:`/reference/troubleshooting`.
533+
See :doc:`/reference/troubleshooting` for information about the resource
534+
deployment statuses.
534535
...

source/reference/troubleshooting.txt

Lines changed: 61 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,33 @@ Troubleshooting the |k8s-op-short|
1414

1515
.. _get-resource-status:
1616

17-
Get Status of MongoDB Resource
18-
------------------------------
17+
Get Status of a Deployed Resource
18+
---------------------------------
1919

20-
To find the status of a MongoDB Resource (replica set, sharded cluster, or standalone), invoke this command:
20+
To find the status of a resource deployed with the |k8s-op-short|,
21+
invoke one of the following commands:
2122

22-
.. code-block:: sh
23+
- For |onprem| resource deployments:
24+
25+
.. code-block:: sh
26+
27+
kubectl get <resource-name> -n <namespace> -o yaml
28+
29+
The ``status.applicationDatabase.phase`` field displays the
30+
Application Database resource deployment status. The
31+
``status.opsManager.phase`` field displays the |onprem| resource
32+
deployment status.
2333

24-
kubectl get mdb <resourcename> -n <namespace> -o yaml -w
34+
- For MongoDB resource deployments:
2535

26-
The command's response describes the status of the resource using the
27-
following key-value pairs:
36+
.. code-block:: sh
37+
38+
kubectl get mdb <resource-name> -n <namespace> -o yaml
39+
40+
The ``status.phase`` field displays the MongoDB resource deployment
41+
status.
42+
43+
The following key-value pairs describe the resource deployment statuses:
2844

2945
.. list-table::
3046
:header-rows: 1
@@ -33,9 +49,10 @@ following key-value pairs:
3349
* - Key
3450
- Value
3551

36-
* - message
37-
- Error message explaining why the resource is in a failed state.
38-
* - phase
52+
* - ``message``
53+
- Message explaining why the resource is in a ``Pending``
54+
or ``Failed`` state.
55+
* - ``phase``
3956
-
4057
.. list-table::
4158
:header-rows: 1
@@ -44,17 +61,42 @@ following key-value pairs:
4461
* - Status
4562
- Meaning
4663

47-
* - Pending
48-
- Resource is transitioning between two states.
49-
* - Running
50-
- Resource has completed reconciliation successfully.
51-
* - Failed
52-
- Resource had failures.
64+
* - ``Pending``
65+
- The |k8s-op-short| is unable to reconcile the resource
66+
deployment state. This happens when a reconciliation times
67+
out or if the |k8s-op-short| requires you to take action
68+
for the resource to enter a running state.
69+
70+
If a resource is pending because a reconciliation timed
71+
out, the |k8s-op-short| attempts to reconcile the resource
72+
state in 10 seconds.
5373

54-
* - lastTransition
74+
* - ``Reconciling``
75+
- The |k8s-op-short| is reconciling the resource state.
76+
77+
Resources enter this state after you create or update them
78+
or if the |k8s-op-short| is attempting to reconcile a
79+
resource previously in a ``Pending`` or ``Failed`` state.
80+
81+
The |k8s-op-short| attempts to reconcile the resource
82+
state in 10 seconds.
83+
84+
* - ``Running``
85+
- The resource is running properly.
86+
87+
* - ``Failed``
88+
- The resource is not running properly. The ``message``
89+
field provides additional details.
90+
91+
The |k8s-op-short| attempts to reconcile the resource
92+
state in 10 seconds.
93+
94+
* - ``lastTransition``
5595
- |iso8601-time| when the last reconciliation happened.
56-
* - link
96+
97+
* - ``link``
5798
- Deployment |url| in |mms|.
99+
58100
* - Resource specific fields
59101
- For descriptions of these fields, see
60102
:doc:`/reference/k8s-operator-specification`.
@@ -66,7 +108,7 @@ following key-value pairs:
66108

67109
.. code-block:: sh
68110

69-
kubectl get mdb my-replica-set -n developer -o yaml -w
111+
kubectl get mdb my-replica-set -n developer -o yaml
70112

71113
If ``my-replica-set`` is running, you should see:
72114

0 commit comments

Comments
 (0)