zero stats if health monitor_type is PING

Bug #1627900 reported by alex kang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
octavia
New
High
Unassigned

Bug Description

loadbalancer stats always return zeros if loadbalancer's health monitor type=PING.

nicira@kvm-devstack-node:~/devstack$ neutron lbaas-loadbalancer-status venus-lb2-http
{
    "loadbalancer": {
        "name": "venus-lb2-http",
        "provisioning_status": "ACTIVE",
        "listeners": [
            {
                "name": "venus-lb2-http-listener_1",
                "provisioning_status": "ACTIVE",
                "pools": [
                    {
                        "name": "venus-lb2-http-pool_1",
                        "provisioning_status": "ACTIVE",
                        "healthmonitor": {
                            "provisioning_status": "ACTIVE",
                            "type": "PING",
                            "id": "b312ac88-5303-4136-b1ea-2e136219289b",
                            "name": ""
                        },
                        "members": [
                            {
                                "name": "",
                                "provisioning_status": "ACTIVE",
                                "address": "10.199.88.3",
                                "protocol_port": 80,
                                "id": "ea8a1371-c8fb-4dfa-a59a-e5c30fef982f",
                                "operating_status": "ONLINE"
                            },
                            {
                                "name": "",
                                "provisioning_status": "ACTIVE",
                                "address": "10.199.88.9",
                                "protocol_port": 80,
                                "id": "707c437c-e817-4f38-8ea9-65afeef37d8e",
                                "operating_status": "ONLINE"
                            }
                        ],
                        "id": "f3b87933-6bfa-40a6-b28a-7f758ee2df49",
                        "operating_status": "ONLINE"
                    }
                ],
                "l7policies": [],
                "id": "7da11ead-3b82-4ae6-8930-860002817b4a",
                "operating_status": "ONLINE"
            }
        ],
        "pools": [
            {
                "name": "venus-lb2-http-pool_1",
                "provisioning_status": "ACTIVE",
                "healthmonitor": {
                    "provisioning_status": "ACTIVE",
                    "type": "PING",
                    "id": "b312ac88-5303-4136-b1ea-2e136219289b",
                    "name": ""
                },
                "members": [
                    {
                        "name": "",
                        "provisioning_status": "ACTIVE",
                        "address": "10.199.88.3",
                        "protocol_port": 80,
                        "id": "ea8a1371-c8fb-4dfa-a59a-e5c30fef982f",
                        "operating_status": "ONLINE"
                    },
                    {
                        "name": "",
                        "provisioning_status": "ACTIVE",
                        "address": "10.199.88.9",
                        "protocol_port": 80,
                        "id": "707c437c-e817-4f38-8ea9-65afeef37d8e",
                        "operating_status": "ONLINE"
                    }
                ],
                "id": "f3b87933-6bfa-40a6-b28a-7f758ee2df49",
                "operating_status": "ONLINE"
            }
        ],
        "id": "67f267a8-2a4a-4fac-a61c-c1afb5ca5852",
        "operating_status": "ONLINE"
    }
}
nicira@kvm-devstack-node:~/devstack$ neutron lbaas-loadbalancer-stats venus-lb2-http
+--------------------+-------+
| Field | Value |
+--------------------+-------+
| active_connections | 0 |
| bytes_in | 0 |
| bytes_out | 0 |
| total_connections | 0 |
+--------------------+-------+

Revision history for this message
Michael Johnson (johnsom) wrote :

The issue here is that neutron-lbaas is not querying Octavia for the stats. They are being collected by Octavia, but if you use the neutron client you will always get zeros.

This is related to the database split brain issue which will be fixed with the merge.

If it is needed earlier, I recommend updating the event streamer to also update the stats in addition to status.

Changed in octavia:
importance: Undecided → High
Revision history for this message
cheng (tangch318) wrote :

I can't reproduce this issue.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.