Skip to content
Snippets Groups Projects
  1. Oct 26, 2023
  2. Oct 07, 2023
    • Kurt Garloff's avatar
      Feat/add az wave (#140) · 13bc802b
      Kurt Garloff authored
      
      * Delete keypair by name if creation failed.
      
      An laready existing keypair by that name is the most common reason for
      the failure, so cleaning up just in case is a good idea.
      Of course, there should not have been a left-over key ...
      
      * Also look for left-over keypairs in regular cleanups.
      
      * Better output for KEYPAIR creation.
      
      * Use all AZs for wavestack (default).
      
      * 1.92: Use az hints for VM networks.
      
      This should allow neutron to optimize things a bit.
      The VMs in a network are all in one AZ, so let neutron create that
      network in the right AZ. Can be disabled by passing NAZS=" ".
      
      Also call the one and only NET_JH and not NET_JH0.
      
      Signed-off-by: default avatarKurt Garloff <kurt@garloff.de>
      13bc802b
  3. Jul 04, 2023
  4. Jul 03, 2023
    • Kurt Garloff's avatar
      Feat/diskless flavor support (#133) · a443b3a8
      Kurt Garloff authored
      
      * Add logic to patch openstackclient to support --block-device.
      * Determine whether we NEED_BLKDEV and use it.
      * 1.90. Fix syntax errors.
      * Translate --block-device args from nova to openstack.
      * Use nova boot workaround if opentackclient is very old.
      * Default to Ubuntu 22.04 img and diskless flavors.
      * Avoid sed script to patch more than a line.
      
      Signed-off-by: default avatarKurt Garloff <kurt@garloff.de>
      a443b3a8
  5. Jun 29, 2023
  6. Mar 14, 2023
  7. Mar 07, 2023
  8. Feb 17, 2023
    • Kurt Garloff's avatar
      Feat/lb provider flavor (#118) · baaa6edb
      Kurt Garloff authored
      
      * Support other LB providers (ovn) with -LP.
      
      * Allow passing loadbalancer provider via -LP <PROVIDER>
      * This results in a TCP loadbalancer with algo SOURCE_IP_PORT
        (which is the only algo that the ovn provider supports)
      * When configuring members, we actually had ommitted the --subnet-id
        parameter previously, as it was unneeded and lead to a failure
        with token authentication.
        This needed changing, as the member subnets need to be set
        explicitly when using the OVN provider.
      
      Still: It does not (yet?) work.
      Maybe having the VIP (for the listener) and the member
      ports in different networks is not supported?
      
      Signed-off-by: default avatarKurt Garloff <kurt@garloff.de>
      
      * LB member subnet is JHSUBNET[0].
      
      Explicitly setting the --subnet-id for amphorae to the backend
      member actually breaks the LB's connection to the backend members.
      So we set it to the subnet from the VIP; as we access the LB via
      the floating IP, the request does indeed originate from the LB's
      VIP address in the VIP subnet (which we set to the JHSUBNET[0]).
      
      When using ovn provider, this makes the LB work IF the requests
      come from a host in the JHSUBNET, but not from the floating IP.
      So currently, this breaks.
      
      Sidenote: health-monitor is not supported for ovn provider pools.
      
      Signed-off-by: default avatarKurt Garloff <kurt@garloff.de>
      
      * SG in VM needs to allow port 80 from 0/0 for OVN.
      
      The requests come from the real client IP (which can be the internet,
      i.e. 0/0) and not the LB's virtual IP. Thus adjust the security
      group to allow for it.
      
      The OVN provider does not support the health monitor, unfortunately.
      
      Signed-off-by: default avatarKurt Garloff <kurt@garloff.de>
      
      * Adjust max cycle time if we don't kill LB members.
      
      Signed-off-by: default avatarKurt Garloff <kurt@garloff.de>
      
      * Improve warning when LB backend kills are skipped.
      
      Signed-off-by: default avatarKurt Garloff <kurt@garloff.de>
      
      * Set the member's subnet to the backend server subnets.
      
      This causes the health-monitor to detect members with error operating
      status.
      It does correctly take them out of the rotation when accessed via the
      VIP, unfortunately not via the Floating IP though.
      https://bugs.launchpad.net/neutron/+bug/1956035
      
      
      
      The api_monitor.sh does thus report a few errors on each iteration.
      
      Signed-off-by: default avatarKurt Garloff <kurt@garloff.de>
      
      ---------
      
      Signed-off-by: default avatarKurt Garloff <kurt@garloff.de>
      baaa6edb
  9. Jan 10, 2023
  10. Dec 09, 2022
  11. Dec 01, 2022
    • Kurt Garloff's avatar
      Fix/lb port cleanup (#108) · 2f573ac8
      Kurt Garloff authored
      
      * Fix port cleanup for leftover load-balancers.
      
      The grep expression previously did not match, causing port deletion
      for octavia-lb ports in our subnet to be skipped.
      
      Signed-off-by: default avatarKurt Garloff <kurt@garloff.de>
      
      * Also cleanup leftover octavia ports in cleanup.
      
      There, we also need to shift the security group deletion until after we
      have cleaned up load balancer ports, as LB ports could have security
      groups assigned.
      
      Signed-off-by: default avatarKurt Garloff <kurt@garloff.de>
      
      * Hit all octavia ports not just -vrrp.
      
      Signed-off-by: default avatarKurt Garloff <kurt@garloff.de>
      
      * Enable LBs in CLEANUP call.
      
      Signed-off-by: default avatarKurt Garloff <kurt@garloff.de>
      
      * Do octavia port cleanup unconditionally.
      
      Signed-off-by: default avatarKurt Garloff <kurt@garloff.de>
      
      Signed-off-by: default avatarKurt Garloff <kurt@garloff.de>
      2f573ac8
    • Kurt Garloff's avatar
      Medium old OSC reports Networks in a diff format. (#109) · 9a952c55
      Kurt Garloff authored
      
      * Medium old OSC reports Networks in a diff format.
      
      So OSC-5.5.0 reports (openstack server list -f json):
      [
        {
          "ID": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
          "Name": "HealthMon-Host",
          "Networks": {
            "kd500924-SCS-healthmonitor-network": [
              "192.168.0.17",
              "78.138.66.252"
            ]
          }
        }
      ]
      whereas older version OSC-5.3.1 reports
      [
        {
          "ID": "XXXXXXXXXXXXXXXXXXXXXXXXX",
          "Name": "testkg2",
          "Networks": "testkg2=192.168.33.95, 31.172.117.55",
        }
      ]
      
      Adjust IP parser to handle both ...
      
      Signed-off-by: default avatarKurt Garloff <kurt@garloff.de>
      
      * A bit more debugging info (commented out).
      
      Signed-off-by: default avatarKurt Garloff <kurt@garloff.de>
      
      Signed-off-by: default avatarKurt Garloff <kurt@garloff.de>
      9a952c55
    • Kurt Garloff's avatar
      Fix/assign extnet earlier (#107) · b971b193
      Kurt Garloff authored
      
      * Handle neutron not reporting device_id.
      
      We currently match ports by looking for the VM UUID in the port's
      device_id. This does no longer seem to work reliably on PCO; the field
      is not returned by the port list command.
      So look for the IP address reported from server list and match it
      with the ports to determine port ID. Sort of ugly, but there is no
      straightforward way to get port <-> VM relationships without looking
      at port details or matching both subnet and IP address.
      
      Signed-off-by: default avatarKurt Garloff <kurt@garloff.de>
      
      * Simplify old code path.
      
      We already know that we only go here if we're using the legacy tooling.
      
      Signed-off-by: default avatarKurt Garloff <kurt@garloff.de>
      
      * Assign external net to router before creating VMs.
      
      Signed-off-by: default avatarKurt Garloff <kurt@garloff.de>
      
      * Revert "Assign external net to router before creating VMs."
      
      This reverts commit b0a1991f.
      
      Signed-off-by: default avatarKurt Garloff <kurt@garloff.de>
      
      * Assign external net to router before creating VMs.
      
      Signed-off-by: default avatarKurt Garloff <kurt@garloff.de>
      
      * Clean up router when external-net-list fails.
      
      Also, ignore when setting external gateway fails.
      (The reason is that this is not required on OTC and the error is
      thus harmless.)
      
      Signed-off-by: default avatarKurt Garloff <kurt@garloff.de>
      
      * Bump version number to 1.85.
      
      The change (assigning the external net early) is significant enough
      that we want to see from the version number whether or not we have it.
      
      Signed-off-by: default avatarKurt Garloff <kurt@garloff.de>
      
      Signed-off-by: default avatarKurt Garloff <kurt@garloff.de>
      b971b193
  12. Nov 30, 2022
    • Kurt Garloff's avatar
      Feat/new collect port (#106) · fb63fb23
      Kurt Garloff authored
      
      * Handle neutron not reporting device_id.
      
      We currently match ports by looking for the VM UUID in the port's
      device_id. This does no longer seem to work reliably on PCO; the field
      is not returned by the port list command.
      So look for the IP address reported from server list and match it
      with the ports to determine port ID. Sort of ugly, but there is no
      straightforward way to get port <-> VM relationships without looking
      at port details or matching both subnet and IP address.
      
      * Simplify old code path.
      
      We already know that we only go here if we're using the legacy tooling.
      
      Signed-off-by: default avatarKurt Garloff <kurt@garloff.de>
      fb63fb23
    • Kurt Garloff's avatar
      Feat/add lbconn grafana (#102) · ed808bba
      Kurt Garloff authored
      
      * Report timing and errors of LB connections to grafana.
      
      * 3 digits LBconn time measurement.
      
      * Add LBconn to dashboard.
      
      * Change range for bench graph to include LBConn vals.
      
      * Multiply LB dur by ten, so graphs in grafana align better.
      
      * Range for bench chart 0.5--32.
      
      We may have iperf measurements below 1 (Gbps), so extend scale a bit
      downwards.
      
      Signed-off-by: default avatarKurt Garloff <kurt@garloff.de>
      ed808bba
    • Kurt Garloff's avatar
      Only wait for JHPORT b/f assigning FIP if needed. (#101) · 6b38ab4d
      Kurt Garloff authored
      
      * Only wait for JHPORT b/f assigning FIP if needed.
      
      This was required on OTC, and we can still force the waiting by setting
      the FIPWAITPORTDEVOWNER environment.
      
      Signed-off-by: default avatarKurt Garloff <kurt@garloff.de>
      
      * Fix syntax for new FIPWAITPORTDEVOWNER. Set for OTC.
      
      Signed-off-by: default avatarKurt Garloff <kurt@garloff.de>
      6b38ab4d
  13. Nov 28, 2022
  14. Nov 23, 2022
  15. Nov 20, 2022
  16. Nov 16, 2022
  17. Oct 24, 2022
    • Kurt Garloff's avatar
      Fix/redelete lb (#97) · 8acba405
      Kurt Garloff authored
      
      * Retry removing LB after waitdel.
      
      When JH creation fails, we clean up things in reverse order.
      The LB is then typcally still in PENDING_CREATE, which means
      we can't delete it yet. Waiting it to vanish then won't work
      either.
      If that happens, we should try to delete it again and wait
      again.
      
      This addresses the issue observed in #96.
      
      Signed-off-by: default avatarKurt Garloff <scs@garloff.de>
      
      * Wait shorter b/f retrying LB delete.
      
      Also for the implementation to work, we need to unset LBDSTATS
      before deleting again (otherwise the array grows larger than the
      list of resources, causing the wait loop to not break once all
      resources are gone).
      When retrying, we wait 5s rather than 2s now, increasing the chances
      that re-deleting actually works.
      
      This fixes #96.
      
      Signed-off-by: default avatarKurt Garloff <scs@garloff.de>
      
      * Bump version to 1.83.
      
      Note to previous commit: Restoring LBAASS from DELLBAASS was
      key to make second calls to deleteLBs and waitdelLBs actually
      do something.
      
      This belongs to #96.
      
      Signed-off-by: default avatarKurt Garloff <scs@garloff.de>
      
      Signed-off-by: default avatarKurt Garloff <scs@garloff.de>
      Co-authored-by: default avatarchschilling <c.schilling@gmx.net>
      8acba405
    • Kurt Garloff's avatar
      Fix wait time reporting in waitResources. (#99) · 985fca42
      Kurt Garloff authored
      
      Only the resources waited for in waitlistResources would be properly
      reported to telegraf/influx/grafana, there was a typo in the ones waited
      for in waitResources. This cause waitJHPORT not to be visible in
      grafana. Fixed.
      
      Signed-off-by: default avatarKurt Garloff <kurt@garloff.de>
      
      Signed-off-by: default avatarKurt Garloff <kurt@garloff.de>
      985fca42
  18. Oct 21, 2022
  19. Sep 27, 2022
  20. Sep 19, 2022
  21. Sep 15, 2022
  22. Sep 09, 2022
  23. Sep 05, 2022
Loading

Consent

On this website, we use the web analytics service Matomo to analyze and review the use of our website. Through the collected statistics, we can improve our offerings and make them more appealing for you. Here, you can decide whether to allow us to process your data and set corresponding cookies for these purposes, in addition to technically necessary cookies. Further information on data protection—especially regarding "cookies" and "Matomo"—can be found in our privacy policy. You can withdraw your consent at any time.