Skip to content

[Bug]: Missing hardware from failure to merge systems #141

Description

@davidallendj

Describe the bug

Per @Masber comment from #137


I just did another test today, the difference with previous setup is that I am now building magellan from main instead of using the latest artifact available (https://github.com/OpenCHAMI/magellan/releases/tag/v0.5.1)

I don't have this no mapping found from host selector 'x8000c0s1b1' to a BMC ID error message anymore but now it complains about failed to find MAC address with IP '10.104.0.25'?

I am also missing hardware in the report magellan generates

# ./magellan list
{"level":"warn","error":"config file not found: Config File \"config\" Not Found in \"[/root/.config/magellan.yaml]\"","time":"2026-07-21T10:30:05+02:00","caller":"/home/runner/work/magellan/magellan/cmd/root.go:155","message":"failed to load config"}
https://10.104.0.25 tcp 2026-07-21 10:21:25.300023985 +0200 +0200
https://x8000c0s1b1 tcp 2026-06-30 22:45:17.266146401 +0200 +0200


# ./magellan collect https://x8000c0s0b0 --bmc-id-map @bmc_id_map.yaml --show -F json -u root -p --REDACTED--
{"level":"warn","error":"config file not found: Config File \"config\" Not Found in \"[/root/.config/magellan.yaml]\"","time":"2026-07-21T10:42:11+02:00","caller":"/home/runner/work/magellan/magellan/cmd/root.go:155","message":"failed to load config"}
{"level":"warn","error":"failed to load token from environment variable, file, or config","time":"2026-07-21T10:42:11+02:00","caller":"/home/runner/work/magellan/magellan/cmd/collect.go:52","message":"could not load access token"}
{"level":"warn","time":"2026-07-21T10:42:11+02:00","caller":"/home/runner/work/magellan/magellan/pkg/idmap/user_provided_mapper.go:93","message":"no mapping found from host selector 'x8000c0s1b1' to a BMC ID"}
{"level":"info","id":"https://10.104.0.25:443","time":"2026-07-21T10:42:11+02:00","caller":"/home/runner/work/magellan/magellan/internal/util/bmc.go:43","message":"specific credentials found, using"}
{"level":"error","error":"failed to merge systems from Chassis and Systems endpoints: src and dst must be of same type","uri":"https://10.104.0.25:443","time":"2026-07-21T10:42:18+02:00","caller":"/home/runner/work/magellan/magellan/pkg/collect.go:114","message":"failed to crawl BMC for systems"}
{"level":"info","id":"https://10.104.0.25:443","time":"2026-07-21T10:42:18+02:00","caller":"/home/runner/work/magellan/magellan/internal/util/bmc.go:43","message":"specific credentials found, using"}
{"level":"info","id":"https://10.104.0.25:443","time":"2026-07-21T10:42:20+02:00","caller":"/home/runner/work/magellan/magellan/internal/util/bmc.go:43","message":"specific credentials found, using"}
{"level":"warn","error":"no ethernet interfaces found with IP address","time":"2026-07-21T10:42:21+02:00","caller":"/home/runner/work/magellan/magellan/pkg/collect.go:156","message":"failed to find MAC address with IP '10.104.0.25'"}
[
  {
    "FQDN": "10.104.0.25",
    "ID": "x8000c0s0b0",
    "MACRequired": true,
    "Managers": [
      {
        "uri": "https://10.104.0.25:443/redfish/v1/Managers/BMC",
        "name": "BMC",
        "description": "Shasta Manager",
        "type": "EnclosureManager"
      },
      {
        "uri": "https://10.104.0.25:443/redfish/v1/Managers/MCU0",
        "name": "MCU0",
        "description": "Microcontroller Unit for Mezz0",
        "type": "AuxiliaryController"
      }
    ],
    "Name": "",
    "RediscoverOnUpdate": false,
    "SchemaVersion": 1,
    "Systems": [],
    "Type": "",
    "User": "root"
  }
]

Steps to reproduce

Relevant log output

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions