Project

General

Profile

Bug #15059

ceph-deploy log have wrong format in some part

Added by Desmond Shih over 5 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Low
Assignee:
-
Target version:
% Done:

0%

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

Description

I found that the log of ceph-deploy have wrong format when running command of 'ceph-disk'

...
[2016-03-10 09:45:10,589][ceph-test-osd01][INFO ] Running command: sudo ceph-disk v prepare --zap-disk --cluster ceph --fs-type xfs - /dev/sdc /dev/sde
[2016-03-10 09:45:10,708][ceph-test-osd01][WARNING] INFO:ceph-disk:Running command: /usr/bin/ceph-osd --check-allows-journal i 0 --cluster ceph
[2016-03-10 09:45:10,708][ceph-test-osd01][WARNING] INFO:ceph-disk:Running command: /usr/bin/ceph-osd --check-wants-journal -i 0 --cluster ceph
[2016-03-10 09:45:10,724][ceph-test-osd01][WARNING] INFO:ceph-disk:Running command: /usr/bin/ceph-osd --check-needs-journal -i 0 --cluster ceph
[2016-03-10 09:45:10,740][ceph-test-osd01][WARNING] DEBUG:ceph-disk:get_dm_uuid /dev/sdc uuid path is /sys/dev/block/8:32/dm/uuid
[2016-03-10 09:45:10,740][ceph-test-osd01][WARNING] DEBUG:ceph-disk:get_dm_uuid /dev/sdc uuid path is /sys/dev/block/8:32/dm/uuid
[2016-03-10 09:45:10,740][ceph-test-osd01][WARNING] DEBUG:ceph-disk:get_dm_uuid /dev/sdc uuid path is /sys/dev/block/8:32/dm/uuid
[2016-03-10 09:45:10,740][ceph-test-osd01][WARNING] DEBUG:ceph-disk:get_dm_uuid /dev/sdc1 uuid path is /sys/dev/block/8:33/dm/uuid
[2016-03-10 09:45:10,741][ceph-test-osd01][WARNING] DEBUG:ceph-disk:get_dm_uuid /dev/sde uuid path is /sys/dev/block/8:64/dm/uuid
[2016-03-10 09:45:10,741][ceph-test-osd01][WARNING] DEBUG:ceph-disk:get_dm_uuid /dev/sdc uuid path is /sys/dev/block/8:32/dm/uuid
[2016-03-10 09:45:10,741][ceph-test-osd01][WARNING] DEBUG:ceph-disk:Zapping partition table on /dev/sdc
[2016-03-10 09:45:10,756][ceph-test-osd01][WARNING] INFO:ceph-disk:Running command: /sbin/sgdisk --zap-all -
/dev/sdc
[2016-03-10 09:45:10,820][ceph-test-osd01][WARNING] Caution: invalid backup GPT header, but valid main header; regenerating
[2016-03-10 09:45:10,821][ceph-test-osd01][WARNING] backup header from main header.
[2016-03-10 09:45:10,821][ceph-test-osd01][WARNING]
[2016-03-10 09:45:10,821][ceph-test-osd01][WARNING] Warning! Main and backup partition tables differ! Use the 'c' and 'e' options
[2016-03-10 09:45:10,821][ceph-test-osd01][WARNING] on the recovery & transformation menu to examine the two tables.
[2016-03-10 09:45:10,821][ceph-test-osd01][WARNING]
[2016-03-10 09:45:10,821][ceph-test-osd01][WARNING] Warning! One or more CRCs don't match. You should repair the disk!
[2016-03-10 09:45:10,822][ceph-test-osd01][WARNING]
[2016-03-10 09:45:11,988][ceph-test-osd01][DEBUG ] ^G^G****************************************************************************
[2016-03-10 09:45:11,989][ceph-test-osd01][DEBUG ] Caution: Found protective or hybrid MBR and corrupt GPT. Using GPT, but disk
[2016-03-10 09:45:11,989][ceph-test-osd01][DEBUG ] verification and recovery are STRONGLY recommended.
[2016-03-10 09:45:11,989][ceph-test-osd01][DEBUG ] ********************************************************************
[2016-03-10 09:45:11,989][ceph-test-osd01][DEBUG ] GPT data structures destroyed! You may now partition the disk using fdisk or
[2016-03-10 09:45:11,989][ceph-test-osd01][DEBUG ] other utilities.
[2016-03-10 09:45:11,989][ceph-test-osd01][WARNING] INFO:ceph-disk:Running command: /sbin/sgdisk --clear --mbrtogpt -- /dev/sdc
[2016-03-10 09:45:13,106][ceph-test-osd01][DEBUG ] Creating new GPT entries.
[2016-03-10 09:45:13,106][ceph-test-osd01][DEBUG ] The operation has completed successfully.
[2016-03-10 09:45:13,106][ceph-test-osd01][WARNING] DEBUG:ceph-disk:Calling partprobe on zapped device /dev/sdc
[2016-03-10 09:45:13,106][ceph-test-osd01][WARNING] INFO:ceph-disk:Running command: /sbin/udevadm settle
[2016-03-10 09:45:13,170][ceph-test-osd01][WARNING] INFO:ceph-disk:Running command: /sbin/partprobe /dev/sdc
[2016-03-10 09:45:13,178][ceph-test-osd01][WARNING] INFO:ceph-disk:Running command: /sbin/udevadm settle
[2016-03-10 09:45:13,210][ceph-test-osd01][WARNING] INFO:ceph-disk:Running command: /usr/bin/ceph-osd --cluster=ceph --show-config-value=fsid
[2016-03-10 09:45:13,226][ceph-test-osd01][WARNING] INFO:ceph-disk:Running command: /usr/bin/ceph-conf --cluster=ceph --name=osd. --lookup osd_mkfs_options_xfs
[2016-03-10 09:45:13,233][ceph-test-osd01][WARNING] INFO:ceph-disk:Running command: /usr/bin/ceph-conf --cluster=ceph --name=osd. --lookup osd_fs_mkfs_options_xfs
[2016-03-10 09:45:13,249][ceph-test-osd01][WARNING] INFO:ceph-disk:Running command: /usr/bin/ceph-conf --cluster=ceph --name=osd. --lookup osd_mount_options_xfs
[2016-03-10 09:45:13,257][ceph-test-osd01][WARNING] INFO:ceph-disk:Running command: /usr/bin/ceph-conf --cluster=ceph --name=osd. --lookup osd_fs_mount_options_xfs
[2016-03-10 09:45:13,273][ceph-test-osd01][WARNING] INFO:ceph-disk:Running command: /usr/bin/ceph-osd --cluster=ceph --show-config-value=osd_journal_size
[2016-03-10 09:45:13,288][ceph-test-osd01][WARNING] INFO:ceph-disk:Running command: /usr/bin/ceph-conf --cluster=ceph --name=osd. --lookup osd_cryptsetup_parameters
[2016-03-10 09:45:13,296][ceph-test-osd01][WARNING] INFO:ceph-disk:Running command: /usr/bin/ceph-conf --cluster=ceph --name=osd. --lookup osd_dmcrypt_key_size
[2016-03-10 09:45:13,312][ceph-test-osd01][WARNING] INFO:ceph-disk:Running command: /usr/bin/ceph-conf --cluster=ceph --name=osd. --lookup osd_dmcrypt_type
[2016-03-10 09:45:13,316][ceph-test-osd01][WARNING] DEBUG:ceph-disk:get_dm_uuid /dev/sdc uuid path is /sys/dev/block/8:32/dm/uuid
[2016-03-10 09:45:13,316][ceph-test-osd01][WARNING] DEBUG:ceph-disk:get_dm_uuid /dev/sde uuid path is /sys/dev/block/8:64/dm/uuid
[2016-03-10 09:45:13,316][ceph-test-osd01][WARNING] DEBUG:ceph-disk:get_dm_uuid /dev/sde uuid path is /sys/dev/block/8:64/dm/uuid
[2016-03-10 09:45:13,316][ceph-test-osd01][WARNING] INFO:ceph-disk:Running command: /sbin/parted --machine -- /dev/sde print
[2016-03-10 09:45:13,530][ceph-test-osd01][WARNING] WARNING:ceph-disk:OSD will not be hot-swappable if journal is not the same device as the osd data
[2016-03-10 09:45:13,531][ceph-test-osd01][WARNING] DEBUG:ceph-disk:Creating journal partition num 7 size 20000 on /dev/sde
[2016-03-10 09:45:13,531][ceph-test-osd01][WARNING] INFO:ceph-disk:Running command: /sbin/sgdisk --new=7:0:+20000M --change-name=7:ceph journal --partition-guid=7:f9a73091-8ee9-4ba2-a508-277e102974a0 --typ
ecode=7:45b0969e-9b03-4f30-b4c6-b4b80ceff106 --mbrtogpt -- /dev/sde
[2016-03-10 09:45:14,647][ceph-test-osd01][DEBUG ] The operation has completed successfully.
[2016-03-10 09:45:14,648][ceph-test-osd01][WARNING] DEBUG:ceph-disk:Calling partprobe on prepared device /dev/sde
[2016-03-10 09:45:14,648][ceph-test-osd01][WARNING] INFO:ceph-disk:Running command: /sbin/udevadm settle
[2016-03-10 09:45:14,812][ceph-test-osd01][WARNING] INFO:ceph-disk:Running command: /sbin/partprobe /dev/sde
[2016-03-10 09:45:14,812][ceph-test-osd01][WARNING] INFO:ceph-disk:Running command: /sbin/udevadm settle
[2016-03-10 09:45:14,812][ceph-test-osd01][WARNING] DEBUG:ceph-disk:Journal is GPT partition /dev/disk/by-partuuid/f9a73091-8ee9-4ba2-a508-277e102974a0
[2016-03-10 09:45:14,813][ceph-test-osd01][WARNING] DEBUG:ceph-disk:Journal is GPT partition /dev/disk/by-partuuid/f9a73091-8ee9-4ba2-a508-277e102974a0
[2016-03-10 09:45:14,813][ceph-test-osd01][WARNING] DEBUG:ceph-disk:get_dm_uuid /dev/sdc uuid path is /sys/dev/block/8:32/dm/uuid
[2016-03-10 09:45:14,813][ceph-test-osd01][WARNING] DEBUG:ceph-disk:get_dm_uuid /dev/sdc uuid path is /sys/dev/block/8:32/dm/uuid
[2016-03-10 09:45:14,813][ceph-test-osd01][WARNING] DEBUG:ceph-disk:Creating osd partition on /dev/sdc
[2016-03-10 09:45:14,813][ceph-test-osd01][WARNING] INFO:ceph-disk:Running command: /sbin/sgdisk --largest-new=1 --change-name=1:ceph data --partition-guid=1:07110204-361f-40d7-9771-aa85721f6523 --typecode=1:89c57f98-2fe5-4dc0-89c1-f3ad0ceff2be -- /dev/sdc
[2016-03-10 09:45:16,030][ceph-test-osd01][DEBUG ] The operation has completed successfully.
[2016-03-10 09:45:16,030][ceph-test-osd01][WARNING] DEBUG:ceph-disk:Calling partprobe on created device /dev/sdc
[2016-03-10 09:45:16,030][ceph-test-osd01][WARNING] INFO:ceph-disk:Running command: /sbin/udevadm settle
[2016-03-10 09:45:16,094][ceph-test-osd01][WARNING] INFO:ceph-disk:Running command: /sbin/partprobe /dev/sdc
[2016-03-10 09:45:16,110][ceph-test-osd01][WARNING] INFO:ceph-disk:Running command: /sbin/udevadm settle
[2016-03-10 09:45:16,142][ceph-test-osd01][WARNING] DEBUG:ceph-disk:get_dm_uuid /dev/sdc uuid path is /sys/dev/block/8:32/dm/uuid
[2016-03-10 09:45:16,142][ceph-test-osd01][WARNING] DEBUG:ceph-disk:Creating xfs fs on /dev/sdc1
[2016-03-10 09:45:16,142][ceph-test-osd01][WARNING] INFO:ceph-disk:Running command: /sbin/mkfs t xfs -f -i size=2048 - /dev/sdc1
[2016-03-10 09:45:55,602][ceph-test-osd01][DEBUG ] meta-data=/dev/sdc1 isize=2048 agcount=4, agsize=122009151 blks
[2016-03-10 09:45:55,602][ceph-test-osd01][DEBUG ] = sectsz=512 attr=2, projid32bit=0
[2016-03-10 09:45:55,603][ceph-test-osd01][DEBUG ] data = bsize=4096 blocks=488036603, imaxpct=5
[2016-03-10 09:45:55,603][ceph-test-osd01][DEBUG ] = sunit=0 swidth=0 blks
[2016-03-10 09:45:55,603][ceph-test-osd01][DEBUG ] naming =version 2 bsize=4096 ascii-ci=0
[2016-03-10 09:45:55,603][ceph-test-osd01][DEBUG ] log =internal log bsize=4096 blocks=238299, version=2
[2016-03-10 09:45:55,603][ceph-test-osd01][DEBUG ] = sectsz=512 sunit=0 blks, lazy-count=1
[2016-03-10 09:45:55,603][ceph-test-osd01][WARNING] DEBUG:ceph-disk:Mounting /dev/sdc1 on /var/lib/ceph/tmp/mnt.4ykVkF with options noatime,inode64
[2016-03-10 09:45:55,603][ceph-test-osd01][DEBUG ] realtime =none extsz=4096 blocks=0, rtextents=0
[2016-03-10 09:45:55,604][ceph-test-osd01][WARNING] INFO:ceph-disk:Running command: /bin/mount t xfs -o noatime,inode64 - /dev/sdc1 /var/lib/ceph/tmp/mnt.4ykVkF
[2016-03-10 09:45:55,868][ceph-test-osd01][WARNING] DEBUG:ceph-disk:Preparing osd data dir /var/lib/ceph/tmp/mnt.4ykVkF
[2016-03-10 09:45:55,868][ceph-test-osd01][WARNING] DEBUG:ceph-disk:Creating symlink /var/lib/ceph/tmp/mnt.4ykVkF/journal > /dev/disk/by-partuuid/f9a73091-8ee9-4ba2-a508-277e102974a0
[2016-03-10 09:45:55,868][ceph-test-osd01][WARNING] INFO:ceph-disk:Running command: /bin/chown -R ceph:ceph /var/lib/ceph/tmp/mnt.4ykVkF/ceph_fsid.15099.tmp
[2016-03-10 09:45:55,869][ceph-test-osd01][WARNING] INFO:ceph-disk:Running command: /bin/chown -R ceph:ceph /var/lib/ceph/tmp/mnt.4ykVkF/fsid.15099.tmp
[2016-03-10 09:45:55,869][ceph-test-osd01][WARNING] INFO:ceph-disk:Running command: /bin/chown -R ceph:ceph /var/lib/ceph/tmp/mnt.4ykVkF/journal_uuid.15099.tmp
[2016-03-10 09:45:55,876][ceph-test-osd01][WARNING] INFO:ceph-disk:Running command: /bin/chown -R ceph:ceph /var/lib/ceph/tmp/mnt.4ykVkF/magic.15099.tmp
[2016-03-10 09:45:55,878][ceph-test-osd01][WARNING] INFO:ceph-disk:Running command: /bin/chown -R ceph:ceph /var/lib/ceph/tmp/mnt.4ykVkF
[2016-03-10 09:45:55,881][ceph-test-osd01][WARNING] DEBUG:ceph-disk:Unmounting /var/lib/ceph/tmp/mnt.4ykVkF
[2016-03-10 09:45:55,882][ceph-test-osd01][WARNING] INFO:ceph-disk:Running command: /bin/umount -
/var/lib/ceph/tmp/mnt.4ykVkF
[2016-03-10 09:45:56,046][ceph-test-osd01][WARNING] DEBUG:ceph-disk:get_dm_uuid /dev/sdc uuid path is /sys/dev/block/8:32/dm/uuid
[2016-03-10 09:45:56,046][ceph-test-osd01][WARNING] INFO:ceph-disk:Running command: /sbin/sgdisk --typecode=1:4fbd7e29-9d25-41b8-afd0-062c0ceff05d -- /dev/sdc
[2016-03-10 09:45:57,263][ceph-test-osd01][DEBUG ] The operation has completed successfully.
[2016-03-10 09:45:57,263][ceph-test-osd01][WARNING] DEBUG:ceph-disk:Calling partprobe on prepared device /dev/sdc
[2016-03-10 09:45:57,264][ceph-test-osd01][WARNING] INFO:ceph-disk:Running command: /sbin/udevadm settle
[2016-03-10 09:45:57,478][ceph-test-osd01][WARNING] INFO:ceph-disk:Running command: /sbin/partprobe /dev/sdc
[2016-03-10 09:45:57,478][ceph-test-osd01][WARNING] INFO:ceph-disk:Running command: /sbin/udevadm settle
[2016-03-10 09:45:57,494][ceph-test-osd01][WARNING] INFO:ceph-disk:Running command: /sbin/udevadm trigger --action=add --sysname-match sdc1
...

The logs level is not in the brackets.

History

#1 Updated by Desmond Shih over 5 years ago

Please close this issue...
It seems that command 'ceph-disk' has its subcommand, so the log has one more log level.
But I still consider those logs sould be in 'INFO' log level instead of 'WARNING'...

#2 Updated by Nathan Cutler over 5 years ago

  • Status changed from New to 4
  • Assignee set to Loïc Dachary

#3 Updated by Loïc Dachary over 5 years ago

  • Assignee deleted (Loïc Dachary)

I don't know enough about ceph-deploy to provide useful information.

#4 Updated by Alfredo Deza about 3 years ago

  • Status changed from 4 to Closed

stderr from remote interactions is treated as warning, stdout is used as debug level in ceph-deploy

Also available in: Atom PDF