Commit 87baa22
committed
Catch exceptions for interfaceStats in libvirt inspector
In the Libvirt inspector we call the interfaceStats()
function but there is a race between us checking if
the domain is stopped and calling interfaceStats.
This adds a try-catch around interfaceStats the
same way as is already done for blockStats etc.
Closes-Bug: #2113768
Change-Id: I25ba64f5eefe8140b45bc4ff7e20c323dc5efd79
(cherry picked from commit 70a56ba)
Signed-off-by: Tobias Urdin <tobias.urdin@binero.com>1 parent 8dc61a6 commit 87baa22
2 files changed
Lines changed: 13 additions & 1 deletion
File tree
- ceilometer/compute/virt/libvirt
- releasenotes/notes
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
118 | 124 | | |
119 | 125 | | |
120 | 126 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
0 commit comments