Skip to content

Commit

Permalink
neutron: disable metering agent if no ceilometer
Browse files Browse the repository at this point in the history
Also cleanup code a bit to use the proper entry points rather
than dotted path notations (which cause a warning)
  • Loading branch information
dirkmueller committed May 9, 2019
1 parent 797307d commit fc2d8e1
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions chef/cookbooks/neutron/recipes/common_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -81,18 +81,19 @@
nova_config = Barclamp::Config.load("openstack", "nova")
nova_insecure = CrowbarOpenStackHelper.insecure(nova_config) || keystone_settings["insecure"]

service_plugins = ["neutron.services.metering.metering_plugin.MeteringPlugin",
"neutron_fwaas.services.firewall.fwaas_plugin.FirewallPlugin"]
service_plugins = ["firewall"]
service_plugins.push("metering") if node.roles.include? "ceilometer-agent"

if neutron[:neutron][:use_lbaas]
service_plugins.push("neutron_lbaas.services.loadbalancer.plugin.LoadBalancerPluginv2")
service_plugins.push("lbaasv2")
end

if neutron[:neutron][:networking_plugin] == "ml2"
service_plugins.unshift("neutron.services.l3_router.l3_router_plugin.L3RouterPlugin")
service_plugins.unshift("router")

if neutron[:neutron][:ml2_mechanism_drivers].include?("linuxbridge") ||
neutron[:neutron][:ml2_mechanism_drivers].include?("openvswitch")
service_plugins.push("neutron.services.trunk.plugin.TrunkPlugin")
service_plugins.push("trunk")
end

if neutron[:neutron][:ml2_mechanism_drivers].include?("cisco_apic_ml2")
Expand Down

0 comments on commit fc2d8e1

Please sign in to comment.