Project

General

Profile

Actions

Bug #44099

closed

batch: AttributeError: 'Device' object has no attribute 'pvs_api'

Added by Jan Fajerski about 4 years ago. Updated about 4 years ago.

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

0%

Source:
Tags:
Backport:
nautilus, mimic
Regression:
No
Severity:
2 - major
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

fatal: [osd0]: FAILED! => {
    "changed": true,
    "cmd": [
        "ceph-volume",
        "--cluster",
        "test",
        "lvm",
        "batch",
        "--bluestore",
        "--yes",
        "--block-db-size",
        "9663676416",
        "/dev/vdb",
        "/dev/vdc",
        "/dev/nvme0n1",
        "/dev/nvme1n1",
        "--report",
        "--format=json" 
    ],
    "rc": 1
}

STDERR:

Traceback (most recent call last):
  File "/sbin/ceph-volume", line 11, in <module>
    load_entry_point('ceph-volume==1.0.0', 'console_scripts', 'ceph-volume')()
  File "/usr/lib/python3.6/site-packages/ceph_volume/main.py", line 39, in __init__
    self.main(self.argv)
  File "/usr/lib/python3.6/site-packages/ceph_volume/decorators.py", line 59, in newfunc
    return f(*a, **kw)
  File "/usr/lib/python3.6/site-packages/ceph_volume/main.py", line 150, in main
    terminal.dispatch(self.mapper, subcommand_args)
  File "/usr/lib/python3.6/site-packages/ceph_volume/terminal.py", line 194, in dispatch
    instance.main()
  File "/usr/lib/python3.6/site-packages/ceph_volume/devices/lvm/main.py", line 42, in main
    terminal.dispatch(self.mapper, self.argv)
  File "/usr/lib/python3.6/site-packages/ceph_volume/terminal.py", line 194, in dispatch
    instance.main()
  File "/usr/lib/python3.6/site-packages/ceph_volume/decorators.py", line 16, in is_root
    return func(*a, **kw)
  File "/usr/lib/python3.6/site-packages/ceph_volume/devices/lvm/batch.py", line 320, in main
    self._get_strategy()
  File "/usr/lib/python3.6/site-packages/ceph_volume/devices/lvm/batch.py", line 303, in _get_strategy
    self.strategy = strategy.with_auto_devices(self.args, unused_devices)
  File "/usr/lib/python3.6/site-packages/ceph_volume/devices/lvm/strategies/bluestore.py", line 144, in with_auto_devices
    return cls(args, data_devs, db_devs)
  File "/usr/lib/python3.6/site-packages/ceph_volume/devices/lvm/strategies/bluestore.py", line 139, in __init__
    self.validate_compute()
  File "/usr/lib/python3.6/site-packages/ceph_volume/devices/lvm/strategies/strategies.py", line 30, in validate_compute
    self.validate()
  File "/usr/lib/python3.6/site-packages/ceph_volume/devices/lvm/strategies/bluestore.py", line 411, in validate
    self._validate_db_devs()
  File "/usr/lib/python3.6/site-packages/ceph_volume/devices/lvm/strategies/bluestore.py", line 421, in _validate_db_devs
    validators.has_common_vg(self.db_or_journal_devs)
  File "/usr/lib/python3.6/site-packages/ceph_volume/devices/lvm/strategies/validators.py", line 50, in has_common_vg
    for pv in ssd_device.pvs_api:
AttributeError: 'Device' object has no attribute 'pvs_api'

Related issues 2 (0 open2 closed)

Copied to ceph-volume - Backport #44111: mimic: batch: AttributeError: 'Device' object has no attribute 'pvs_api'ResolvedJan FajerskiActions
Copied to ceph-volume - Backport #44112: nautilus: batch: AttributeError: 'Device' object has no attribute 'pvs_api'ResolvedJan FajerskiActions
Actions #1

Updated by Jan Fajerski about 4 years ago

  • Status changed from New to Fix Under Review
  • Backport set to nautilus, mimic
Actions #2

Updated by Jan Fajerski about 4 years ago

  • Status changed from Fix Under Review to Pending Backport
Actions #3

Updated by Jan Fajerski about 4 years ago

  • Copied to Backport #44111: mimic: batch: AttributeError: 'Device' object has no attribute 'pvs_api' added
Actions #4

Updated by Jan Fajerski about 4 years ago

  • Copied to Backport #44112: nautilus: batch: AttributeError: 'Device' object has no attribute 'pvs_api' added
Actions #5

Updated by Jan Fajerski about 4 years ago

  • Pull request ID set to 33246
Actions #6

Updated by Nathan Cutler about 4 years ago

  • Status changed from Pending Backport to Resolved

While running with --resolve-parent, the script "backport-create-issue" noticed that all backports of this issue are in status "Resolved" or "Rejected".

Actions

Also available in: Atom PDF