diff --git a/rally_openstack/services/loadbalancer/octavia.py b/rally_openstack/services/loadbalancer/octavia.py index 96aa80b4..a0645008 100644 --- a/rally_openstack/services/loadbalancer/octavia.py +++ b/rally_openstack/services/loadbalancer/octavia.py @@ -207,13 +207,14 @@ class Octavia(service.Service): @atomic.action_timer("octavia.pool_create") def pool_create(self, lb_id, protocol, lb_algorithm, - description=None, admin_state_up=True, - session_persistence=None): + listener_id=None, description=None, + admin_state_up=True, session_persistence=None): """Create a pool :param lb_id: ID of the loadbalancer :param protocol: protocol of the resource :param lb_algorithm: loadbalancing algorithm of the pool + :param listener_id: ID of the listener :param description: a human readable description of the pool :param admin_state_up: administrative state of the resource :param session_persistence: a json object specifiying the session @@ -226,6 +227,7 @@ class Octavia(service.Service): "loadbalancer_id": lb_id, "protocol": protocol, "lb_algorithm": lb_algorithm, + "listener_id": listener_id, "description": description, "admin_state_up": admin_state_up, "session_persistence": session_persistence diff --git a/tests/unit/services/loadbalancer/test_octavia.py b/tests/unit/services/loadbalancer/test_octavia.py index 618129ae..e5498724 100644 --- a/tests/unit/services/loadbalancer/test_octavia.py +++ b/tests/unit/services/loadbalancer/test_octavia.py @@ -203,6 +203,7 @@ class LoadBalancerServiceTestCase(test.TestCase): json={"pool": { "lb_algorithm": "ROUND_ROBIN", "protocol": "HTTP", + "listener_id": None, "description": None, "admin_state_up": True, "session_persistence": None,