Project

General

Profile

Bug #24957

Error listing against a block device

Added by S├ębastien Han about 1 year ago. Updated about 1 year ago.

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

0%

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

Description

Command was:

ceph-volume lvm list /dev/sdb
[2018-07-17 13:15:25,471][ceph_volume.main][INFO  ] Running command: ceph-volume  lvm list /dev/sdb
[2018-07-17 13:15:25,472][ceph_volume.process][INFO  ] Running command: /usr/sbin/lvs --noheadings --readonly --separator=";" -o lv_tags,lv_path,lv_name,vg_name,lv_uuid
[2018-07-17 13:15:25,702][ceph_volume.process][INFO  ] stdout ";"/dev/VolGroup00/LogVol00";"LogVol00";"VolGroup00";"gqFct1-q2eW-5I7a-IQl2-g2Vm-Nsiq-B2CqHo
[2018-07-17 13:15:25,702][ceph_volume.process][INFO  ] stdout ";"/dev/VolGroup00/LogVol01";"LogVol01";"VolGroup00";"T8lHub-uZnx-CX9A-354Z-Jd3P-fTPq-dve374
[2018-07-17 13:15:25,702][ceph_volume.process][INFO  ] stdout ceph.cephx_lockbox_secret=,ceph.cluster_fsid=05d71da5-97fc-47ea-baa4-8b3f2cfabc78,ceph.cluster_name=ceph,ceph.crush_device_class=None,ceph.data_device=/dev/test_group/data-lv2,
ceph.data_uuid=c0VdnC-dU5I-sPfV-UbC0-ocjh-VG7Z-FjTI1Q,ceph.encrypted=0,ceph.journal_device=/dev/journals/journal1,ceph.journal_uuid=yitj0u-VefX-fYxR-nAYa-Ddmy-QGLs-S6L7CO,ceph.osd_fsid=ed87126c-718d-4ab1-9350-4c1fc4b46b96,ceph.osd_id=1,ce
ph.type=journal,ceph.vdo=0";"/dev/journals/journal1";"journal1";"journals";"yitj0u-VefX-fYxR-nAYa-Ddmy-QGLs-S6L7CO
[2018-07-17 13:15:25,702][ceph_volume.process][INFO  ] stdout ceph.cephx_lockbox_secret=,ceph.cluster_fsid=05d71da5-97fc-47ea-baa4-8b3f2cfabc78,ceph.cluster_name=ceph,ceph.crush_device_class=None,ceph.data_device=/dev/test_group/data-lv1,
ceph.data_uuid=19Ld1t-6YO7-lj3O-WTEy-fSCi-gPAC-BWQo6m,ceph.encrypted=0,ceph.journal_device=/dev/sdc1,ceph.journal_uuid=b8df36ef-1a49-41a3-ad1d-9e2d7cf3f87c,ceph.osd_fsid=1216d5e8-ac1f-45d1-af2a-eff43d375687,ceph.osd_id=0,ceph.type=data,ce
ph.vdo=0";"/dev/test_group/data-lv1";"data-lv1";"test_group";"19Ld1t-6YO7-lj3O-WTEy-fSCi-gPAC-BWQo6m
[2018-07-17 13:15:25,702][ceph_volume.process][INFO  ] stdout ceph.cephx_lockbox_secret=,ceph.cluster_fsid=05d71da5-97fc-47ea-baa4-8b3f2cfabc78,ceph.cluster_name=ceph,ceph.crush_device_class=None,ceph.data_device=/dev/test_group/data-lv2,
ceph.data_uuid=c0VdnC-dU5I-sPfV-UbC0-ocjh-VG7Z-FjTI1Q,ceph.encrypted=0,ceph.journal_device=/dev/journals/journal1,ceph.journal_uuid=yitj0u-VefX-fYxR-nAYa-Ddmy-QGLs-S6L7CO,ceph.osd_fsid=ed87126c-718d-4ab1-9350-4c1fc4b46b96,ceph.osd_id=1,ce
ph.type=data,ceph.vdo=0";"/dev/test_group/data-lv2";"data-lv2";"test_group";"c0VdnC-dU5I-sPfV-UbC0-ocjh-VG7Z-FjTI1Q
[2018-07-17 13:15:25,702][ceph_volume.process][INFO  ] Running command: /usr/sbin/blkid -t PARTUUID="yitj0u-VefX-fYxR-nAYa-Ddmy-QGLs-S6L7CO" -o device
[2018-07-17 13:15:25,942][ceph_volume.process][INFO  ] Running command: /usr/sbin/blkid -t PARTUUID="b8df36ef-1a49-41a3-ad1d-9e2d7cf3f87c" -o device
[2018-07-17 13:15:26,167][ceph_volume.process][INFO  ] stdout /dev/sdc1
[2018-07-17 13:15:26,167][ceph_volume.process][INFO  ] Running command: /usr/sbin/blkid -t PARTUUID="yitj0u-VefX-fYxR-nAYa-Ddmy-QGLs-S6L7CO" -o device
[2018-07-17 13:15:26,399][ceph_volume.process][INFO  ] Running command: /usr/sbin/lvs --noheadings --readonly --separator=";" -o lv_tags,lv_path,lv_name,vg_name,lv_uuid
[2018-07-17 13:15:26,630][ceph_volume.process][INFO  ] stdout ";"/dev/VolGroup00/LogVol00";"LogVol00";"VolGroup00";"gqFct1-q2eW-5I7a-IQl2-g2Vm-Nsiq-B2CqHo
[2018-07-17 13:15:26,631][ceph_volume.process][INFO  ] stdout ";"/dev/VolGroup00/LogVol01";"LogVol01";"VolGroup00";"T8lHub-uZnx-CX9A-354Z-Jd3P-fTPq-dve374
[2018-07-17 13:15:26,631][ceph_volume.process][INFO  ] stdout ceph.cephx_lockbox_secret=,ceph.cluster_fsid=05d71da5-97fc-47ea-baa4-8b3f2cfabc78,ceph.cluster_name=ceph,ceph.crush_device_class=None,ceph.data_device=/dev/test_group/data-lv2,
ceph.data_uuid=c0VdnC-dU5I-sPfV-UbC0-ocjh-VG7Z-FjTI1Q,ceph.encrypted=0,ceph.journal_device=/dev/journals/journal1,ceph.journal_uuid=yitj0u-VefX-fYxR-nAYa-Ddmy-QGLs-S6L7CO,ceph.osd_fsid=ed87126c-718d-4ab1-9350-4c1fc4b46b96,ceph.osd_id=1,ce
ph.type=journal,ceph.vdo=0";"/dev/journals/journal1";"journal1";"journals";"yitj0u-VefX-fYxR-nAYa-Ddmy-QGLs-S6L7CO
[2018-07-17 13:15:26,631][ceph_volume.process][INFO  ] stdout ceph.cephx_lockbox_secret=,ceph.cluster_fsid=05d71da5-97fc-47ea-baa4-8b3f2cfabc78,ceph.cluster_name=ceph,ceph.crush_device_class=None,ceph.data_device=/dev/test_group/data-lv1,
ceph.data_uuid=19Ld1t-6YO7-lj3O-WTEy-fSCi-gPAC-BWQo6m,ceph.encrypted=0,ceph.journal_device=/dev/sdc1,ceph.journal_uuid=b8df36ef-1a49-41a3-ad1d-9e2d7cf3f87c,ceph.osd_fsid=1216d5e8-ac1f-45d1-af2a-eff43d375687,ceph.osd_id=0,ceph.type=data,ce
ph.vdo=0";"/dev/test_group/data-lv1";"data-lv1";"test_group";"19Ld1t-6YO7-lj3O-WTEy-fSCi-gPAC-BWQo6m
[2018-07-17 13:15:26,631][ceph_volume.process][INFO  ] stdout ceph.cephx_lockbox_secret=,ceph.cluster_fsid=05d71da5-97fc-47ea-baa4-8b3f2cfabc78,ceph.cluster_name=ceph,ceph.crush_device_class=None,ceph.data_device=/dev/test_group/data-lv2,
ceph.data_uuid=c0VdnC-dU5I-sPfV-UbC0-ocjh-VG7Z-FjTI1Q,ceph.encrypted=0,ceph.journal_device=/dev/journals/journal1,ceph.journal_uuid=yitj0u-VefX-fYxR-nAYa-Ddmy-QGLs-S6L7CO,ceph.osd_fsid=ed87126c-718d-4ab1-9350-4c1fc4b46b96,ceph.osd_id=1,ce
ph.type=data,ceph.vdo=0";"/dev/test_group/data-lv2";"data-lv2";"test_group";"c0VdnC-dU5I-sPfV-UbC0-ocjh-VG7Z-FjTI1Q
[2018-07-17 13:15:26,631][ceph_volume.process][INFO  ] Running command: /usr/sbin/lvs --noheadings --readonly --separator=";" -o lv_tags,lv_path,lv_name,vg_name,lv_uuid
[2018-07-17 13:15:26,859][ceph_volume.process][INFO  ] stdout ";"/dev/VolGroup00/LogVol00";"LogVol00";"VolGroup00";"gqFct1-q2eW-5I7a-IQl2-g2Vm-Nsiq-B2CqHo
[2018-07-17 13:15:26,859][ceph_volume.process][INFO  ] stdout ";"/dev/VolGroup00/LogVol01";"LogVol01";"VolGroup00";"T8lHub-uZnx-CX9A-354Z-Jd3P-fTPq-dve374
[2018-07-17 13:15:26,859][ceph_volume.process][INFO  ] stdout ceph.cephx_lockbox_secret=,ceph.cluster_fsid=05d71da5-97fc-47ea-baa4-8b3f2cfabc78,ceph.cluster_name=ceph,ceph.crush_device_class=None,ceph.data_device=/dev/test_group/data-lv2,
ceph.data_uuid=c0VdnC-dU5I-sPfV-UbC0-ocjh-VG7Z-FjTI1Q,ceph.encrypted=0,ceph.journal_device=/dev/journals/journal1,ceph.journal_uuid=yitj0u-VefX-fYxR-nAYa-Ddmy-QGLs-S6L7CO,ceph.osd_fsid=ed87126c-718d-4ab1-9350-4c1fc4b46b96,ceph.osd_id=1,ce
ph.type=journal,ceph.vdo=0";"/dev/journals/journal1";"journal1";"journals";"yitj0u-VefX-fYxR-nAYa-Ddmy-QGLs-S6L7CO
[2018-07-17 13:15:26,859][ceph_volume.process][INFO  ] stdout ceph.cephx_lockbox_secret=,ceph.cluster_fsid=05d71da5-97fc-47ea-baa4-8b3f2cfabc78,ceph.cluster_name=ceph,ceph.crush_device_class=None,ceph.data_device=/dev/test_group/data-lv1,
ceph.data_uuid=19Ld1t-6YO7-lj3O-WTEy-fSCi-gPAC-BWQo6m,ceph.encrypted=0,ceph.journal_device=/dev/sdc1,ceph.journal_uuid=b8df36ef-1a49-41a3-ad1d-9e2d7cf3f87c,ceph.osd_fsid=1216d5e8-ac1f-45d1-af2a-eff43d375687,ceph.osd_id=0,ceph.type=data,ce
ph.vdo=0";"/dev/test_group/data-lv1";"data-lv1";"test_group";"19Ld1t-6YO7-lj3O-WTEy-fSCi-gPAC-BWQo6m
[2018-07-17 13:15:26,859][ceph_volume.process][INFO  ] stdout ceph.cephx_lockbox_secret=,ceph.cluster_fsid=05d71da5-97fc-47ea-baa4-8b3f2cfabc78,ceph.cluster_name=ceph,ceph.crush_device_class=None,ceph.data_device=/dev/test_group/data-lv2,
ceph.data_uuid=c0VdnC-dU5I-sPfV-UbC0-ocjh-VG7Z-FjTI1Q,ceph.encrypted=0,ceph.journal_device=/dev/journals/journal1,ceph.journal_uuid=yitj0u-VefX-fYxR-nAYa-Ddmy-QGLs-S6L7CO,ceph.osd_fsid=ed87126c-718d-4ab1-9350-4c1fc4b46b96,ceph.osd_id=1,ce
ph.type=data,ceph.vdo=0";"/dev/test_group/data-lv2";"data-lv2";"test_group";"c0VdnC-dU5I-sPfV-UbC0-ocjh-VG7Z-FjTI1Q
[2018-07-17 13:15:26,859][ceph_volume.process][INFO  ] Running command: /usr/sbin/pvs --no-heading --readonly --separator=";" -o pv_name,pv_tags,pv_uuid,vg_name,lv_uuid
[2018-07-17 13:15:27,086][ceph_volume.process][INFO  ] stdout /dev/sdb";"";"v92zn2-3cJL-pFm1-DyST-yS2I-nfYe-2MjNJC";"test_group";"19Ld1t-6YO7-lj3O-WTEy-fSCi-gPAC-BWQo6m
[2018-07-17 13:15:27,086][ceph_volume.process][INFO  ] stdout /dev/sdb";"";"v92zn2-3cJL-pFm1-DyST-yS2I-nfYe-2MjNJC";"test_group";"c0VdnC-dU5I-sPfV-UbC0-ocjh-VG7Z-FjTI1Q
[2018-07-17 13:15:27,086][ceph_volume.process][INFO  ] stdout /dev/sdb";"";"v92zn2-3cJL-pFm1-DyST-yS2I-nfYe-2MjNJC";"test_group";" 
[2018-07-17 13:15:27,086][ceph_volume.process][INFO  ] stdout /dev/sdc2";"";"3yMCOY-Vk9p-2InQ-iLKe-1685-ychA-Gdvocz";"journals";"yitj0u-VefX-fYxR-nAYa-Ddmy-QGLs-S6L7CO
[2018-07-17 13:15:27,086][ceph_volume.process][INFO  ] stdout /dev/vda3";"";"qGTgpA-Amb9-J2GQ-bP3A-2X6n-g5Ud-zPWx6a";"VolGroup00";"gqFct1-q2eW-5I7a-IQl2-g2Vm-Nsiq-B2CqHo
[2018-07-17 13:15:27,086][ceph_volume.process][INFO  ] stdout /dev/vda3";"";"qGTgpA-Amb9-J2GQ-bP3A-2X6n-g5Ud-zPWx6a";"VolGroup00";"T8lHub-uZnx-CX9A-354Z-Jd3P-fTPq-dve374
[2018-07-17 13:15:27,087][ceph_volume][ERROR ] exception caught by decorator
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/ceph_volume/decorators.py", line 59, in newfunc
    return f(*a, **kw)
  File "/usr/lib/python2.7/site-packages/ceph_volume/main.py", line 153, in main
    terminal.dispatch(self.mapper, subcommand_args)
  File "/usr/lib/python2.7/site-packages/ceph_volume/terminal.py", line 182, in dispatch
    instance.main()
  File "/usr/lib/python2.7/site-packages/ceph_volume/devices/lvm/main.py", line 38, in main
    terminal.dispatch(self.mapper, self.argv)
  File "/usr/lib/python2.7/site-packages/ceph_volume/terminal.py", line 182, in dispatch
    instance.main()
  File "/usr/lib/python2.7/site-packages/ceph_volume/devices/lvm/listing.py", line 303, in main
    self.list(args)
  File "/usr/lib/python2.7/site-packages/ceph_volume/decorators.py", line 16, in is_root
    return func(*a, **kw)
  File "/usr/lib/python2.7/site-packages/ceph_volume/devices/lvm/listing.py", line 112, in list
    report = self.generate(args)
  File "/usr/lib/python2.7/site-packages/ceph_volume/devices/lvm/listing.py", line 160, in generate
    return self.single_report(args.device)
  File "/usr/lib/python2.7/site-packages/ceph_volume/devices/lvm/listing.py", line 176, in single_report
    pv = api.get_pv(pv_name=device)
  File "/usr/lib/python2.7/site-packages/ceph_volume/api/lvm.py", line 276, in get_pv
    return pvs.get(pv_name=pv_name, pv_uuid=pv_uuid, pv_tags=pv_tags)
  File "/usr/lib/python2.7/site-packages/ceph_volume/api/lvm.py", line 730, in get
    raise MultiplePVsError(pv_name)
MultiplePVsError: Got more than 1 result looking for physical volume: /dev/sdb

History

#1 Updated by S├ębastien Han about 1 year ago

[root@osd0 /]# pvs
  PV         VG         Fmt  Attr PSize   PFree
  /dev/sdb   test_group lvm2 a--  <50.00g 12.50g
  /dev/sdc2  journals   lvm2 a--  <25.00g     0
  /dev/vda3  VolGroup00 lvm2 a--  <38.97g     0
[root@osd0 /]# vgs
  VG         #PV #LV #SN Attr   VSize   VFree
  VolGroup00   1   2   0 wz--n- <38.97g     0
  journals     1   1   0 wz--n- <25.00g     0
  test_group   1   2   0 wz--n- <50.00g 12.50g
[root@osd0 /]# lvs
  LV       VG         Attr       LSize   Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  LogVol00 VolGroup00 -wi-ao---- <37.47g
  LogVol01 VolGroup00 -wi-ao----   1.50g
  journal1 journals   -wi-a----- <25.00g
  data-lv1 test_group -wi-a----- <25.00g
  data-lv2 test_group -wi-a-----  12.50g
[root@osd0 /]# lsblk
NAME                    MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda                       8:0    0   50G  0 disk
sdb                       8:16   0   50G  0 disk
|-test_group-data--lv1  253:2    0   25G  0 lvm
`-test_group-data--lv2  253:3    0 12.5G  0 lvm
sdc                       8:32   0   50G  0 disk
|-sdc1                    8:33   0   25G  0 part
`-sdc2                    8:34   0   25G  0 part
  `-journals-journal1   253:4    0   25G  0 lvm
vda                     252:0    0   41G  0 disk
|-vda1                  252:1    0    1M  0 part
|-vda2                  252:2    0    1G  0 part
`-vda3                  252:3    0   39G  0 part
  |-VolGroup00-LogVol00 253:0    0 37.5G  0 lvm  /var/lib/ceph
  `-VolGroup00-LogVol01 253:1    0  1.5G  0 lvm  [SWAP]

#2 Updated by Alfredo Deza about 1 year ago

  • Status changed from New to Verified
  • Assignee set to Alfredo Deza
  • Priority changed from Normal to Immediate

#4 Updated by Andrew Schoen about 1 year ago

  • Status changed from Verified to Resolved

Also available in: Atom PDF