SM Monitoring: Disk stats not processed correctly, display error if some server in full list doesn't have monitoring stats
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
R3.1 |
Fix Committed
|
High
|
Nitish Krishna Kaveri | |||
Trunk |
Fix Committed
|
High
|
Nitish Krishna Kaveri |
Bug Description
The bug:
Machine 1:
Last login: Mon Aug 29 12:22:28 2016 from puppet
root@sdkvse2:~# iostat -m
Linux 3.13.0-85-generic (sdkvse2) 08/29/2016 x86_64 (16 CPU)
avg-cpu: %user %nice %system %iowait %steal %idle
8.00 0.13 4.49 0.49 0.00 86.89
Device: tps MB_read/s MB_wrtn/s MB_read MB_wrtn
sda 0.00 0.00 0.00 1 0
sdb 21.18 0.02 0.61 10008 308699
dm-0 45.42 0.02 0.61 9963 308699
dm-1 0.00 0.00 0.00 1 0
Machine 2:
root@server12:~# iostat -m
Linux 3.13.0-85-generic (server12) 08/29/2016 x86_64 (4 CPU)
avg-cpu: %user %nice %system %iowait %steal %idle
5.81 0.00 1.31 0.19 0.00 92.70
Device: tps MB_read/s MB_wrtn/s MB_read MB_wrtn
sda 64.45 0.46 1.17 1659 4248
dm-0 120.38 0.45 1.17 1623 4248
dm-1 0.28 0.00 0.00 4 0
In Machine 1 (sdkvse2) issue is seen because the line:
Linux 3.13.0-85-generic (sdkvse2) 08/29/2016 x86_64 (16 CPU)
Contains “sd” like the disks listed
But line:
Linux 3.13.0-85-generic (server12) 08/29/2016 x86_64 (4 CPU) doesn’t contain sd or dm
The code has a check:
if line.find('sd') != -1 or line.find('dm') != -1:
Only if this is true it will process the line
It is processing the linux line wrongly on Machine 1 (shouldn’t process that line)
summary: |
- SM Monitoring: Disk stats not processed correctly + SM Monitoring: Disk stats not processed correctly, display error if some + server in full list doesn't have monitoring stats |
Review in progress for https:/ /review. opencontrail. org/23712
Submitter: Nitish Krishna Kaveri (<email address hidden>)