Created
February 18, 2016 21:52
-
-
Save rm-you/3f11ed40b715c2b50477 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stack@devstack3:~$ curl -X GET http://localhost:9876/v1/loadbalancers/$LB/pools | json | |
[ | |
{ | |
"description": null, | |
"enabled": true, | |
"id": "38eacd33-4603-498e-9b84-a5e3c0e23fcc", | |
"lb_algorithm": "ROUND_ROBIN", | |
"name": "test_pool2", | |
"operating_status": "ONLINE", | |
"project_id": null, | |
"protocol": "HTTP", | |
"session_persistence": null | |
}, | |
{ | |
"description": null, | |
"enabled": true, | |
"id": "436e0c3d-c157-400f-87e6-a3a04eaf6047", | |
"lb_algorithm": "ROUND_ROBIN", | |
"name": "test_pool3", | |
"operating_status": "OFFLINE", | |
"project_id": null, | |
"protocol": "HTTP", | |
"session_persistence": null | |
}, | |
{ | |
"description": "", | |
"enabled": true, | |
"id": "d38f3b41-c24d-4065-a359-4bcd558f248a", | |
"lb_algorithm": "ROUND_ROBIN", | |
"name": "pool1", | |
"operating_status": "ONLINE", | |
"project_id": "03f208ff-3850-4c49-9b26-b16637614213", | |
"protocol": "HTTP", | |
"session_persistence": { | |
"cookie_name": "foobar", | |
"type": "HTTP_COOKIE" | |
} | |
} | |
] | |
stack@devstack3:~$ curl -X POST -H Content-type:application/json -d "{\"name\":\"test_policy\", \"action\": \"REDIRECT_TO_POOL\", \"position\": 1, \"redirect_pool_id\": \"$POOL3\"}" http://localhost:9876/v1/loadbalancers/$LB/listeners/$LISTENER/l7policies | json | |
{ | |
"debuginfo": null, | |
"faultcode": "Client", | |
"faultstring": "Pool 436e0c3d-c157-400f-87e6-a3a04eaf6047 not found." | |
} | |
stack@devstack3:~$ curl -X GET http://localhost:9876/v1/loadbalancers/$LB | json | |
{ | |
"description": "", | |
"enabled": true, | |
"id": "fe1f09a3-1819-4656-b5f5-674c38ebe571", | |
"name": "lb1", | |
"operating_status": "ONLINE", | |
"project_id": "03f208ff-3850-4c49-9b26-b16637614213", | |
"provisioning_status": "PENDING_UPDATE", | |
"vip": { | |
"ip_address": "10.0.0.5", | |
"port_id": "4e797684-a848-471f-a028-489954d78988", | |
"subnet_id": "8b38d47f-60b9-40e9-83fa-26c6c00a3a44" | |
} | |
} | |
stack@devstack3:~$ curl -X GET http://localhost:9876/v1/loadbalancers/$LB/listeners/$LISTENER | json | |
{ | |
"connection_limit": -1, | |
"default_pool_id": "d38f3b41-c24d-4065-a359-4bcd558f248a", | |
"description": "", | |
"enabled": true, | |
"id": "697d920f-8147-4928-b8d4-6d937b686e1d", | |
"name": "listener1", | |
"operating_status": "ONLINE", | |
"project_id": "03f208ff-3850-4c49-9b26-b16637614213", | |
"protocol": "TERMINATED_HTTPS", | |
"protocol_port": 443, | |
"provisioning_status": "PENDING_UPDATE", | |
"sni_containers": [], | |
"tls_certificate_id": "http://127.0.0.1:9311/v1/containers/6299cbe9-c1ed-4ea6-a15b-87d6a3d9f5f6" | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
created LB with neutron-lbaas
created listener1 with neutron-lbaas
created pool1 with neutron-lbaas
created pool2/pool3 with octavia
created listener2 with octavia
updated default_pool a couple of times on listener1
updated session_persistence a couple of times on listener1
tried to create an l7policy on listener1 with pool3