Validating a Local Edition Cluster

You can check the progress of the deployment using the following steps:

  1. Check the running pods by running the following:
    $ kubectl get pods
  2. Log in to the CM container (the following command uses a sample container ID of "5a527d7ef2ab" for the CM container).
    [root@5a527d7ef2abbuilder]#
    [root@5a527d7ef2abbuilder]# alias cm=clustermanager
    [root@5a527d7ef2abbuilder]# cm ls components
    Using cluster [Tibco Mashery Local Reference Cluster]
    Using Zone [local]
    Component ID                          Type            Name      Status      Last Heartbeat Received      Host        Service Port(s)            
    ------------------------------------- --------------- ------ ----------- ----------------------------  ------------ ---------------------------
    b38efc8f-bffa-4a68-bcf5-a21370434b78  cache           cache    ACTIVE      Mar 12 2020 08:59:09 +0000  10.0.0.12     908011212,11211,11213,11214,11215,11216
    f1d75242-4c67-4eb9-a8b3-63195689410c  configmanager   cm       RESOLVED    Mar 12 2020 08:59:25 +0000  10.0.0.6      90807080
    11261544-ef93-4d1f-8da9-af71b1593763  logservice      log      ACTIVE      Mar 12 2020 08:59:30 +0000  10.0.0.8      908024224
    66157d26-43b5-40ff-aefe-b1f52aa2f44b  nosql           nosql    ACTIVE      Mar 12 2020 08:59:09 +0000  10.0.0.3      90809042
    fa66dcbb-35af-4fb3-bc87-09382c0f20ef  sql             sql      ACTIVE      Mar 12 2020 08:59:34 +0000  10.0.0.10     90803306
    84792b97-b4ba-4a28-b7f4-1b5cfbd6c76a  trafficmanager  tm       STANDBY     Mar 12 2020 08:59:28 +0000  10.0.0.14     90808080
  3. Check the components and their states by running the following commands:
    [root@5a527d7ef2abbuilder]# alias cm=clustermanager
    [root@5a527d7ef2abbuilder]# cm ls components
    Using cluster [Tibco Mashery Local Reference Cluster]
    Using Zone [local]
    Component ID                          Type            Name      Status      Last Heartbeat Received      Host        Service Port(s)            
    ------------------------------------- --------------- ------ ----------- ----------------------------  ------------ ---------------------------
    b38efc8f-bffa-4a68-bcf5-a21370434b78  cache           cache    ACTIVE      Mar 12 2020 08:59:09 +0000  10.0.0.12     908011212,11211,11213,11214,11215,11216
    f1d75242-4c67-4eb9-a8b3-63195689410c  configmanager   cm       RESOLVED    Mar 12 2020 08:59:25 +0000  10.0.0.6      90807080
    11261544-ef93-4d1f-8da9-af71b1593763  logservice      log      ACTIVE      Mar 12 2020 08:59:30 +0000  10.0.0.8      908024224
    66157d26-43b5-40ff-aefe-b1f52aa2f44b  nosql           nosql    ACTIVE      Mar 12 2020 08:59:09 +0000  10.0.0.3      90809042
    fa66dcbb-35af-4fb3-bc87-09382c0f20ef  sql             sql      ACTIVE      Mar 12 2020 08:59:34 +0000  10.0.0.10     90803306
    84792b97-b4ba-4a28-b7f4-1b5cfbd6c76a  trafficmanager  tm       STANDBY     Mar 12 2020 08:59:28 +0000  10.0.0.14     90808080
  4. Check the status of the overall cluster and see what action is pending:
    [root@5a527d7ef2abbuilder]# cm cluster status
    *** Checking the status of Cluster 'Tibco Mashery Local Reference Cluster'***
    *** Checking the status of zone 'local'***
    TML component [66157d26-43b5-40ff-aefe-b1f52aa2f44b] of type [nosql] found with status [ACTIVE] on Host IP [10.0.0.3]..
    TML component [11261544-ef93-4d1f-8da9-af71b1593763] of type [logservice] found with status [ACTIVE] on Host IP [10.0.0.8]..
    TML component [fa66dcbb-35af-4fb3-bc87-09382c0f20ef] of type [sql] found with status [ACTIVE] on Host IP [10.0.0.10]..
    TML component [b38efc8f-bffa-4a68-bcf5-a21370434b78] of type [cache] found with status [ACTIVE] on Host IP [10.0.0.12]..
    TML component [84792b97-b4ba-4a28-b7f4-1b5cfbd6c76a] of type [trafficmanager] found with status [STANDBY] on Host IP [10.0.0.14]. See details below
    Component ID                          Component Name       Component IP         Component Status     Pending Activity     Error
    ------------------------------------- -------------------- -------------------- -------------------- -------------------- ------------------------------
    84792b97-b4ba-4a28-b7f4-1b5cfbd6c76a  tm                   10.0.0.14Not Ready
  5. After some time, the cluster status should turn READY. You can check the last failing component for its individual status as follows. In this case, the Traffic Manager is running on 10.0.0.14 IP.
    [root@5a527d7ef2abbuilder]# curl http://10.0.0.14:9080/container/status
    {
      "tmgcId": "84792b97-b4ba-4a28-b7f4-1b5cfbd6c76a",
      "ip": "10.0.0.14",
      "name": "tm",
      "pending_activity": "checking component status ...",
      "status": "Ready"
    }
  6. As seen above, the Traffic Manager has a Ready status despite what the pending activity indicates. The pending activity was the last successful activity performed by the container agent.
  7. If the status indicates error, check the log-service container for corresponding errors.
    1. Log in to the log-service container.
    2. Check the appropriate log files in the folders under the /mnt/data folder.

      For example, to check any errors in the CM container, check the files in the /mnt/data/tml-cm folder.