Project

General

Profile

Bug #7669

obscure traceback when a partition of type TOBE_UUID can't be mounted

Added by Loïc Dachary about 10 years ago. Updated about 10 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
ceph-disk
Target version:
-
% Done:

0%

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

Description

Steps to reproduce:

root@bm0101:~# osd_uuid=$(uuidgen)
root@bm0101:~# partition_number=4
root@bm0101:~# ptype_tobe=89c57f98-2fe5-4dc0-89c1-f3ad0ceff2be
root@bm0101:~# sgdisk --change-name="${partition_number}:ceph data" --partition-guid="${partition_number}:${osd_uuid}" --typecode="${partition_number}:${ptype_tobe}" /dev/sda
Warning: The kernel is still using the old partition table.
The new table will be used at the next reboot.
The operation has completed successfully.
root@bm0101:~# sgdisk --info=4 /dev/sda
Partition GUID code: 89C57F98-2FE5-4DC0-89C1-F3AD0CEFF2BE (Unknown)
Partition unique GUID: 527D7EE2-087C-4B6D-90DA-D83A92B34384
First sector: 111329280 (at 53.1 GiB)
Last sector: 7814035455 (at 3.6 TiB)
Partition size: 7702706176 sectors (3.6 TiB)
Attribute flags: 0000000000000000
Partition name: 'ceph data'
root@bm0101:~# ceph-disk -v list
DEBUG:ceph-disk:Mounting /dev/sda4 on /var/lib/ceph/tmp/mnt.aPW1Q7 with options 
Traceback (most recent call last):
  File "/usr/sbin/ceph-disk", line 2349, in <module>
    main()
  File "/usr/sbin/ceph-disk", line 2338, in main
    args.func(args)
  File "/usr/sbin/ceph-disk", line 2022, in main_list
    tpath = mount(dev=dev, fstype=fs_type, options='')
  File "/usr/sbin/ceph-disk", line 681, in mount
    path,
  File "/usr/lib/python2.7/subprocess.py", line 506, in check_call
    retcode = call(*popenargs, **kwargs)
  File "/usr/lib/python2.7/subprocess.py", line 493, in call
    return Popen(*popenargs, **kwargs).wait()
  File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child
    raise child_exception
TypeError: execv() arg 2 must contain only strings
root@bm0101:~# dpkg -l ceph
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                              Version                           Description
+++-=================================-=================================-==================================================================================
ii  ceph                              0.72.1-1precise                   distributed storage and file system
root@bm0101:~# ceph-disk prepare --osd-uuid "$osd_uuid" --fs-type xfs --cluster ceph -- /dev/sda${partition_number} /dev/sd\
c                                                                                                                           
WARNING:ceph-disk:OSD will not be hot-swappable if journal is not the same device as the osd data                           
Information: Moved requested sector from 4194338 to 4196352 in                                                              
order to align on 2048-sector boundaries.                                                                                   
Warning: The kernel is still using the old partition table.                                                                 
The new table will be used at the next reboot.                                                                              
The operation has completed successfully.                                                                                   
meta-data=/dev/sda4              isize=2048   agcount=4, agsize=240709568 blks                                              
         =                       sectsz=512   attr=2, projid32bit=0                                                         
data     =                       bsize=4096   blocks=962838272, imaxpct=5                                                   
         =                       sunit=0      swidth=0 blks                                                                 
naming   =version 2              bsize=4096   ascii-ci=0                                                                    
log      =internal log           bsize=4096   blocks=470135, version=2                                                      
         =                       sectsz=512   sunit=0 blks, lazy-count=1                                                    
realtime =none                   extsz=4096   blocks=0, rtextents=0                                                         
root@bm0101:~# ceph-disk -v list                                                                                            
DEBUG:ceph-disk:Mounting /dev/sda4 on /var/lib/ceph/tmp/mnt.2tPZqV with options                                             
DEBUG:ceph-disk:Unmounting /var/lib/ceph/tmp/mnt.2tPZqV                                                                     
DEBUG:ceph-disk:Mounting /dev/sdb1 on /var/lib/ceph/tmp/mnt.xUfxOD with options                                             
DEBUG:ceph-disk:Unmounting /var/lib/ceph/tmp/mnt.xUfxOD                                                                     
/dev/sda :                                                                                                                  
 /dev/sda1 other, ext4                                                                                                      
 /dev/sda2 other, ext4, mounted on /                                                                                        
 /dev/sda3 swap, swap                                                                                                       
DEBUG:ceph-disk:Mounting /dev/sda4 on /var/lib/ceph/tmp/mnt.HW9wuJ with options                                             
DEBUG:ceph-disk:Unmounting /var/lib/ceph/tmp/mnt.HW9wuJ                                                                     
 /dev/sda4 ceph data, prepared, cluster ceph, journal /dev/sdc3                                                             
/dev/sdb :                                                                                                                  
 /dev/sdb1 ceph data, active, cluster ceph, osd.8, journal /dev/sdc2                                                        
/dev/sdc :                                                                                                                  
 /dev/sdc1 ceph journal                                                                                                     
 /dev/sdc2 ceph journal, for /dev/sdb1                                                                                      
 /dev/sdc3 ceph journal, for /dev/sda4                                                                                      
root@bm0101:~# 

History

#1 Updated by Loïc Dachary about 10 years ago

  • Description updated (diff)

Also available in: Atom PDF