From f2beb47345aaaebe0c0a3356336799c929a66d8e Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Fri, 24 Mar 2023 15:36:35 +0900 Subject: [PATCH] Enable OVN Neutron agent This enables the neutron-ovn-agent service which was recently added to neutron. Note that the service is not yet available in UCA packages so it is enabled only in RHEL/CentOS. Depends-on: https://review.opendev.org/872028/ Change-Id: Iaefca898984bbb9cf0f8fac8c539ed1a12ad7868 --- manifests/neutron.pp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/manifests/neutron.pp b/manifests/neutron.pp index 2b79158d6..a18098697 100644 --- a/manifests/neutron.pp +++ b/manifests/neutron.pp @@ -356,6 +356,20 @@ class openstack_integration::neutron ( } if $driver == 'ovn' { + # NOTE(tkajinam): ovn-agent is currently available only in RDO + if $facts['os']['family'] == 'RedHat' { + class { 'neutron::agents::ml2::ovn': + debug => true, + ovn_nb_connection => $::openstack_integration::config::ovn_nb_connection, + ovn_nb_private_key => '/etc/neutron/ovnnb-privkey.pem', + ovn_nb_certificate => '/etc/neutron/ovnnb-cert.pem', + ovn_nb_ca_cert => '/etc/neutron/switchcacert.pem', + ovn_sb_connection => $::openstack_integration::config::ovn_sb_connection, + ovn_sb_private_key => '/etc/neutron/ovnsb-privkey.pem', + ovn_sb_certificate => '/etc/neutron/ovnsb-cert.pem', + ovn_sb_ca_cert => '/etc/neutron/switchcacert.pem', + } + } class { 'neutron::agents::ovn_metadata': debug => true, shared_secret => 'a_big_secret',