Comment 3 for bug 1405135

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

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.launchpad.net/neutron/+bug/1405135/+subscriptions
>