Advertisement
Guest User

osd-prepare-pod

a guest
Jan 17th, 2018
325
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.67 KB | None | 0 0
  1. ubuntu@ceph3:~/openstack-helm$ kubectl logs ceph-osd-device-iscsi-cephosd-0-cephjournal-0-gptpv -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. ++ : 1
  19. ++ : 100
  20. ++ : 0
  21. ++ : 0
  22. +++ uuidgen
  23. ++ : 11fb66d7-45c4-482f-8065-3f924365e145
  24. +++ uuidgen
  25. ++ : 70dd8b77-4c7a-4524-9202-7878dfbc5091
  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 iscsi@127.0.0.1:3260:iscsi-iqn.2017-12.org.openstack.openstack-helm:cephosd:0 ]]
  76. ++ hardware_to_block iscsi@127.0.0.1:3260:iscsi-iqn.2017-12.org.openstack.openstack-helm:cephosd:0
  77. ++ local DEV=iscsi@127.0.0.1:3260:iscsi-iqn.2017-12.org.openstack.openstack-helm:cephosd:0
  78. ++ '[' '!' -b iscsi@127.0.0.1:3260:iscsi-iqn.2017-12.org.openstack.openstack-helm:cephosd:0 ']'
  79. +++ tr '[A-Z]' '[a-z]'
  80. +++ awk -F@ '{print $1}'
  81. +++ echo iscsi@127.0.0.1:3260:iscsi-iqn.2017-12.org.openstack.openstack-helm:cephosd:0
  82. ++ local DEVTYPE=iscsi
  83. ++ local SDEV=
  84. ++ case ${DEVTYPE} in
  85. +++ echo iscsi@127.0.0.1:3260:iscsi-iqn.2017-12.org.openstack.openstack-helm:cephosd:0
  86. +++ sed 's/.*@//;s/\///g'
  87. ++ local ISCSI=127.0.0.1:3260:iscsi-iqn.2017-12.org.openstack.openstack-helm:cephosd:0
  88. ++ IFS=:
  89. ++ read TGTIP TGTPORT TGTIQN TGTUNIT TGTLUN
  90. +++ xargs basename
  91. +++ readlink -f /dev/disk/by-path/ip-127.0.0.1:3260-iscsi-iqn.2017-12.org.openstack.openstack-helm:cephosd-lun-0
  92. ++ SDEV=sda
  93. ++ '[' '!' -z sda -a -b /dev/sda ']'
  94. ++ echo /dev/sda
  95. ++ return
  96. + OSD_DEVICE=/dev/sda
  97. ++ readlink -f /dev/sda
  98. + OSD_DEVICE=/dev/sda
  99. + [[ ! -b /dev/sda ]]
  100. + '[' '!' -e /var/lib/ceph/bootstrap-osd/ceph.keyring ']'
  101. + timeout 10 ceph --cluster ceph --name client.bootstrap-osd --keyring /var/lib/ceph/bootstrap-osd/ceph.keyring health
  102. HEALTH_OK
  103. + parted --script /dev/sda print
  104. ++ parted --script /dev/sda print
  105. ++ egrep '^ 1.*ceph data'
  106. + [[ -n '' ]]
  107. + '[' 0 -ne 1 ']'
  108. + '[' -n iscsi@127.0.0.1:3260:iscsi-iqn.2017-12.org.openstack.openstack-helm:cephjournal:0 ']'
  109. ++ hardware_to_block iscsi@127.0.0.1:3260:iscsi-iqn.2017-12.org.openstack.openstack-helm:cephjournal:0
  110. ++ local DEV=iscsi@127.0.0.1:3260:iscsi-iqn.2017-12.org.openstack.openstack-helm:cephjournal:0
  111. ++ '[' '!' -b iscsi@127.0.0.1:3260:iscsi-iqn.2017-12.org.openstack.openstack-helm:cephjournal:0 ']'
  112. +++ awk -F@ '{print $1}'
  113. +++ tr '[A-Z]' '[a-z]'
  114. +++ echo iscsi@127.0.0.1:3260:iscsi-iqn.2017-12.org.openstack.openstack-helm:cephjournal:0
  115. ++ local DEVTYPE=iscsi
  116. ++ local SDEV=
  117. ++ case ${DEVTYPE} in
  118. +++ sed 's/.*@//;s/\///g'
  119. +++ echo iscsi@127.0.0.1:3260:iscsi-iqn.2017-12.org.openstack.openstack-helm:cephjournal:0
  120. ++ local ISCSI=127.0.0.1:3260:iscsi-iqn.2017-12.org.openstack.openstack-helm:cephjournal:0
  121. ++ IFS=:
  122. ++ read TGTIP TGTPORT TGTIQN TGTUNIT TGTLUN
  123. +++ xargs basename
  124. +++ readlink -f /dev/disk/by-path/ip-127.0.0.1:3260-iscsi-iqn.2017-12.org.openstack.openstack-helm:cephjournal-lun-0
  125. ++ SDEV=sdb
  126. ++ '[' '!' -z sdb -a -b /dev/sdb ']'
  127. ++ echo /dev/sdb
  128. ++ return
  129. + OSD_JOURNAL=/dev/sdb
  130. + '[' -b /dev/sdb ']'
  131. ++ readlink -f /dev/sdb
  132. + OSD_JOURNAL=/dev/sdb
  133. ++ sed 's/[^0-9]//g'
  134. ++ echo
  135. + OSD_JOURNAL_PARTITION=
  136. + '[' -z '' ']'
  137. ++ sed 's/\(.*[^0-9]\)[0-9]*$/\1/'
  138. ++ echo /dev/sdb
  139. + local JDEV=/dev/sdb
  140. ++ basename /dev/sdb
  141. ++ basename /dev/sdb
  142. + '[' -d /sys/block/sdb/sdb ']'
  143. + chown ceph. /dev/sdb
  144. + CLI_OPTS='--cluster ceph --filestore'
  145. + '[' -b /dev/sdb -a 1 -eq 1 ']'
  146. + log 'OSD_FORCE_ZAP is set, so we will erase the journal device /dev/sdb'
  147. + '[' -z 'OSD_FORCE_ZAP is set, so we will erase the journal device /dev/sdb' ']'
  148. ++ date '+%F %T'
  149. + TIMESTAMP='2018-01-17 14:01:33'
  150. 2018-01-17 14:01:33 /start_osd.sh: OSD_FORCE_ZAP is set, so we will erase the journal device /dev/sdb
  151. + echo '2018-01-17 14:01:33 /start_osd.sh: OSD_FORCE_ZAP is set, so we will erase the journal device /dev/sdb'
  152. + return 0
  153. + '[' -z '' ']'
  154. + parted -s /dev/sdb mklabel msdos
  155. + [[ 0 -eq 1 ]]
  156. + ceph-disk -v prepare --cluster ceph --filestore --journal-uuid 11fb66d7-45c4-482f-8065-3f924365e145 /dev/sda /dev/sdb
  157. /usr/lib/python2.7/dist-packages/ceph_disk/main.py:5653: UserWarning:
  158. *******************************************************************************
  159. This tool is now deprecated in favor of ceph-volume.
  160. It is recommended to use ceph-volume for OSD deployments. For details see:
  161.  
  162. http://docs.ceph.com/docs/master/ceph-volume/#migrating
  163.  
  164. *******************************************************************************
  165.  
  166. warnings.warn(DEPRECATION_WARNING)
  167. command: Running command: /usr/bin/ceph-osd --cluster=ceph --show-config-value=fsid
  168. 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
  169. 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
  170. 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
  171. get_dm_uuid: get_dm_uuid /dev/sda uuid path is /sys/dev/block/8:0/dm/uuid
  172. command: Running command: /usr/bin/ceph-osd --cluster=ceph --show-config-value=osd_journal_size
  173. get_dm_uuid: get_dm_uuid /dev/sda uuid path is /sys/dev/block/8:0/dm/uuid
  174. get_dm_uuid: get_dm_uuid /dev/sda uuid path is /sys/dev/block/8:0/dm/uuid
  175. get_dm_uuid: get_dm_uuid /dev/sda uuid path is /sys/dev/block/8:0/dm/uuid
  176. command: Running command: /usr/bin/ceph-conf --cluster=ceph --name=osd. --lookup osd_mkfs_type
  177. command: Running command: /usr/bin/ceph-conf --cluster=ceph --name=osd. --lookup osd_mkfs_options_xfs
  178. command: Running command: /usr/bin/ceph-conf --cluster=ceph --name=osd. --lookup osd_mount_options_xfs
  179. command: Running command: /usr/bin/ceph-conf --cluster=ceph --name=osd. --lookup osd_fs_mount_options_xfs
  180. get_dm_uuid: get_dm_uuid /dev/sdb uuid path is /sys/dev/block/8:16/dm/uuid
  181. prepare_device: OSD will not be hot-swappable if journal is not the same device as the osd data
  182. get_dm_uuid: get_dm_uuid /dev/sdb uuid path is /sys/dev/block/8:16/dm/uuid
  183. ptype_tobe_for_name: name = journal
  184. get_dm_uuid: get_dm_uuid /dev/sdb uuid path is /sys/dev/block/8:16/dm/uuid
  185. command: Running command: /sbin/parted --machine -- /dev/sdb print
  186. get_free_partition_index: get_free_partition_index: analyzing BYT;
  187. /dev/sdb:5371MB:scsi:512:512:msdos:LIO-ORG FILEIO:;
  188.  
  189. create_partition: Creating journal partition num 1 size 5120 on /dev/sdb
  190. command_check_call: Running command: /sbin/sgdisk --new=1:0:+5120M --change-name=1:ceph journal --partition-guid=1:11fb66d7-45c4-482f-8065-3f924365e145 --typecode=1:45b0969e-9b03-4f30-b4c6-b4b80ceff106 --mbrtogpt -- /dev/sdb
  191.  
  192. ***************************************************************
  193. Found invalid GPT and valid MBR; converting MBR to GPT format
  194. in memory.
  195. ***************************************************************
  196.  
  197. Setting name!
  198. partNum is 0
  199. REALLY setting name!
  200. The operation has completed successfully.
  201. update_partition: Calling partprobe on created device /dev/sdb
  202. command_check_call: Running command: /sbin/udevadm settle --timeout=600
  203. command: Running command: /usr/bin/flock -s /dev/sdb /sbin/partprobe /dev/sdb
  204. command_check_call: Running command: /sbin/udevadm settle --timeout=600
  205. get_dm_uuid: get_dm_uuid /dev/sdb uuid path is /sys/dev/block/8:16/dm/uuid
  206. get_dm_uuid: get_dm_uuid /dev/sdb uuid path is /sys/dev/block/8:16/dm/uuid
  207. get_dm_uuid: get_dm_uuid /dev/sdb1 uuid path is /sys/dev/block/8:17/dm/uuid
  208. prepare_device: Journal is GPT partition /dev/disk/by-partuuid/11fb66d7-45c4-482f-8065-3f924365e145
  209. command_check_call: Running command: /sbin/sgdisk --typecode=1:45b0969e-9b03-4f30-b4c6-b4b80ceff106 -- /dev/sdb
  210. The operation has completed successfully.
  211. update_partition: Calling partprobe on prepared device /dev/sdb
  212. command_check_call: Running command: /sbin/udevadm settle --timeout=600
  213. command: Running command: /usr/bin/flock -s /dev/sdb /sbin/partprobe /dev/sdb
  214. command_check_call: Running command: /sbin/udevadm settle --timeout=600
  215. prepare_device: Journal is GPT partition /dev/disk/by-partuuid/11fb66d7-45c4-482f-8065-3f924365e145
  216. get_dm_uuid: get_dm_uuid /dev/sda uuid path is /sys/dev/block/8:0/dm/uuid
  217. set_data_partition: Creating osd partition on /dev/sda
  218. get_dm_uuid: get_dm_uuid /dev/sda uuid path is /sys/dev/block/8:0/dm/uuid
  219. ptype_tobe_for_name: name = data
  220. get_dm_uuid: get_dm_uuid /dev/sda uuid path is /sys/dev/block/8:0/dm/uuid
  221. create_partition: Creating data partition num 1 size 0 on /dev/sda
  222. command_check_call: Running command: /sbin/sgdisk --largest-new=1 --change-name=1:ceph data --partition-guid=1:0bea889f-a43a-4cd0-a42a-a4f41cde62e8 --typecode=1:89c57f98-2fe5-4dc0-89c1-f3ad0ceff2be --mbrtogpt -- /dev/sda
  223. Setting name!
  224. partNum is 0
  225. REALLY setting name!
  226. The operation has completed successfully.
  227. update_partition: Calling partprobe on created device /dev/sda
  228. command_check_call: Running command: /sbin/udevadm settle --timeout=600
  229. command: Running command: /usr/bin/flock -s /dev/sda /sbin/partprobe /dev/sda
  230. command_check_call: Running command: /sbin/udevadm settle --timeout=600
  231. get_dm_uuid: get_dm_uuid /dev/sda uuid path is /sys/dev/block/8:0/dm/uuid
  232. get_dm_uuid: get_dm_uuid /dev/sda uuid path is /sys/dev/block/8:0/dm/uuid
  233. get_dm_uuid: get_dm_uuid /dev/sda1 uuid path is /sys/dev/block/8:1/dm/uuid
  234. populate_data_path_device: Creating xfs fs on /dev/sda1
  235. command_check_call: Running command: /sbin/mkfs -t xfs -f -i size=2048 -f -- /dev/sda1
  236. meta-data=/dev/sda1 isize=2048 agcount=4, agsize=2097215 blks
  237. = sectsz=512 attr=2, projid32bit=1
  238. = crc=1 finobt=1, sparse=0
  239. data = bsize=4096 blocks=8388859, imaxpct=25
  240. = sunit=0 swidth=0 blks
  241. naming =version 2 bsize=4096 ascii-ci=0 ftype=1
  242. log =internal log bsize=4096 blocks=4096, version=2
  243. = sectsz=512 sunit=0 blks, lazy-count=1
  244. realtime =none extsz=4096 blocks=0, rtextents=0
  245. mount: Mounting /dev/sda1 on /var/lib/ceph/tmp/mnt.lSPH2O with options noatime,inode64
  246. command_check_call: Running command: /bin/mount -t xfs -o noatime,inode64 -- /dev/sda1 /var/lib/ceph/tmp/mnt.lSPH2O
  247. populate_data_path: Preparing osd data dir /var/lib/ceph/tmp/mnt.lSPH2O
  248. command: Running command: /bin/chown -R ceph:ceph /var/lib/ceph/tmp/mnt.lSPH2O/ceph_fsid.19577.tmp
  249. command: Running command: /bin/chown -R ceph:ceph /var/lib/ceph/tmp/mnt.lSPH2O/fsid.19577.tmp
  250. command: Running command: /bin/chown -R ceph:ceph /var/lib/ceph/tmp/mnt.lSPH2O/magic.19577.tmp
  251. command: Running command: /bin/chown -R ceph:ceph /var/lib/ceph/tmp/mnt.lSPH2O/journal_uuid.19577.tmp
  252. adjust_symlink: Creating symlink /var/lib/ceph/tmp/mnt.lSPH2O/journal -> /dev/disk/by-partuuid/11fb66d7-45c4-482f-8065-3f924365e145
  253. command: Running command: /bin/chown -R ceph:ceph /var/lib/ceph/tmp/mnt.lSPH2O/type.19577.tmp
  254. command: Running command: /bin/chown -R ceph:ceph /var/lib/ceph/tmp/mnt.lSPH2O
  255. unmount: Unmounting /var/lib/ceph/tmp/mnt.lSPH2O
  256. command_check_call: Running command: /bin/umount -- /var/lib/ceph/tmp/mnt.lSPH2O
  257. get_dm_uuid: get_dm_uuid /dev/sda uuid path is /sys/dev/block/8:0/dm/uuid
  258. command_check_call: Running command: /sbin/sgdisk --typecode=1:4fbd7e29-9d25-41b8-afd0-062c0ceff05d -- /dev/sda
  259. The operation has completed successfully.
  260. update_partition: Calling partprobe on prepared device /dev/sda
  261. command_check_call: Running command: /sbin/udevadm settle --timeout=600
  262. command: Running command: /usr/bin/flock -s /dev/sda /sbin/partprobe /dev/sda
  263. command_check_call: Running command: /sbin/udevadm settle --timeout=600
  264. command_check_call: Running command: /sbin/udevadm trigger --action=add --sysname-match sda1
  265. /usr/lib/python2.7/dist-packages/ceph_disk/main.py:5685: UserWarning:
  266. *******************************************************************************
  267. This tool is now deprecated in favor of ceph-volume.
  268. It is recommended to use ceph-volume for OSD deployments. For details see:
  269.  
  270. http://docs.ceph.com/docs/master/ceph-volume/#migrating
  271.  
  272. *******************************************************************************
  273.  
  274. warnings.warn(DEPRECATION_WARNING)
  275. + udevadm settle --timeout=600
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement