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

The force option (--force) in pmm-admin was not always working.

Details

    • Bug
    • Status: Done
    • Medium
    • Resolution: Done
    • 2.0.0, 2.0.1
    • 2.5.0
    • PMM Admin, PMM ManageD
    • 5
    • Yes
    • Yes
    • Yes

    Description

      Hi,

      I am adding PMM-Server using --force node after the node which has this
      host name was shut down.

      Specific Command:

      pmm-admin config --force --server-insecure-tls
      --server-url=https://admin:PASSWORD@$PMMSERVER
      --node-model=linode$LINODE_RAM --region=datacenter$LINODE_DATACENTERID
      --az=myaz

      The command fails with this command:

      Checking local pmm-agent status...
      pmm-agent is running.
      Registering pmm-agent on PMM Server...
      Failed to register pmm-agent on PMM Server: Node with instance
      "74.207.226.41" and region "datacenter4" already exists..

      This command is run on the different IP rather quickly after the server was
      shut down. Looks like there is some race condition

      At very least Error message is unclear - is it question of node which needs
      to be overwritten (by --force) or was the connected (not merely registered)
      node what was detected ?


      Peter Zaitsev, CEO, Percona

      DOC: Installing pmm Client section should have `--force' flag explained

      Attachments

        Activity

          People

            Unassigned Unassigned
            pz Peter Zaitsev
            Votes:
            1 Vote for this issue
            Watchers:
            9 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 - 6 hours, 44 minutes
                6h 44m

                Smart Checklist