Advertisement
Guest User

kubectl logs -n ceph ceph-osd-device-iscsi-cephosd-0-cephjou

a guest
Jan 11th, 2018
313
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.15 KB | None | 0 0
  1. ubuntu@cephnode0:~$ kubectl logs -n ceph ceph-osd-device-iscsi-cephosd-0-cephjournal-0-wfbrc 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. ++ : cephnode0
  12. ++ : cephnode0
  13. ++ : /etc/ceph/monmap-ceph
  14. ++ : /var/lib/ceph/mon/ceph-cephnode0
  15. ++ : 0
  16. ++ : 0
  17. ++ : mds-cephnode0
  18. ++ : 1
  19. ++ : 100
  20. ++ : 0
  21. ++ : 0
  22. +++ uuidgen
  23. ++ : 5abec06f-846b-4a45-9c38-fd2610c6f393
  24. +++ uuidgen
  25. ++ : fcd56a49-f0a4-4571-adc8-0f065a3a9207
  26. ++ : root=default host=cephnode0
  27. ++ : 0
  28. ++ : cephfs
  29. ++ : cephfs_data
  30. ++ : 8
  31. ++ : cephfs_metadata
  32. ++ : 8
  33. ++ : cephnode0
  34. ++ :
  35. ++ :
  36. ++ : 8080
  37. ++ : 0
  38. ++ : 9000
  39. ++ : 0.0.0.0
  40. ++ : cephnfs
  41. ++ : cephnode0
  42. ++ : 1
  43. ++ : 0.0.0.0
  44. ++ : 7000
  45. ++ : 128
  46. ++ CLI_OPTS='--cluster ceph'
  47. ++ DAEMON_OPTS='--cluster ceph --setuser ceph --setgroup ceph -d'
  48. ++ MOUNT_OPTS='-t xfs -o noatime,inode64'
  49. ++ MDS_KEYRING=/var/lib/ceph/mds/ceph-mds-cephnode0/keyring
  50. ++ ADMIN_KEYRING=/etc/ceph/ceph.client.admin.keyring
  51. ++ MON_KEYRING=/etc/ceph/ceph.mon.keyring
  52. ++ RGW_KEYRING=/var/lib/ceph/radosgw/cephnode0/keyring
  53. ++ MGR_KEYRING=/var/lib/ceph/mgr/ceph-cephnode0/keyring
  54. ++ MDS_BOOTSTRAP_KEYRING=/var/lib/ceph/bootstrap-mds/ceph.keyring
  55. ++ RGW_BOOTSTRAP_KEYRING=/var/lib/ceph/bootstrap-rgw/ceph.keyring
  56. ++ OSD_BOOTSTRAP_KEYRING=/var/lib/ceph/bootstrap-osd/ceph.keyring
  57. ++ OSD_PATH_BASE=/var/lib/ceph/osd/ceph
  58. + source common_functions.sh
  59. ++ set -ex
  60. + is_available rpm
  61. + command -v rpm
  62. + is_available dpkg
  63. + command -v dpkg
  64. + OS_VENDOR=ubuntu
  65. + source /etc/default/ceph
  66. ++ TCMALLOC_MAX_TOTAL_THREAD_CACHE_BYTES=134217728
  67. + case "$CEPH_DAEMON" in
  68. + OSD_TYPE=prepare
  69. + start_osd
  70. + [[ ! -e /etc/ceph/ceph.conf ]]
  71. + '[' 1 -eq 1 ']'
  72. + [[ ! -e /etc/ceph/ceph.client.admin.keyring ]]
  73. + case "$OSD_TYPE" in
  74. + source osd_disk_prepare.sh
  75. ++ set -ex
  76. + osd_disk_prepare
  77. + [[ -z iscsi@127.0.0.1:3260:iscsi-iqn.2017-12.org.openstack.openstack-helm:cephosd:0 ]]
  78. ++ hardware_to_block iscsi@127.0.0.1:3260:iscsi-iqn.2017-12.org.openstack.openstack-helm:cephosd:0
  79. ++ local DEV=iscsi@127.0.0.1:3260:iscsi-iqn.2017-12.org.openstack.openstack-helm:cephosd:0
  80. ++ '[' '!' -b iscsi@127.0.0.1:3260:iscsi-iqn.2017-12.org.openstack.openstack-helm:cephosd:0 ']'
  81. +++ echo iscsi@127.0.0.1:3260:iscsi-iqn.2017-12.org.openstack.openstack-helm:cephosd:0
  82. +++ awk -F@ '{print $1}'
  83. +++ tr '[A-Z]' '[a-z]'
  84. ++ local DEVTYPE=iscsi
  85. ++ local SDEV=
  86. ++ case ${DEVTYPE} in
  87. +++ sed 's/.*@//;s/\///g'
  88. +++ echo iscsi@127.0.0.1:3260:iscsi-iqn.2017-12.org.openstack.openstack-helm:cephosd:0
  89. ++ local ISCSI=127.0.0.1:3260:iscsi-iqn.2017-12.org.openstack.openstack-helm:cephosd:0
  90. ++ IFS=:
  91. ++ read TGTIP TGTPORT TGTIQN TGTUNIT TGTLUN
  92. +++ xargs basename
  93. +++ readlink -f /dev/disk/by-path/ip-127.0.0.1:3260-iscsi-iqn.2017-12.org.openstack.openstack-helm:cephosd-lun-0
  94. ++ SDEV=sda
  95. ++ '[' '!' -z sda -a -b /dev/sda ']'
  96. ++ echo /dev/sda
  97. ++ return
  98. + OSD_DEVICE=/dev/sda
  99. ++ readlink -f /dev/sda
  100. + OSD_DEVICE=/dev/sda
  101. + [[ ! -b /dev/sda ]]
  102. + '[' '!' -e /var/lib/ceph/bootstrap-osd/ceph.keyring ']'
  103. + timeout 10 ceph --cluster ceph --name client.bootstrap-osd --keyring /var/lib/ceph/bootstrap-osd/ceph.keyring health
  104. HEALTH_OK
  105. + parted --script /dev/sda print
  106. ++ egrep '^ 1.*ceph data'
  107. ++ parted --script /dev/sda print
  108. + [[ -n '' ]]
  109. + '[' 0 -ne 1 ']'
  110. + '[' -n iscsi@127.0.0.1:3260:iscsi-iqn.2017-12.org.openstack.openstack-helm:cephjournal:0 ']'
  111. ++ hardware_to_block iscsi@127.0.0.1:3260:iscsi-iqn.2017-12.org.openstack.openstack-helm:cephjournal:0
  112. ++ local DEV=iscsi@127.0.0.1:3260:iscsi-iqn.2017-12.org.openstack.openstack-helm:cephjournal:0
  113. ++ '[' '!' -b iscsi@127.0.0.1:3260:iscsi-iqn.2017-12.org.openstack.openstack-helm:cephjournal:0 ']'
  114. +++ tr '[A-Z]' '[a-z]'
  115. +++ awk -F@ '{print $1}'
  116. +++ echo iscsi@127.0.0.1:3260:iscsi-iqn.2017-12.org.openstack.openstack-helm:cephjournal:0
  117. ++ local DEVTYPE=iscsi
  118. ++ local SDEV=
  119. ++ case ${DEVTYPE} in
  120. +++ sed 's/.*@//;s/\///g'
  121. +++ echo iscsi@127.0.0.1:3260:iscsi-iqn.2017-12.org.openstack.openstack-helm:cephjournal:0
  122. ++ local ISCSI=127.0.0.1:3260:iscsi-iqn.2017-12.org.openstack.openstack-helm:cephjournal:0
  123. ++ IFS=:
  124. ++ read TGTIP TGTPORT TGTIQN TGTUNIT TGTLUN
  125. +++ xargs basename
  126. +++ readlink -f /dev/disk/by-path/ip-127.0.0.1:3260-iscsi-iqn.2017-12.org.openstack.openstack-helm:cephjournal-lun-0
  127. ++ SDEV=sdb
  128. ++ '[' '!' -z sdb -a -b /dev/sdb ']'
  129. ++ echo /dev/sdb
  130. ++ return
  131. + OSD_JOURNAL=/dev/sdb
  132. + '[' -b /dev/sdb ']'
  133. ++ readlink -f /dev/sdb
  134. + OSD_JOURNAL=/dev/sdb
  135. ++ sed 's/[^0-9]//g'
  136. ++ echo
  137. + OSD_JOURNAL_PARTITION=
  138. + '[' -z '' ']'
  139. ++ sed 's/\(.*[^0-9]\)[0-9]*$/\1/'
  140. ++ echo /dev/sdb
  141. + local JDEV=/dev/sdb
  142. ++ basename /dev/sdb
  143. ++ basename /dev/sdb
  144. + '[' -d /sys/block/sdb/sdb ']'
  145. + chown ceph. /dev/sdb
  146. + CLI_OPTS='--cluster ceph --filestore'
  147. + '[' -b /dev/sdb -a 1 -eq 1 ']'
  148. + log 'OSD_FORCE_ZAP is set, so we will erase the journal device /dev/sdb'
  149. + '[' -z 'OSD_FORCE_ZAP is set, so we will erase the journal device /dev/sdb' ']'
  150. ++ date '+%F %T'
  151. + TIMESTAMP='2018-01-11 16:11:07'
  152. + echo '2018-01-11 16:11:07 /start_osd.sh: OSD_FORCE_ZAP is set, so we will erase the journal device /dev/sdb'
  153. + return 0
  154. + mkfs -t xfs -f /dev/sdb
  155. 2018-01-11 16:11:07 /start_osd.sh: OSD_FORCE_ZAP is set, so we will erase the journal device /dev/sdb
  156. meta-data=/dev/sdb isize=512 agcount=4, agsize=327808 blks
  157. = sectsz=512 attr=2, projid32bit=1
  158. = crc=1 finobt=1, sparse=0
  159. data = bsize=4096 blocks=1311232, imaxpct=25
  160. = sunit=0 swidth=0 blks
  161. naming =version 2 bsize=4096 ascii-ci=0 ftype=1
  162. log =internal log bsize=4096 blocks=2560, version=2
  163. = sectsz=512 sunit=0 blks, lazy-count=1
  164. realtime =none extsz=4096 blocks=0, rtextents=0
  165. + [[ 0 -eq 1 ]]
  166. + ceph-disk -v prepare --cluster ceph --filestore --journal-uuid 5abec06f-846b-4a45-9c38-fd2610c6f393 /dev/sda /dev/sdb
  167. /usr/lib/python2.7/dist-packages/ceph_disk/main.py:5653: UserWarning:
  168. *******************************************************************************
  169. This tool is now deprecated in favor of ceph-volume.
  170. It is recommended to use ceph-volume for OSD deployments. For details see:
  171.  
  172. http://docs.ceph.com/docs/master/ceph-volume/#migrating
  173.  
  174. *******************************************************************************
  175.  
  176. warnings.warn(DEPRECATION_WARNING)
  177. command: Running command: /usr/bin/ceph-osd --cluster=ceph --show-config-value=fsid
  178. 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
  179. 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
  180. 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
  181. get_dm_uuid: get_dm_uuid /dev/sda uuid path is /sys/dev/block/8:0/dm/uuid
  182. command: Running command: /usr/bin/ceph-osd --cluster=ceph --show-config-value=osd_journal_size
  183. get_dm_uuid: get_dm_uuid /dev/sda uuid path is /sys/dev/block/8:0/dm/uuid
  184. get_dm_uuid: get_dm_uuid /dev/sda uuid path is /sys/dev/block/8:0/dm/uuid
  185. get_dm_uuid: get_dm_uuid /dev/sda uuid path is /sys/dev/block/8:0/dm/uuid
  186. command: Running command: /usr/bin/ceph-conf --cluster=ceph --name=osd. --lookup osd_mkfs_type
  187. command: Running command: /usr/bin/ceph-conf --cluster=ceph --name=osd. --lookup osd_mkfs_options_xfs
  188. command: Running command: /usr/bin/ceph-conf --cluster=ceph --name=osd. --lookup osd_mount_options_xfs
  189. command: Running command: /usr/bin/ceph-conf --cluster=ceph --name=osd. --lookup osd_fs_mount_options_xfs
  190. get_dm_uuid: get_dm_uuid /dev/sdb uuid path is /sys/dev/block/8:16/dm/uuid
  191. prepare_device: OSD will not be hot-swappable if journal is not the same device as the osd data
  192. get_dm_uuid: get_dm_uuid /dev/sdb uuid path is /sys/dev/block/8:16/dm/uuid
  193. ptype_tobe_for_name: name = journal
  194. get_dm_uuid: get_dm_uuid /dev/sdb uuid path is /sys/dev/block/8:16/dm/uuid
  195. command: Running command: /sbin/parted --machine -- /dev/sdb print
  196. get_free_partition_index: get_free_partition_index: analyzing BYT;
  197. /dev/sdb:5371MB:scsi:512:512:loop:LIO-ORG FILEIO:;
  198. 1:0.00B:5371MB:5371MB:xfs::;
  199.  
  200. create_partition: Creating journal partition num 2 size 5120 on /dev/sdb
  201. command_check_call: Running command: /sbin/sgdisk --new=2:0:+5120M --change-name=2:ceph journal --partition-guid=2:5abec06f-846b-4a45-9c38-fd2610c6f393 --typecode=2:45b0969e-9b03-4f30-b4c6-b4b80ceff106 --mbrtogpt -- /dev/sdb
  202. Creating new GPT entries.
  203. Setting name!
  204. partNum is 1
  205. REALLY setting name!
  206. The operation has completed successfully.
  207. update_partition: Calling partprobe on created device /dev/sdb
  208. command_check_call: Running command: /sbin/udevadm settle --timeout=600
  209. command: Running command: /usr/bin/flock -s /dev/sdb /sbin/partprobe /dev/sdb
  210. command_check_call: Running command: /sbin/udevadm settle --timeout=600
  211. get_dm_uuid: get_dm_uuid /dev/sdb uuid path is /sys/dev/block/8:16/dm/uuid
  212. get_dm_uuid: get_dm_uuid /dev/sdb uuid path is /sys/dev/block/8:16/dm/uuid
  213. get_dm_uuid: get_dm_uuid /dev/sdb2 uuid path is /sys/dev/block/8:18/dm/uuid
  214. prepare_device: Journal is GPT partition /dev/disk/by-partuuid/5abec06f-846b-4a45-9c38-fd2610c6f393
  215. command_check_call: Running command: /sbin/sgdisk --typecode=2:45b0969e-9b03-4f30-b4c6-b4b80ceff106 -- /dev/sdb
  216. The operation has completed successfully.
  217. update_partition: Calling partprobe on prepared device /dev/sdb
  218. command_check_call: Running command: /sbin/udevadm settle --timeout=600
  219. command: Running command: /usr/bin/flock -s /dev/sdb /sbin/partprobe /dev/sdb
  220. command_check_call: Running command: /sbin/udevadm settle --timeout=600
  221. prepare_device: Journal is GPT partition /dev/disk/by-partuuid/5abec06f-846b-4a45-9c38-fd2610c6f393
  222. get_dm_uuid: get_dm_uuid /dev/sda uuid path is /sys/dev/block/8:0/dm/uuid
  223. set_data_partition: Creating osd partition on /dev/sda
  224. get_dm_uuid: get_dm_uuid /dev/sda uuid path is /sys/dev/block/8:0/dm/uuid
  225. ptype_tobe_for_name: name = data
  226. get_dm_uuid: get_dm_uuid /dev/sda uuid path is /sys/dev/block/8:0/dm/uuid
  227. create_partition: Creating data partition num 1 size 0 on /dev/sda
  228. command_check_call: Running command: /sbin/sgdisk --largest-new=1 --change-name=1:ceph data --partition-guid=1:b060248f-bedb-4d12-b020-1a5ca5dab898 --typecode=1:89c57f98-2fe5-4dc0-89c1-f3ad0ceff2be --mbrtogpt -- /dev/sda
  229. Setting name!
  230. partNum is 0
  231. REALLY setting name!
  232. The operation has completed successfully.
  233. update_partition: Calling partprobe on created device /dev/sda
  234. command_check_call: Running command: /sbin/udevadm settle --timeout=600
  235. command: Running command: /usr/bin/flock -s /dev/sda /sbin/partprobe /dev/sda
  236. command_check_call: Running command: /sbin/udevadm settle --timeout=600
  237. get_dm_uuid: get_dm_uuid /dev/sda uuid path is /sys/dev/block/8:0/dm/uuid
  238. get_dm_uuid: get_dm_uuid /dev/sda uuid path is /sys/dev/block/8:0/dm/uuid
  239. get_dm_uuid: get_dm_uuid /dev/sda1 uuid path is /sys/dev/block/8:1/dm/uuid
  240. populate_data_path_device: Creating xfs fs on /dev/sda1
  241. command_check_call: Running command: /sbin/mkfs -t xfs -f -i size=2048 -f -- /dev/sda1
  242. meta-data=/dev/sda1 isize=2048 agcount=4, agsize=2097215 blks
  243. = sectsz=512 attr=2, projid32bit=1
  244. = crc=1 finobt=1, sparse=0
  245. data = bsize=4096 blocks=8388859, imaxpct=25
  246. = sunit=0 swidth=0 blks
  247. naming =version 2 bsize=4096 ascii-ci=0 ftype=1
  248. log =internal log bsize=4096 blocks=4096, version=2
  249. = sectsz=512 sunit=0 blks, lazy-count=1
  250. realtime =none extsz=4096 blocks=0, rtextents=0
  251. mount: Mounting /dev/sda1 on /var/lib/ceph/tmp/mnt.7mIrYU with options noatime,inode64
  252. command_check_call: Running command: /bin/mount -t xfs -o noatime,inode64 -- /dev/sda1 /var/lib/ceph/tmp/mnt.7mIrYU
  253. populate_data_path: Preparing osd data dir /var/lib/ceph/tmp/mnt.7mIrYU
  254. command: Running command: /bin/chown -R ceph:ceph /var/lib/ceph/tmp/mnt.7mIrYU/ceph_fsid.15123.tmp
  255. command: Running command: /bin/chown -R ceph:ceph /var/lib/ceph/tmp/mnt.7mIrYU/fsid.15123.tmp
  256. command: Running command: /bin/chown -R ceph:ceph /var/lib/ceph/tmp/mnt.7mIrYU/magic.15123.tmp
  257. command: Running command: /bin/chown -R ceph:ceph /var/lib/ceph/tmp/mnt.7mIrYU/journal_uuid.15123.tmp
  258. adjust_symlink: Creating symlink /var/lib/ceph/tmp/mnt.7mIrYU/journal -> /dev/disk/by-partuuid/5abec06f-846b-4a45-9c38-fd2610c6f393
  259. command: Running command: /bin/chown -R ceph:ceph /var/lib/ceph/tmp/mnt.7mIrYU/type.15123.tmp
  260. command: Running command: /bin/chown -R ceph:ceph /var/lib/ceph/tmp/mnt.7mIrYU
  261. unmount: Unmounting /var/lib/ceph/tmp/mnt.7mIrYU
  262. command_check_call: Running command: /bin/umount -- /var/lib/ceph/tmp/mnt.7mIrYU
  263. get_dm_uuid: get_dm_uuid /dev/sda uuid path is /sys/dev/block/8:0/dm/uuid
  264. command_check_call: Running command: /sbin/sgdisk --typecode=1:4fbd7e29-9d25-41b8-afd0-062c0ceff05d -- /dev/sda
  265. The operation has completed successfully.
  266. update_partition: Calling partprobe on prepared device /dev/sda
  267. command_check_call: Running command: /sbin/udevadm settle --timeout=600
  268. command: Running command: /usr/bin/flock -s /dev/sda /sbin/partprobe /dev/sda
  269. command_check_call: Running command: /sbin/udevadm settle --timeout=600
  270. command_check_call: Running command: /sbin/udevadm trigger --action=add --sysname-match sda1
  271. /usr/lib/python2.7/dist-packages/ceph_disk/main.py:5685: UserWarning:
  272. *******************************************************************************
  273. This tool is now deprecated in favor of ceph-volume.
  274. It is recommended to use ceph-volume for OSD deployments. For details see:
  275.  
  276. http://docs.ceph.com/docs/master/ceph-volume/#migrating
  277.  
  278. *******************************************************************************
  279.  
  280. warnings.warn(DEPRECATION_WARNING)
  281. + udevadm settle --timeout=600
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement