neutron-meter-agent do not support ovn driver

Bug #2048773 reported by zhengrui
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
New
Wishlist
Unassigned

Bug Description

I have deployed a openstack system manually, the neutron driver is ovn, but when I want to install ceilometer, I found it does not include bandwidth metric, and then I install neutron-meter-agent, but in /etc/neutron/metering_agent.ini, the interface_driver option only support ovs and linuxbridge, how should I use neutron meter to enable ceilometer? or is there some other setting?

here are some config in my system:
/etc/neutron/plugin.ini
[DEFAULT]
[ml2]
mechanism_drivers = ovn
type_drivers = local,flat,vlan,geneve
tenant_network_types = geneve
extension_drivers = port_security,qos,port_device_profile
overlay_ip_version = 4
path_mtu = 9064
[ml2_type_geneve]
vni_ranges = 1:4095
max_header_size = 38

[ml2_type_vlan]
network_vlan_ranges = ext

[ml2_type_flat]
flat_networks = provider

[securitygroup]
enable_security_group = true

[sriov_driver]
vnic_type_prohibit_list = remote-managed

[ovn]
ovn_l3_scheduler = leastloaded
ovn_metadata_enabled = True
enable_distributed_floating_ip = False
ovn_nb_connection = tcp:192.168.122.94:6641
ovn_sb_connection = tcp:192.168.122.94:6642
ovn_emit_need_to_frag = true

/etc/ceilometer/polling.yaml
---
sources:
    - name: some_pollsters
      interval: 300
      meters:
        - cpu
        - cpu_l3_cache
        - memory.usage
        - network.incoming.bytes
        - network.incoming.packets
        - network.outgoing.bytes
        - network.outgoing.packets
        - disk.device.read.bytes
        - disk.device.read.requests
        - disk.device.write.bytes
        - disk.device.write.requests
        - hardware.cpu.util
        - hardware.cpu.user
        - hardware.cpu.nice
        - hardware.cpu.system
        - hardware.cpu.idle
        - hardware.cpu.wait
        - hardware.cpu.kernel
        - hardware.cpu.interrupt
        - hardware.memory.used
        - hardware.memory.total
        - hardware.memory.buffer
        - hardware.memory.cached
        - hardware.memory.swap.avail
        - hardware.memory.swap.total
        - hardware.system_stats.io.outgoing.blocks
        - hardware.system_stats.io.incoming.blocks
        - hardware.network.ip.incoming.datagrams
        - hardware.network.ip.outgoing.datagrams
        - image.size
        - image.download
        - bandwidth
        - switch.port
        - compute.node.cpu.frequency

this command does not show anything.
[root@controller ~]# openstack metric list | grep bandwidth
[root@controller ~]#

Tags: metering ovn
zhengrui (zhengrui)
description: updated
Revision history for this message
Lajos Katona (lajos-katona) wrote :

I am dump for the metering in Neutron, but I feel that this should be discussed on the drivers meeting as perhaps a new agent (ovn-metering-agent?) is necessary for this feature

Revision history for this message
zhengrui (zhengrui) wrote :

@Lajos Katona
hi Lajos Katona! Do you mean there is no such agent now? Because I didn't find it by "yum search".
Could you tell me how to use ceilometer to collect bandwidth and SDN meters like "switch.port.receive.packets" or "switch.port.transmit.packets" when I use ovn driver? The official documentation in openstack only mentions that the corresponding driver needs to be set correctly, but it does not mention how to set it up.

the documentation address:https://docs.openstack.org/ceilometer/latest/admin/telemetry-measurements.html

I am looking for your reply!

Revision history for this message
LIU Yulong (dragon889) wrote :

There is no such agent for OVN. Neutron-metering-agent is only for neutron-l3-agent with L3 virtual Router implementation by kernel namespace, routes, conntrack and iptables related.
Maybe this should be mentioned on https://docs.openstack.org/neutron/latest/ovn/gaps.html.

Changed in neutron:
importance: Undecided → Wishlist
tags: added: metering ovn
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to neutron (master)

Related fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/neutron/+/905295

Revision history for this message
Slawek Kaplonski (slaweq) wrote :

I do agree with LIU Yulong that this should be mentioned in the ovn gaps docs. I just proposed https://review.opendev.org/c/openstack/neutron/+/905295 for that.
Regarding implementation, personally I think that neutron-ovn-agent is good place to handle that and it could be done there as agent extension. But this should probably be discussed in the drivers team meeting before we will make final decision.

Revision history for this message
zhengrui (zhengrui) wrote :

ok, I already see that neutron-meter-agent does not support ovn dirver now. Is there any other ways to collect meters about switch and port for ceilometer? My main problem is when I deployed ceilometer, I can not get metric about switch and port and other network information. Is it do not support for ovn driver or do I have something missed? Anyway I think the official documentation should be improved.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to neutron (master)

Reviewed: https://review.opendev.org/c/openstack/neutron/+/905295
Committed: https://opendev.org/openstack/neutron/commit/3eeb5d3e6a9985d4d23b6d4afd9ad28b57352aee
Submitter: "Zuul (22348)"
Branch: master

commit 3eeb5d3e6a9985d4d23b6d4afd9ad28b57352aee
Author: Slawek Kaplonski <email address hidden>
Date: Thu Jan 11 10:27:42 2024 +0100

    Add info about metering agent gap in the ML2/OVN backend

    Metering agent don't supports ML2/OVN backend currently and this should
    be documented in the feature parity gaps document.

    Related-bug: #2048773
    Change-Id: I2b8c37f33e3ae4b17cc88bffde014d7d730e59d3

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.