10 Commits

Author SHA1 Message Date
Jerry Zhao
bb869f8cfd Associate role related logs in role configs.
Define role related log attributes in role configs so that
recipe does not need to check its own role every time when
writing a role related config from template, because those
info would already have been in role definition and passed
down to node attributes.
Process monitoring can use the same mechanism.

Change-Id: Ifb10da356baf99d2d7e21c8d4d3d8df38fc81f58
2014-08-04 19:40:46 -07:00
Jerry Zhao
55eb597788 Run apt-get update before installing log related packages
ubuntu has an old apt cache upon a fresh installation, so some
package may not be in the cache yet because I noticed some dstat
installation failures due to no condidate found, so run apt-get update
first before installing packages.

Change-Id: I02cc51c45ab65a8eb9c915a87fad28aa4d844acb
2014-06-13 18:00:32 +00:00
Xinyu Zhao
5e0e64d0d3 Add stats log on cpu,disk,network
Add stats on cpu, disk and network and collect system logs
for easier debugging.

Change-Id: I378dececf5a650a1613086edc9ec063b253281c3
2014-06-11 00:04:45 +00:00
Jenkins
eda418fb18 Merge "update chef and cobbler config to make ubuntu 12.04 work" 2014-06-09 23:12:57 +00:00
xiaodongwang
99f145ba2d update chef and cobbler config to make ubuntu 12.04 work
Change-Id: I9d96382eae67421b33c33c64f0af17e14fe8acd2
2014-06-04 14:19:21 -07:00
Xinyu Zhao
8812c02940 add case for ubuntu when collecting logs
openstack on ubuntu has some logs named differently from
centos

Change-Id: I0f21999a32f7209d526b4296d1420baa2f9c85c5
2014-06-03 18:41:33 +00:00
Xinyu Zhao
ef7e56fa85 Add more logs for investigation on quantum issue
https://bugs.launchpad.net/compass/+bug/1314742
Create network failed sometimes due to rpc timeout,
so need to know where the delay is.

Change-Id: I135d1153c6cf18e4fd2047e5f3e8c7ec61165936
2014-04-30 18:05:22 +00:00
Xinyu Zhao
1f82f68616 Make sure only monitor the service logs per role.
If the monitored log dir does not exist, rsyslog will abort,
so make sure only monitor the logs that are existent.

Change-Id: Ic0f265a6a85d1e50d1e6e044d18ccd94f6dd5937
2014-04-22 01:51:27 +00:00
Xinyu Zhao
368fc7a751 Reduce the number of monitored logs
Rsyslog has limitation on number of files it can monitor.
Also write a state file for each log.

Change-Id: I3497ff2d9c1655f89de4d69aed83cc7edfa534ee
2014-04-19 01:57:34 +00:00
Xinyu Zhao
1f13960afb Add rsyslog cookbook and sync openstack logs
Modified the client recipe to sync openstack related
logs if a test indicator is enabled.

Change-Id: Ia41c28ccecb4ef298221494e6444d4909d917c56
2014-04-11 21:24:19 +00:00