Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2013
320
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.15 KB | None | 0 0
  1. (04:11:22 PM) xarses: hello
  2. (04:11:41 PM) odyssey4me: joshd - thanks for the help... it turns out that adding the client.volumes with the keyfile parameter resolves the issue :)
  3. (04:12:31 PM) joshd: odyssey4me: you're welcome, glad that fixed it
  4. (04:12:50 PM) odyssey4me: this will be easy enough to automate with chef, so it's not too much of a hassle
  5. (04:13:22 PM) odyssey4me: @alram - btw, I've done a ton of setup automation in the chef cookbooks... you're well overdue for a review ;)
  6. (04:13:22 PM) cephalobot: odyssey4me: Error: "alram" is not a valid command.
  7. (04:14:07 PM) joshd: itatar: fedora should work fine, although most tested on is ubuntu
  8. (04:18:21 PM) xarses: hi all, I'm trying to setup glance to use ceph
  9. (04:18:39 PM) xarses: it appears that the problem is with the generated keyring file
  10. (04:19:24 PM) xarses: glance gives me no hint of this, but attempting to set up rdb map, it compains about the keyring file
  11. (04:19:24 PM) pbojanic [~Adium@65-112-206-178.dia.static.qwest.net] entered the room.
  12. (04:19:34 PM) pbojanic left the room.
  13. (04:19:37 PM) itatar: thanks joshd
  14. (04:19:51 PM) xarses: rbd map foo --pool images --name client.images --keyfile ceph.client.images.keyring
  15. (04:19:51 PM) xarses: 2013-08-22 23:18:13.917482 7f39b2c48760 -1 auth: failed to decode key '
  16. (04:19:51 PM) xarses: [client.images]
  17. (04:19:51 PM) xarses: key = AQDGmBZS+B4rDhAADaqqi78QiJvoHjExyd64SQ==
  18. (04:19:51 PM) xarses: '
  19. (04:20:15 PM) odyssey4me: xarses - the keyfile needs to onlye contain the key itself
  20. (04:20:19 PM) xarses: ceph auth get-or-create client.images mon 'allow r' osd 'allow class-read object_prefix rbd_children, allow rwx pool=images' > ceph.client.images.keyring
  21. (04:20:23 PM) odyssey4me: ie: AQDGmBZS+B4rDhAADaqqi78QiJvoHjExyd64SQ==
  22. (04:20:36 PM) odyssey4me: what you have there is a keyring... :)
  23. (04:24:47 PM) xarses: ok
  24. (04:25:25 PM) xarses: so adding [client.images] keyfile = ceph.client.images.keyring makes rdb map happy (minus the --keyfile)
  25. (04:25:45 PM) xarses: however glance still doesn't work right
  26. (04:26:03 PM) xarses: glance image-create --name cirros --container-format bare --disk-format qcow2 --is-public yes --location https://launchpad.net/cirros/trunk/0.3.0/+download/cirros-0.3.0-x86_64-disk.img
  27. (04:26:08 PM) xarses: takes the imagee
  28. (04:26:16 PM) xarses: and pretends to save it correctly
  29. (04:26:31 PM) xarses: but no data is stored in ceph
  30. (04:26:43 PM) xarses: or /var/lib/glance/images
  31. (04:27:06 PM) xarses: and retreving the image blocks sending 0 bytes
  32. (04:27:21 PM) xarses: i have no clue what to check futher
  33. (04:27:40 PM) odyssey4me: xarses - I followed this to the letter for glance, and it worked: http://ceph.com/docs/next/rbd/rbd-openstack/
  34. (04:30:58 PM) joshd: xarses: there was a bug in grizzly with --location - https://bugs.launchpad.net/glance/+bug/1146830
  35. (04:31:27 PM) xarses: ya, i saw that
  36. (04:31:40 PM) xarses: never had issues with it while the backend was swift or localfs
  37. (04:31:47 PM) xarses: and it says the image is 100%
  38. (04:32:07 PM) joshd: the patch in that bug fixes it
  39. (04:32:38 PM) ircolle left the room (quit: Quit: Leaving.).
  40. (04:32:43 PM) xarses: nova image-show 8858ebcf-2d78-453e-af06-a71a308746de
  41. (04:32:43 PM) xarses: +----------------------+--------------------------------------+
  42. (04:32:43 PM) xarses: | Property | Value |
  43. (04:32:43 PM) xarses: +----------------------+--------------------------------------+
  44. (04:32:43 PM) xarses: | status | ACTIVE |
  45. (04:32:43 PM) xarses: | updated | 2013-08-22T23:29:58Z |
  46. (04:32:43 PM) xarses: | name | cirros |
  47. (04:32:43 PM) xarses: | created | 2013-08-22T23:29:58Z |
  48. (04:32:43 PM) xarses: | minDisk | 0 |
  49. (04:32:43 PM) xarses: | progress | 100 |
  50. (04:32:43 PM) xarses: | minRam | 0 |
  51. (04:32:43 PM) xarses: | OS-EXT-IMG-SIZE:size | 9761280 |
  52. (04:32:43 PM) xarses: | id | 8858ebcf-2d78-453e-af06-a71a308746de |
  53. (04:32:43 PM) xarses: +----------------------+--------------------------------------+
  54. (04:36:18 PM) itatar: the instructions to install ceph-deploy (on http://ceph.com/docs/master/start/quick-start-preflight/) are debian centric. is there something written up for fedora?
  55. (04:38:02 PM) odyssey4me: xarses - did you set glance_api_version = 2 ?
  56. (04:38:24 PM) dmick: sagewk: hm, this is after connect()
  57. (04:38:28 PM) ***dmick digs
  58. (04:38:33 PM) joshd: itatar: I think you just need epel and one of the ceph.com repos listed here: http://ceph.com/docs/master/install/rpm/
  59. (04:38:37 PM) sagewk: sigh.. not sure then. never actually used the _get method
  60. (04:38:50 PM) sagewk: there are unit tests, but that is probably the only user
  61. (04:40:16 PM) dmick: so the problem is when it's *not* in .conf, rados_conf_get can't seem to get the default
  62. (04:40:35 PM) sagewk: huh
  63. (04:41:28 PM) dmick: gdb'ing
  64. (04:41:41 PM) xarses: odyssey4me: no, im not on trying to get cinder to work yet, just glance
  65. (04:42:21 PM) xarses: i applied that patch and it didn't do anything for me
  66. (04:43:37 PM) xarses: odyssey4me: do i need to add that somewhere for glance its self?
  67. (04:43:54 PM) dmick: really odd. finds it, but it's ""
  68. (04:44:15 PM) dmick: maybe there's no default for clients?
  69. (04:44:46 PM) joshd: xarses: does uploading a local file work?
  70. (04:44:49 PM) dmick: ARGH
  71. (04:45:05 PM) dmick: common_preinit
  72. (04:47:21 PM) Tamil1 [~Adium@cpe-108-184-66-69.socal.res.rr.com] entered the room.
  73. (04:47:51 PM) itatar: thank you joshd
  74. (04:49:30 PM) xarses: joshd: ok that worked
  75. (04:49:41 PM) xarses: now how do i fix that --location doesn't work?
  76. (04:50:52 PM) joshd: xarses: not sure exactly, but this may help: https://review.openstack.org/#/c/42640/
  77. (04:51:18 PM) joshd: xarses: glance-api.log with debug on of an upload with --location may give a clue to the problem
  78. (04:51:27 PM) madkiss left the room (quit: Quit: Leaving.).
  79. (04:51:47 PM) xarses: i have all of the glance logs going to glance-all.log
  80. (04:51:57 PM) xarses: never saw anything that looked like an error
  81. (04:52:12 PM) xarses: debug was on the whole time
  82. (04:52:17 PM) joshd: but it might show the details of the request at least
  83. (04:52:46 PM) xarses: i applied https://review.openstack.org/#/c/27457/
  84. (04:52:51 PM) xarses: but that didn't help
  85. (04:54:05 PM) torment2 [~torment@pool-72-64-192-26.tampfl.fios.verizon.net] entered the room.
  86. (04:55:08 PM) xarses: they are both trying to address a similar problem
  87. (04:55:20 PM) xarses: but not exactly doing the same thing
  88. (04:55:53 PM) joshd: right
  89. (04:56:41 PM) joshd: I'm wondering if the --location upload somehow provided a size of 0 to rbd
  90. (04:57:09 PM) joshd: which the second patch would fix
  91. (05:02:06 PM) AfC [~andrew@2407:7800:200:1011:31b2:f929:558b:657f] entered the room.
  92. (05:04:59 PM) itatar: sigh, now the os I have is based on fedora18 called "applianceoperatingsystem" so ceph_deploy doesn't like it:
  93. (05:04:59 PM) itatar: -bash-4.2# ceph-deploy install cephadmin
  94. (05:04:59 PM) itatar: [ceph_deploy.install][DEBUG ] Installing stable version dumpling on cluster ceph hosts cephadmin
  95. (05:04:59 PM) itatar: [ceph_deploy.install][DEBUG ] Detecting platform for host cephadmin ...
  96. (05:04:59 PM) itatar: [ceph_deploy][ERROR ] UnsupportedPlatform: Platform is not supported: applianceoperatingsystem
  97. (05:05:01 PM) itatar: is there a way to override this check?
  98. (05:07:42 PM) dmick: hack the source?
  99. (05:09:50 PM) dmick: hosts/__init__.py:_get_distro()
  100. (05:15:08 PM) xarses: joshd: i had to apply both patches
  101. (05:15:20 PM) xarses: as the second is based on the first
  102. (05:15:34 PM) xarses: but it didn't resolve the problem with --location
  103. (05:16:22 PM) joshd: xarses: could you create a new bug on launchpad and add your glance log to it then?
  104. (05:16:48 PM) xarses: neither "chunk" or "resize" are in my glance log
  105. (05:17:13 PM) tnt left the room (quit: Ping timeout: 480 seconds).
  106. (05:17:23 PM) xarses: also, the line numbers in my rbd.py didn't match up, should i fetch the current master and try that first?
  107. (05:18:46 PM) odyssey4me left the room (quit: Ping timeout: 480 seconds).
  108. (05:18:57 PM) sagelap1 [~sage@2600:1012:b00b:952b:c5a2:f13c:f3e3:162b] entered the room.
  109. (05:19:20 PM) joshd: it's worth a shot, but I don't think any of the other changes would affect uploading
  110. (05:20:36 PM) sagelap left the room (quit: Ping timeout: 480 seconds).
  111. (05:21:11 PM) alram left the room (quit: Quit: leaving).
  112. (05:21:30 PM) joshd: xarses: could you see that the rbd image is actually being created on the backend (rbd ls images) and what the size shown there is (rbd info images/uuid)
  113. (05:21:37 PM) nwat_ left the room (quit: Ping timeout: 480 seconds).
  114. (05:22:07 PM) alfredo|afk: itatar: that doesn't sound like something we support, hence the message
  115. (05:22:13 PM) alfredo|afk is now known as alfredodeza
  116. (05:22:30 PM) alfredodeza: the problem is that we need to determine package manager and dependencies according to the OS
  117. (05:24:30 PM) xarses: joshd, so i removed the .pyo and pyc and it hasn't recompiled them after restarting glance
  118. (05:25:05 PM) xarses: and i added another from the local filesystem just for fun, works fine, but the driver still didn't compile
  119. (05:25:17 PM) xarses: in glance/store/rbd.py
  120. (05:26:54 PM) joshd: xarses: is rbd set as the default store? it might be lazy-loading and not compile it until it's used as well
  121. (05:27:05 PM) xarses: joshd: ls images only shows the two images from local files
  122. (05:27:09 PM) xarses: rbd ls images
  123. (05:27:09 PM) xarses: 1e6a7b44-1a05-4f4f-9ed9-7f08fca40ce7
  124. (05:27:09 PM) xarses: 2abe4fd2-4d6a-42c0-b041-9fb073fc41af
  125. (05:27:45 PM) joshd: xarses: ok, that's a good clue - it's not even getting to create the images when --location is used
  126. (05:27:47 PM) xarses: grep rbd /etc/glance/glance-api.conf
  127. (05:27:47 PM) xarses: default_store = rbd
  128. (05:27:47 PM) xarses: # glance.store.rbd.Store,
  129. (05:27:47 PM) xarses: rbd_store_ceph_conf = /etc/ceph/ceph.conf
  130. (05:27:47 PM) xarses: rbd_store_user = images
  131. (05:27:47 PM) xarses: rbd_store_pool = images
  132. (05:27:47 PM) xarses: rbd_store_chunk_size = 8
  133. (05:28:12 PM) xarses: rbd info images/2abe4fd2-4d6a-42c0-b041-9fb073fc41af
  134. (05:28:12 PM) xarses: rbd image '2abe4fd2-4d6a-42c0-b041-9fb073fc41af':
  135. (05:28:12 PM) xarses: size 9532 KB in 2 objects
  136. (05:28:12 PM) xarses: order 23 (8192 KB objects)
  137. (05:28:12 PM) xarses: block_name_prefix: rbd_data.10c15e2be4d4
  138. (05:28:13 PM) xarses: format: 2
  139. (05:28:13 PM) xarses: features: layering
  140. (05:28:44 PM) xarses: same for the other object
  141. (05:28:53 PM) xarses: (ish)
  142. (05:30:17 PM) Tamil1 left the room (quit: Quit: Leaving.).
  143. (05:31:21 PM) madkiss [~madkiss@184.105.243.235] entered the room.
  144. (05:32:10 PM) joshd: xarses: could you pastebin the glance-all.log containing one of the --location uploads?
  145. (05:32:15 PM) Cube1 [~Cube@88.128.80.12] entered the room.
  146. (05:33:07 PM) Cube left the room (quit: Read error: Connection reset by peer).
  147. (05:34:15 PM) xarses: joshd you can have the whole thing if you'd like =)
  148. (05:34:37 PM) joshd: sure
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement