Skip to content

Commit b2f4f44

Browse files
JuliaMongojwilliams-mongo
authored andcommitted
(DOCSP-13670) Production Notes Troubleshooting, correct version of MDB when running OM in local mode (#551)
* (DOCSP-13670) Production Notes Troubleshooting, correct version of MDB when running OM in local mode * Address tech review
1 parent e3b3410 commit b2f4f44

File tree

2 files changed

+63
-16
lines changed

2 files changed

+63
-16
lines changed

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

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -274,20 +274,24 @@ content: |
274274
275275
---
276276

277-
title: "Copy the MongoDB installation archive to the |onprem| Persistent Volume for each |onprem| :opsmgrkube:`replica <spec.replicas>` you deployed."
277+
title: "Copy the MongoDB archive to the |onprem| Persistent Volume."
278278
level: 4
279279
ref: copy-mdb-archive
280280
stepnum: 10
281281
content: |
282-
282+
283+
Copy the MongoDB archive for each MongoDB version you intend to deploy
284+
to the |onprem| Persistent Volume.
285+
283286
The commands that you use depend on the environment to which you
284-
deployed the operator:
287+
deployed the |k8s-op-short|:
285288
286289
.. note::
287290
288-
Only copy the MongoDB installation tarballs to ``Replica 1`` and
289-
beyond if you deployed more than one |onprem| :opsmgrkube:`replica
290-
<spec.replicas>`.
291+
If you deployed more than one |onprem|
292+
:opsmgrkube:`replica <spec.replicas>`, copy only the MongoDB
293+
installation ``tarball`` packages to ``Replica 1`` and
294+
beyond.
291295
292296
.. tabs::
293297
@@ -317,7 +321,7 @@ content: |
317321
318322
#. If you deployed a version of |onprem| from 4.4.0 up to and
319323
including 4.4.3, copy the MongoDB
320-
Database Tools installation tarball to the |onprem|
324+
Database Tools installation ``tarball`` to the |onprem|
321325
PersistentVolume. For example, to copy the
322326
``{+mdbtools-version+}`` release:
323327
@@ -341,7 +345,7 @@ content: |
341345
To copy the MongoDB installation archive to the
342346
|onprem| PersistentVolume:
343347
344-
a. Copy the MongoDB Server installation tarball to the
348+
a. Copy the MongoDB Server installation ``tarball`` to the
345349
|onprem| PersistentVolume. For example, to copy the ``4.4.0``
346350
release:
347351
@@ -361,7 +365,7 @@ content: |
361365
362366
#. If you deployed a version of |onprem| from 4.4.0 up to and
363367
including 4.4.3, copy the MongoDB
364-
Database Tools installation tarball to the |onprem|
368+
Database Tools installation ``tarball`` to the |onprem|
365369
PersistentVolume. For example, to copy the
366370
``{+mdbtools-version+}`` release:
367371
@@ -393,7 +397,7 @@ content: |
393397
- :doc:`/tutorial/create-project-using-configmap`
394398
395399
#. Deploy a :ref:`MongoDB database resource <k8s-deploy-mdb-resources>`
396-
in the same namespace to which you deployed |onprem|.
400+
in the same namespace to which you deployed |onprem|.
397401
Ensure that you:
398402
399403
i. Match the ``spec.opsManager.configMapRef.name`` of the resource
@@ -402,8 +406,8 @@ content: |
402406
the secret you created that contains an |onprem| programmatic
403407
API key pair.
404408
405-
{+mdbagent+}\s running in MongoDB database resource containers that
406-
you create with the |k8s-op-short| download the installation archives
407-
from |onprem| instead of from the Internet.
409+
{+mdbagent+}\s run in MongoDB database resource containers that
410+
you create with the |k8s-op-short|. Download the installation archives
411+
from |onprem| instead of downloading them from the Internet.
408412
409413
...

source/reference/troubleshooting.txt

Lines changed: 46 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -633,9 +633,9 @@ When you :ref:`configure TLS
633633
that you specify a valid certificate.
634634

635635
If you don't specify the correct Domain Name for each |tls| certificate,
636-
the |k8s-op-short| logs may contain an error message similar to the
637-
following, where ``foo.svc.local`` is the incorrectly-specified Domain
638-
Name for the cluster member's Pod:
636+
the |k8s-op-short| :ref:`logs <review-k8s-op-logs>` may contain an error
637+
message similar to the following, where ``foo.svc.local`` is the
638+
incorrectly-specified Domain Name for the cluster member's Pod:
639639

640640
.. code-block:: sh
641641
:copyable: false
@@ -658,3 +658,46 @@ To check whether you have correctly configured |tls| certificates:
658658
To learn more about |tls| certificate requirements, see
659659
:ref:`TLS prerequisites <secure-tls-prerequisites>`.
660660

661+
Verify the MongoDB Version when Running in Local Mode
662+
-----------------------------------------------------
663+
664+
MongoDB ``CustomResource`` may fail to reach a ``Running`` state
665+
if |onprem| is running in :ref:`Local Mode
666+
<deploy-om-container-local-mode>` and you specify either a version of MongoDB
667+
that doesn't exist, or a valid version of MongoDB for which
668+
|onprem| deployed in local mode did not download a corresponding MongoDB archive.
669+
670+
If you specify a MongoDB version that doesn't exist, or a valid MongoDB
671+
version for which |onprem| coud not download a MongoDB archive, then
672+
even though the Pods can reach the ``READY`` state,
673+
the |k8s-op-short| :ref:`logs <review-k8s-op-logs>` contain an
674+
error message similar to the following:
675+
676+
.. code-block:: sh
677+
:copyable: false
678+
679+
Failed to create/update (Ops Manager reconciliation phase):
680+
Status: 400 (Bad Request), Detail:
681+
Invalid config: MongoDB version 4.10.1 is not available.
682+
683+
This may mean that the {+mdbagent+} could not successfully download a
684+
corresponding MongoDB binary to the :file:`/var/lib/mongodb-mms-automation`
685+
directory. In cases when the {+mdbagent+} can download the MongoDB
686+
binary for the specified MongoDB version successfully, this directory
687+
contains a MongoDB binary folder, such as :file:`mongodb-linux-x86_64-4.4.0`.
688+
689+
To check whether a MongoDB binary folder is present:
690+
691+
1. Specify the Pod's name to this command:
692+
693+
.. code-block:: sh
694+
695+
kubectl exec --stdin --tty $<pod_name> /bin/sh
696+
697+
2. Check whether a MongoDB binary folder is present in the
698+
:file:`/var/lib/mongodb-mms-automation` directory.
699+
700+
3. If you cannot locate a MongoDB binary folder,
701+
`copy the MongoDB archive
702+
<../tutorial/deploy-om-container-local-mode.html#copy-the-mongodb-archive-to-the-onprem-persistent-volume>`__
703+
into the |onprem| Persistent Volume for each deployed |onprem| replica set.

0 commit comments

Comments
 (0)