| 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:
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. |