[Contrail 3.0] Analytics uves returning empty output

Bug #1562120 reported by Florek
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel Plugins
Fix Released
Medium
Iryna Vovk

Bug Description

The configuration of the contrail-alarm-gen is missing obligatory host_ip parameter. Because of that alarmpartitions may all be allocated to one node:
curl 127.0.0.1:9081/analytics/uves/analytics-node/*?cfilt=AlarmgenPartition | python -mjson.tool
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
100 464 0 464 0 0 24105 0 --:--:-- --:--:-- --:--:-- 25777
{
    "value": [
        {
            "name": "node-5.test.domain.local",
            "value": {
                "AlarmgenPartition": {
                    "inst_parts": [
                        {
                            "instance": "0",
                            "partitions": []
                        }
                    ]
                }
            }
        },
        {
            "name": "node-2.test.domain.local",
            "value": {
                "AlarmgenPartition": {
                    "inst_parts": [
                        {
                            "instance": "0",
                            "partitions": [
                                "0",
                                "1",
                                "2",
                                "3",
                                "4",
                                "5",
                                "6",
                                "7",
                                "8",
                                "9",
                                "10",
                                "11",
                                "12",
                                "13",
                                "14"
                            ]
                        }
                    ]
                }
            }
        },
        {
            "name": "node-7.test.domain.local",
            "value": {
                "AlarmgenPartition": {
                    "inst_parts": [
                        {
                            "instance": "0",
                            "partitions": []
                        }
                    ]
                }
            }
        }
    ]
}

which results in analytics providing empty responses on the other nodes:

root@node-2:~# curl http://localhost:9081/analytics/uves/vrouters | python -m json.tool
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
100 124 100 124 0 0 9220 0 --:--:-- --:--:-- --:--:-- 9538
[
    {
        "href": "http://localhost:9081/analytics/uves/vrouter/node-3.test.domain.local?flat",
        "name": "node-3.test.domain.local"
    }
]

root@node-5:~# curl http://localhost:9081/analytics/uves/vrouters
[]

root@node-7:~# curl http://localhost:9081/analytics/uves/vrouters
[]

To fix the bug one has to provide the ip address of the br-mesh interface in the [DEFAULTS] section for /etc/contrail/contrail-alarm-gen.conf:
[DEFAULTS]
host_ip = 10.109.19.7

Tags: contrail
Changed in fuel-plugins:
assignee: nobody → Oleksandr Martsyniuk (omartsyniuk)
status: New → Confirmed
milestone: none → 7.0
tags: added: contrail
Changed in fuel-plugins:
status: Confirmed → In Progress
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-plugin-contrail (master)

Fix proposed to branch: master
Review: https://review.openstack.org/297837

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-plugin-contrail (stable/3.0)

Fix proposed to branch: stable/3.0
Review: https://review.openstack.org/297863

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-plugin-contrail (stable/3.0)

Reviewed: https://review.openstack.org/297863
Committed: https://git.openstack.org/cgit/openstack/fuel-plugin-contrail/commit/?id=dd4db014a9f8a91730a823a5a22d5d815accccda
Submitter: Jenkins
Branch: stable/3.0

commit dd4db014a9f8a91730a823a5a22d5d815accccda
Author: Oleksandr Martsyniuk <email address hidden>
Date: Fri Mar 25 14:30:53 2016 -0500

    Analytics configuration updated to resolve the issues resulted in
    inconsistent analytics API responses in some cases.

     - analytics-api now uses discovery service to obtain collectors IP address
     - configuration for contrail-alarm-gen adjusted with host_ip param
     - contrail-alarm-gen re-enabled

    Change-Id: I4548a14442fb346e0d483886330c7b07f1570c84
    Closes-bug: #1562123
    Closes-bug: #1562120
    Closes-bug: #1556988

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-plugin-contrail (master)

Reviewed: https://review.openstack.org/297837
Committed: https://git.openstack.org/cgit/openstack/fuel-plugin-contrail/commit/?id=2be2c1a243dfcfff8d1a2685ebc2266cbaa41ee5
Submitter: Jenkins
Branch: master

commit 2be2c1a243dfcfff8d1a2685ebc2266cbaa41ee5
Author: Oleksandr Martsyniuk <email address hidden>
Date: Fri Mar 25 14:30:53 2016 -0500

    Analytics configuration updated

    resolves the issues resulted in inconsistent analytics API responses in some cases

     - analytics-api now uses discovery service to obtain collectors IP address
     - configuration for contrail-alarm-gen adjusted with host_ip param
     - contrail-alarm-gen re-enabled

    Change-Id: I4548a14442fb346e0d483886330c7b07f1570c84
    Closes-bug: #1562123
    Closes-bug: #1562120
    Closes-bug: #1556988

Changed in fuel-plugins:
status: In Progress → Fix Committed
Iryna Vovk (ivovk)
Changed in fuel-plugins:
assignee: Oleksandr Martsyniuk (omartsyniuk) → Iryna Vovk (ivovk)
status: Fix Committed → Fix Released
Revision history for this message
Iryna Vovk (ivovk) wrote :

Verified with the latest package. Problem is not reproduced after fix.

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.