Skip to content

[Fleet] Agents tab fails to load when a policy includes input packages #236070

@jsoriano

Description

@jsoriano

Kibana version: 9.2.0 snapshot.

Describe the bug: An error happens when opening the agents tab, and agents are not shown:

Error fetching agents
Failed output validation: [response body.items.0.components.0.units.0.type]: types that failed validation: - [response body.items.0.components.0.units.0.type.0]: expected value to equal [input] - [response body.items.0.components.0.units.0.type.1]: expected value to equal [output]

Steps to reproduce:
If unable to reproduce, see conversation below.

  1. Run 9.2.0 snapshot of Kibana.
  2. Run a version of Fleet Server including Prepare OTel Elasticsearch exporter with the credentials of the output fleet-server#5469.
  3. Install an input package (httpcheck package available by now here).
  4. Configure a policy with this input package.
  5. Assign the policy to a running agent.
  6. Open the Agents tab in Fleet.
  7. It doesn't load correctly.
    Expected behavior: The Agents tab in Fleet lists agents.

Screenshots (if relevant):
Image

Metadata

Metadata

Assignees

Labels

Team:FleetTeam label for Observability Data Collection Fleet teambugFixes for quality problems that affect the customer experience

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions