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

Use /v1/Updates/Perform API to update PMM Server

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Done
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.0-rc2
    • Component/s: QAN App
    • Labels:
      None

      Description

      Follow API test implementation: https://github.com/Percona-Lab/pmm-api-tests/blob/b2f90c9829b2e3ac506e13c630143410543de5bb/server/updates_test.go#L91-L214

      1. Call /v1/Updates/Start API to receive authentication token and initial log offset.
      2. Call /v1/Updates/Status API with authentication token and current log offset. Add received lines to log, update current log offset with a received one. Stop, wait for user confirmation (they should push a button) and do a full page reload if done == true.
      3. Call /v1/Updates/Status immediately after the previous call returned data. (Server will block response until some data is available).
      4. Call /v1/Updates/Status with 500ms if the previous call returned any error: network error, nginx error, 500 API response, any other error.
      5. Stop after 600 (2 rps * 5 minutes) consecutive errors. Reset error counter when a non-error response is received.

        Smart Checklist

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                Unassigned
                Reporter:
                alexey.palazhchenko Alexey Palazhchenko
                Votes:
                0 Vote for this issue
                Watchers:
                1 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 days, 2 hours, 20 minutes
                    2d 2h 20m