IBM Support

Data Reporter Operator (DRO). Job rhm-meter-report-upload keeps failing in Namespace redhat-marketplace.

Troubleshooting


Problem

Data Reporter Operator (DRO). Pod job rhm-meter-report-upload keeps failing in Namespace redhat-marketplace.
Pod keep failing on each hour run.
Issue is mainly reported in a MAS Air Gapped environment.
Error: error running task: token is malformed: token contains an invalid number of segments

Symptom

Error reported in rhm-meter-report-upload-xxxxxxxxx_reporter.log
Error reported in rhm-meter-report-upload-xxxxxxxxx_reporter.log

FIPS System Report
Host running in FIPS mode ...No
FIPS-capable crypto library ...Yes!
FIPS-capable Go binary ...Yes!
2024-05-08T03:03:01.204Z	INFO	reconcile	upload target	{"target set to": "redhat-marketplace"}
2024-05-08T03:03:01.207Z	INFO	reporter	reconcile report start
2024-05-08T03:03:01.222Z	INFO	reporter	report: meter reports ready to run	{"reports": ""}
2024-05-08T03:03:01.222Z	INFO	reporter	reconcile upload start
2024-05-08T03:03:01.228Z	INFO	reporter	skipping for reason	{"report": "meter-report-2024-05-06", "reason": "Disconn"}
2024-05-08T03:03:01.241Z	INFO	reporter	skipping for reason	{"report": "meter-report-2024-05-07", "reason": "Disconn"}
2024-05-08T03:03:01.253Z	INFO	reporter	skipping for reason	{"report": "meter-report-2024-05-08", "reason": ""}
2024-05-08T03:03:01.253Z	INFO	reporter	no skip was passed for report	{"name": "meter-report-2024-05-08"}
2024-05-08T03:03:01.253Z	INFO	reporter	upload: meter reports ready to run	{"reports": ""}
2024-05-08T03:03:01.256Z	INFO	data_service	airgap url	{"url": "rhm-data-service.redhat-marketplace.svc:8004"}
2024-05-08T03:03:01.277Z	INFO	reporter	finding secret redhat-marketplace-pull-secret or ibm-entitlement-key
2024-05-08T03:03:01.283Z	INFO	reporter	found secret	{"secret name": "redhat-marketplace-pull-secret"}
2024-05-08T03:03:01.283Z	INFO	reporter	Wait for event broadcaster to stop...
Error: error running task: token is malformed: token contains an invalid number of segments
Usage:
  redhat-marketplace-reporter reconcile [flags]

Cause

Issue is due to invalid token in redhat-marketplace-pull-secret

This can be fixed by deleting the redhat-marketplace-pull-secret from redhat-marketplace namespace and recreating with correct token.

Resolving The Problem

Here are the steps for patching the secret


export IBM_ENTITLEMENT_KEY=<IBM Entitlement Key>
oc create secret generic redhat-marketplace-pull-secret -n redhat-marketplace --from-literal=PULL_SECRET=${IBM_ENTITLEMENT_KEY}




Document Location

Worldwide

[{"Type":"MASTER","Line of Business":{"code":"LOB59","label":"Sustainability Software"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSRHPA","label":"IBM Maximo Application Suite"},"ARM Category":[{"code":"a8m3p000000hAeeAAE","label":"Maximo Application Suite-\u003ECore"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.11.0"}]

Document Information

Modified date:
28 May 2024

UID

ibm17154971