Contrail-logs cannot send Database logs to syslog server

Bug #1653890 reported by mehul
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R3.1
Invalid
High
Unassigned
R3.2
Invalid
High
Unassigned
Trunk
Invalid
High
Unassigned

Bug Description

Hi Team,

Version:3.1.1.0-45
Contrail Package:contrail-install-packages_3.1.1.0-45~ubuntu-14-04mitaka_all.deb

Issue
===========================
Customer reported an issue that, they cannot send contrail logs using Database option to syslog server.

I have tested this in both version and here is the result

1. When I execute the below command on contrail 3.1.1, I cannot see any message log on syslog server.

contrail-logs --admin-user admin --admin-password contrail123 --send-syslog --syslog-server 10.219.61.105 --syslog-port 514 --node-type Database --all

2. When I execute the below command on contrail 2.1.1, I can see partial logs

contrail-logs --send-syslog --syslog-server 10.219.61.105 --syslog-port 514 --node-type Database --all

Output:

Jan 3 12:37:54 10.219.61.106 contrail: Starting new HTTP connection (1): 127.0.0.1
Jan 3 12:37:55 10.219.61.106 contrail: Starting new HTTP connection (1): 127.0.0.1

3. When I execute contrail-logs with Database option Locally in version 3.1.1, I able to see Database logs

root@ntt:~# contrail-logs --admin-user admin --admin-password contrail123 --node-type Database --all
2017 Jan 04 12:30:01.299316 ntt [Database:contrail-database-nodemgr:0:None][INVALID] : DatabaseUsage:11634 [DatabaseUsageInfo: name = ntt, [database_usage: [disk_space_used_1k = 14100048, disk_space_available_1k = 7305748, analytics_db_size_1k = 2618352]]]

4. When I execute the contrail-logs with Database option locally in 2.1.1, I also able to see Database logs

root@juno:~# contrail-logs --node-type Database --all
2017 Jan 04 12:32:01.787480 juno [Database:contrail-database-nodemgr:0:None][INVALID] : DatabaseUsage:9873 [DatabaseUsageInfo: name = juno, [database_usage: [disk_space_used_1k = 7449000, disk_space_available_1k = 13956796, analytics_db_size_1k = 1545840]]]

Customer also see the same behaviour in their environment.

-Regards,
Mehul Patel

Tags: analytics
mehul (pmehul)
information type: Proprietary → Public
summary: - Contrail-logs cannot send Database logs with syslog server
+ Contrail-logs cannot send Database logs to syslog server
mehul (pmehul)
description: updated
Jeba Paulaiyan (jebap)
tags: added: analytics
Revision history for this message
mehul (pmehul) wrote :

Hi Paulaiyan,

Can you let me know are all syslogs messages of "--node-type Database" were flagged "INVALID" or not ?

Revision history for this message
mehul (pmehul) wrote :

Hi Paulaiyan,

I am rewriting my previous comment

Can you let me know, are all syslog's messages of "--node-type Database" are flagged "INVALID" or not in version 3.1?

Revision history for this message
Sundaresan Rajangam (srajanga) wrote :

Mehul,

UVE messages are sent with severity level INVALID. At present, all the logs pertaining to the Database node-type are UVEs and hence you see all the messages for Database node flagged with severity level "INVALID"

Revision history for this message
Raj Reddy (rajreddy) wrote :

The only logs for '--node-type Database' are UVE messages which are sent at 'INVALID' level and hence don't get published to the syslog server

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.