alohamora

ansible ceph module : Unable to create OSD

Mar 18th, 2014
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.17 KB | None | 0 0
  1. ===============================================================================================================================================================================================================================
  2.  
  3. TASK: [osd | If partition named 'ceph' exists] ********************************
  4. failed: [ceph-node1] => (item=/dev/vdb) => {"changed": false, "cmd": "parted --script /dev/vdb print | egrep -sq '^ 1.*ceph' ", "delta": "0:00:00.017092", "end": "2014-03-18 16:41:55.916821", "item": "/dev/vdb", "rc": 1, "start": "2014-03-18 16:41:55.899729", "stdout_lines": []}
  5. ...ignoring
  6. failed: [ceph-node1] => (item=/dev/vdc) => {"changed": false, "cmd": "parted --script /dev/vdc print | egrep -sq '^ 1.*ceph' ", "delta": "0:00:00.013826", "end": "2014-03-18 16:41:57.670164", "item": "/dev/vdc", "rc": 1, "start": "2014-03-18 16:41:57.656338", "stdout_lines": []}
  7. ...ignoring
  8.  
  9. TASK: [osd | Prepare OSD disk(s)] *********************************************
  10. failed: [ceph-node1] => (item=[{u'changed': False, u'stdout': u'', u'delta': u'0:00:00.017092', 'stdout_lines': [], u'end': u'2014-03-18 16:41:55.916821', u'start': u'2014-03-18 16:41:55.899729', u'cmd': u"parted --script /dev/vdb print | egrep -sq '^ 1.*ceph' ", 'item': '/dev/vdb', u'stderr': u'', u'rc': 1, 'invocation': {'module_name': 'shell', 'module_args': u"parted --script /dev/vdb print | egrep -sq '^ 1.*ceph'"}}, '/dev/vdb']) => {"changed": true, "cmd": ["ceph-disk", "prepare", "/dev/vdb"], "delta": "0:00:04.866755", "end": "2014-03-18 16:42:04.407792", "item": [{"changed": false, "cmd": "parted --script /dev/vdb print | egrep -sq '^ 1.*ceph' ", "delta": "0:00:00.017092", "end": "2014-03-18 16:41:55.916821", "invocation": {"module_args": "parted --script /dev/vdb print | egrep -sq '^ 1.*ceph'", "module_name": "shell"}, "item": "/dev/vdb", "rc": 1, "start": "2014-03-18 16:41:55.899729", "stderr": "", "stdout": "", "stdout_lines": []}, "/dev/vdb"], "rc": 1, "start": "2014-03-18 16:41:59.541037"}
  11. stderr: INFO:ceph-disk:Will colocate journal with data on /dev/vdb
  12. mkfs.xfs: /dev/vdb1 contains a mounted filesystem
  13. Usage: mkfs.xfs
  14. /* blocksize */ [-b log=n|size=num]
  15. /* data subvol */ [-d agcount=n,agsize=n,file,name=xxx,size=num,
  16. (sunit=value,swidth=value|su=num,sw=num),
  17. sectlog=n|sectsize=num
  18. /* inode size */ [-i log=n|perblock=n|size=num,maxpct=n,attr=0|1|2,
  19. projid32bit=0|1]
  20. /* log subvol */ [-l agnum=n,internal,size=num,logdev=xxx,version=n
  21. sunit=value|su=num,sectlog=n|sectsize=num,
  22. lazy-count=0|1]
  23. /* label */ [-L label (maximum 12 characters)]
  24. /* naming */ [-n log=n|size=num,version=2|ci]
  25. /* prototype file */ [-p fname]
  26. /* quiet */ [-q]
  27. /* realtime subvol */ [-r extsize=num,size=num,rtdev=xxx]
  28. /* sectorsize */ [-s log=n|size=num]
  29. /* version */ [-V]
  30. devicename
  31. <devicename> is required unless -d name=xxx is given.
  32. <num> is xxx (bytes), xxxs (sectors), xxxb (fs blocks), xxxk (xxx KiB),
  33. xxxm (xxx MiB), xxxg (xxx GiB), xxxt (xxx TiB) or xxxp (xxx PiB).
  34. <value> is xxx (512 byte blocks).
  35. ceph-disk: Error: Command '['mkfs', '-t', 'xfs', '-f', '-i', 'size=2048', '--', '/dev/vdb1']' returned non-zero exit status 1
  36. stdout: The operation has completed successfully.
  37. The operation has completed successfully.
  38. ...ignoring
  39. failed: [ceph-node1] => (item=[{u'changed': False, u'stdout': u'', u'delta': u'0:00:00.013826', 'stdout_lines': [], u'end': u'2014-03-18 16:41:57.670164', u'start': u'2014-03-18 16:41:57.656338', u'cmd': u"parted --script /dev/vdc print | egrep -sq '^ 1.*ceph' ", 'item': '/dev/vdc', u'stderr': u'', u'rc': 1, 'invocation': {'module_name': 'shell', 'module_args': u"parted --script /dev/vdc print | egrep -sq '^ 1.*ceph'"}}, '/dev/vdc']) => {"changed": true, "cmd": ["ceph-disk", "prepare", "/dev/vdc"], "delta": "0:00:04.759613", "end": "2014-03-18 16:42:11.291644", "item": [{"changed": false, "cmd": "parted --script /dev/vdc print | egrep -sq '^ 1.*ceph' ", "delta": "0:00:00.013826", "end": "2014-03-18 16:41:57.670164", "invocation": {"module_args": "parted --script /dev/vdc print | egrep -sq '^ 1.*ceph'", "module_name": "shell"}, "item": "/dev/vdc", "rc": 1, "start": "2014-03-18 16:41:57.656338", "stderr": "", "stdout": "", "stdout_lines": []}, "/dev/vdc"], "rc": 1, "start": "2014-03-18 16:42:06.532031"}
  40. stderr: INFO:ceph-disk:Will colocate journal with data on /dev/vdc
  41. mkfs.xfs: /dev/vdc1 contains a mounted filesystem
  42. Usage: mkfs.xfs
  43. /* blocksize */ [-b log=n|size=num]
  44. /* data subvol */ [-d agcount=n,agsize=n,file,name=xxx,size=num,
  45. (sunit=value,swidth=value|su=num,sw=num),
  46. sectlog=n|sectsize=num
  47. /* inode size */ [-i log=n|perblock=n|size=num,maxpct=n,attr=0|1|2,
  48. projid32bit=0|1]
  49. /* log subvol */ [-l agnum=n,internal,size=num,logdev=xxx,version=n
  50. sunit=value|su=num,sectlog=n|sectsize=num,
  51. lazy-count=0|1]
  52. /* label */ [-L label (maximum 12 characters)]
  53. /* naming */ [-n log=n|size=num,version=2|ci]
  54. /* prototype file */ [-p fname]
  55. /* quiet */ [-q]
  56. /* realtime subvol */ [-r extsize=num,size=num,rtdev=xxx]
  57. /* sectorsize */ [-s log=n|size=num]
  58. /* version */ [-V]
  59. devicename
  60. <devicename> is required unless -d name=xxx is given.
  61. <num> is xxx (bytes), xxxs (sectors), xxxb (fs blocks), xxxk (xxx KiB),
  62. xxxm (xxx MiB), xxxg (xxx GiB), xxxt (xxx TiB) or xxxp (xxx PiB).
  63. <value> is xxx (512 byte blocks).
  64. ceph-disk: Error: Command '['mkfs', '-t', 'xfs', '-f', '-i', 'size=2048', '--', '/dev/vdc1']' returned non-zero exit status 1
  65. stdout: The operation has completed successfully.
  66. The operation has completed successfully.
  67. ...ignoring
  68.  
  69. TASK: [osd | Activate OSD(s)] *************************************************
  70. ok: [ceph-node1] => (item=/dev/vdb)
  71. ok: [ceph-node1] => (item=/dev/vdc)
  72.  
  73. TASK: [osd | Start and add that the OSD service to the init sequence] *********
  74. failed: [ceph-node1] => {"failed": true, "item": ""}
  75. msg: 2014-03-18 16:42:16.364387 7f49037d0700 1 -- :/0 messenger.start
  76. 2014-03-18 16:42:16.366385 7f49037d0700 1 -- :/1028158 --> 192.168.1.38:6789/0 -- auth(proto 0 26 bytes epoch 0) v1 -- ?+0 0x7f48fc022ac0 con 0x7f48fc022650
  77. 2014-03-18 16:42:16.368757 7f4900884700 1 -- 192.168.1.34:0/1028158 learned my addr 192.168.1.34:0/1028158
  78. 2014-03-18 16:42:16.371241 7f4901285700 1 -- 192.168.1.34:0/1028158 <== mon.2 192.168.1.38:6789/0 1 ==== mon_map v1 ==== 497+0+0 (3739914271 0 0) 0x7f48f0000b90 con 0x7f48fc022650
  79. 2014-03-18 16:42:16.371469 7f4901285700 1 -- 192.168.1.34:0/1028158 <== mon.2 192.168.1.38:6789/0 2 ==== auth_reply(proto 2 0 Success) v1 ==== 33+0+0 (3689300286 0 0) 0x7f48f0001030 con 0x7f48fc022650
  80. 2014-03-18 16:42:16.371821 7f4901285700 1 -- 192.168.1.34:0/1028158 --> 192.168.1.38:6789/0 -- auth(proto 2 32 bytes epoch 0) v1 -- ?+0 0x7f48e40016c0 con 0x7f48fc022650
  81. 2014-03-18 16:42:16.373592 7f4901285700 1 -- 192.168.1.34:0/1028158 <== mon.2 192.168.1.38:6789/0 3 ==== auth_reply(proto 2 0 Success) v1 ==== 206+0+0 (1521489445 0 0) 0x7f48f0000920 con 0x7f48fc022650
  82. 2014-03-18 16:42:16.373863 7f4901285700 1 -- 192.168.1.34:0/1028158 --> 192.168.1.38:6789/0 -- auth(proto 2 165 bytes epoch 0) v1 -- ?+0 0x7f48e4002240 con 0x7f48fc022650
  83. 2014-03-18 16:42:16.375520 7f4901285700 1 -- 192.168.1.34:0/1028158 <== mon.2 192.168.1.38:6789/0 4 ==== auth_reply(proto 2 0 Success) v1 ==== 393+0+0 (361668409 0 0) 0x7f48f0000920 con 0x7f48fc022650
  84. 2014-03-18 16:42:16.375751 7f4901285700 1 -- 192.168.1.34:0/1028158 --> 192.168.1.38:6789/0 -- mon_subscribe({monmap=0+}) v2 -- ?+0 0x7f48fc022da0 con 0x7f48fc022650
  85. 2014-03-18 16:42:16.375837 7f4901285700 1 -- 192.168.1.34:0/1028158 --> 192.168.1.38:6789/0 -- auth(proto 2 2 bytes epoch 0) v1 -- ?+0 0x7f48e4002560 con 0x7f48fc022650
  86. 2014-03-18 16:42:16.376292 7f49037d0700 1 -- 192.168.1.34:0/1028158 --> 192.168.1.38:6789/0 -- mon_subscribe({monmap=4+,osdmap=0}) v2 -- ?+0 0x7f48fc01f5a0 con 0x7f48fc022650
  87. 2014-03-18 16:42:16.376386 7f49037d0700 1 -- 192.168.1.34:0/1028158 --> 192.168.1.38:6789/0 -- mon_subscribe({monmap=4+,osdmap=0}) v2 -- ?+0 0x7f48fc023ed0 con 0x7f48fc022650
  88. 2014-03-18 16:42:16.376890 7f4901285700 1 -- 192.168.1.34:0/1028158 <== mon.2 192.168.1.38:6789/0 5 ==== mon_map v1 ==== 497+0+0 (3739914271 0 0) 0x7f48f0001320 con 0x7f48fc022650
  89. 2014-03-18 16:42:16.377015 7f4901285700 1 -- 192.168.1.34:0/1028158 <== mon.2 192.168.1.38:6789/0 6 ==== mon_subscribe_ack(300s) v1 ==== 20+0+0 (2881419990 0 0) 0x7f48f0001510 con 0x7f48fc022650
  90. 2014-03-18 16:42:16.377051 7f4901285700 1 -- 192.168.1.34:0/1028158 <== mon.2 192.168.1.38:6789/0 7 ==== auth_reply(proto 2 0 Success) v1 ==== 194+0+0 (81675764 0 0) 0x7f48f0001830 con 0x7f48fc022650
  91. 2014-03-18 16:42:16.377556 7f4901285700 1 -- 192.168.1.34:0/1028158 <== mon.2 192.168.1.38:6789/0 8 ==== osd_map(36..36 src has 1..36) v3 ==== 3463+0+0 (3885614949 0 0) 0x7f48f0000920 con 0x7f48fc022650
  92. 2014-03-18 16:42:16.377807 7f4901285700 1 -- 192.168.1.34:0/1028158 <== mon.2 192.168.1.38:6789/0 9 ==== mon_subscribe_ack(300s) v1 ==== 20+0+0 (2881419990 0 0) 0x7f48f00012a0 con 0x7f48fc022650
  93. 2014-03-18 16:42:16.377854 7f4901285700 1 -- 192.168.1.34:0/1028158 <== mon.2 192.168.1.38:6789/0 10 ==== osd_map(36..36 src has 1..36) v3 ==== 3463+0+0 (3885614949 0 0) 0x7f48f0003240 con 0x7f48fc022650
  94. 2014-03-18 16:42:16.377873 7f4901285700 1 -- 192.168.1.34:0/1028158 <== mon.2 192.168.1.38:6789/0 11 ==== mon_subscribe_ack(300s) v1 ==== 20+0+0 (2881419990 0 0) 0x7f48f0003490 con 0x7f48fc022650
  95. 2014-03-18 16:42:16.392897 7f49037d0700 1 -- 192.168.1.34:0/1028158 --> 192.168.1.38:6789/0 -- mon_command({"prefix": "get_command_descriptions"} v 0) v1 -- ?+0 0x7f48fc017100 con 0x7f48fc022650
  96. 2014-03-18 16:42:16.398406 7f4901285700 1 -- 192.168.1.34:0/1028158 <== mon.2 192.168.1.38:6789/0 12 ==== mon_command_ack([{"prefix": "get_command_descriptions"}]=0 v0) v1 ==== 72+0+26163 (1092875540 0 3658139165) 0x7f48f0001330 con 0x7f48fc022650
  97. 2014-03-18 16:42:16.500822 7f49037d0700 1 -- 192.168.1.34:0/1028158 --> 192.168.1.38:6789/0 -- mon_command({"prefix": "osd crush create-or-move", "args": ["root=default", "host=ceph-node1"], "id": 2, "weight": 0.44} v 0) v1 -- ?+0 0x7f48fc017100 con 0x7f48fc022650
  98. 2014-03-18 16:42:16.505757 7f4901285700 1 -- 192.168.1.34:0/1028158 <== mon.2 192.168.1.38:6789/0 13 ==== mon_command_ack([{"prefix": "osd crush create-or-move", "args": ["root=default", "host=ceph-node1"], "id": 2, "weight": 0.44}]=-2 osd.2 does not exist. create it before updating the crush map v36) v1 ==== 204+0+0 (2164074519 0 0) 0x7f48f0000c70 con 0x7f48fc022650
  99. Error ENOENT: osd.2 does not exist. create it before updating the crush map
  100. 2014-03-18 16:42:16.517756 7f49037d0700 1 -- 192.168.1.34:0/1028158 mark_down 0x7f48fc022650 -- 0x7f48fc0223f0
  101. 2014-03-18 16:42:16.517887 7f49037d0700 1 -- 192.168.1.34:0/1028158 mark_down_all
  102. 2014-03-18 16:42:16.518937 7f49037d0700 1 -- 192.168.1.34:0/1028158 shutdown complete.
  103.  
  104.  
  105. FATAL: all hosts have already failed -- aborting
  106.  
  107. PLAY RECAP ********************************************************************
  108. to retry, use: --limit @/root/osd_hosts.retry
  109.  
  110. ceph-node1 : ok=7 changed=3 unreachable=0 failed=1
  111.  
  112. ===============================================================================================================================================================================================================================
Advertisement
Add Comment
Please, Sign In to add comment