Advertisement
Guest User

osd-prepare-pod

a guest
Jan 17th, 2018
305
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.88 KB | None | 0 0
  1. ubuntu@ceph3:~$ 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. ++ : 6ccae3a4-2c30-4162-a9a1-c4ab9c5790d9
  24. +++ uuidgen
  25. ++ : 83fe3798-ea91-40cc-8696-9cc3b43907a9
  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. +++ echo iscsi@127.0.0.1:3260:iscsi-iqn.2017-12.org.openstack.openstack-helm:cephosd:0
  80. +++ awk -F@ '{print $1}'
  81. +++ tr '[A-Z]' '[a-z]'
  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. +++ readlink -f /dev/disk/by-path/ip-127.0.0.1:3260-iscsi-iqn.2017-12.org.openstack.openstack-helm:cephosd-lun-0
  91. +++ xargs basename
  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_WARN Reduced data availability: 152 pgs inactive; Degraded data redundancy: 152 pgs unclean
  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. +++ echo iscsi@127.0.0.1:3260:iscsi-iqn.2017-12.org.openstack.openstack-helm:cephjournal:0
  113. +++ awk -F@ '{print $1}'
  114. +++ tr '[A-Z]' '[a-z]'
  115. ++ local DEVTYPE=iscsi
  116. ++ local SDEV=
  117. ++ case ${DEVTYPE} in
  118. +++ echo iscsi@127.0.0.1:3260:iscsi-iqn.2017-12.org.openstack.openstack-helm:cephjournal:0
  119. +++ sed 's/.*@//;s/\///g'
  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. +++ readlink -f /dev/disk/by-path/ip-127.0.0.1:3260-iscsi-iqn.2017-12.org.openstack.openstack-helm:cephjournal-lun-0
  124. +++ xargs basename
  125. ++ SDEV=sdc
  126. ++ '[' '!' -z sdc -a -b /dev/sdc ']'
  127. ++ echo /dev/sdc
  128. ++ return
  129. + OSD_JOURNAL=/dev/sdc
  130. + '[' -b /dev/sdc ']'
  131. ++ readlink -f /dev/sdc
  132. + OSD_JOURNAL=/dev/sdc
  133. ++ echo
  134. ++ sed 's/[^0-9]//g'
  135. + OSD_JOURNAL_PARTITION=
  136. + '[' -z '' ']'
  137. ++ echo /dev/sdc
  138. ++ sed 's/\(.*[^0-9]\)[0-9]*$/\1/'
  139. + local JDEV=/dev/sdc
  140. ++ basename /dev/sdc
  141. ++ basename /dev/sdc
  142. + '[' -d /sys/block/sdc/sdc ']'
  143. + chown ceph. /dev/sdc
  144. + CLI_OPTS='--cluster ceph --filestore'
  145. + '[' -b /dev/sdc -a 1 -eq 1 ']'
  146. + log 'OSD_FORCE_ZAP is set, so we will erase the journal device /dev/sdc'
  147. + '[' -z 'OSD_FORCE_ZAP is set, so we will erase the journal device /dev/sdc' ']'
  148. ++ date '+%F %T'
  149. + TIMESTAMP='2018-01-17 16:23:01'
  150. + echo '2018-01-17 16:23:01 /start_osd.sh: OSD_FORCE_ZAP is set, so we will erase the journal device /dev/sdc'
  151. + return 0
  152. 2018-01-17 16:23:01 /start_osd.sh: OSD_FORCE_ZAP is set, so we will erase the journal device /dev/sdc
  153. + '[' -z '' ']'
  154. + parted -s /dev/sdc mklabel msdos
  155. + [[ 0 -eq 1 ]]
  156. + ceph-disk -v prepare --cluster ceph --filestore --journal-uuid 6ccae3a4-2c30-4162-a9a1-c4ab9c5790d9 /dev/sda /dev/sdc
  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/sdc uuid path is /sys/dev/block/8:32/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/sdc uuid path is /sys/dev/block/8:32/dm/uuid
  183. ptype_tobe_for_name: name = journal
  184. get_dm_uuid: get_dm_uuid /dev/sdc uuid path is /sys/dev/block/8:32/dm/uuid
  185. command: Running command: /sbin/parted --machine -- /dev/sdc print
  186. get_free_partition_index: get_free_partition_index: analyzing BYT;
  187. /dev/sdc:5369MB:scsi:512:512:msdos:LIO-ORG FILEIO:;
  188.  
  189. create_partition: Creating journal partition num 1 size 5120 on /dev/sdc
  190. command_check_call: Running command: /sbin/sgdisk --new=1:0:+5120M --change-name=1:ceph journal --partition-guid=1:6ccae3a4-2c30-4162-a9a1-c4ab9c5790d9 --typecode=1:45b0969e-9b03-4f30-b4c6-b4b80ceff106 --mbrtogpt -- /dev/sdc
  191. Could not create partition 1 from 2048 to 10487807
  192. Unable to set partition 1's name to 'ceph journal'!
  193.  
  194. ***************************************************************
  195. Found invalid GPT and valid MBR; converting MBR to GPT format
  196. in memory.
  197. ***************************************************************
  198.  
  199. Setting name!
  200. partNum is 0
  201. REALLY setting name!
  202. Could not change partition 1's type code to 45b0969e-9b03-4f30-b4c6-b4b80ceff106!
  203. Error encountered; not saving changes.
  204. '/sbin/sgdisk --new=1:0:+5120M --change-name=1:ceph journal --partition-guid=1:6ccae3a4-2c30-4162-a9a1-c4ab9c5790d9 --typecode=1:45b0969e-9b03-4f30-b4c6-b4b80ceff106 --mbrtogpt -- /dev/sdc' failed with status code 4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement