Project

General

Profile

Actions

Bug #57144

closed

ceph-volume lvm zap throws an error: "Unable to detect the partition number for device: /dev/sdu1"

Added by Guillaume Abrioux over 1 year ago. Updated over 1 year ago.

Status:
Resolved
Priority:
High
Target version:
-
% Done:

100%

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

Description

Typical error:

--> Zapping: /dev/sdu1
Running command: /usr/bin/dd if=/dev/zero of=/dev/sdu1 bs=1M count=10 conv=fsync
 stderr: 10+0 records in\\n10+0 records out\
 stderr: 10485760 bytes (10 MB, 10 MiB) copied, 0.0280911 s, 373 MB/s
--> Destroying partition since --destroy was used: /dev/sdu1
-->  RuntimeError: Unable to detect the partition number for device: /dev/sdu1

in this case, `udevadm info --query=property /dev/sdu1` returns this :

DEVLINKS=/dev/disk/by-partuuid/9961d291-9270-4433-b749-28ea86d5ba0c /dev/disk/by-id/scsi-366001313615dcb7329803cf972d84343-part1 /dev/disk/by-path/pci-0000:1c:00.0-scsi-0:2:20:0-part1 /dev/disk/by-id/wwn-0x66001313615dcb7329803cf972d84343-part1 /dev/disk/by-id/scsi-SAVAGO_AVAGO_004343d872f93c802973cb5d61131300-part1 /dev/disk/by-partlabel/ceph\x20data
DEVNAME=/dev/sdu1
DEVPATH=/devices/pci0000:17/0000:17:02.0/0000:1c:00.0/host0/target0:2:20/0:2:20:0/block/sdu/sdu1
DEVTYPE=partition
ID_BUS=scsi
ID_MODEL=AVAGO
ID_MODEL_ENC=AVAGO\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20
ID_PART_ENTRY_DISK=65:64
ID_PART_ENTRY_NAME=ceph\x20data
ID_PART_ENTRY_NUMBER=1
ID_PART_ENTRY_OFFSET=2048
ID_PART_ENTRY_SCHEME=gpt
ID_PART_ENTRY_SIZE=2341793759
ID_PART_ENTRY_TYPE=4fbd7e29-9d25-41b8-afd0-062c0ceff05d
ID_PART_ENTRY_UUID=9961d291-9270-4433-b749-28ea86d5ba0c
ID_PART_TABLE_TYPE=gpt
ID_PART_TABLE_UUID=5ccbb6cc-fce5-4bab-b516-2ac9a23f871a
ID_PATH=pci-0000:1c:00.0-scsi-0:2:20:0
ID_PATH_TAG=pci-0000_1c_00_0-scsi-0_2_20_0
ID_REVISION=4.68
ID_SCSI=1
ID_SCSI_INQUIRY=1
ID_SCSI_SERIAL=004343d872f93c802973cb5d61131300
ID_SERIAL=366001313615dcb7329803cf972d84343
ID_SERIAL_SHORT=66001313615dcb7329803cf972d84343
ID_TYPE=disk
ID_VENDOR=AVAGO
ID_VENDOR_ENC=AVAGO\x20\x20\x20
ID_WWN=0x66001313615dcb73
ID_WWN_VENDOR_EXTENSION=0x29803cf972d84343
ID_WWN_WITH_EXTENSION=0x66001313615dcb7329803cf972d84343
MAJOR=65
MINOR=65
PARTN=1
PARTNAME=ceph data
SCSI_IDENT_LUN_NAA_REGEXT=66001313615dcb7329803cf972d84343
SCSI_IDENT_SERIAL=004343d872f93c802973cb5d61131300
SCSI_MODEL=AVAGO
SCSI_MODEL_ENC=AVAGO\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20
SCSI_REVISION=4.68
SCSI_TPGS=0
SCSI_TYPE=disk
SCSI_VENDOR=AVAGO
SCSI_VENDOR_ENC=AVAGO\x20\x20\x20
SUBSYSTEM=block
TAGS=:systemd:
USEC_INITIALIZED=3383103205750

we can see "ID_PART_ENTRY_NUMBER=1" is well present.

there might be a race condition.


Related issues 2 (0 open2 closed)

Copied to ceph-volume - Backport #57380: quincy: ceph-volume lvm zap throws an error: "Unable to detect the partition number for device: /dev/sdu1"ResolvedGuillaume AbriouxActions
Copied to ceph-volume - Backport #57381: pacific: ceph-volume lvm zap throws an error: "Unable to detect the partition number for device: /dev/sdu1"ResolvedGuillaume AbriouxActions
Actions #1

Updated by Guillaume Abrioux over 1 year ago

  • Pull request ID set to 47631
Actions #2

Updated by Adam King over 1 year ago

  • Status changed from In Progress to Pending Backport
  • Backport set to quincy, pacific
Actions #3

Updated by Backport Bot over 1 year ago

  • Copied to Backport #57380: quincy: ceph-volume lvm zap throws an error: "Unable to detect the partition number for device: /dev/sdu1" added
Actions #4

Updated by Backport Bot over 1 year ago

  • Copied to Backport #57381: pacific: ceph-volume lvm zap throws an error: "Unable to detect the partition number for device: /dev/sdu1" added
Actions #5

Updated by Backport Bot over 1 year ago

  • Tags set to backport_processed
Actions #6

Updated by Konstantin Shalygin over 1 year ago

  • Status changed from Pending Backport to Resolved
  • % Done changed from 0 to 100
  • Tags deleted (backport_processed)
Actions

Also available in: Atom PDF