14.4 既知の問題

この項には、既知の問題に関する情報が含まれます。

スケール・アップ/ダウン後のdsreplication出力にUnknown状態のポッドが表示される

スケール・アップまたはスケール・ダウン時に、dsreplication出力に正しくないデータが表示されることがあります。次の例では、replicaCount4から3に変更されています。oud-ds-rs-3サーバーは、消失しているはずですが、<Unknown>として表示されています:
dc=example,dc=com - Replication Enabled
=======================================
 
Server                         : Entries : M.C. [1] : A.O.M.C. [2] : Port [3] : Encryption [4] : Trust [5] : U.C. [6] : Status [7] : ChangeLog [8] : Group ID [9] : Connected To [10]
-------------------------------:---------:----------:--------------:----------:----------------:-----------:----------:------------:---------------:--------------:-------------------------------
oud-ds-rs-3:<Unknown>          : --      : N/A      : --           : 1898     : Disabled       : --        : --       : Unknown    : --            : N/A          : --
[11]                           :         :          :              :          :                :           :          :            :               :              :
oud-ds-rs-0:1444               : 39135   : 0        : 0            : 1898     : Disabled       : Trusted   : --       : Normal     : Enabled       : 1            : oud-ds-rs-2:1898
                               :         :          :              :          :                :           :          :            :               :              : (GID=1)
oud-ds-rs-1:1444               : 39135   : 0        : 0            : 1898     : Disabled       : Trusted   : --       : Normal     : Enabled       : 1            : oud-ds-rs-1:1898
                               :         :          :              :          :                :           :          :            :               :              : (GID=1)
oud-ds-rs-2:1444               : 39135   : 0        : 0            : 1898     : Disabled       : Trusted   : --       : Normal     : Enabled       : 1            : oud-ds-rs-2:1898
                               :         :          :              :          :                :           :          :            :               :              : (GID=1)
 
Replication Server [12]       : RS #1 : RS #2 : RS #3 : RS #4
------------------------------:-------:-------:-------:------
oud-ds-rs-0:1898 (#1)  : --    : Yes   : Yes   : N/A
oud-ds-rs-1:1898 (#2)  : Yes   : --    : Yes   : N/A
oud-ds-rs-2:1898 (#3)  : Yes   : Yes   : --    : N/A
oud-ds-rs-3:1898 (#4)  : No    : No    : No    : --
この場合、次のステップを実行してサーバーを削除します:
  1. 次のコマンドを実行して、OUD Kubernetesポッドに移動します:
    kubectl --namespace <namespace> exec -it -c <containername> <podname> -- bash
    例:
    kubectl --namespace oudns exec -it -c oud-ds-rs oud-ds-rs-0 -- bash
    これにより、ポッドに移動します:
    [oracle@oud-ds-rs-0 oracle]$
  2. ポッド内に移動したら、次のコマンドを実行してパスワード・ファイルを作成します:
    echo <ADMIN_PASSWORD> > /tmp/adminpassword.txt
  3. 次のコマンドを実行して、replicationPortを削除します:
    /u01/oracle/oud/bin/dsreplication disable --hostname localhost --port $adminConnectorPort --adminUID admin --trustAll --adminPasswordFile /tmp/adminpassword.txt --no-prompt --unreachableServer oud-ds-rs-3:$replicationPort
    出力は次のようになります:
    Establishing connections and reading configuration ........ Done.
     
    The following errors were encountered reading the configuration of the
    existing servers:
    Could not connect to the server oud-ds-rs-3:1444.  Check that the
    server is running and that is accessible from the local machine.  Details:
    oud-ds-rs-3:1444
    The tool will try to update the configuration in a best effort mode.
     
    Removing references to replication server oud-ds-rs-3:1898 ..... Done.
  4. 次のコマンドを実行して、adminConnectorPortを削除します:
    /u01/oracle/oud/bin/dsreplication disable --hostname localhost --port $adminConnectorPort --adminUID admin --trustAll --adminPasswordFile /tmp/adminpassword.txt --no-prompt --unreachableServer oud-ds-rs-3:$adminConnectorPort
    出力は次のようになります:
    Establishing connections and reading configuration ...... Done.
     
    Removing server oud-ds-rs-3:1444 from the registration information ..... Done.
  5. パスワード・ファイルを削除します:
    rm /tmp/adminpassword.txt