Jira (PDB-4590) Store report command failing to store all report data

4 views
Skip to first unread message

Zachary Kent (JIRA)

unread,
Nov 15, 2019, 7:03:03 PM11/15/19
to puppe...@googlegroups.com
Zachary Kent created an issue
 
PuppetDB / Bug PDB-4590
Store report command failing to store all report data
Issue Type: Bug Bug
Assignee: Unassigned
Created: 2019/11/15 4:02 PM
Priority: Normal Normal
Reporter: Zachary Kent

There seems to be a bug where all information about reports isn't being stored when a store reports command is submitted.

Submitting the following 'store report' command succeeds but has differing behavior between the 6.3.x and master branches when querying for the data.

POST http://127.0.0.1:8080/pdb/cmd/v1
Content-Type: application/json
{
"command": "store report",
"version": 8,
"payload": {
             "certname": "foo-bar",
             "environment": "foo-bar",
             "puppet_version": "6",
             "report_format": 1,
             "configuration_version": "5",
             "start_time": "2021-01-01T12:10:00-03:00",
             "end_time": "2021-01-01T12:20:00-03:00",
             "producer_timestamp": "2021-01-01T12:10:00-03:00",
             "producer": "dev",
             "resources": [],
             "metrics": [],
             "logs": [],
             "transaction_uuid": "aaaaaaaa-1111-1111-aaaa-111111111111",
             "catalog_uuid": "5ea3a70b-84c8-426c-813c-dd6492fb829b",
             "code_id": "12345",
             "job_id": "12345",
             "cached_catalog_status": "not_used",
             "status": "used",
             "noop": false,
             "corrective_change": true,
             "noop_pending": false
           }
}

Running the query below will illustrate the issue:

POST http://127.0.0.1:8080/pdb/query/v4
Content-Type: application/json
{
  "query": "nodes {certname = \"foo-bar\"}"
}

Response from master:

  {
    "deactivated": null,
    "latest_report_hash": null,
    "facts_environment": null,
    "cached_catalog_status": null,
    "report_environment": null,
    "latest_report_corrective_change": null,
    "catalog_environment": null,
    "facts_timestamp": null,
    "latest_report_noop": null,
    "expired": null,
    "latest_report_noop_pending": null,
    "report_timestamp": null,
    "certname": "foo-bar",
    "catalog_timestamp": null,
    "latest_report_job_id": null,
    "latest_report_status": null
  }

Response on 6.3.x:

  {
    "deactivated": null,
    "latest_report_hash": "e8785ce8d0257322944cc3da7bab2b8f6c643911",
    "facts_environment": null,
    "cached_catalog_status": "not_used",
    "report_environment": "foo-bar",
    "latest_report_corrective_change": null,
    "catalog_environment": null,
    "facts_timestamp": null,
    "latest_report_noop": false,
    "expired": null,
    "latest_report_noop_pending": false,
    "report_timestamp": "2021-01-01T15:20:00.000Z",
    "certname": "foo-bar",
    "catalog_timestamp": null,
    "latest_report_job_id": "12345",
    "latest_report_status": "used"
  }

 
I checked the table directly and confirmed that at least in certnames the data from the "store report" command isn't being stored on master but is present on 6.3.x.

 

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Zachary Kent (JIRA)

unread,
Nov 18, 2019, 7:04:04 PM11/18/19
to puppe...@googlegroups.com

Zachary Kent (JIRA)

unread,
Jan 10, 2020, 1:35:04 PM1/10/20
to puppe...@googlegroups.com
Zachary Kent updated an issue
Change By: Zachary Kent
Fix Version/s: PDB 6.7.4
Reply all
Reply to author
Forward
0 new messages