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.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: 2.0.0, 2.0.1
    • Fix Version/s: 2.5.0
    • Component/s: PMM Admin, PMM ManageD
    • Labels:
    • Story Points:
      5
    • Sprint:
      Platform Sprint 12
    • Needs Review:
      Yes
    • Needs QA:
      Yes
    • Needs Doc:
      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

            Assignee:
            Unassigned
            Reporter:
            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