Skip to content

[STACK-3921] [STACK-3926] Added code for performing vcs disable on thunder#394

Open
kvishnoi-a10 wants to merge 1 commit into
a10networks:masterfrom
kvishnoi-a10:feature/vcs_disable
Open

[STACK-3921] [STACK-3926] Added code for performing vcs disable on thunder#394
kvishnoi-a10 wants to merge 1 commit into
a10networks:masterfrom
kvishnoi-a10:feature/vcs_disable

Conversation

@kvishnoi-a10

@kvishnoi-a10 kvishnoi-a10 commented Apr 2, 2026

Copy link
Copy Markdown

Description

Severity: High
Issue

  1. The implementation of calculate delta during attachment and detachment of interface
  2. Fix the issue while cascade delete of loadbalancer

Jira Ticket

Technical Approach

  • The delta is calculated on the base of subnet of loadbalancer and member irrespective of network

Config Changes

Same as bug ticket

Test Cases

  • For interface attachment
openstack loadbalancer create --name lb --vip-subnet-id public-subnet
openstack loadbalancer create --name lb1 --vip-subnet-id public-subnet2
openstack loadbalancer listener create --protocol TCP --connection-limit 600 --protocol-port 8000 --name lt1_lb1 lb1
openstack loadbalancer pool create --protocol TCP --lb-algorithm ROUND_ROBIN --listener lt1_lb1 --name pl1_lt1_lb1
openstack loadbalancer member create --address 10.0.3.28 --protocol-port 80 --subnet-id server_subnet --name mb1_pl1_lt1_lb1 pl1_lt1_lb1
openstack loadbalancer member create --address 10.0.2.28 --protocol-port 80 --subnet-id server_subnet_1 --name mb2_pl1_lt1_lb1 pl1_lt1_lb1
openstack loadbalancer member create --address 10.0.2.29 --protocol-port 80 --subnet-id server_subnet_1 --name mb3_pl1_lt1_lb1 pl1_lt1_lb1
openstack loadbalancer member create --address 10.0.3.29 --protocol-port 80 --subnet-id server_subnet --name mb4_pl1_lt1_lb1 pl1_lt1_lb1
  • For delete cascade
openstack loadbalancer listener delete lt1_lb1
openstack loadbalancer listener create --protocol TCP --connection-limit 600 --protocol-port 8000 --name lt1_lb1 lb1
openstack loadbalancer listener set --default-pool pl1_lt1_lb1 lt1_lb1
openstack loadbalancer delete lb
openstack loadbalancer delete --cascade lb1

Manual Testing

  • vthunder configuration after interface attachment
amphora-33abf03b-9f90-4681-b325(NOLICENSE)#sh interfaces brief
Port                Link  Dupl  Speed  Trunk Vlan Encap     MAC             IP Address          IPs Flags  Name
---------------------------------------------------------------------------------------------------------------
mgmt                Up    auto  auto   N/A   N/A  N/A       fa16.3e1e.1ff9  192.168.0.97/24       1
1                   Up    Full  10000  none  1    N/A       fa16.3e8c.431f  172.24.4.8/24         1  DataPort
2                   Up    Full  10000  none  1    N/A       fa16.3e1f.71e9  172.24.5.198/24       1  DataPort
3                   Up    Full  10000  none  1    N/A       fa16.3ec3.3395  10.0.3.153/24         1  DataPort
4                   Up    Full  10000  none  1    N/A       fa16.3ec3.f370  10.0.2.60/24          1  DataPort

Global Throughput:1056 bits/sec (132 bytes/sec)
Throughput:1056 bits/sec (132 bytes/sec)
amphora-33abf03b-9f90-4681-b325(NOLICENSE)#sh run
!Current configuration: 620 bytes
!Configuration last updated at 06:35:01 IST Fri Apr 3 2026
!Configuration last saved at 06:35:03 IST Fri Apr 3 2026
!64-bit Advanced Core OS (ACOS) version 6.0.8, build 219 (Dec-10-2025,21:21)
!
!
system password-policy complexity Default username-check enable
system password-policy complexity Default repeat-character-check enable
system password-policy complexity Default forbid-consecutive-character 4
!
system config-version
  version 0.20
  updated-at "04-03 06:35:01 IST 2026"
  modified-by admin
!
hostname amphora-33abf03b-9f90-4681-b325
!
!
interface management
  ip address dhcp
!
interface ethernet 1
  name DataPort
  enable
  ip address dhcp
!
interface ethernet 2
  name DataPort
  enable
  ip address dhcp
!
interface ethernet 3
  name DataPort
  enable
  ip address dhcp
!
interface ethernet 4
  name DataPort
  enable
  ip address dhcp
!
!
health monitor octavia_health_monitor
  retry 5
  override-ipv4 10.67.4.138
  interval 5 timeout 3
  method udp port 5556
!
slb server 6834a_10_0_2_28 10.0.2.28
  port 80 tcp
!
slb server 6834a_10_0_2_29 10.0.2.29
  port 80 tcp
!
slb server 6834a_10_0_3_28 10.0.3.28
  port 80 tcp
!
slb server 6834a_10_0_3_29 10.0.3.29
  port 80 tcp
!
slb server octavia_health_manager_controller 10.67.4.138
  health-check octavia_health_monitor
!
slb service-group 65273a86-28d8-4152-93b9-2da2e3d520ed tcp
  member 6834a_10_0_2_28 80
  member 6834a_10_0_2_29 80
  member 6834a_10_0_3_28 80
  member 6834a_10_0_3_29 80
!
slb virtual-server 3305f86a-6a01-431e-943c-c2a8aa73db19 172.24.4.190
!
slb virtual-server 36478712-7a52-41aa-a2af-1a1c7640174a 172.24.5.245
  port 8000 tcp
    name 51f94db5-3715-4cba-b960-831770128919
    conn-limit 600
    extended-stats
    service-group 65273a86-28d8-4152-93b9-2da2e3d520ed
!
!
cloud-services meta-data
  enable
  provider openstack
!
end
!Current config commit point for partition 0 is 0 & config mode is classical-mode

  • vthunder config for delete cascade
amphora-33abf03b-9f90-4681-b325(NOLICENSE)#  sh interfaces brief
Port                Link  Dupl  Speed  Trunk Vlan Encap     MAC             IP Address          IPs Flags  Name
---------------------------------------------------------------------------------------------------------------
mgmt                Up    auto  auto   N/A   N/A  N/A       fa16.3e1e.1ff9  192.168.0.97/24       1
1                   Up    Full  10000  none  1    N/A       fa16.3e1f.71e9  172.24.5.198/24       1  DataPort

Global Throughput:0 bits/sec (0 bytes/sec)
Throughput:0 bits/sec (0 bytes/sec)
amphora-33abf03b-9f90-4681-b325(NOLICENSE)#sh run
!Current configuration: 619 bytes
!Configuration last updated at 06:47:42 IST Fri Apr 3 2026
!Configuration last saved at 06:47:42 IST Fri Apr 3 2026
!64-bit Advanced Core OS (ACOS) version 6.0.8, build 219 (Dec-10-2025,21:21)
!
!
system password-policy complexity Default username-check enable
system password-policy complexity Default repeat-character-check enable
system password-policy complexity Default forbid-consecutive-character 4
!
system config-version
  version 0.36
  updated-at "04-03 06:47:39 IST 2026"
  modified-by admin
!
hostname amphora-33abf03b-9f90-4681-b325
!
!
interface management
  ip address dhcp
!
interface ethernet 1
  name DataPort
  enable
  ip address dhcp
!
!
health monitor octavia_health_monitor
  retry 5
  override-ipv4 10.67.4.138
  interval 5 timeout 3
  method udp port 5556
!
slb server octavia_health_manager_controller 10.67.4.138
  health-check octavia_health_monitor
!
slb virtual-server 3029b390-5b3d-4bd4-8596-b3114fbeb940 172.24.5.68
!
!
cloud-services meta-data
  enable
  provider openstack
!
end
!Current config commit point for partition 0 is 0 & config mode is classical-mode

@kvishnoi-a10 kvishnoi-a10 changed the title [STACK-3921] [STACK-3926] Added for performing vcs disable on thunder [STACK-3921] [STACK-3926] Added code for performing vcs disable on thunder Apr 2, 2026
@nehakembalkar-a10 nehakembalkar-a10 self-requested a review April 14, 2026 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants