Project

General

Profile

Bug #34310

batch broken when trying to format device information

Added by Alfredo Deza 5 months ago. Updated 5 months ago.

Status:
Resolved
Priority:
Immediate
Assignee:
Target version:
-
Start date:
08/28/2018
Due date:
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:

Description

Traceback (most recent call last):
  File "/usr/sbin/ceph-volume", line 6, in <module>
    main.Volume()
  File "/usr/lib/python2.7/dist-packages/ceph_volume/main.py", line 40, in __init__
    self.main(self.argv)
  File "/usr/lib/python2.7/dist-packages/ceph_volume/decorators.py", line 59, in newfunc
    return f(*a, **kw)
  File "/usr/lib/python2.7/dist-packages/ceph_volume/main.py", line 156, in main
    terminal.dispatch(self.mapper, subcommand_args)
  File "/usr/lib/python2.7/dist-packages/ceph_volume/terminal.py", line 182, in dispatch
    instance.main()
  File "/usr/lib/python2.7/dist-packages/ceph_volume/devices/lvm/main.py", line 40, in main
    terminal.dispatch(self.mapper, self.argv)
  File "/usr/lib/python2.7/dist-packages/ceph_volume/terminal.py", line 182, in dispatch
    instance.main()
  File "/usr/lib/python2.7/dist-packages/ceph_volume/decorators.py", line 16, in is_root
    return func(*a, **kw)
  File "/usr/lib/python2.7/dist-packages/ceph_volume/devices/lvm/batch.py", line 155, in main
    description=self.print_help(),
  File "/usr/lib/python2.7/dist-packages/ceph_volume/devices/lvm/batch.py", line 127, in print_help
    detected_devices=self.get_devices(),
  File "/usr/lib/python2.7/dist-packages/ceph_volume/devices/lvm/batch.py", line 123, in get_devices
    return device_formatter(devices)
  File "/usr/lib/python2.7/dist-packages/ceph_volume/devices/lvm/batch.py", line 18, in device_formatter
    state='solid' if details.sys_api['rotational'] == '0' else 'rotational')
AttributeError: 'dict' object has no attribute 'sys_api'

History

#2 Updated by Alfredo Deza 5 months ago

  • Status changed from New to Resolved

Also available in: Atom PDF