Uploaded image for project: 'PuppetDB'
  1. PuppetDB
  2. PDB-4682

PuppetDB sync status doesn't get updated when finished

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: PDB 5.2.13
    • Fix Version/s: PDB 6.10.0, PDB 5.2.14
    • Component/s: None
    • Labels:
      None
    • Template:
    • Acceptance Criteria:
      • Sync status is updated to finished when sync ends
      • puppet infra status output is back to the expected
    • Team:
      HA
    • Story Points:
      2
    • Sprint:
      HA Team 2020-04-22 (SS 4/15), HA Team 2020-05-05
    • Release Notes:
      Not Needed
    • QA Risk Assessment:
      Needs Assessment

      Description

      In an fresh HA install of 2018.1 with only one node the `puppet infra status` command outputs

      PuppetDB: Running on Primary Master Replica, https://shifty-syndrome.delivery.puppetlabs.net:8081/pdb
          Info: Transferring 1 catalogs
          Info: Transferring 1 facts
          Info: Transferring 1 reports
      

      when it is expected to output something like

      PuppetDB: Running on Primary Master, https://prewar-aunt.delivery.puppetlabs.net:8081/pdb
          Info: Last sync successfully completed 84 seconds ago (at 2020-04-02T18:26:45.702Z)
      

      the puppet infra status pulls information from the PuppetDB status endpoint, which also appears to not get updated.

      [root@prewar-aunt ~]# curl -k https://shifty-syndrome.delivery.puppetlabs.net:8081/status/v1/services/puppetdb-status | python -m json.toolssage":"Transferring 1 reports"}],"service_name":"puppetdb-status"}[rpet  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                       Dload  Upload   Total   Spent    Left  Speed
      100   628  100   628    0     0   3895      0 --:--:-- --:--:-- --:--:--  3900
      {
          "active_alerts": [
              {
                  "message": "Transferring 1 catalogs",
                  "severity": "info"
              },
              {
                  "message": "Transferring 1 facts",
                  "severity": "info"
              },
              {
                  "message": "Transferring 1 reports",
                  "severity": "info"
              }
          ],
          "detail_level": "info",
          "service_name": "puppetdb-status",
          "service_status_version": 1,
          "service_version": "5.2.13-20200306_164346-g6063f2b",
          "state": "running",
          "status": {
              "maintenance_mode?": false,
              "queue_depth": 0,
              "rbac_status": "running",
              "read_db_up?": true,
              "sync_status": {
                  "entity_status": {
                      "catalogs": {
                          "phase": "transfer",
                          "total": 1
                      },
                      "factsets": {
                          "phase": "transfer",
                          "total": 1
                      },
                      "reports": {
                          "phase": "transfer",
                          "total": 1
                      }
                  },
                  "state": "syncing"
              },
              "write_db_up?": true
          }
      }
      

        Attachments

          Activity

            People

            Assignee:
            austin.blatt Austin Blatt
            Reporter:
            austin.blatt Austin Blatt
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support