Neutron lbaas can't update vip session-persistence's cookie_name

Bug #1405135 reported by Dongcan Ye
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Invalid
Low
Unassigned

Bug Description

When I want to update loadblance vip session_persistence's cookie_name, neutron-client returns ok, but the database still shows NULL.

Show the vip info:
$ neutron lb-vip-show 38f4d333-66a6-4012-8edf-b8549238aa22
+---------------------+--------------------------------------+
| Field | Value |
+---------------------+--------------------------------------+
| address | 10.10.136.62 |
| admin_state_up | True |
| connection_limit | -1 |
| description | |
| id | 38f4d333-66a6-4012-8edf-b8549238aa22 |
| name | ye_vip |
| pool_id | 7f4c278b-1630-4299-9478-b8653d345ec6 |
| port_id | d213d0e6-557d-4b10-8ee9-b2c70ccdc7a8 |
| protocol | HTTP |
| protocol_port | 80 |
| session_persistence | {"type": "SOURCE_IP"} |
| status | ACTIVE |
| status_description | |
| subnet_id | b5017991-b63c-4bd0-a7e5-b3eaa8d81c23 |
| tenant_id | 5b969b39b06a4528bbd4198315377eb0 |

Use lb-vip-update command update cookie_name[1]:
$ neutron lb-vip-update 38f4d333-66a6-4012-8edf-b8549238aa22 --session-persistence type=dict type="SOURCE_IP",[cookie_name="test"]

In database, as we see it still NULL.

mysql> select * from sessionpersistences where vip_id="38f4d333-66a6-4012-8edf-b8549238aa22";
+--------------------------------------+-----------+-------------+
| vip_id | type | cookie_name |
+--------------------------------------+-----------+-------------+
| 38f4d333-66a6-4012-8edf-b8549238aa22 | SOURCE_IP | NULL |
+--------------------------------------+-----------+-------------+
1 row in set (0.00 sec)

[1]https://wiki.openstack.org/wiki/Neutron/LBaaS/CLI

Tags: api lbaas
Dongcan Ye (hellochosen)
Changed in neutron:
assignee: nobody → Dongcan Ye (hellochosen)
summary: - [neutron_lbaas] Neutron lbaas can't update vip session-persistence's
- cookie_name
+ Neutron lbaas can't update vip session-persistence's cookie_name
tags: added: api lbaas
Changed in neutron:
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron-lbaas (master)

Fix proposed to branch: master
Review: https://review.openstack.org/148047

Changed in neutron:
status: Confirmed → In Progress
Revision history for this message
Brandon Logan (brandon-logan) wrote :

shouldn't the brackets be removed when making this CLI call? The docs/wiki show the brackets to show that it is optional.

neutron lb-vip-update 38f4d333-66a6-4012-8edf-b8549238aa22 --session-persistence type=dict type="SOURCE_IP",[cookie_name="test"]

I don't think this is a bug with the API, but a bug with the client accepting the brackets.

Revision history for this message
Dongcan Ye (hellochosen) wrote : Re: [Bug 1405135] Re: Neutron lbaas can't update vip session-persistence's cookie_name
Download full text (3.2 KiB)

When update session-persistence, the inner brackets can't removed.
If we do this, neutron-server return 500 error.

I will rethink to reslove it in neutron client.

2015-01-31 13:46 GMT+08:00 Brandon Logan <email address hidden>:

> shouldn't the brackets be removed when making this CLI call? The
> docs/wiki show the brackets to show that it is optional.
>
> neutron lb-vip-update 38f4d333-66a6-4012-8edf-b8549238aa22 --session-
> persistence type=dict type="SOURCE_IP",[cookie_name="test"]
>
> I don't think this is a bug with the API, but a bug with the client
> accepting the brackets.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1405135
>
> Title:
> Neutron lbaas can't update vip session-persistence's cookie_name
>
> Status in OpenStack Neutron (virtual network service):
> In Progress
>
> Bug description:
> When I want to update loadblance vip session_persistence's
> cookie_name, neutron-client returns ok, but the database still shows
> NULL.
>
> Show the vip info:
> $ neutron lb-vip-show 38f4d333-66a6-4012-8edf-b8549238aa22
> +---------------------+--------------------------------------+
> | Field | Value |
> +---------------------+--------------------------------------+
> | address | 10.10.136.62 |
> | admin_state_up | True |
> | connection_limit | -1 |
> | description | |
> | id | 38f4d333-66a6-4012-8edf-b8549238aa22 |
> | name | ye_vip |
> | pool_id | 7f4c278b-1630-4299-9478-b8653d345ec6 |
> | port_id | d213d0e6-557d-4b10-8ee9-b2c70ccdc7a8 |
> | protocol | HTTP |
> | protocol_port | 80 |
> | session_persistence | {"type": "SOURCE_IP"} |
> | status | ACTIVE |
> | status_description | |
> | subnet_id | b5017991-b63c-4bd0-a7e5-b3eaa8d81c23 |
> | tenant_id | 5b969b39b06a4528bbd4198315377eb0 |
>
> Use lb-vip-update command update cookie_name[1]:
> $ neutron lb-vip-update 38f4d333-66a6-4012-8edf-b8549238aa22
> --session-persistence type=dict type="SOURCE_IP",[cookie_name="test"]
>
>
> In database, as we see it still NULL.
>
> mysql> select * from sessionpersistences where
> vip_id="38f4d333-66a6-4012-8edf-b8549238aa22";
> +--------------------------------------+-----------+-------------+
> | vip_id | type | cookie_name |
> +--------------------------------------+-----------+-------------+
> | 38f4d333-66a6-4012-8edf-b8549238aa22 | SOURCE_IP | NULL |
> +--------------------------------------+-----------+-------------+
> 1 row in set (0.00 sec)
>
> [1]https://wiki.openstack.org/wiki/Neutron/LBaaS/CLI
>
> To manage notifications about this bug go to:
> https://bugs.lau...

Read more...

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on neutron-lbaas (master)

Change abandoned by Kyle Mestery (<email address hidden>) on branch: master
Review: https://review.openstack.org/148047
Reason: This review is > 4 weeks without comment and currently blocked by a core reviewer with a -2. We are abandoning this for now. Feel free to reactivate the review by pressing the restore button and contacting the reviewer with the -2 on this review to ensure you address their concerns.

Dongcan Ye (hellochosen)
Changed in neutron:
assignee: Dongcan Ye (hellochosen) → nobody
status: In Progress → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.