Skip to content

upmap-remapped.py erroring on loading existing upmaps #46

@carlilek

Description

@carlilek

I am experiencing an issue with this tool on Rocky 9.4, with Python 3.9.18 and Reef 18.2.4. I have the rados 2.0.0 module. When I run upmap-remapped.py, I get this:

# ./upmap-remapped.py
Error loading existing upmaps

Digging around a bit, it appears to be erroring specifically on line 162:
upmaps = json.loads(osd_dump_json)['pg_upmap_items']

If I print the exception, I get:
Error loading existing upmaps: Expecting value: line 1 column 2345 (char 2344)

Now, if I put the data from line 161:
osd_dump_json = output.decode('utf-8').strip()
into a file and run jq .pg_upmap_items on it, I get valid data back.

So I'm really at a loss as to how to modify the code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions