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

pmm-admin start return status

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: 1.10.0, 1.14.0
    • Fix Version/s: None
    • Component/s: PMM Client
    • Labels:

      Description

      pmm-admin start -all should return correct status if some services are not started successfully

        

      [root@pxbtest ~]# pmm-admin stop --all
      OK, stopped 3 services.

       

       Simulate stale PMM service running, e.g. linux-metrics

      [root@pxbtest ~]# netstat -punta | grep 42000
      tcp 0 0 0.0.0.0:42000 0.0.0.0:* LISTEN 8521/nc
      tcp 138 0 10.0.3.88:42000 10.0.3.100:34826 ESTABLISHED -
      tcp 0 0 10.0.3.88:42000 10.0.3.100:34802 ESTABLISHED 8521/nc
      tcp 0 0 10.0.3.88:42000 10.0.3.100:34840 SYN_RECV -
      tcp 138 0 10.0.3.88:42000 10.0.3.100:34814 ESTABLISHED -
      [root@pxbtest ~]#

       

      When starting services it says all services are started:

      [root@pxbtest ~]# pmm-admin start --all
      OK, started 3 services.

       

      However, not all services are up.

      [root@pxbtest ~]# pmm-admin list
      pmm-admin 1.10.0
      PMM Server | 10.0.3.100
      Client Name | pxbtest
      Client Address | 10.0.3.88
      Service Manager | linux-upstart
      -------------- -------- ----------- -------- ----------------------------------------- ------------------------------------------
      SERVICE TYPE NAME LOCAL PORT RUNNING DATA SOURCE OPTIONS
      -------------- -------- ----------- -------- ----------------------------------------- ------------------------------------------
      mysql:queries pxbtest - YES root:***@unix(/var/lib/mysql/mysql.sock) query_source=slowlog, query_examples=true
      linux:metrics pxbtest 42000 NO -
      mysql:metrics pxbtest 42002 YES root:***@unix(/var/lib/mysql/mysql.sock)
      

       

      From error log we see:

      time="2018-05-12T00:11:13-04:00" level=info msg="Starting HTTPS server of 10.0.3.88:42000 ..." source="server.go:106"
      time="2018-05-12T00:11:13-04:00" level=fatal msg="listen tcp 10.0.3.88:42000: listen: address already in use" source="server.go:107"

        Smart Checklist

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                jericho.rivera Jericho Rivera
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: