Comment 0 for bug 1609352

Revision history for this message
changzhi (changzhi) wrote :

===== Problem Description =====
I want to get all ids about LBaaS's pools.

I use this command:

curl -g -i -X GET http://10.0.44.233:9696/v2.0/lbaas/pools.json?fields=id \
    -H "User-Agent: python-neutronclient" \
    -H "Accept: application/json" \
    -H "X-Auth-Token: a77ea1dd7fb748448d36142ef844802d"

But the Neutron server didn't return correctly. The response is :

HTTP/1.1 200 OK
Content-Type: application/json; charset=UTF-8
Content-Length: 344
X-Openstack-Request-Id: req-8ed9d992-6a4c-44ac-9c59-de65794e919f
Date: Wed, 03 Aug 2016 10:56:18 GMT

{"pools": [{"lb_algorithm": "ROUND_ROBIN", "protocol": "HTTP", "description": "", "admin_state_up": true, "session_persistence": null, "healthmonitor_id": null, "listeners": [{"id": "f8392236-e065-4aa2-a4ef-d6c6821cc038"}], "members": [{"id": "ea1292f4-fb6a-4594-9d13-9ff0dec865d8"}], "id": "b360fc75-b23d-46a3-b936-6c9480d35219", "name": ""}]}[root@server-233 ~(keystone_admin)]

Neutron server returns all the infos about pools.

In the request, I specify the url with "fields=id". But the Neutron server didn't return correctly.