Hide Forgot
Description of problem: Using the rest api to Create Brick (add brick to volume) is no longer returning brick information. The following request with the header accept:application/xml receives response with an empty body. (for example: POST /api/clusters/9f2b00c0-1067-430e-bbd0-762f32f0f527/glustervolumes/505884b7-ade2-47fb-8558-f6a37a29a742/bricks) ----sample request---- POST /api/clusters/9f2b00c0-1067-430e-bbd0-762f32f0f527/glustervolumes/505884b7-ade2-47fb-8558-f6a37a29a742/bricks HT» Content-Type: application/xml Accept: application/xml Content-Length: 231 Host: latest.rhsc:443 Connection: Keep-Alive User-Agent: Apache-HttpClient/4.1.3 (java 1.5) Authorization: Basic YWRtaW5AaW50ZXJuYWw6cmVkaGF0 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>[\n]" <bricks>[\n]" <brick>[\n]" <server_id>8e1e7e0f-cce0-41f8-bbb2-439b207f2ee5</server_id>[\n]" <brick_dir>/tmp/20131210092523106927299489</brick_dir>[\n]" </brick>[\n]" </bricks>[\n]" --------------------------- Version-Release number of selected component (if applicable): rhsc-cb10 How reproducible: 100% of the time Steps to Reproduce: 1. create a distributed volume in rhsc 2. call create brick as described in the description Actual results: empty body and content type is text/plain "HTTP/1.1 202 Accepted[\r][\n]" "Date: Tue, 10 Dec 2013 14:25:23 GMT[\r][\n]" "Content-Length: 0[\r][\n]" "Connection: close[\r][\n]" "Content-Type: text/plain; charset=UTF-8[\r][\n]" "[\r][\n]" Expected results: application/xml <bricks> <brick id="xxxx"> ... </brick> </bricks> Additional info:
In case the volume is UP, this should return the Expected Result as given in the bug. But, if the volume is DOWN, then the Actual results as shown is expected. Dustin will verify this in CB11 and Shubhendu will also try it out and see what's the restult coming. If the UP case is not working, then it has to be fixed.
Created attachment 836270 [details] Add brick when volume is UP
Created attachment 836271 [details] Add brick when volume is DOWN
Tried adding bricks in the both the scenarios when volume is UP and DOWN using cb11 build. Both the scenarios show the added brick details properly. Screen shots attached for reference. Dustin, kindly verify once with cb11 and update.
seems to be working fine in rhsc-cb11.