← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1469498] [NEW] LbaasV2 session persistence- Create and update

 

Public bug reported:

When we create a Lbaas pool with session persistence it configured OK

neutron lbaas-pool-create --session-persistence type=HTTP_COOKIE  --lb-algorithm LEAST_CONNECTIONS --listener 4658a507-dccc-41f9-87d7-913d31cab3a1 --protocol HTTP 
Created a new pool:
+---------------------+------------------------------------------------+
| Field               | Value                                          |
+---------------------+------------------------------------------------+
| admin_state_up      | True                                           |
| description         |                                                |
| healthmonitor_id    |                                                |
| id                  | a626dc28-0126-48f7-acd3-f486827a89c1           |
| lb_algorithm        | LEAST_CONNECTIONS                              |
| listeners           | {"id": "4658a507-dccc-41f9-87d7-913d31cab3a1"} |
| members             |                                                |
| name                |                                                |
| protocol            | HTTP                                           |
| session_persistence | {"cookie_name": null, "type": "HTTP_COOKIE"}   |
| tenant_id           | ae0954b9cf0c438e99211227a7f3f937               |

BUT, when we create a pool without session persistence and update it to
do session persistence, the action is different and not user friendly.

[root@puma09 ~(keystone_redhat)]# neutron lbaas-pool-create --lb-algorithm LEAST_CONNECTIONS --listener 4658a507-dccc-41f9-87d7-913d31cab3a1 --protocol HTTP 
Created a new pool:
+---------------------+------------------------------------------------+
| Field               | Value                                          |
+---------------------+------------------------------------------------+
| admin_state_up      | True                                           |
| description         |                                                |
| healthmonitor_id    |                                                |
| id                  | b9048a69-461a-4503-ba6b-8a2df281f804           |
| lb_algorithm        | LEAST_CONNECTIONS                              |
| listeners           | {"id": "4658a507-dccc-41f9-87d7-913d31cab3a1"} |
| members             |                                                |
| name                |                                                |
| protocol            | HTTP                                           |
| session_persistence |                                                |
| tenant_id           | ae0954b9cf0c438e99211227a7f3f937               |
+---------------------+------------------------------------------------+
[root@puma09 ~(keystone_redhat)]# neutron lbaas-pool-update b9048a69-461a-4503-ba6b-8a2df281f804 --session-persistence type=HTTP_COOKIE
name 'HTTP_COOKIE' is not defined
[root@puma09 ~(keystone_redhat)]# 


we need to configure it in the following way- 
neutron lbaas-pool-update b9048a69-461a-4503-ba6b-8a2df281f804 --session-persistence type=dict type=HTTP_COOKIE
Updated pool: b9048a69-461a-4503-ba6b-8a2df281f804

The config and update should be done in same way.

Kilo+ rhel 7.1
openstack-neutron-common-2015.1.0-10.el7ost.noarch
python-neutron-lbaas-2015.1.0-5.el7ost.noarch
openstack-neutron-openvswitch-2015.1.0-10.el7ost.noarch
python-neutronclient-2.4.0-1.el7ost.noarch
openstack-neutron-lbaas-2015.1.0-5.el7ost.noarch
python-neutron-fwaas-2015.1.0-3.el7ost.noarch
openstack-neutron-fwaas-2015.1.0-3.el7ost.noarch
python-neutron-2015.1.0-10.el7ost.noarch
openstack-neutron-2015.1.0-10.el7ost.noarch
openstack-neutron-ml2-2015.1.0-10.el7ost.noarch

** Affects: neutron
     Importance: Undecided
         Status: New

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

Title:
  LbaasV2 session persistence- Create and update

Status in OpenStack Neutron (virtual network service):
  New

Bug description:
  When we create a Lbaas pool with session persistence it configured OK

  neutron lbaas-pool-create --session-persistence type=HTTP_COOKIE  --lb-algorithm LEAST_CONNECTIONS --listener 4658a507-dccc-41f9-87d7-913d31cab3a1 --protocol HTTP 
  Created a new pool:
  +---------------------+------------------------------------------------+
  | Field               | Value                                          |
  +---------------------+------------------------------------------------+
  | admin_state_up      | True                                           |
  | description         |                                                |
  | healthmonitor_id    |                                                |
  | id                  | a626dc28-0126-48f7-acd3-f486827a89c1           |
  | lb_algorithm        | LEAST_CONNECTIONS                              |
  | listeners           | {"id": "4658a507-dccc-41f9-87d7-913d31cab3a1"} |
  | members             |                                                |
  | name                |                                                |
  | protocol            | HTTP                                           |
  | session_persistence | {"cookie_name": null, "type": "HTTP_COOKIE"}   |
  | tenant_id           | ae0954b9cf0c438e99211227a7f3f937               |

  BUT, when we create a pool without session persistence and update it
  to do session persistence, the action is different and not user
  friendly.

  [root@puma09 ~(keystone_redhat)]# neutron lbaas-pool-create --lb-algorithm LEAST_CONNECTIONS --listener 4658a507-dccc-41f9-87d7-913d31cab3a1 --protocol HTTP 
  Created a new pool:
  +---------------------+------------------------------------------------+
  | Field               | Value                                          |
  +---------------------+------------------------------------------------+
  | admin_state_up      | True                                           |
  | description         |                                                |
  | healthmonitor_id    |                                                |
  | id                  | b9048a69-461a-4503-ba6b-8a2df281f804           |
  | lb_algorithm        | LEAST_CONNECTIONS                              |
  | listeners           | {"id": "4658a507-dccc-41f9-87d7-913d31cab3a1"} |
  | members             |                                                |
  | name                |                                                |
  | protocol            | HTTP                                           |
  | session_persistence |                                                |
  | tenant_id           | ae0954b9cf0c438e99211227a7f3f937               |
  +---------------------+------------------------------------------------+
  [root@puma09 ~(keystone_redhat)]# neutron lbaas-pool-update b9048a69-461a-4503-ba6b-8a2df281f804 --session-persistence type=HTTP_COOKIE
  name 'HTTP_COOKIE' is not defined
  [root@puma09 ~(keystone_redhat)]# 


  we need to configure it in the following way- 
  neutron lbaas-pool-update b9048a69-461a-4503-ba6b-8a2df281f804 --session-persistence type=dict type=HTTP_COOKIE
  Updated pool: b9048a69-461a-4503-ba6b-8a2df281f804

  The config and update should be done in same way.

  Kilo+ rhel 7.1
  openstack-neutron-common-2015.1.0-10.el7ost.noarch
  python-neutron-lbaas-2015.1.0-5.el7ost.noarch
  openstack-neutron-openvswitch-2015.1.0-10.el7ost.noarch
  python-neutronclient-2.4.0-1.el7ost.noarch
  openstack-neutron-lbaas-2015.1.0-5.el7ost.noarch
  python-neutron-fwaas-2015.1.0-3.el7ost.noarch
  openstack-neutron-fwaas-2015.1.0-3.el7ost.noarch
  python-neutron-2015.1.0-10.el7ost.noarch
  openstack-neutron-2015.1.0-10.el7ost.noarch
  openstack-neutron-ml2-2015.1.0-10.el7ost.noarch

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1469498/+subscriptions


Follow ups

References