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

PMM Upgrade from old 2.x versions to 2.2.0 shows Grafana Update Error and needs a manual refresh

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: High
    • Resolution: Done
    • Affects Version/s: 2.2.0
    • Fix Version/s: 2.2.1
    • Component/s: PMM Server
    • Labels:
      None
    • Story Points:
      5
    • Sprint:
      Platform Sprint 6, Platform Sprint 7
    • Needs Review:
      Yes
    • Needs QA:
      Yes
    • Needs Packaging:
      No
    • Needs Doc:
      Yes

      Description

      On trying to Upgrade from PMM 2.x (old version) to PMM 2.2.0 when the users click on `OK`  button on successful update popup as soon as it appears, we have this race condition, and on reload we see a Grafana update error. 

      This error is caused because "pmm-update / pmm-managed part does not expect that Grafana will be restarted by dashboards upgrade script"

      Current workaround to this problem is to click on Reload button or refresh the page and the update works fine. 


       

      To test it:

      • replace version inside /srv/grafana/PERCONA_DASHBOARDS_VERSION with some previous like 2.0.0;
      • run supervisorctl tail -f dashboard-upgrade;
      • alt+click on update button to force update process;
      • log window should stay on screen for a few seconds and wait for dashboard-upgrade to finish;
      • check dashboard-upgrade logs.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            puneet.kala Puneet Kala
            Votes:
            0 Vote for this issue
            Watchers:
            2 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, 58 minutes
                6h 58m

                  Smart Checklist