Advertisement
renmak

prepare log

Jan 18th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.16 KB | None | 0 0
  1. ubuntu@ceph3:~/openstack-helm-infra$ kubectl logs ceph-osd-device-ceph-osd-sdd-zrg8b -n ceph -c osd-prepare-pod
  2. + export LC_ALL=C
  3. + LC_ALL=C
  4. + source variables_entrypoint.sh
  5. ++ ALL_SCENARIOS='osd osd_directory osd_directory_single osd_ceph_disk osd_ceph_disk_prepare osd_ceph_disk_activate osd_ceph_activate_journal mgr'
  6. ++ : ceph
  7. ++ : ceph-config/ceph
  8. ++ :
  9. ++ : osd_ceph_disk_prepare
  10. ++ : 1
  11. ++ : ceph3
  12. ++ : ceph3
  13. ++ : /etc/ceph/monmap-ceph
  14. ++ : /var/lib/ceph/mon/ceph-ceph3
  15. ++ : 0
  16. ++ : 0
  17. ++ : mds-ceph3
  18. ++ : 0
  19. ++ : 100
  20. ++ : 0
  21. ++ : 0
  22. +++ uuidgen
  23. ++ : fb131dbb-4cc7-49b1-a716-0ffdf4465c36
  24. +++ uuidgen
  25. ++ : 426a5fff-c72f-400c-a7f1-105048e4ab96
  26. ++ : root=default host=ceph3
  27. ++ : 0
  28. ++ : cephfs
  29. ++ : cephfs_data
  30. ++ : 8
  31. ++ : cephfs_metadata
  32. ++ : 8
  33. ++ : ceph3
  34. ++ :
  35. ++ :
  36. ++ : 8080
  37. ++ : 0
  38. ++ : 9000
  39. ++ : 0.0.0.0
  40. ++ : cephnfs
  41. ++ : ceph3
  42. ++ : 0.0.0.0
  43. ++ : 128
  44. ++ CLI_OPTS='--cluster ceph'
  45. ++ DAEMON_OPTS='--cluster ceph --setuser ceph --setgroup ceph -d'
  46. ++ MOUNT_OPTS='-t xfs -o noatime,inode64'
  47. ++ MDS_KEYRING=/var/lib/ceph/mds/ceph-mds-ceph3/keyring
  48. ++ ADMIN_KEYRING=/etc/ceph/ceph.client.admin.keyring
  49. ++ MON_KEYRING=/etc/ceph/ceph.mon.keyring
  50. ++ RGW_KEYRING=/var/lib/ceph/radosgw/ceph3/keyring
  51. ++ MGR_KEYRING=/var/lib/ceph/mgr/ceph-ceph3/keyring
  52. ++ MDS_BOOTSTRAP_KEYRING=/var/lib/ceph/bootstrap-mds/ceph.keyring
  53. ++ RGW_BOOTSTRAP_KEYRING=/var/lib/ceph/bootstrap-rgw/ceph.keyring
  54. ++ OSD_BOOTSTRAP_KEYRING=/var/lib/ceph/bootstrap-osd/ceph.keyring
  55. ++ OSD_PATH_BASE=/var/lib/ceph/osd/ceph
  56. + source common_functions.sh
  57. ++ set -ex
  58. + is_available rpm
  59. + command -v rpm
  60. + is_available dpkg
  61. + command -v dpkg
  62. + OS_VENDOR=ubuntu
  63. + source /etc/default/ceph
  64. ++ TCMALLOC_MAX_TOTAL_THREAD_CACHE_BYTES=134217728
  65. + case "$CEPH_DAEMON" in
  66. + OSD_TYPE=prepare
  67. + start_osd
  68. + [[ ! -e /etc/ceph/ceph.conf ]]
  69. + '[' 1 -eq 1 ']'
  70. + [[ ! -e /etc/ceph/ceph.client.admin.keyring ]]
  71. + case "$OSD_TYPE" in
  72. + source osd_disk_prepare.sh
  73. ++ set -ex
  74. + osd_disk_prepare
  75. + [[ -z /dev/sdd ]]
  76. ++ hardware_to_block /dev/sdd
  77. ++ local DEV=/dev/sdd
  78. ++ '[' '!' -b /dev/sdd ']'
  79. ++ echo /dev/sdd
  80. ++ return
  81. + OSD_DEVICE=/dev/sdd
  82. ++ readlink -f /dev/sdd
  83. + OSD_DEVICE=/dev/sdd
  84. + [[ ! -b /dev/sdd ]]
  85. + '[' '!' -e /var/lib/ceph/bootstrap-osd/ceph.keyring ']'
  86. + timeout 10 ceph --cluster ceph --name client.bootstrap-osd --keyring /var/lib/ceph/bootstrap-osd/ceph.keyring health
  87. HEALTH_WARN no active mgr; Reduced data availability: 152 pgs inactive; Degraded data redundancy: 152 pgs unclean
  88. + parted --script /dev/sdd print
  89. ++ egrep '^ 1.*ceph data'
  90. ++ parted --script /dev/sdd print
  91. + [[ -n '' ]]
  92. + '[' 0 -ne 1 ']'
  93. + '[' -n '' ']'
  94. ++ dev_part /dev/sdd 2
  95. ++ local osd_device=/dev/sdd
  96. ++ local osd_partition=2
  97. ++ [[ -L /dev/sdd ]]
  98. ++ [[ d == [0-9] ]]
  99. ++ echo /dev/sdd2
  100. + OSD_JOURNAL=/dev/sdd2
  101. + OSD_JOURNAL_PARTITION=2
  102. + CLI_OPTS='--cluster ceph --filestore'
  103. + '[' -b /dev/sdd2 -a 0 -eq 1 ']'
  104. + [[ 0 -eq 1 ]]
  105. + ceph-disk -v prepare --cluster ceph --filestore --journal-uuid fb131dbb-4cc7-49b1-a716-0ffdf4465c36 /dev/sdd /dev/sdd2
  106. /usr/lib/python2.7/dist-packages/ceph_disk/main.py:5653: UserWarning:
  107. *******************************************************************************
  108. This tool is now deprecated in favor of ceph-volume.
  109. It is recommended to use ceph-volume for OSD deployments. For details see:
  110.  
  111. http://docs.ceph.com/docs/master/ceph-volume/#migrating
  112.  
  113. *******************************************************************************
  114.  
  115. warnings.warn(DEPRECATION_WARNING)
  116. command: Running command: /usr/bin/ceph-osd --cluster=ceph --show-config-value=fsid
  117. command: Running command: /usr/bin/ceph-osd --check-allows-journal -i 0 --log-file $run_dir/$cluster-osd-check.log --cluster ceph --setuser ceph --setgroup ceph
  118. command: Running command: /usr/bin/ceph-osd --check-wants-journal -i 0 --log-file $run_dir/$cluster-osd-check.log --cluster ceph --setuser ceph --setgroup ceph
  119. command: Running command: /usr/bin/ceph-osd --check-needs-journal -i 0 --log-file $run_dir/$cluster-osd-check.log --cluster ceph --setuser ceph --setgroup ceph
  120. get_dm_uuid: get_dm_uuid /dev/sdd uuid path is /sys/dev/block/8:48/dm/uuid
  121. command: Running command: /usr/bin/ceph-osd --cluster=ceph --show-config-value=osd_journal_size
  122. get_dm_uuid: get_dm_uuid /dev/sdd uuid path is /sys/dev/block/8:48/dm/uuid
  123. get_dm_uuid: get_dm_uuid /dev/sdd uuid path is /sys/dev/block/8:48/dm/uuid
  124. get_dm_uuid: get_dm_uuid /dev/sdd uuid path is /sys/dev/block/8:48/dm/uuid
  125. command: Running command: /usr/bin/ceph-conf --cluster=ceph --name=osd. --lookup osd_mkfs_type
  126. command: Running command: /usr/bin/ceph-conf --cluster=ceph --name=osd. --lookup osd_mkfs_options_xfs
  127. command: Running command: /usr/bin/ceph-conf --cluster=ceph --name=osd. --lookup osd_mount_options_xfs
  128. command: Running command: /usr/bin/ceph-conf --cluster=ceph --name=osd. --lookup osd_fs_mount_options_xfs
  129. prepare_file: Creating journal file /dev/sdd2 with size 0 (ceph-osd will resize and allocate)
  130. command: Running command: /bin/chown -R ceph:ceph /dev/sdd2
  131. prepare_file: Journal is file /dev/sdd2
  132. prepare_file: OSD will not be hot-swappable if journal is not the same device as the osd data
  133. get_dm_uuid: get_dm_uuid /dev/sdd uuid path is /sys/dev/block/8:48/dm/uuid
  134. set_data_partition: Creating osd partition on /dev/sdd
  135. get_dm_uuid: get_dm_uuid /dev/sdd uuid path is /sys/dev/block/8:48/dm/uuid
  136. ptype_tobe_for_name: name = data
  137. get_dm_uuid: get_dm_uuid /dev/sdd uuid path is /sys/dev/block/8:48/dm/uuid
  138. create_partition: Creating data partition num 1 size 0 on /dev/sdd
  139. command_check_call: Running command: /sbin/sgdisk --largest-new=1 --change-name=1:ceph data --partition-guid=1:c8bbfec9-d9c1-44de-b805-30cff11764ba --typecode=1:89c57f98-2fe5-4dc0-89c1-f3ad0ceff2be --mbrtogpt -- /dev/sdd
  140. Setting name!
  141. partNum is 0
  142. REALLY setting name!
  143. The operation has completed successfully.
  144. update_partition: Calling partprobe on created device /dev/sdd
  145. command_check_call: Running command: /sbin/udevadm settle --timeout=600
  146. command: Running command: /usr/bin/flock -s /dev/sdd /sbin/partprobe /dev/sdd
  147. command_check_call: Running command: /sbin/udevadm settle --timeout=600
  148. get_dm_uuid: get_dm_uuid /dev/sdd uuid path is /sys/dev/block/8:48/dm/uuid
  149. get_dm_uuid: get_dm_uuid /dev/sdd uuid path is /sys/dev/block/8:48/dm/uuid
  150. get_dm_uuid: get_dm_uuid /dev/sdd1 uuid path is /sys/dev/block/8:49/dm/uuid
  151. populate_data_path_device: Creating xfs fs on /dev/sdd1
  152. command_check_call: Running command: /sbin/mkfs -t xfs -f -i size=2048 -f -- /dev/sdd1
  153. meta-data=/dev/sdd1 isize=2048 agcount=4, agsize=393151 blks
  154. = sectsz=512 attr=2, projid32bit=1
  155. = crc=1 finobt=1, sparse=0
  156. data = bsize=4096 blocks=1572603, imaxpct=25
  157. = sunit=0 swidth=0 blks
  158. naming =version 2 bsize=4096 ascii-ci=0 ftype=1
  159. log =internal log bsize=4096 blocks=2560, version=2
  160. = sectsz=512 sunit=0 blks, lazy-count=1
  161. realtime =none extsz=4096 blocks=0, rtextents=0
  162. mount: Mounting /dev/sdd1 on /var/lib/ceph/tmp/mnt.0QxIGK with options noatime,inode64
  163. command_check_call: Running command: /bin/mount -t xfs -o noatime,inode64 -- /dev/sdd1 /var/lib/ceph/tmp/mnt.0QxIGK
  164. populate_data_path: Preparing osd data dir /var/lib/ceph/tmp/mnt.0QxIGK
  165. command: Running command: /bin/chown -R ceph:ceph /var/lib/ceph/tmp/mnt.0QxIGK/ceph_fsid.16064.tmp
  166. command: Running command: /bin/chown -R ceph:ceph /var/lib/ceph/tmp/mnt.0QxIGK/fsid.16064.tmp
  167. command: Running command: /bin/chown -R ceph:ceph /var/lib/ceph/tmp/mnt.0QxIGK/magic.16064.tmp
  168. command: Running command: /bin/chown -R ceph:ceph /var/lib/ceph/tmp/mnt.0QxIGK/journal_uuid.16064.tmp
  169. adjust_symlink: Creating symlink /var/lib/ceph/tmp/mnt.0QxIGK/journal -> /dev/sdd2
  170. command: Running command: /bin/chown -R ceph:ceph /var/lib/ceph/tmp/mnt.0QxIGK/type.16064.tmp
  171. command: Running command: /bin/chown -R ceph:ceph /var/lib/ceph/tmp/mnt.0QxIGK
  172. unmount: Unmounting /var/lib/ceph/tmp/mnt.0QxIGK
  173. command_check_call: Running command: /bin/umount -- /var/lib/ceph/tmp/mnt.0QxIGK
  174. get_dm_uuid: get_dm_uuid /dev/sdd uuid path is /sys/dev/block/8:48/dm/uuid
  175. command_check_call: Running command: /sbin/sgdisk --typecode=1:4fbd7e29-9d25-41b8-afd0-062c0ceff05d -- /dev/sdd
  176. The operation has completed successfully.
  177. update_partition: Calling partprobe on prepared device /dev/sdd
  178. command_check_call: Running command: /sbin/udevadm settle --timeout=600
  179. command: Running command: /usr/bin/flock -s /dev/sdd /sbin/partprobe /dev/sdd
  180. command_check_call: Running command: /sbin/udevadm settle --timeout=600
  181. command_check_call: Running command: /sbin/udevadm trigger --action=add --sysname-match sdd1
  182. /usr/lib/python2.7/dist-packages/ceph_disk/main.py:5685: UserWarning:
  183. *******************************************************************************
  184. This tool is now deprecated in favor of ceph-volume.
  185. It is recommended to use ceph-volume for OSD deployments. For details see:
  186.  
  187. http://docs.ceph.com/docs/master/ceph-volume/#migrating
  188.  
  189. *******************************************************************************
  190.  
  191. warnings.warn(DEPRECATION_WARNING)
  192. + udevadm settle --timeout=600
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement