R3.1 Build 4: NodeStatus dict not shown in analytics db-node uve when db-nodemgr is not active

Bug #1605828 reported by Ankit Jain
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R3.1
Invalid
Undecided
Ankit Jain
Trunk
Invalid
Undecided
Ankit Jain

Bug Description

contrail-database-nodemgr not active on nodeg13:
== Contrail Supervisor Database ==
supervisor-database: active
contrail-database-nodemgr inactive
kafka active

When nodemngr is not up, NodeStatus should not be null

Below is the output from analytics api db node uve
http://nodeg13:8081/analytics/uves/database-node/nodeg13?flat

{
ContrailConfig: {
deleted: false,
elements: {
database_node_ip_address: ""10.204.217.53"",
display_name: ""nodeg13"",
uuid: ""73518163-9ddb-42fa-9193-64a3810dbd4e"",
parent_href: ""http://0.0.0.0:9100/global-system-config/fc5d2925-0cc8-4e35-aee9-dc11b18bf7b3"",
parent_type: ""global-system-config"",
perms2: "{"owner": "1f8e050f56b64be59bcbc5eeda1c9ea2", "owner_access": 7, "global_access": 0, "share": []}",
id_perms: "{"enable": true, "uuid": {"uuid_mslong": 8309565052325413626, "uuid_lslong": 10489838610483625294}, "created": "2016-07-22T08:25:55.405486", "description": null, "creator": null, "user_visible": true, "last_modified": "2016-07-22T08:25:55.405486", "permissions": {"owner": "admin", "owner_access": 7, "other_access": 7, "group": "KeystoneServiceAdmin", "group_access": 7}}",
fq_name: "["default-global-system-config", "nodeg13"]",
parent_uuid: ""fc5d2925-0cc8-4e35-aee9-dc11b18bf7b3""
}
},
UVEAlarms: {
alarms: [
{
severity: 2,
ack: false,
timestamp: 1469252424975103,
alarm_rules: {
or_list: [
{
and_list: [
{
condition: {
operation: "==",
operand1: "NodeStatus",
vars: [ ],
operand2: "null"
},
match: [
{
json_operand1_value: "null",
json_vars: { }
}
]
}
]
}
]
},
token: "eyJ0aW1lc3RhbXAiOiAxNDY5MjUyNDI0OTc1MTAzLCAiaHR0cF9wb3J0IjogNTk5NSwgImhvc3RfaXAiOiAiMTAuMjA0LjIxNy41MyJ9",
type: "node-status",
description: "Node Failure. NodeStatus UVE not present"
}
]
}
}

Testbed:

env.roledefs = {
    'all': [host1, host2, host3,host4],
    'cfgm': [host1, host2],
    'webui': [host1],
    'openstack': [host1],
    'control': [host1, host2, host3],
    'collector': [host1, host2, host3],
    'database': [host1,host2,host3],
    'compute': [host4, host3],
    'build': [host_build]
}

env.hostnames = {
    'all': ['nodeg13', 'nodeg20', 'nodea21', 'nodeh3']

Ankit Jain (ankitja)
tags: added: sanity
Revision history for this message
Raj Reddy (rajreddy) wrote :

Ankit.. UVEs are collection of structures sent by various generators.. for the Database Node UVE, the NodeStatus data is sent only by database-nodemgr and when it's not running it is Null..

There is no bug here.. please close it..

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.