Project

General

Profile

Actions

Bug #38371

open

ceph-volume: mimic - KeyError: 'rotational'

Added by Daniele Riccucci about 5 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
% Done:

0%

Source:
Community (user)
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

I'm trying to deploy ceph using ceph-ansible.
The following happens when ceph-volume is supposed to be ran, with no further errors.

$ ceph-volume lvm batch --bluestore --prepare --report --format=json <bunch of drives>
-->  KeyError: 'rotational'

This happens both with the docker image and with package installs from the Ubuntu repository.
The closes I could get to pinpoint the error seems to be:
> /usr/lib/python2.7/dist-packages/ceph_volume-1.0.0-py3.7.egg/ceph_volume/decorators.py(59)newfunc()
-> return f(*a, **kw)
  /usr/lib/python2.7/dist-packages/ceph_volume-1.0.0-py3.7.egg/ceph_volume/main.py(148)main()->None
-> terminal.dispatch(self.mapper, subcommand_args)
  /usr/lib/python2.7/dist-packages/ceph_volume-1.0.0-py3.7.egg/ceph_volume/terminal.py(182)dispatch()->None
-> instance.main()
  /usr/lib/python2.7/dist-packages/ceph_volume-1.0.0-py3.7.egg/ceph_volume/devices/lvm/main.py(41)main()->None
-> terminal.dispatch(self.mapper, self.argv)
  /usr/lib/python2.7/dist-packages/ceph_volume-1.0.0-py3.7.egg/ceph_volume/terminal.py(182)dispatch()
-> instance.main()
  /usr/lib/python2.7/dist-packages/ceph_volume-1.0.0-py3.7.egg/ceph_volume/decorators.py(16)is_root()
-> return func(*a, **kw)
  /usr/lib/python2.7/dist-packages/ceph_volume-1.0.0-py3.7.egg/ceph_volume/devices/lvm/batch.py(320)main()
-> self._get_strategy()
  /usr/lib/python2.7/dist-packages/ceph_volume-1.0.0-py3.7.egg/ceph_volume/devices/lvm/batch.py(291)_get_strategy()
-> strategy = get_strategy(self.args, self.args.devices)
  /usr/lib/python2.7/dist-packages/ceph_volume-1.0.0-py3.7.egg/ceph_volume/devices/lvm/batch.py(92)get_strategy()
-> backend = strategy(devices)
  /usr/lib/python2.7/dist-packages/ceph_volume-1.0.0-py3.7.egg/ceph_volume/devices/lvm/batch.py(44)bluestore_mixed_type()
-> types = [device.sys_api['rotational'] for device in device_facts]
  /usr/lib/python2.7/dist-packages/ceph_volume-1.0.0-py3.7.egg/ceph_volume/devices/lvm/batch.py(44)<listcomp>()
-> types = [device.sys_api['rotational'] for device in device_facts]

which seems to suggest the whole thing fails when it tries to access device_facts.

No data to display

Actions

Also available in: Atom PDF