Verified Patch #3:
vagrant@vagrant-ubuntu-trusty-64:/opt/stack/manila$ manila --debug type-key default set k=v
REQ: curl -i -X GET http://10.0.2.15:8786/v1/c97d9add9ae244cbb855e466a04e72d6/types?is_public=all -H "X-Auth-Token: 4a589bcee6cf4e49933cd3086ea74ba9" -H "Accept: application/json" -H "User-Agent: python-manilaclient"
RESP: [200] CaseInsensitiveDict({'date': 'Tue, 24 Mar 2015 19:23:03 GMT', 'x-compute-request-id': 'req-a42a314e-a855-4901-81ee-5fc4c704ee59', 'content-type': 'application/json', 'content-length': '495'}) RESP BODY: {"volume_types": [{"os-share-type-access:is_public": true, "required_extra_specs": {"driver_handles_share_servers": "True"}, "extra_specs": {"driver_handles_share_servers": "True"}, "name": "default", "id": "b30e8ea3-4558-4a36-8d3f-ad1d529b0ba6"}], "share_types": [{"os-share-type-access:is_public": true, "required_extra_specs": {"driver_handles_share_servers": "True"}, "extra_specs": {"driver_handles_share_servers": "True"}, "name": "default", "id": "b30e8ea3-4558-4a36-8d3f-ad1d529b0ba6"}]}
RESP: [200] CaseInsensitiveDict({'date': 'Tue, 24 Mar 2015 19:23:03 GMT', 'x-compute-request-id': 'req-1b567795-142a-4e02-b843-820f437bc3e8', 'content-type': 'application/json', 'content-length': '495'}) RESP BODY: {"volume_types": [{"os-share-type-access:is_public": true, "required_extra_specs": {"driver_handles_share_servers": "True"}, "extra_specs": {"driver_handles_share_servers": "True"}, "name": "default", "id": "b30e8ea3-4558-4a36-8d3f-ad1d529b0ba6"}], "share_types": [{"os-share-type-access:is_public": true, "required_extra_specs": {"driver_handles_share_servers": "True"}, "extra_specs": {"driver_handles_share_servers": "True"}, "name": "default", "id": "b30e8ea3-4558-4a36-8d3f-ad1d529b0ba6"}]}
REQ: curl -i -X POST http://10.0.2.15:8786/v1/c97d9add9ae244cbb855e466a04e72d6/types/b30e8ea3-4558-4a36-8d3f-ad1d529b0ba6/extra_specs -H "X-Auth-Token: 4a589bcee6cf4e49933cd3086ea74ba9" -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-manilaclient" -d '{"extra_specs": {"k": "v"}}'
RESP: [200] CaseInsensitiveDict({'date': 'Tue, 24 Mar 2015 19:23:03 GMT', 'x-compute-request-id': 'req-d8f428d7-6770-44bf-bc56-a766542b73da', 'content-type': 'application/json', 'content-length': '27'}) RESP BODY: {"extra_specs": {"k": "v"}}
Verified Patch #3:
vagrant@ vagrant- ubuntu- trusty- 64:/opt/ stack/manila$ manila --debug type-key default set k=v
REQ: curl -i -X GET http:// 10.0.2. 15:8786/ v1/c97d9add9ae2 44cbb855e466a04 e72d6/types? is_public= all -H "X-Auth-Token: 4a589bcee6cf4e4 9933cd3086ea74b a9" -H "Accept: application/json" -H "User-Agent: python- manilaclient"
RESP: [200] CaseInsensitive Dict({' date': 'Tue, 24 Mar 2015 19:23:03 GMT', 'x-compute- request- id': 'req-a42a314e- a855-4901- 81ee-5fc4c704ee 59', 'content-type': 'application/json', 'content-length': '495'}) type-access: is_public" : true, "required_ extra_specs" : {"driver_ handles_ share_servers" : "True"}, "extra_specs": {"driver_ handles_ share_servers" : "True"}, "name": "default", "id": "b30e8ea3- 4558-4a36- 8d3f-ad1d529b0b a6"}], "share_types": [{"os-share- type-access: is_public" : true, "required_ extra_specs" : {"driver_ handles_ share_servers" : "True"}, "extra_specs": {"driver_ handles_ share_servers" : "True"}, "name": "default", "id": "b30e8ea3- 4558-4a36- 8d3f-ad1d529b0b a6"}]}
RESP BODY: {"volume_types": [{"os-share-
REQ: curl -i -X GET http:// 10.0.2. 15:8786/ v1/c97d9add9ae2 44cbb855e466a04 e72d6/types? is_public= all -H "X-Auth-Token: 4a589bcee6cf4e4 9933cd3086ea74b a9" -H "Accept: application/json" -H "User-Agent: python- manilaclient"
RESP: [200] CaseInsensitive Dict({' date': 'Tue, 24 Mar 2015 19:23:03 GMT', 'x-compute- request- id': 'req-1b567795- 142a-4e02- b843-820f437bc3 e8', 'content-type': 'application/json', 'content-length': '495'}) type-access: is_public" : true, "required_ extra_specs" : {"driver_ handles_ share_servers" : "True"}, "extra_specs": {"driver_ handles_ share_servers" : "True"}, "name": "default", "id": "b30e8ea3- 4558-4a36- 8d3f-ad1d529b0b a6"}], "share_types": [{"os-share- type-access: is_public" : true, "required_ extra_specs" : {"driver_ handles_ share_servers" : "True"}, "extra_specs": {"driver_ handles_ share_servers" : "True"}, "name": "default", "id": "b30e8ea3- 4558-4a36- 8d3f-ad1d529b0b a6"}]}
RESP BODY: {"volume_types": [{"os-share-
REQ: curl -i -X POST http:// 10.0.2. 15:8786/ v1/c97d9add9ae2 44cbb855e466a04 e72d6/types/ b30e8ea3- 4558-4a36- 8d3f-ad1d529b0b a6/extra_ specs -H "X-Auth-Token: 4a589bcee6cf4e4 9933cd3086ea74b a9" -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python- manilaclient" -d '{"extra_specs": {"k": "v"}}'
RESP: [200] CaseInsensitive Dict({' date': 'Tue, 24 Mar 2015 19:23:03 GMT', 'x-compute- request- id': 'req-d8f428d7- 6770-44bf- bc56-a766542b73 da', 'content-type': 'application/json', 'content-length': '27'})
RESP BODY: {"extra_specs": {"k": "v"}}