Skip to content

KeyError: 'pgmap' #4

Description

@jcea

Running Ceph 12.2.5, crush 1.0.35 (current PyPI version).

Following documentation at https://crush.readthedocs.io/en/latest/ceph/optimize.html#how-to-rebalance-a-pool-step-by-step

$ ceph report > report.json
report 273333295
$ crush optimize \
        --step 1 \
        --crushmap report.json --out-path optimized.crush \
        --pool 3
Traceback (most recent call last):
  File "/usr/local/bin/crush", line 25, in <module>
    sys.exit(Ceph().main(sys.argv[1:]))
  File "/usr/local/lib/python2.7/dist-packages/crush/main.py", line 136, in main
    return self.constructor(argv).run()
  File "/usr/local/lib/python2.7/dist-packages/crush/optimize.py", line 378, in run
    crushmap = self.main.convert_to_crushmap(self.args.crushmap)
  File "/usr/local/lib/python2.7/dist-packages/crush/ceph/__init__.py", line 776, in convert_to_crushmap
    c.parse(crushmap)
  File "/usr/local/lib/python2.7/dist-packages/crush/__init__.py", line 138, in parse
    return self.parse_crushmap(self._convert_to_crushmap(something))
  File "/usr/local/lib/python2.7/dist-packages/crush/ceph/__init__.py", line 447, in _convert_to_crushmap
    crushmap = CephReport().parse_report(something)
  File "/usr/local/lib/python2.7/dist-packages/crush/ceph/__init__.py", line 73, in parse_report
    for pg_stat in report['pgmap']['pg_stats']:
KeyError: 'pgmap'

Other subcommands like "analyze" fails too.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions