Skip to content

bug(health): Redfish SSE applies to Switch Hosts #1744

@mkoci

Description

@mkoci

Version

0.8.3

Describe the bug.

When using the Server-Sent event subscription for BmcEndpoints, no distinction is made between Bmc Redfish servers and Switch hosts. We should not run BMC specific discovery and collection on Switches.

Minimum reproducible example

Enable 

[collectors.logs]
mode = "sse"

In the config for health when you also have Switch hosts defined in static configuration or ingested and available for discovery through NICo.


### Relevant log output

```shell
level=ERROR msg="Failed to discover entities" error="BmcError(BMC error: BMC Error: Invalid HTTP response - url: https://10.85.14.106/redfish/v1 status: 4
level=ERROR msg="Error during collector iteration" collector_type= endpoint="BmcAddr { ip: 10.85.14.106, port: Some(443), mac: MacAddress

Other/Misc.

No response

Code of Conduct

  • I agree to follow NCX Infra Controller's Code of Conduct
  • I have searched the open bugs and have found no duplicates for this bug report

Metadata

Metadata

Assignees

Labels

bugA defect in existing software (deprecated - use issue type, but it's needed for reporting now)

Type

No fields configured for Bug.

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions