healthmonitor did not take effect
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
octavia |
New
|
High
|
Unassigned |
Bug Description
Create a healthmonitor and add to a pool, shutdown one member but member state is not set to inactive when the max of failed retries is reached for the instance.
Test step:
1. Create healthmonitor and add to pool.
neutron lbaas-healthmon
2. Show lb status
stack@LB-
{
"loadbalancer": {
"name": "",
{
],
}
],
"pools": [
{
},
],
}
],
"id": "52e25644-
}
}
3. Shutdown member 20.0.0.5
4. Curl vip, 20.0.0.5 is not reachable
for i in {1..10}; do echo --$i----;sudo ip netns exec qdhcp-1ceb689b-
--1----
Welcome to 20.0.0.10
--2----
Welcome to 20.0.0.9
--3----
Welcome to 20.0.0.10
--4----
Welcome to 20.0.0.9
--5----
Welcome to 20.0.0.10
--6----
Welcome to 20.0.0.9
--7----
Welcome to 20.0.0.10
--8----
Welcome to 20.0.0.9
--9----
Welcome to 20.0.0.10
--10----
Welcome to 20.0.0.9
5. Ping member ip, not reachable
sudo ip netns exec qdhcp-1ceb689b-
PING 20.0.0.5 (20.0.0.5) 56(84) bytes of data.
From 20.0.0.2 icmp_seq=1 Destination Host Unreachable
From 20.0.0.2 icmp_seq=2 Destination Host Unreachable
From 20.0.0.2 icmp_seq=3 Destination Host Unreachable
6. Show lb status, the member state did not become inactive
stack@LB-
{
"loadbalancer": {
"name": "",
{
],
}
],
"pools": [
{
},
],
}
],
"id": "52e25644-
}
}
Config healthmonitor but it did not show in configuration file.
1)show lbaas status, healthmonitor is exists. cer-status c6adc23e- e8ef-408b- 8859-30c5f74c60 8d
"provisioning_ status" : "ACTIVE",
"listeners" : [
"name" : "",
"provisioning _status" : "ACTIVE",
"pools" : [
{
"name" : "",
"provisionin g_status" : "ACTIVE",
"healthmonit or": {
"provisioning_ status" : "ACTIVE",
"type": "PING",
"id": "e1436e3d- 3d38-4061- b809-1ed719e7e8 9e",
"name": ""
},
"members" : [
{
"name" : "",
"provisioni ng_status" : "ACTIVE",
"address" : "20.0.0.10",
"protocol_ port": 443,
"id" : "60729729- c578-44b0- ba3a-28023eae48 0d",
"operating_ status" : "ONLINE"
},
neutron lbaas-loadbalan
{
"loadbalancer": {
"name": "teri_created",
{
2) See configuration file in amphora, no healthmonitor. octavia/ 7c4408c3- 0b13-460d- a28d-b96cb4f5c6 07.sock mode 0666 level user
# Configuration for teri_created
global
daemon
user nobody
group nogroup
log /dev/log local0
log /dev/log local1 notice
stats socket /var/lib/
defaults
log global
retries 3
option redispatch
timeout connect 5000
timeout client 50000
timeout server 50000
peers 7c4408c30b13460 da28db96cb4f5c6 07_peers vacf8iJm5sA4 20.0.0.16:1025 I_8YS5LNu5KU 20.0.0.15:1025
peer jOVtMRyFppkTmH6
peer AjoHi411fVQTNUn
frontend 7c4408c3- 0b13-460d- a28d-b96cb4f5c6 07 7ef0-4706- b7b1-cfd23b9b27 0d
option tcplog
bind 20.0.0.19:443
mode tcp
default_backend 3118a96b-
backend 3118a96b- 7ef0-4706- b7b1-cfd23b9b27 0d c578-44b0- ba3a-28023eae48 0d 20.0.0.10:443 weight 1 3517-48f2- b458-7e82c2e2bd 9a 20.0.0.12:443 weight 1 4c51-46eb- a2a5-2ed253d236 2a 20.0.0.4:443 weight 1
mode tcp
balance roundrobin
server 60729729-
server 3e4473af-
server 8ac13435-