Project

General

Profile

Actions

Bug #23941

closed

missing ceph.conf does not report actual error back

Added by Alfredo Deza almost 6 years ago. Updated almost 6 years ago.

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

0%

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

Description

For help menus and other read-only calls, ceph-volume allows not having a ceph.conf at all, but ignoring this can cause
issues on operations that do rely on it to fail with a non-descriptive message

[2018-04-30 17:53:23,257][ceph_volume.main][INFO  ] Running command: ceph-volume  lvm create --bluestore --data /dev/sdi
[2018-04-30 17:53:23,257][ceph_volume.main][ERROR ] ignoring inability to load ceph.conf
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/ceph_volume/main.py", line 145, in main
    conf.ceph = configuration.load(conf.path)
  File "/usr/lib/python2.7/dist-packages/ceph_volume/configuration.py", line 36, in load
    raise exceptions.ConfigurationError(abspath=abspath)
ConfigurationError: Unable to load expected Ceph config at: /etc/ceph/ceph.conf
[2018-04-30 17:53:23,259][ceph_volume.process][INFO  ] Running command: /usr/bin/ceph-authtool --gen-print-key
[2018-04-30 17:53:28,293][ceph_volume.process][INFO  ] stdout AQDjLeda4tk/ERAAhhUrc3WN+JQNHsxkUMFuuQ==
[2018-04-30 17:53:28,294][ceph_volume.devices.lvm.prepare][ERROR ] lvm prepare was unable to complete
[2018-04-30 17:53:28,295][ceph_volume.devices.lvm.prepare][INFO  ] will rollback OSD ID creation
[2018-04-30 17:53:28,295][ceph_volume][ERROR ] exception caught by decorator
Traceback (most recent call last):
  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 153, 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 38, 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/devices/lvm/create.py", line 74, in main
    self.create(args)
  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/create.py", line 26, in create
    prepare_step.safe_prepare(args)
  File "/usr/lib/python2.7/dist-packages/ceph_volume/devices/lvm/prepare.py", line 216, in safe_prepare
    self.prepare(args)
  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/prepare.py", line 239, in prepare
    cluster_fsid = conf.ceph.get('global', 'fsid')
AttributeError: 'property' object has no attribute 'get'

On the terminal it was more obscure:

root@node9:/home/vagrant# ceph-volume lvm create --bluestore --data /dev/sdi
Running command: /usr/bin/ceph-authtool --gen-print-key
-->  AttributeError: 'property' object has no attribute 'get'
Actions #1

Updated by Andrew Schoen almost 6 years ago

  • Status changed from New to Resolved
Actions

Also available in: Atom PDF