+++ This bug was initially created as a clone of Bug #1409814 +++ 1. Feature Overview: a) Name of feature: Open vSwitch Events Plugin b) Feature Description: Plugin provides the OVS link status for interfaces. Plugin will also report vswitch liveliness. The collectd reporting of vSwitch link status should be supported in OSP. Plugin is in the process of being upstreamed, status at https://github.com/collectd/collectd/pull/1971 2. Feature Details: a) Architectures: b) Bugzilla Dependencies: c) Drivers or hardware dependencies: n/a d) Upstream acceptance information: Spec and implementation in progress. e) External links: f) Severity (H,M,L): M g) Feature Needed by: 3. Business Justification: a) Why is this feature needed? b) What hardware does this enable? n/a c) Is this hardware on-board in a system (eg, LOM) or an add-on card? No d) Business impact? n.a e) Other business drivers: 4. Primary contact at Red Hat, email, phone (chat): 5. Primary contact at Partner, email, phone (chat): Rob Love robert.w.love
This plugin is upstreamed to collectd
There seem to be a lot issues around this upstream; the same is true for code changes since last release. Bumping this to Queens.
vSwitch Events is merged to collectd master please reference https://github.com/collectd/collectd/tree/master search for "ovs_events" Can you review this and review the move to Queens.
It is not included in a released version yet, the latest collectd 5.7.2 was released a very few days ago, but is based on a branch split off from master in january. That means, everything merged to master afterwards is not included.
Additional docs: https://opnfvdocsdemo.readthedocs.io/en/latest/submodules/barometer/docs/release/userguide/feature.userguide.html#open-vswitch-plugins
Merged to Maset PR https://github.com/collectd/collectd/issues/2137 Available for collect 5.8
review for addition in kolla https://review.openstack.org/527012
Collect 5.8 release completed November 11th 2017
the kolla change was merged
Please,provide instructions how to test. Thank you.
you should check that the plugin is loaded. I can find some ovs_event related logs in my collectd.log. That being said, you won't be able to find anything ovs_event related in grafana. Maybe damien can give more info on how to test this? (other than additionally hooking up vitrage or else)
new build adds config
I have added the list of test cases that were performed locally in the plugin. These were intially manual and added to local CI env.
Created attachment 1398712 [details] vSwitch Test cases A list of test cases for vSwitch
collectd-5.8.0-4.el7ost Getting OVS metrics from overcloud nodes. [root@opstools-0 ~]# gnocchi metric list | grep ovs | 08c3fa8f-a2a0-4401-9163-bca87c34d8fe | low | interface-ovs-system@if_dropped-rx | None | 552a4457-610b-53c1-98fe-fcac66b99eb6 | | 0e344524-4a7a-41ce-84c0-c2207dba2fc4 | low | interface-ovs-system@if_dropped-tx | None | 8789485c-badc-5a86-9d14-63e596980374 | | 0ea02f33-d3bf-41a6-9e73-7762a55e9ac0 | low | interface-ovs-system@if_dropped-rx | None | 6d90e409-86de-5145-b771-adb7cae874a2 | | 137284bf-c71e-44d6-8303-3e1865778be3 | low | interface-ovs-system@if_packets-tx | None | 552a4457-610b-53c1-98fe-fcac66b99eb6 | | 19e874aa-20a5-40e5-a27a-248fbb824d75 | low | interface-ovs-system@if_errors-rx | None | 8789485c-badc-5a86-9d14-63e596980374 | | 378aec31-50fe-4d67-a54e-3c8a5f83e5d4 | low | interface-ovs-system@if_packets-tx | None | 8789485c-badc-5a86-9d14-63e596980374 | | 3909aa9f-625a-4612-ac14-301893bda2d1 | low | interface-ovs-system@if_packets-rx | None | 6d90e409-86de-5145-b771-adb7cae874a2 | | 3bce03d4-ef4a-4139-a1ed-c7d4e30c9771 | low | interface-ovs-system@if_packets-tx | None | 9126400b-1799-51b4-b7ef-fade2c7a09d3 | | 41c00d4e-5e05-4ba8-b46b-ac2c71600ae4 | low | interface-ovs-system@if_errors-tx | None | 27b76d80-9945-5381-99ec-970523174fd7 | | 4745f4a2-13d1-46f8-a150-a88e8870340d | low | interface-ovs-system@if_packets-rx | None | 9126400b-1799-51b4-b7ef-fade2c7a09d3 | | 4bc3076d-4f5c-40e1-87a9-a0ba99a3b8e1 | low | interface-ovs-system@if_dropped-rx | None | 8789485c-badc-5a86-9d14-63e596980374 | | 4bdcc8c4-6f11-468d-b294-394ccf106cca | low | interface-ovs-system@if_octets-rx | None | 8789485c-badc-5a86-9d14-63e596980374 | | 4d8cead3-8abc-44d9-bc9f-eeaa2a89e569 | low | interface-ovs-system@if_octets-tx | None | 9126400b-1799-51b4-b7ef-fade2c7a09d3 | | 4fdc9a3c-5b20-4b61-af74-b4f831d8db1c | low | interface-ovs-system@if_packets-rx | None | 27b76d80-9945-5381-99ec-970523174fd7 | | 524489d7-207d-4385-a6e8-ef92a66e98ce | low | interface-ovs-system@if_dropped-tx | None | 6d90e409-86de-5145-b771-adb7cae874a2 | | 568d0484-cd29-4f7c-8a46-0919eb4e9b88 | low | interface-ovs-system@if_packets-rx | None | 8789485c-badc-5a86-9d14-63e596980374 | | 5e0582c6-571a-43ea-b40b-6870a94205a4 | low | interface-ovs-system@if_errors-tx | None | 9126400b-1799-51b4-b7ef-fade2c7a09d3 |
Verified by mistake. Moving back to ON_QA
This bug can not be verified because of THT bug. See dependency.
(In reply to Leonid Natapov from comment #29) > This bug can not be verified because of THT bug. See dependency. The depends on bug is verified now. Can we verify this as well then?
[2018-04-06 13:06:43] Notification: severity = WARNING, host = compute-0.localdomain, plugin = ovs_events, plugin_instance = vlan50, type = gauge, type_instance = link_status, message = link state of "vlan50" interface has been changed to "DOWN" [2018-04-06 13:06:49] Notification: severity = WARNING, host = compute-0.localdomain, plugin = ovs_events, plugin_instance = vlan50, type = gauge, type_instance = link_status, message = link state of "vlan50" interface has been changed to "DOWN" [2018-04-06 13:06:49] Notification: severity = OKAY, host = compute-0.localdomain, plugin = ovs_events, plugin_instance = vlan50, type = gauge, type_instance = link_status, message = link state of "vlan50" interface has been changed to "UP"
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2018:2084