Execution
Date
08 Dec 2025 13:39:52 +0000
Duration
00:35:02.03
Controller
aio1.openstack.local
User
root
Versions
Ansible
2.18.6
ara
1.7.4 / 1.7.4
Python
3.12.3
Summary
2
Hosts
1377
Tasks
1365
Results
104
Plays
504
Files
0
Records
File: /home/zuul/src/opendev.org/openstack/openstack-ansible-os_neutron/vars/main.yml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 | --- # Copyright 2017, Rackspace US, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. _neutron_is_first_play_host: >- {{ (neutron_services['neutron-server']['group'] in group_names and inventory_hostname == ( groups[neutron_services['neutron-server']['group']] | select('in', ansible_play_hosts)) | first) | bool }} _neutron_oslomsg_rpc_vhost_conf: >- {{ (neutron_oslomsg_rpc_vhost is string) | ternary( neutron_oslomsg_rpc_vhost, neutron_oslomsg_rpc_vhost | selectattr('state', 'eq', 'present') | map(attribute='name') | first) }} _neutron_oslomsg_notify_vhost_conf: >- {{ (neutron_oslomsg_notify_vhost is string) | ternary( neutron_oslomsg_notify_vhost, neutron_oslomsg_notify_vhost | selectattr('state', 'eq', 'present') | map(attribute='name') | first) }} ### ### Open vSwitch ### neutron_needs_openvswitch: >- {{ (neutron_services['neutron-openvswitch-agent']['group'] in group_names and neutron_services['neutron-openvswitch-agent'].service_en | bool) or (neutron_services['neutron-ovn-northd']['group'] in group_names and (neutron_plugin_type == 'ml2.ovn') | bool) or (neutron_services['neutron-ovn-controller']['group'] in group_names and (neutron_plugin_type == 'ml2.ovn') | bool) or (neutron_services['neutron-server']['group'] in group_names and (neutron_plugin_type == 'ml2.ovn') | bool) }} ### ### Python code details ### neutron_pip_packages: - "git+{{ neutron_git_repo }}@{{ neutron_git_install_branch }}#egg=neutron" - osprofiler - PyMySQL - oslo.cache[dogpile] - systemd-python # Specific pip packages provided by the user neutron_user_pip_packages: [] neutron_optional_bgp_pip_packages: - "git+{{ neutron_dynamic_routing_git_repo }}@{{ neutron_dynamic_routing_git_install_branch }}#egg=neutron-dynamic-routing" neutron_optional_ovn_bgp_pip_packages: - "git+{{ networking_ovn_bgp_git_repo }}@{{ networking_ovn_bgp_git_install_branch }}#egg=ovn-bgp-agent" neutron_optional_fwaas_pip_packages: - "git+{{ neutron_fwaas_git_repo }}@{{ neutron_fwaas_git_install_branch }}#egg=neutron-fwaas" neutron_optional_vpnaas_pip_packages: - "git+{{ neutron_vpnaas_git_repo }}@{{ neutron_vpnaas_git_install_branch }}#egg=neutron-vpnaas" neutron_optional_sfc_pip_packages: - "git+{{ networking_sfc_git_repo }}@{{ networking_sfc_git_install_branch }}#egg=networking-sfc" neutron_proprietary_nuage_pip_packages: - nuage-openstack-neutron - nuage-openstack-neutronclient - nuagenetlib neutron_optional_baremetal_pip_packages: - "git+{{ networking_baremetal_git_repo }}@{{ networking_baremetal_git_install_branch }}#egg=networking-baremetal" neutron_optional_ngs_pip_packages: - "git+{{ networking_generic_switch_git_repo }}@{{ networking_generic_switch_git_install_branch }}#egg=networking-generic-switch" neutron_optional_nsx_pip_packages: - "git+{{ networking_nsx_git_repo }}@{{ networking_nsx_git_install_branch }}#egg=vmware-nsx" - "git+{{ networking_nsxlib_git_repo }}@{{ networking_nsxlib_git_install_branch }}#egg=vmware-nsxlib" neutron_venv_packages: >- {%- set pkg_list = neutron_pip_packages | union(neutron_user_pip_packages) %} {%- if neutron_bgp | bool %} {%- set _ = pkg_list.extend(neutron_optional_bgp_pip_packages) %} {%- endif %} {%- if neutron_fwaas_v2 | bool %} {%- set _ = pkg_list.extend(neutron_optional_fwaas_pip_packages) %} {%- endif %} {%- if (neutron_ovn_bgp_enable | bool) and (neutron_services['neutron-ovn-bgp-agent']['group'] in group_names) %} {%- set _ = pkg_list.extend(neutron_optional_ovn_bgp_pip_packages) %} {%- endif %} {%- if neutron_vpnaas | bool %} {%- set _ = pkg_list.extend(neutron_optional_vpnaas_pip_packages) %} {%- endif %} {%- if neutron_sfc | bool %} {%- set _ = pkg_list.extend(neutron_optional_sfc_pip_packages) %} {%- endif %} {%- if (neutron_plugin_type.split('.')[-1] == 'nuage') and (neutron_services['neutron-server']['group'] in group_names) %} {%- set _ = pkg_list.extend(neutron_optional_nuage_pip_packages) %} {%- endif %} {%- if ('ml2.genericswitch' in neutron_plugin_types) and (neutron_services['neutron-server']['group'] in group_names) %} {%- set _ = pkg_list.extend(neutron_optional_ngs_pip_packages) %} {%- endif %} {%- if ('ml2.baremetal' in neutron_plugin_types) and ((neutron_services['neutron-server']['group'] in group_names) or (neutron_services['ironic-neutron-agent']['group'] in group_names)) %} {%- set _ = pkg_list.extend(neutron_optional_baremetal_pip_packages) %} {%- endif %} {%- if (neutron_plugin_type.split('.')[-1] == "nsx") and (neutron_services['neutron-server']['group'] in group_names) %} {%- set _ = pkg_list.extend(neutron_optional_nsx_pip_packages) %} {%- endif %} {{- pkg_list | unique }} ### ### Generic Neutron Config ### neutron_conf_dir: /etc/neutron neutron_conf_version_dir: "{{ (neutron_install_method == 'distro') | ternary(neutron_conf_dir, (neutron_bin | dirname) + '/etc/neutron') }}" neutron_lock_dir: "{{ openstack_lock_dir | default('/run/lock') }}" neutron_system_user_name: neutron neutron_system_group_name: neutron neutron_system_comment: neutron system user neutron_system_shell: /bin/false neutron_system_home_folder: "/var/lib/{{ neutron_system_user_name }}" neutron_system_slice_name: neutron ### ### DB (Galera) integration ### neutron_db_config: "{{ neutron_conf_dir }}/neutron.conf" neutron_db_plugin: "{{ neutron_conf_dir }}/{{ neutron_plugins[neutron_plugin_type].plugin_ini }}" ### ### Telemetry integration ### # Add 'metering' to the neutron_plugin_base list when enabled neutron_metering: "{% if 'metering' in neutron_plugin_base %}True{% else %}False{% endif %}" ### ### Neutron Plugins ### neutron_plugin_core: "{{ neutron_plugins[neutron_plugin_type].plugin_core }}" neutron_plugins: ml2.ovs: driver_firewall: "{{ neutron_firewall_driver | default('iptables_hybrid') }}" driver_interface: openvswitch drivers_type: "{{ neutron_ml2_drivers_type }}" l2_population: "{{ neutron_l2_population }}" mechanisms: "openvswitch" l3_agent_mode: "legacy" plugin_conf_ini_overrides: "{{ neutron_ml2_conf_ini_overrides }}" plugin_core: ml2 plugin_ini: plugins/ml2/ml2_conf.ini ml2.ovs.dvr: driver_firewall: "{{ neutron_firewall_driver | default('iptables_hybrid') }}" driver_interface: openvswitch drivers_type: "{{ neutron_ml2_drivers_type }}" l2_population: "{{ neutron_l2_population }}" mechanisms: "openvswitch" l3_agent_mode: "{% if 'network_hosts' in group_names %}dvr_snat{% else %}dvr{% endif %}" router_distributed: true plugin_conf_ini_overrides: "{{ neutron_ml2_conf_ini_overrides }}" plugin_core: ml2 plugin_ini: plugins/ml2/ml2_conf.ini nuage: plugin_core: nuage_neutron.plugins.nuage.plugin.NuagePlugin plugin_ini: plugins/nuage/nuage.ini plugin_conf_ini_overrides: "{{ neutron_nuage_conf_ini_overrides }}" ml2.sriov: driver_types: "{{ neutron_ml2_drivers_type }}" mechanisms: "sriovnicswitch" plugin_ini: plugins/ml2/sriov_nic_agent.ini plugin_conf_ini_overrides: "{{ neutron_sriov_nic_agent_ini_overrides }}" ml2.ovn: drivers_type: "{{ neutron_ml2_drivers_type }}" driver_interface: openvswitch mechanisms: "ovn" plugin_conf_ini_overrides: "{{ neutron_ml2_conf_ini_overrides }}" plugin_core: ml2 plugin_ini: plugins/ml2/ml2_conf.ini ml2.genericswitch: drivers_type: "vlan" mechanisms: "genericswitch" plugin_conf_bare: true plugin_conf_ini_overrides: "{{ neutron_ml2_conf_genericswitch_ini_overrides }}" plugin_core: ml2 plugin_ini: plugins/ml2/ml2_conf_genericswitch.ini ml2.baremetal: drivers_type: "vlan" mechanisms: "baremetal" plugin_conf_ini_overrides: "{{ neutron_ironic_neutron_agent_ini_overrides }}" plugin_core: ml2 plugin_ini: plugins/ml2/ironic_neutron_agent.ini vmware.nsx: plugin_core: vmware_nsx.plugin.NsxPolicyPlugin plugin_ini: plugins/vmware/nsx.ini plugin_conf_ini_overrides: "{{ neutron_nsx_conf_ini_overrides }}" ### ### ML2 Plugin Configuration ### neutron_ml2_mechanism_drivers: >- {%- set _var = [] -%} {%- for plugin in [neutron_plugin_type] | union(neutron_plugin_types) -%} {%- if _var.append(neutron_plugins[plugin].mechanisms) -%}{%- endif -%} {%- endfor -%} {%- if neutron_l2_population | bool -%} {%- if _var.append('l2population') -%}{%- endif -%} {%- endif -%} {{ _var | join(',') }} # OVS _neutron_non_tunnel_types: - flat - vlan - local _neutron_ovs_disabled: >- {{ (neutron_services['neutron-ovn-northd']['group'] or neutron_services['neutron-server']['group'] in group_names) and (neutron_services['neutron-ovn-controller']['group'] not in group_names) and (neutron_plugin_type == 'ml2.ovn') }} # Tunnel network types used by the OVS agent neutron_tunnel_types: "{{ neutron_ml2_drivers_type.split(',') | difference(_neutron_non_tunnel_types) | join(',') }}" ### ### L3 Agent Plugin Configuration ### ## Please add 'router' to the neutron_plugin_base list # TODO(odyssey4me): Remove the class path from this conditional in the Newton cycle # Should the neutron-l3-agent service should be enabled on the host neutron_l3: >- {% if 'router' in neutron_plugin_base or 'neutron.services.l3_router.l3_router_plugin.L3RouterPlugin' in neutron_plugin_base or 'df-l3' in neutron_plugin_base %}True{% else %}False{% endif %} _neutron_l3_agent_extensions: |- {% set extensions = [] %} {% if neutron_fwaas_v2 | bool %} {% set _ = extensions.append('fwaas_v2') %} {% endif %} {% if neutron_vpnaas | bool %} {% set _ = extensions.append("vpnaas") %} {% endif %} {% if neutron_port_forwarding | bool %} {% set _ = extensions.append("port_forwarding") %} {% endif %} {{ extensions }} ### ### DHCP Agent Plugin Configuration ### neutron_dhcp: "{% if (neutron_plugin_type.split('.')[0] == 'ml2') and (neutron_plugin_type != 'ml2.ovn') %}True{% else %}False{% endif %}" ### ### Metadata Agent Plugin Configuration ### neutron_metadata: "{% if (neutron_plugin_type.split('.')[0] == 'ml2') and (neutron_plugin_type != 'ml2.ovn') %}True{% else %}False{% endif %}" ### ### FWaaS Plugin Configuration ### neutron_fwaas_v2: "{{ ('firewall_v2' in neutron_plugin_base) | ternary('True', 'False') }}" ### ### VPNaaS Plugin Configuration ### # Please add the 'vpnaas' to the neutron_plugin_base list neutron_vpnaas: "{{ ('vpnaas' in neutron_plugin_base or 'ovn-vpnaas' in neutron_plugin_base) }}" ## Neutron Dynamic Routing Agent's BGP Plugin Configuration # To enable the BGP plugin, add the following item to the neutron_plugin_base list: # neutron_dynamic_routing.services.bgp.bgp_plugin.BgpPlugin # # NOTE(matias): BgpPlugin doesn't have entry points and the full classpath # is required. neutron_bgp: "{% if 'neutron_dynamic_routing.services.bgp.bgp_plugin.BgpPlugin' in neutron_plugin_base %}True{% else %}False{% endif %}" neutron_bgp_speaker_driver: neutron_dynamic_routing.services.bgp.agent.driver.os_ken.driver.OsKenBgpDriver neutron_bgp_router_id: "{{ neutron_local_ip }}" ### ### port_forwarding ### neutron_port_forwarding: "{{ ('port_forwarding' in neutron_plugin_base) | ternary('True', 'False') }}" ### ### Service Function Chaining ### neutron_sfc: "{{ ('sfc' in neutron_plugin_base) | ternary('True', 'False') }}" ### ### Services info ### # # Compile a list of the services on a host based on whether # the host is in the host group and the service is enabled. # The service list is provided in the defined start order. # filtered_neutron_services: |- {% set services = [] %} {% for key, value in neutron_services.items() %} {% if (value['group'] in group_names) and (('service_en' not in value) or ('service_en' in value and value['service_en'])) and not ('wsgi_app' in value and value['wsgi_app']) %} {% set _ = value.update( { 'service_key': key, 'enabled': value['enabled'] | default(True), 'state': value['state'] | default('started'), } ) %} {% set _ = services.append(value) %} {% endif %} {% endfor %} {{ services | sort(attribute='start_order') }} uwsgi_neutron_services: |- {% set services = {} %} {% for name, service in neutron_services.items() %} {% if (service['group'] in group_names) and (('condition' not in service) or ('condition' in service and service['condition'])) and ('wsgi_app' in service and service['wsgi_app']) %} {% set _ = service.update( { 'wsgi_venv': ((neutron_install_method == 'source') | ternary(neutron_bin | dirname, None)), 'uwsgi_uid': neutron_system_user_name, 'uwsgi_guid': neutron_system_group_name, 'uwsgi_processes': neutron_wsgi_processes, 'uwsgi_threads': neutron_wsgi_threads } ) %} {% set _ = services.update({name: service}) %} {% endif %} {% endfor %} {{ services }} ### ### Internals: neutron_services mappings ### neutron_services: neutron-dhcp-agent: group: neutron_dhcp_agent service_name: neutron-dhcp-agent service_en: "{{ neutron_dhcp | bool }}" service_conf_path: "{{ neutron_conf_version_dir }}" service_conf: dhcp_agent.ini service_rootwrap: rootwrap.d/dhcp.filters execstarts: >- {{ neutron_bin }}/neutron-dhcp-agent --config-file {{ neutron_conf_dir }}/neutron.conf --config-file {{ neutron_conf_dir }}/dhcp_agent.ini config_overrides: "{{ neutron_dhcp_agent_ini_overrides }}" config_type: "ini" init_config_overrides: "{{ neutron_dhcp_agent_init_overrides }}" start_order: 3 neutron-openvswitch-agent: group: neutron_openvswitch_agent service_name: neutron-openvswitch-agent service_en: "{{ neutron_plugin_type in ['ml2.ovs', 'ml2.ovs.dvr'] }}" service_conf_path: "{{ neutron_conf_version_dir }}" service_conf: plugins/ml2/openvswitch_agent.ini service_rootwrap: rootwrap.d/openvswitch-plugin.filters execstarts: >- {{ neutron_bin }}/neutron-openvswitch-agent --config-file {{ neutron_conf_dir }}/neutron.conf --config-file {{ neutron_conf_dir }}/plugins/ml2/ml2_conf.ini --config-file {{ neutron_conf_dir }}/plugins/ml2/openvswitch_agent.ini config_overrides: "{{ neutron_openvswitch_agent_ini_overrides }}" config_type: "ini" init_config_overrides: "{{ neutron_openvswitch_agent_init_overrides }}" start_order: 2 neutron-metadata-agent: group: neutron_metadata_agent service_name: neutron-metadata-agent service_en: "{{ neutron_metadata | bool }}" service_conf_path: "{{ neutron_conf_version_dir }}" service_conf: metadata_agent.ini execstarts: >- {{ neutron_bin }}/neutron-metadata-agent --config-file {{ neutron_conf_dir }}/neutron.conf --config-file {{ neutron_conf_dir }}/metadata_agent.ini config_overrides: "{{ neutron_metadata_agent_ini_overrides }}" config_type: "ini" init_config_overrides: "{{ neutron_metadata_agent_init_overrides }}" start_order: 3 neutron-metering-agent: group: neutron_metering_agent service_name: neutron-metering-agent service_en: "{{ neutron_metering | bool }}" service_conf_path: "{{ neutron_conf_version_dir }}" service_conf: metering_agent.ini execstarts: >- {{ neutron_bin }}/neutron-metering-agent --config-file {{ neutron_conf_dir }}/neutron.conf --config-file {{ neutron_conf_dir }}/metering_agent.ini config_overrides: "{{ neutron_metering_agent_ini_overrides }}" config_type: "ini" init_config_overrides: "{{ neutron_metering_agent_init_overrides }}" start_order: 3 neutron-l3-agent: group: neutron_l3_agent service_name: neutron-l3-agent service_en: "{{ neutron_l3 | bool }}" service_conf_path: "{{ neutron_conf_version_dir }}" service_conf: l3_agent.ini service_rootwrap: rootwrap.d/l3.filters environment: PATH: "{{ neutron_bin }}:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" execstarts: "{{ neutron_bin }}/neutron-l3-agent --config-file {{ neutron_conf_dir }}/neutron.conf --config-file {{ neutron_conf_dir }}/l3_agent.ini" config_overrides: "{{ neutron_l3_agent_ini_overrides }}" config_type: "ini" init_config_overrides: "{{ _neutron_l3_agent_init_defaults | combine(neutron_l3_agent_init_overrides, recursive=True) }}" start_order: 3 neutron-bgp-dragent: group: neutron_bgp_dragent service_name: neutron-bgp-dragent service_en: "{{ neutron_bgp | bool }}" service_conf_path: "{{ neutron_conf_version_dir }}" service_conf: bgp_dragent.ini execstarts: >- {{ neutron_bin }}/neutron-bgp-dragent --config-file {{ neutron_conf_dir }}/neutron.conf --config-file {{ neutron_conf_dir }}/bgp_dragent.ini config_overrides: "{{ neutron_bgp_dragent_ini_overrides }}" config_type: "ini" init_config_overrides: "{{ neutron_bgp_dragent_init_overrides }}" start_order: 3 neutron-server: group: neutron_server service_name: neutron-server service_en: true start_order: 1 wsgi_app: true uwsgi_overrides: "{{ neutron_api_uwsgi_ini_overrides }}" uwsgi_bind_address: "{{ neutron_api_bind_address }}" uwsgi_port: "{{ neutron_service_port }}" uwsgi_tls: "{{ neutron_backend_ssl | ternary(neutron_uwsgi_tls, {}) }}" uwsgi_pyargv: >- --config-file {{ neutron_conf_dir }}/neutron.conf --config-file {{ neutron_conf_dir }}/{{ neutron_plugins[neutron_plugin_type].plugin_ini }} {% if ('ml2.genericswitch' in neutron_plugin_types) -%} --config-file {{ neutron_conf_dir }}/{{ neutron_plugins['ml2.genericswitch'].plugin_ini }} {% endif %} wsgi: "neutron.wsgi.api:application" execstarts: >- {{ neutron_bin }}/neutron-server --config-file {{ neutron_conf_dir }}/neutron.conf --config-file {{ neutron_conf_dir }}/{{ neutron_plugins[neutron_plugin_type].plugin_ini }} {% if ('ml2.genericswitch' in neutron_plugin_types) -%} --config-file {{ neutron_conf_dir }}/{{ neutron_plugins['ml2.genericswitch'].plugin_ini }} {% endif %} init_config_overrides: "{{ neutron_server_init_overrides }}" neutron-rpc-server: group: neutron_server service_name: neutron-rpc-server service_en: true enabled: true state: started init_config_overrides: "{{ neutron_rpc_server_init_overrides | combine(neutron_server_init_overrides) }}" start_order: 2 execstarts: >- {{ neutron_bin }}/neutron-rpc-server --config-file {{ neutron_conf_dir }}/neutron.conf --config-file {{ neutron_conf_dir }}/{{ neutron_plugins[neutron_plugin_type].plugin_ini }} {% if ('ml2.genericswitch' in neutron_plugin_types) -%} --config-file {{ neutron_conf_dir }}/{{ neutron_plugins['ml2.genericswitch'].plugin_ini }} {% endif %} neutron-periodic-workers: group: neutron_server service_name: neutron-periodic-workers service_en: true enabled: true state: started init_config_overrides: "{{ neutron_periodic_workers_init_overrides | combine(neutron_server_init_overrides) }}" start_order: 2 execstarts: >- {{ neutron_bin }}/neutron-periodic-workers --config-file {{ neutron_conf_dir }}/neutron.conf --config-file {{ neutron_conf_dir }}/{{ neutron_plugins[neutron_plugin_type].plugin_ini }} {% if ('ml2.genericswitch' in neutron_plugin_types) -%} --config-file {{ neutron_conf_dir }}/{{ neutron_plugins['ml2.genericswitch'].plugin_ini }} {% endif %} neutron-ovn-maintenance-worker: group: neutron_server service_name: neutron-ovn-maintenance-worker service_en: "{{ neutron_plugin_type == 'ml2.ovn' }}" enabled: "{{ neutron_plugin_type == 'ml2.ovn' }}" state: "{{ (neutron_plugin_type == 'ml2.ovn') | ternary('started', 'stopped') }}" init_config_overrides: "{{ neutron_ovn_maintenance_init_overrides | combine(neutron_server_init_overrides) }}" start_order: 2 execstarts: >- {{ neutron_bin }}/neutron-ovn-maintenance-worker --config-file {{ neutron_conf_dir }}/neutron.conf --config-file {{ neutron_conf_dir }}/{{ neutron_plugins[neutron_plugin_type].plugin_ini }} neutron-sriov-nic-agent: group: neutron_sriov_nic_agent service_name: neutron-sriov-nic-agent service_en: "{{ 'ml2.sriov' in neutron_plugin_types }}" service_conf_path: "{{ neutron_conf_version_dir }}" service_conf: plugins/ml2/sriov_nic_agent.ini execstarts: >- {{ neutron_bin }}/neutron-sriov-nic-agent --config-file {{ neutron_conf_dir }}/neutron.conf --config-file {{ neutron_conf_dir }}/plugins/ml2/ml2_conf.ini --config-file {{ neutron_conf_dir }}/plugins/ml2/sriov_nic_agent.ini config_overrides: "{{ neutron_sriov_nic_agent_ini_overrides }}" config_type: "ini" init_config_overrides: "{{ neutron_sriov_nic_agent_init_overrides }}" start_order: 3 neutron-ovn-northd: group: neutron_ovn_northd service_en: false neutron-ovn-controller: group: neutron_ovn_controller service_en: false neutron-ovn-bgp-agent: group: "{{ neutron_ovn_bgp_agent_group }}" systemd_lock_dir: /run/lock/ovn-bgp-agent service_name: neutron-ovn-bgp-agent service_en: "{{ (neutron_plugin_type == 'ml2.ovn') and neutron_ovn_bgp_enable | bool }}" service_conf_path: "{{ neutron_conf_version_dir }}" service_conf: neutron_ovn_bgp_agent.ini service_rootwrap: rootwrap.d/ovn-bgp.filters execstarts: "{{ neutron_bin }}/ovn-bgp-agent --config-file {{ neutron_conf_dir }}/neutron_ovn_bgp_agent.ini" config_overrides: "{{ neutron_ovn_bgp_agent_ini_overrides }}" config_type: "ini" init_config_overrides: "{{ neutron_ovn_bgp_agent_init_overrides }}" start_order: 4 neutron-ovn-metadata-agent: group: neutron_ovn_controller systemd_lock_dir: /run/lock/neutron-ovn-metadata service_name: neutron-ovn-metadata-agent service_en: "{{ neutron_plugin_type == 'ml2.ovn' }}" service_conf_path: "{{ neutron_conf_version_dir }}" service_conf: neutron_ovn_metadata_agent.ini service_rootwrap: rootwrap.d/ovn-plugin.filters execstarts: >- {{ neutron_bin }}/neutron-ovn-metadata-agent --config-file {{ neutron_conf_dir }}/neutron.conf --config-file {{ neutron_conf_dir }}/plugins/ml2/ml2_conf.ini --config-file {{ neutron_conf_dir }}/neutron_ovn_metadata_agent.ini config_overrides: "{{ neutron_ovn_metadata_agent_ini_overrides }}" config_type: "ini" init_config_overrides: "{{ neutron_ovn_metadata_agent_init_overrides }}" start_order: 3 neutron-ovn-vpn-agent: group: neutron_ovn_gateway systemd_lock_dir: /run/lock/neutron-ovn-vpn-agent service_name: neutron-ovn-vpn-agent service_en: "{{ neutron_vpnaas and neutron_plugin_type == 'ml2.ovn' }}" service_conf_path: "{{ neutron_conf_version_dir }}" service_conf: neutron_ovn_vpn_agent.ini service_rootwrap: rootwrap.d/vpnaas.filters execstarts: >- {{ neutron_bin }}/neutron-ovn-vpn-agent --config-file {{ neutron_conf_dir }}/neutron.conf --config-file {{ neutron_conf_dir }}/neutron_ovn_vpn_agent.ini config_overrides: "{{ neutron_ovn_vpn_agent_overrides }}" config_type: "ini" init_config_overrides: "{{ neutron_ovn_vpn_agent_init_overrides }}" start_order: 4 ironic-neutron-agent: group: ironic_neutron_agent service_name: ironic-neutron-agent service_en: "{{ 'ml2.baremetal' in neutron_plugin_types }}" service_conf_path: "{{ neutron_conf_version_dir }}" service_conf: plugins/ml2/ironic_neutron_agent.ini execstarts: >- {{ neutron_bin }}/ironic-neutron-agent --config-file {{ neutron_conf_dir }}/neutron.conf --config-file {{ neutron_conf_dir }}/plugins/ml2/ml2_conf.ini --config-file {{ neutron_conf_dir }}/plugins/ml2/ironic_neutron_agent.ini config_overrides: "{{ neutron_ironic_neutron_agent_ini_overrides }}" config_type: "ini" init_config_overrides: "{{ neutron_ironic_neutron_agent_init_overrides }}" start_order: 3 ### ### Overrides for services where required ### # Ensure that keepalived processes are not stopped on exit _neutron_l3_agent_init_defaults: Service: KillMode: process ### ### Internals: Drivers mappings ### neutron_driver_network_scheduler: neutron.scheduler.dhcp_agent_scheduler.WeightScheduler neutron_driver_router_scheduler: neutron.scheduler.l3_agent_scheduler.LeastRoutersScheduler neutron_driver_metering: neutron.services.metering.drivers.iptables.iptables_driver.IptablesMeteringDriver neutron_driver_dhcp: neutron.agent.linux.dhcp.Dnsmasq neutron_driver_quota: neutron.db.quota.driver.DbQuotaDriver ### ### Internals: py_pkgs ### # This variable is used by the repo_build process to determine # which host group to check for members of before building the # pip packages required by this role. The value is picked up # by the py_pkgs lookup. neutron_role_project_group: neutron_all ### ### Internals: files central to neutron we can override ### neutron_core_files: - tmp_f: "/tmp/api-paste.ini.original" target_f: "{{ neutron_conf_version_dir }}/api-paste.ini" config_overrides: "{{ neutron_api_paste_ini_overrides }}" config_type: "ini" - tmp_f: "/tmp/rootwrap.conf.original" target_f: "{{ neutron_conf_version_dir }}/rootwrap.conf" config_overrides: "{{ _neutron_rootwrap_conf_overrides | combine(neutron_rootwrap_conf_overrides, recursive=True) }}" config_type: "ini" owner: "root" group: "{{ neutron_system_group_name }}" mode: "0640" |