← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1405135] [NEW] [neutron_lbaas] Neutron lbaas can't update vip session-persistence's cookie_name

 

Public bug reported:

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

** Affects: neutron
     Importance: Undecided
     Assignee: Dongcan Ye (hellochosen)
         Status: New

** Changed in: neutron
     Assignee: (unassigned) => Dongcan Ye (hellochosen)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1405135

Title:
  [neutron_lbaas] Neutron lbaas can't update vip  session-persistence's
  cookie_name

Status in OpenStack Neutron (virtual network service):
  New

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


Follow ups

References