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

pmm-agent (PMM2) error when negative time drift

    Details

    • Type: Bug
    • Status: Done
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 2.0.0-beta2
    • Fix Version/s: 2.0.0-beta4
    • Component/s: PMM Client
    • Labels:
      None

      Description

      Failing state due to bug (on one of my hosts with small but negative time drift):

      # pmm-admin status
      time: unknown unit - in duration 0.-00004591s
      
      # pmm-admin --version
      ProjectName: pmm-admin
      Version: 2.0.0
      PMMVersion: 2.0.0
      Timestamp: 2019-06-14 12:41:52 (UTC)
      FullCommit: 57562d9eea0580dca265e3797342e4bdf420ddd9

       Expected (on one of my good servers):

      # pmm-admin status
      Agent ID: /agent_id/e7fe9084-4209-4f84-ad25-13a97f14df77
      Node ID : /node_id/3d017e1d-0b0c-44d4-8f65-d8c0a09ec950PMM Server:
              URL    : https://pmm.example.com:8443/
              Version: 2.0.0-HEAD-5a977f6PMM-agent:
              Connected : true
              Time drift: 4.162779ms
              Latency   : 400.612µsAgents:
              /agent_id/5d729d02-f63e-4de9-a80b-684cb93bf874 MYSQLD_EXPORTER RUNNING 
              /agent_id/633cd874-c1e5-49b5-a86f-460397dd56d6 QAN_MYSQL_PERFSCHEMA_AGENT RUNNING 
              /agent_id/c680bda2-d989-45ff-9d5c-a76814c28e6e NODE_EXPORTER RUNNING

      To reproduce, you should just have to setup a negative time skew between the hosts (central PMM server vs. PMM agent client server), and then invoke `pmm status`

        Smart Checklist

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  jhuber Joshua Huber
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - Not Specified
                    Not Specified
                    Logged:
                    Time Spent - 2 hours, 5 minutes
                    2h 5m