← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1958964] Re: Fully Populated Load Balancer creation with OVN provider leaves pools as PENDING_CREATE

 

Reviewed:  https://review.opendev.org/c/openstack/ovn-octavia-provider/+/826257
Committed: https://opendev.org/openstack/ovn-octavia-provider/commit/6cc77f8a22084d610bdc071c8aab36615f0a6a0b
Submitter: "Zuul (22348)"
Branch:    master

commit 6cc77f8a22084d610bdc071c8aab36615f0a6a0b
Author: Fernando Royo <froyo@xxxxxxxxxx>
Date:   Tue Jan 25 09:04:19 2022 +0000

    Add support for fullypopulated load balancers
    
    Octavia API allows to create fully populated load balancers with
    a single call. OVN-octavia-provider was not implementing this option
    and only the loadbalancer was created, living the listener(s),
    pool(s), and member(s) created by the Octavia API as PENDING_CREATE.
    This also generated leftovers when trying to delete the loadbalancer
    with the --cascade option.
    
    Closes-Bug: #1958964
    Change-Id: I07c792c5785f978e7dde238aa3971b87d220a8eb


** Changed in: neutron
       Status: In Progress => Fix Released

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

Title:
  Fully Populated Load Balancer creation with OVN provider leaves pools
  as PENDING_CREATE

Status in neutron:
  Fix Released

Bug description:
  Creating a Fully Populated Load Balancer with OVN as provider
  successfully creates the LB but the pool stays in PENDING_CREATE state
  forever.

  How reproducible:
  Send the fully populated request to the API in JSON format following https://docs.openstack.org/api-ref/load-balancer/v2/index.html?expanded=create-pool-detail,create-a-load-balancer-detail#creating-a-fully-populated-load-balancer

  
  Steps to Reproduce:
  1.
  #!/bin/sh
   
  set -e
   
  subnet_id=$(openstack subnet show private-subnet -c id -f value)
   
  TOKEN=$(openstack token issue -f value -c id)
  OCTAVIA_BASE_URL=$(openstack endpoint list --service octavia --interface public -c URL -f value)
   
  cat <<EOF > tree.json
  {
      "loadbalancer": {
          "name": "lb1",
          "vip_subnet_id": "$subnet_id",
          "provider": "ovn",
          "listeners": [
              {
                  "name": "listener1",
                  "protocol": "TCP",
                  "protocol_port": 80,
                  "default_pool": {
                      "name": "pool1",
                      "protocol": "TCP",
                      "lb_algorithm": "SOURCE_IP_PORT",
                      "members": [
                          {
                              "address": "192.168.122.18",
                              "protocol_port": 8080
                          }, {
                              "address": "192.168.122.19",
                              "protocol_port": 8080
                          }
                      ]
                  }
          }
          ]
      }
  }
  EOF
   
  curl -X POST \
      -H "Content-Type: application/json" \
      -H "X-Auth-Token: $TOKEN" \
      -d @tree.json \
      ${OCTAVIA_BASE_URL}/v2.0/lbaas/loadbalancers

  
  2. openstack loadbalancer pool list

  
  LB created but listeners, pool and members stays in PENDING_CREATE status

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



References