Uploaded image for project: 'Percona Monitoring and Management'
  1. Percona Monitoring and Management
  2. PMM-975

pmm-admin list and pmm-admin restart --all shows different count of services

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Low
    • Resolution: Unresolved
    • Affects Version/s: 1.1.4, 1.14.1
    • Fix Version/s: None
    • Component/s: PMM Client
    • Labels:
    • Story Points:
      1

      Description

      Hi dear all,
      After adding 1 instance:

      $ ~/percona-qa/pmm-tests/pmm-framework.sh --addclient=ps,1
      User 'admin' is already present in MySQL server. Please create Orchestrator user manually.
      [linux:metrics] OK, now monitoring this system.
      [mysql:metrics] OK, now monitoring MySQL metrics using DSN root:***@unix(/tmp/PS_NODE_1.sock)
      [mysql:queries] OK, now monitoring MySQL queries from perfschema using DSN root:***@unix(/tmp/PS_NODE_1.sock)
      
      
      [shahriyar.rzaev@qaserver-02 Percona_Servers]$ sudo pmm-admin restart --all
      OK, restarted 3 services.
      [shahriyar.rzaev@qaserver-02 Percona_Servers]$ sudo pmm-admin stop --all
      OK, stopped 3 services.
      [shahriyar.rzaev@qaserver-02 Percona_Servers]$ sudo pmm-admin start --all
      OK, started 3 services.

      So it is showing 3 services as added.
      Removing all instances and adding 2 instances:

      $ ~/percona-qa/pmm-tests/pmm-framework.sh --addclient=ps,2
      User 'admin' is already present in MySQL server. Please create Orchestrator user manually.
      [linux:metrics] OK, now monitoring this system.
      [mysql:metrics] OK, now monitoring MySQL metrics using DSN root:***@unix(/tmp/PS_NODE_1.sock)
      [mysql:queries] OK, now monitoring MySQL queries from perfschema using DSN root:***@unix(/tmp/PS_NODE_1.sock)
      User 'admin' is already present in MySQL server. Please create Orchestrator user manually.
      [linux:metrics] OK, already monitoring this system.
      [mysql:metrics] OK, now monitoring MySQL metrics using DSN root:***@unix(/tmp/PS_NODE_2.sock)
      [mysql:queries] OK, now monitoring MySQL queries from perfschema using DSN root:***@unix(/tmp/PS_NODE_2.sock)
      
      [shahriyar.rzaev@qaserver-02 Percona_Servers]$ sudo pmm-admin restart --all
      OK, restarted 4 services.
      
      

      It is showing 4 instances but from pmm-admin list it is clear there are 5 instances.

      $ sudo pmm-admin list
      pmm-admin 1.1.4
      
      PMM Server      | 10.10.6.202 (insecure SSL, password-protected)
      Client Name     | qaserver-02.ci.percona.com
      Client Address  | 10.10.6.202 
      Service Manager | linux-systemd
      
      -------------- ---------- ----------- -------- ----------------------------------- ---------------------------------------------
      SERVICE TYPE   NAME       LOCAL PORT  RUNNING  DATA SOURCE                         OPTIONS                                      
      -------------- ---------- ----------- -------- ----------------------------------- ---------------------------------------------
      mysql:queries  PS_NODE-1  -           YES      root:***@unix(/tmp/PS_NODE_1.sock)  query_source=perfschema, query_examples=true 
      mysql:queries  PS_NODE-2  -           YES      root:***@unix(/tmp/PS_NODE_2.sock)  query_source=perfschema, query_examples=true 
      linux:metrics  PS_NODE-1  42000       YES      -                                                                                
      mysql:metrics  PS_NODE-1  42002       YES      root:***@unix(/tmp/PS_NODE_1.sock)                                               
      mysql:metrics  PS_NODE-2  42003       YES      root:***@unix(/tmp/PS_NODE_2.sock)
      

        Smart Checklist

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                shahriyar.rzayev Shahriyar Rzayev (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - Not Specified
                  Not Specified
                  Logged:
                  Time Spent - 3 minutes
                  3m