Skip to content

otto: Error: crush_location: Input should be a valid string [type=string_type, input_value=[], input_type=list] #70

@trociny

Description

@trociny

When trying otto on a Ceph cluster buit from main branch, there is an error:

> ./dist/otto checkup 
Error: Failed to collect ceph report via CLI: Failed to get cluster report: 3 validation errors for CephReport
monmap.mons.0.crush_location
  Input should be a valid string [type=string_type, input_value=[], input_type=list]
    For further information visit https://errors.pydantic.dev/2.13/v/string_type
monmap.mons.1.crush_location
  Input should be a valid string [type=string_type, input_value=[], input_type=list]
    For further information visit https://errors.pydantic.dev/2.13/v/string_type
monmap.mons.2.crush_location
  Input should be a valid string [type=string_type, input_value=[], input_type=list]
    For further information visit https://errors.pydantic.dev/2.13/v/string_type

In older ceph reports we have a string like this:

"crush_location": "{}"

While in the newest ceph it is alist:

"crush_location": []

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