1. 04 Apr, 2019 1 commit
    • Carlos Goncalves's avatar
      Fix setting of VIP QoS policy · 86e3eb4c
      Carlos Goncalves authored
      Load balancers were going in to ERROR when updating vip_qos_policy_id in
      two different cases:
      - QoS extension enabled: the VIP DB data model was incorrectly
        constructed ('vip_qos_policy_id' where it should have been
      - QoS extension disabled: setting an UUID or None would fail in the LB
        update flow as the extension is disabled, and the API would return
        HTTP 202 to the user.
      Story: 2004602
      Task: 28512
      Change-Id: Ie974afa52fe70cbab72b7e7f75bf7ee1015e148c
      (cherry picked from commit e0c45ce4)
  2. 27 Feb, 2019 1 commit
    • Michael Johnson's avatar
      Fix parallel plug vip · 1f709e33
      Michael Johnson authored
      A recent patch[1] introduced parallel network configuration on load
      balancer boot. However, this patch has a race condition between the
      parallel booting amphora.
      This patch corrects this by making the get amphora network configurations
      task to work on a single amphora if one is presented to the task.
      Change-Id: Ideb050a215b0b0335ea94163650959994f987008
      Story: 2005080
      Task: 29659
  3. 12 Feb, 2019 1 commit
    • German Eichberger's avatar
      Refactor the pluggin of the VIP · 06baf6d5
      German Eichberger authored
      This aims to make plugging the vip based on the amphora instead
      the LB for the LB create flows.
      Change-Id: I0eaae7b60333d2e720acc9570a0d398a06be46e5
  4. 26 Apr, 2018 1 commit
    • Mohammed Naser's avatar
      Remove PluggedVIPNotFound references · b4632d7f
      Mohammed Naser authored
      The PluggedVIPNotFound exception is no longer being raised anywhere
      so we can drop any references to it.
      Change-Id: Ida424233a3a7fbb372a837ba3f484abd089d38aa
  5. 30 Mar, 2018 1 commit
    • Michael Johnson's avatar
      Fix a no-op network driver bug on plug_port · 538cfdd2
      Michael Johnson authored
      The base meta-class and no-op network driver had an incorrect plug_port
      parameter compared to the allowed-address-pairs driver. This patch corrects
      this and aligns the driver signatures.
      Change-Id: I74a57ab1374a3cea431fa750aa464d5628e4ef85
  6. 30 Jan, 2018 1 commit
    • Michael Johnson's avatar
      Handle missing security groups on listener delete · 4fb6fa21
      Michael Johnson authored
      On listener create or delete we update the VIP security group rules to
      reflect the addition or removal of the TCP port on the VIP.
      In the unusual event that the security group is missing in neutron, even
      listener delete calls would fail.
      This patch allows listener deletes to continue if the security group is
      missing from the VIP.
      Change-Id: Ic0186c34d3215869f1b92bcd4c8e015e0dd54053
      Story: 2001381
      Task: 5955
  7. 20 Dec, 2017 1 commit
    • ZhaoBo's avatar
      Extend api to accept qos_policy_id · 51f6f725
      ZhaoBo authored
      This patch extend Octavia v2 API to access qos_policy_id from neutron.
      Users can pass it as 'vip_qos_policy_id' to Octavia request body to
      create/update Loadbalancers, and the vrrp ports will have the qos
      This patch modifies the Loadbalancer Post/Put request body and response
      body. It also extends the 'vip' table with the new column named
      'qos_policy_id' to store the qos_id from neutron.
      Co-Authored-By: default avatarReedip <reedip.banerjee@nectechnologies.in>
      Change-Id: I43aba9d2ae816b1498d16da077936d6bdb62e30a
  8. 03 Jul, 2017 1 commit
  9. 19 Aug, 2016 2 commits
    • Michael Johnson's avatar
      Fixes failover flow with namespace driver · 7ba33e6e
      Michael Johnson authored
      This patch updates the haproxy service scripts to handle the case
      where the network interfaces have not yet been plugged.  This can
      occur in a failover situation.
      This patch also makes sure we don't move the management lan interface
      into the network namespace.
      Closes-Bug: #1509706
      Closes-Bug: #1577963
      Change-Id: I04d267bd3cdedca11f0350c5255086233cba14ec
    • ptoohill1's avatar
      Updating network base utils for more functionality · 2125c3a7
      ptoohill1 authored
      Adds additional base utility methods for retrieving network data
      Closes-Bug: #1614164
      Change-Id: I6cd1998f819d9a6f9b41207c77df2e17cc1a8683
  10. 26 May, 2016 1 commit
    • ptoohill1's avatar
      Network driver should generate network configs · 65cc70ec
      ptoohill1 authored
      Currently the network task configures the network
      configs, this means other driver cannot use the data
      they need to.
      Change-Id: I3b6e25f3c7f7343d89b9e6844382e7696ea5d4be
      Closes-Bug: #1581303
  11. 22 Mar, 2016 1 commit
    • Michael Johnson's avatar
      Fixes failover when using a spares pool · f7c776fd
      Michael Johnson authored
      The failover flow was not plugging the ports back into the
      amphora if the failover used an amphora from the spares pool.
      This patch adds a task to plug the ports back into the amphora
      during failover
      Change-Id: Id7f0e60650ca2b35afb2695181897674abb9d8cf
      Closes-Bug: #1558934
  12. 09 Sep, 2015 1 commit
  13. 20 Aug, 2015 1 commit
    • Brandon Logan's avatar
      Setup base neutron network driver · c7617ff9
      Brandon Logan authored
      There are common methods that all neutron based network drivers will most
      likely implement the same way.  To prevent duplicate code, a common base driver
      for all neutron drivers has been created. In the process of splitting this out,
      cleaning up of some existing code was done as well.
      The network driver's plug_network and unplug_network methods took an
      amphora_id as a parameter, but it was always assumed to be the compute_id.
      This parameter has been changed to compute_id.
      The octavia interface network model originally had just a single ip_address,
      but to more accurately reflect what neutron and probably other networking
      as a services will return, this has been changed to fixed_ips because
      interfaces and ports can have multiple ip addresses.
      Other cleanup includes calling the network drivers own get_network, get_subnet,
      and get_port methods instead of calling the neutron client's show_network,
      show_subnet, and show_port methods.  Also, all of these changes required some
      test changes as well.
      Change-Id: Ie6ebc5bc8babe8562c280ba12a1feab21b4ff3f9
  14. 29 Jul, 2015 1 commit
    • Brandon Logan's avatar
      Adding methods to network driver to get more info · f0742228
      Brandon Logan authored
      The network driver needs the ability to retrieve specific information about
      subnets and ports and pass that information to other components.  Having info
      about the subnet gives us cidr and gateway data that is valuable when setting
      up the amphora's routes for the separation of tenant data and management data.
      Because of this need, methods to retrieve network, subnet, and port details
      has been added.
      This also adds a another data model AmphoraNetworkConfig that contains subnet
      and port information for the vip, vrrp, and ha networks on an amphora.  A
      network task has been added that builds this data structure by calling the new
      methods added to the network driver.
      Change-Id: Ica912337c7d52659a9733096878664f734f27b00
  15. 13 May, 2015 2 commits
    • ptoohill1's avatar
      Updates for calculate delta task · a3f53841
      ptoohill1 authored
      Member has subnet_id and we need to compare with network_id.
      In order to do this CalculateDelta task now takes in a load balancer
      loops through the amphora, collects the plugged networks
      and gathers the network_ids from member subnet_ids and
      builds the list accordingly.
      Updates network_tasks CalculateDelta
      Updates network_tasks adding method to handle deltas
      Updates driver adding method to get network
      Updates tests, spec and other required code
      Change-Id: I698625e4e2e7352cb3000e22de808c33fa7636ed
    • Brandon Logan's avatar
      Added update_vip method to network driver · 913b6a85
      Brandon Logan authored
      There needed to be a method to update the security group rules whenever
      a listener is added or removed.  The update_vip method will not update those
      rules based on what listener's are present.
      Also changed the allocate_vip method to take in a load_balancer instead of
      port_id, network_id, and/or ip_address.   The reason for this is some driver
      implementations may just want the vip to be the IP directly on the amphora.
      The previous signature did not allow this.
      Closes-Bug: #1453609
      Closes-Bug: #1453610
      Change-Id: Ie5765c231c6f6ba45042db9b111e6814cf50c465
  16. 10 Apr, 2015 1 commit
    • Brandon Logan's avatar
      Added vrrp_ip and ha_ip to amphora models · 7e11665b
      Brandon Logan authored
      vrrp_ip will typically be the ip through which the amphora communicates with
      its vrrp peer.
      ha_ip will typically be the ip that is shared between the amphorae.
      Since it is possible each amphora may have a different ha_ip and vrrp_ip,
      it makes sense to add them to the model/table.  Adding them now because the
      network driver will be assigning the values.
      Changed the network driver spec and base class to mention the plug_vip method
      should return a list of amphoras.
      Change-Id: I04a97caf00bc6fa25f94e6470d3ed7da48880ae6
  17. 13 Jan, 2015 1 commit
    • Brandon Logan's avatar
      Adding network driver interface · 9b989e2f
      Brandon Logan authored
      Definition of network driver interface.  Also removed
      the floating_ip attributes of VIP because they are not
      needed at this point.  Also renamed net_port_id to just
      port_id and subnet_id to network_id just to be a little
      bit more generically clear.
      Change-Id: Ic82cb2ab25fbba7dc8caa875552f4caeafb0e4af
      Implements: bp/network-driver-interface
  18. 04 Sep, 2014 1 commit
  19. 03 Jul, 2014 1 commit