When the lightweight Kubernetes agent uploads an inventory file to a beacon, the agent's logging incorrectly suggests the upload has failed if the beacon returns an HTTP 201 CREATED status code.
Despite this, the inventory is actually successfully uploaded.
Logging from the lightweight Kubernetes agent shows details similar to the following when this issue occurs:
lwk 2021-11-24T17:19:24.384104218Z INFO – inv: producing initial inventory
lwk 2021-11-24T17:19:24.42259509Z INFO – inv: uploading k8s-inventory-1e0369a0-20211124T171924.ndi
lwk 2021-11-24T17:19:32.490747497Z ERROR – inv: error producing inventory: inv: failed upload: upload: bad status code 201:
Despite the logging referring to a "failed upload", the status code 201 can generally be trusted to indicate a successful upload.
This issue has been fixed by updating the lightweight Kubernetes agent to correctly handle HTTP status codes representing success.
This issue has been fixed in the following FlexNet Manager Suite releases: 2021 R1.4 / Mar 2022 (Cloud), 2022 R1 (On Premises)
Affected components: Agent, Containers, Inventory
Master issue ID: IOJ-2233879
Also known as: FNML-74782
Jan 04, 2022
Jun 12, 2022