yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #50207
[Bug 1577987] [NEW] neutron-lbaas v2 - update pool's session_persistence to None fails
Public bug reported:
When updating a pool's session_persistence to None, I get the following
error: Invalid input for session_persistence
1. Create a loadbalancer, listener
2. Create a pool with default args:
using postman:
{
"pool": {
"name": "pool1",
"description": "simple pool",
"listener_id": "39de4d56-d663-46e5-85a1-5b9d5fa17829",
"lb_algorithm": "ROUND_ROBIN",
"protocol": "HTTP",
"session_persistence": {
"type": "APP_COOKIE",
"cookie_name": "my_cookie"
},
"admin_state_up": true
}
}
Update pool with below data:
{
"pool": {
"session_persistence": {"type": ""}
}
}
neutron-server logs:
2016-05-03 16:39:54.698 DEBUG neutron.wsgi [-] (66382) accepted ('192.168.109.128', 58400) from (pid=66382) server /usr/local/lib/python2.7/dist-packages/eventlet/wsgi.py:867
2016-05-03 16:39:55.025 DEBUG neutron.api.v2.base [req-78bc175f-374d-403c-b5a5-845d4bc79632 admin be81e9163d074036913aa52b1b9785a7] Request body: {u'pool': {u'session_persistence': {u'type': u''}}} from (pid=66382) prepare_request_body /opt/stack/neutron/neutron/api/v2/base.py:658
2016-05-03 16:39:55.025 DEBUG neutron_lib.api.validators [req-78bc175f-374d-403c-b5a5-845d4bc79632 admin be81e9163d074036913aa52b1b9785a7] ' ' is not in ('SOURCE_IP', 'HTTP_COOKIE', 'APP_COOKIE') from (pid=66382) validate_values /usr/local/lib/python2.7/dist-packages/neutron_lib/api/validators.py:91
2016-05-03 16:39:55.026 INFO neutron.api.v2.resource [req-78bc175f-374d-403c-b5a5-845d4bc79632 admin be81e9163d074036913aa52b1b9785a7] update failed (client error): Invalid input for session_persistence. Reason: '' is not in ('SOURCE_IP', 'HTTP_COOKIE', 'APP_COOKIE').
2016-05-03 16:39:55.027 INFO neutron.wsgi [req-78bc175f-374d-403c-b5a5-845d4bc79632 admin be81e9163d074036913aa52b1b9785a7] 192.168.109.128 - - [03/May/2016 16:39:55] "PUT /v2.0/lbaas/pools/aa341feb-ff6f-4d87-a613-52812c665bc0 HTTP/1.1" 400 400 0.327893
using CLI:
neutron lbaas-pool-update pool1 --session_persistence type=dict type=none
Invalid input for session_persistence. Reason: 'none' is not in ('SOURCE_IP', 'HTTP_COOKIE', 'APP_COOKIE').
Neutron server returns request_ids: ['req-93cc8a21-4243-4498-899c-fc9646cddb71']
neutron-server logs:
2016-05-03 16:41:31.834 DEBUG neutron_lbaas.drivers.octavia.octavia_messaging_consumer [-] Received event from stream {u'info_type': u'listener_stats', u'info_id': u'04c16cac-b748-47a6-975f-b109bd80a419', u'info_payload': {u'bytes_in': 0, u'total_connections': 0, u'active_connections': 0, u'bytes_out': 0}} from (pid=66202) update_info /opt/stack/neutron-lbaas/neutron_lbaas/drivers/octavia/octavia_messaging_consumer.py:74
2016-05-03 16:41:34.571 DEBUG neutron.wsgi [-] (66383) accepted ('192.168.109.128', 59130) from (pid=66383) server /usr/local/lib/python2.7/dist-packages/eventlet/wsgi.py:867
2016-05-03 16:41:35.079 INFO neutron.wsgi [req-695f0831-c84d-43b3-ae37-764cd4a4fd9c admin be81e9163d074036913aa52b1b9785a7] 192.168.109.128 - - [03/May/2016 16:41:35] "GET /v2.0/lbaas/pools.json?fields=id&name=pool1 HTTP/1.1" 200 607 0.506676
2016-05-03 16:41:35.333 DEBUG neutron.api.v2.base [req-93cc8a21-4243-4498-899c-fc9646cddb71 admin be81e9163d074036913aa52b1b9785a7] Request body: {u'pool': {u'session_persistence': {u'type': u'none'}}} from (pid=66383) prepare_request_body /opt/stack/neutron/neutron/api/v2/base.py:658
2016-05-03 16:41:35.335 DEBUG neutron_lib.api.validators [req-93cc8a21-4243-4498-899c-fc9646cddb71 admin be81e9163d074036913aa52b1b9785a7] 'none' is not in ('SOURCE_IP', 'HTTP_COOKIE', 'APP_COOKIE') from (pid=66383) validate_values /usr/local/lib/python2.7/dist-packages/neutron_lib/api/validators.py:91
2016-05-03 16:41:35.336 INFO neutron.api.v2.resource [req-93cc8a21-4243-4498-899c-fc9646cddb71 admin be81e9163d074036913aa52b1b9785a7] update failed (client error): Invalid input for session_persistence. Reason: 'none' is not in ('SOURCE_IP', 'HTTP_COOKIE', 'APP_COOKIE').
2016-05-03 16:41:35.342 INFO neutron.wsgi [req-93cc8a21-4243-4498-899c-fc9646cddb71 admin be81e9163d074036913aa52b1b9785a7] 192.168.109.128 - - [03/May/2016 16:41:35] "PUT /v2.0/lbaas/pools/aa341feb-ff6f-4d87-a613-52812c665bc0.json HTTP/1.1" 400 403 0.258400
2016-05-03 16:41:36.258 DEBUG oslo_messaging._drivers.amqpdriver [-] received message msg_id: None reply to None from (pid=66384) __call__ /usr/local/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py:201
** Affects: neutron
Importance: Undecided
Status: New
** Tags: lbaas
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1577987
Title:
neutron-lbaas v2 - update pool's session_persistence to None fails
Status in neutron:
New
Bug description:
When updating a pool's session_persistence to None, I get the
following error: Invalid input for session_persistence
1. Create a loadbalancer, listener
2. Create a pool with default args:
using postman:
{
"pool": {
"name": "pool1",
"description": "simple pool",
"listener_id": "39de4d56-d663-46e5-85a1-5b9d5fa17829",
"lb_algorithm": "ROUND_ROBIN",
"protocol": "HTTP",
"session_persistence": {
"type": "APP_COOKIE",
"cookie_name": "my_cookie"
},
"admin_state_up": true
}
}
Update pool with below data:
{
"pool": {
"session_persistence": {"type": ""}
}
}
neutron-server logs:
2016-05-03 16:39:54.698 DEBUG neutron.wsgi [-] (66382) accepted ('192.168.109.128', 58400) from (pid=66382) server /usr/local/lib/python2.7/dist-packages/eventlet/wsgi.py:867
2016-05-03 16:39:55.025 DEBUG neutron.api.v2.base [req-78bc175f-374d-403c-b5a5-845d4bc79632 admin be81e9163d074036913aa52b1b9785a7] Request body: {u'pool': {u'session_persistence': {u'type': u''}}} from (pid=66382) prepare_request_body /opt/stack/neutron/neutron/api/v2/base.py:658
2016-05-03 16:39:55.025 DEBUG neutron_lib.api.validators [req-78bc175f-374d-403c-b5a5-845d4bc79632 admin be81e9163d074036913aa52b1b9785a7] ' ' is not in ('SOURCE_IP', 'HTTP_COOKIE', 'APP_COOKIE') from (pid=66382) validate_values /usr/local/lib/python2.7/dist-packages/neutron_lib/api/validators.py:91
2016-05-03 16:39:55.026 INFO neutron.api.v2.resource [req-78bc175f-374d-403c-b5a5-845d4bc79632 admin be81e9163d074036913aa52b1b9785a7] update failed (client error): Invalid input for session_persistence. Reason: '' is not in ('SOURCE_IP', 'HTTP_COOKIE', 'APP_COOKIE').
2016-05-03 16:39:55.027 INFO neutron.wsgi [req-78bc175f-374d-403c-b5a5-845d4bc79632 admin be81e9163d074036913aa52b1b9785a7] 192.168.109.128 - - [03/May/2016 16:39:55] "PUT /v2.0/lbaas/pools/aa341feb-ff6f-4d87-a613-52812c665bc0 HTTP/1.1" 400 400 0.327893
using CLI:
neutron lbaas-pool-update pool1 --session_persistence type=dict type=none
Invalid input for session_persistence. Reason: 'none' is not in ('SOURCE_IP', 'HTTP_COOKIE', 'APP_COOKIE').
Neutron server returns request_ids: ['req-93cc8a21-4243-4498-899c-fc9646cddb71']
neutron-server logs:
2016-05-03 16:41:31.834 DEBUG neutron_lbaas.drivers.octavia.octavia_messaging_consumer [-] Received event from stream {u'info_type': u'listener_stats', u'info_id': u'04c16cac-b748-47a6-975f-b109bd80a419', u'info_payload': {u'bytes_in': 0, u'total_connections': 0, u'active_connections': 0, u'bytes_out': 0}} from (pid=66202) update_info /opt/stack/neutron-lbaas/neutron_lbaas/drivers/octavia/octavia_messaging_consumer.py:74
2016-05-03 16:41:34.571 DEBUG neutron.wsgi [-] (66383) accepted ('192.168.109.128', 59130) from (pid=66383) server /usr/local/lib/python2.7/dist-packages/eventlet/wsgi.py:867
2016-05-03 16:41:35.079 INFO neutron.wsgi [req-695f0831-c84d-43b3-ae37-764cd4a4fd9c admin be81e9163d074036913aa52b1b9785a7] 192.168.109.128 - - [03/May/2016 16:41:35] "GET /v2.0/lbaas/pools.json?fields=id&name=pool1 HTTP/1.1" 200 607 0.506676
2016-05-03 16:41:35.333 DEBUG neutron.api.v2.base [req-93cc8a21-4243-4498-899c-fc9646cddb71 admin be81e9163d074036913aa52b1b9785a7] Request body: {u'pool': {u'session_persistence': {u'type': u'none'}}} from (pid=66383) prepare_request_body /opt/stack/neutron/neutron/api/v2/base.py:658
2016-05-03 16:41:35.335 DEBUG neutron_lib.api.validators [req-93cc8a21-4243-4498-899c-fc9646cddb71 admin be81e9163d074036913aa52b1b9785a7] 'none' is not in ('SOURCE_IP', 'HTTP_COOKIE', 'APP_COOKIE') from (pid=66383) validate_values /usr/local/lib/python2.7/dist-packages/neutron_lib/api/validators.py:91
2016-05-03 16:41:35.336 INFO neutron.api.v2.resource [req-93cc8a21-4243-4498-899c-fc9646cddb71 admin be81e9163d074036913aa52b1b9785a7] update failed (client error): Invalid input for session_persistence. Reason: 'none' is not in ('SOURCE_IP', 'HTTP_COOKIE', 'APP_COOKIE').
2016-05-03 16:41:35.342 INFO neutron.wsgi [req-93cc8a21-4243-4498-899c-fc9646cddb71 admin be81e9163d074036913aa52b1b9785a7] 192.168.109.128 - - [03/May/2016 16:41:35] "PUT /v2.0/lbaas/pools/aa341feb-ff6f-4d87-a613-52812c665bc0.json HTTP/1.1" 400 403 0.258400
2016-05-03 16:41:36.258 DEBUG oslo_messaging._drivers.amqpdriver [-] received message msg_id: None reply to None from (pid=66384) __call__ /usr/local/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py:201
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1577987/+subscriptions
Follow ups