Batch update member to pool failed due to new_member is not exist in DB
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Cloud Archive |
Fix Released
|
Undecided
|
Unassigned | ||
Stein |
Fix Released
|
High
|
Unassigned | ||
Train |
Fix Released
|
High
|
Unassigned | ||
Ussuri |
Fix Released
|
High
|
Unassigned | ||
Victoria |
Fix Released
|
Undecided
|
Unassigned | ||
octavia (Ubuntu) |
Fix Released
|
Undecided
|
Hemanth Nakkina | ||
Focal |
Fix Released
|
High
|
Unassigned | ||
Groovy |
Fix Released
|
Undecided
|
Hemanth Nakkina |
Bug Description
Original Upstream bug: https:/
(The problem is observed in OpenStack Stein)
Code review in progress (Upstream) - https:/
=======
[Impact]
Adding members to loadbalancer in batch mode fails and loadbalancers are
stuck in pending_create state.
This patch retries the read from DB 15 times to check if DB is populated properly or not.
[Test Case]
1. Reproducing the issue
1a. Create 2 or more instances to add as members to loadbalancer
(The issue can be reproduced if there is load on the machine, on my test environment able to reproduce with 2 members)
1b. Create a loadbalancer, listener, pool and healthmonitor
openstack loadbalancer create --name lb1 --vip-subnet-id private_subnet
openstack loadbalancer listener create --name listener1 --protocol HTTP --protocol-port 80 lb1
openstack loadbalancer pool create --name pool1 --lb-algorithm ROUND_ROBIN --listener listener1 --protocol HTTP
openstack loadbalancer healthmonitor create --name hm1 --delay 5 --max-retries 4 --timeout 10 --type HTTP --url-path / pool1
1c. Create a token
AUTH_
1d. Prepare a file members.json based on Request example in the below link
https:/
1e. Add members in batch mode
curl -X PUT -H "Content-Type: application/json" -H "X-Auth-Token: $AUTH_TOKEN" -d @members.json http://<ip>:<port>
1f. Check loadbalancer show. This will be in pending_create state in non-working case
openstack loadbalancer show lb1
2. Install the package with fixed code
3. Confirm bug have been fixed
3a. Repeat steps 1a-1f. Loadbalancer should be in ACTIVE state
[Regression Potential]
Upstream CI passed for all the releases including the backported versions.
Installation of new package will restart apache service and hence there will be downtime of octavia service for few milliseconds.
tags: | added: sts |
Changed in octavia (Ubuntu): | |
assignee: | nobody → Hemanth Nakkina (hemanth-n) |
Changed in octavia (Ubuntu Groovy): | |
status: | New → Fix Released |
Changed in octavia (Ubuntu Focal): | |
status: | New → Triaged |
importance: | Undecided → High |
Attached debdiffs for focal, uca ussuri, uca train, uca stein.