Project

General

Profile

Actions

Bug #57609

closed

applying osd service spec with size filter fails if there's tiny (KB-sized) block devices present

Added by Tim Serong over 1 year ago. Updated about 1 year ago.

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

0%

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

Description

This issue came up on a system with a 4KB virtual floppy disk drive.

ceph-volume inventory gives:

Device Path               Size         rotates available Model name
/dev/fd0                  4.00 KB      True    False     
/dev/sda                  50.00 GB     True    False     Virtual disk
/dev/sdb                  50.00 GB     True    False     Virtual disk
/dev/sdc                  50.00 GB     True    False     Virtual disk
/dev/sdd                  50.00 GB     True    False     Virtual disk

Doing a simple ceph orch apply osd --all-available-devices works just fine, but service specs utilising size specifiers will fail to apply. For example:

service_id: at_least_8g
service_type: osd
placement:
  host_pattern: '*'
spec:
  data_devices:
    size: '8G:'

Applying the above will give the following error in ceph log last cephadm:

ceph.deployment.drive_group.DriveGroupValidationError: Failed to validate OSD spec "at_least_8g.data_devices": Unit 'KB' not supported

The problem is that the SizeMatcher class only understands MB, GB and TB. When presented with a disk whose size is expressed in KB, it doesn't know what to do with it.


Related issues 2 (0 open2 closed)

Copied to Orchestrator - Backport #57637: quincy: applying osd service spec with size filter fails if there's tiny (KB-sized) block devices presentResolvedTim SerongActions
Copied to Orchestrator - Backport #57638: pacific: applying osd service spec with size filter fails if there's tiny (KB-sized) block devices presentResolvedTim SerongActions
Actions #1

Updated by Tim Serong over 1 year ago

  • Status changed from New to Fix Under Review
  • Pull request ID set to 48184
Actions #2

Updated by Adam King over 1 year ago

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

Updated by Backport Bot over 1 year ago

  • Copied to Backport #57637: quincy: applying osd service spec with size filter fails if there's tiny (KB-sized) block devices present added
Actions #4

Updated by Backport Bot over 1 year ago

  • Copied to Backport #57638: pacific: applying osd service spec with size filter fails if there's tiny (KB-sized) block devices present added
Actions #5

Updated by Backport Bot over 1 year ago

  • Tags set to backport_processed
Actions #6

Updated by Adam King about 1 year ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF