Merge "Rework neutron/own agent wrapper tools for podman"
This commit is contained in:
commit
6669b10a38
@ -23,6 +23,20 @@ parameters:
|
|||||||
description: Generate a wrapper script so neutron launches haproxy in a separate container.
|
description: Generate a wrapper script so neutron launches haproxy in a separate container.
|
||||||
type: boolean
|
type: boolean
|
||||||
default: true
|
default: true
|
||||||
|
Debug:
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
description: Set to True to enable debugging on all services.
|
||||||
|
NeutronWrapperDebug:
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
description: Controls debugging for the wrapper scripts.
|
||||||
|
ContainerCli:
|
||||||
|
type: string
|
||||||
|
default: 'docker'
|
||||||
|
description: CLI tool used to manage containers.
|
||||||
|
constraints:
|
||||||
|
- allowed_values: ['docker', 'podman']
|
||||||
NeutronDhcpAgentLoggingSource:
|
NeutronDhcpAgentLoggingSource:
|
||||||
type: json
|
type: json
|
||||||
default:
|
default:
|
||||||
@ -68,6 +82,8 @@ conditions:
|
|||||||
internal_tls_enabled: {equals: [{get_param: EnableInternalTLS}, true]}
|
internal_tls_enabled: {equals: [{get_param: EnableInternalTLS}, true]}
|
||||||
dnsmasq_wrapper_enabled: {equals: [{get_param: NeutronEnableDnsmasqDockerWrapper}, true]}
|
dnsmasq_wrapper_enabled: {equals: [{get_param: NeutronEnableDnsmasqDockerWrapper}, true]}
|
||||||
haproxy_wrapper_enabled: {equals: [{get_param: NeutronEnableHaproxyDockerWrapper}, true]}
|
haproxy_wrapper_enabled: {equals: [{get_param: NeutronEnableHaproxyDockerWrapper}, true]}
|
||||||
|
docker_enabled: {equals: [{get_param: ContainerCli}, 'docker']}
|
||||||
|
service_debug_unset: {equals : [{get_param: NeutronWrapperDebug}, false]}
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
|
|
||||||
@ -108,6 +124,12 @@ outputs:
|
|||||||
tripleo::profile::base::neutron::dhcp_agent_wrappers::enable_haproxy_wrapper: {get_param: NeutronEnableHaproxyDockerWrapper}
|
tripleo::profile::base::neutron::dhcp_agent_wrappers::enable_haproxy_wrapper: {get_param: NeutronEnableHaproxyDockerWrapper}
|
||||||
tripleo::profile::base::neutron::dhcp_agent_wrappers::haproxy_process_wrapper: '/var/lib/neutron/dhcp_haproxy_wrapper'
|
tripleo::profile::base::neutron::dhcp_agent_wrappers::haproxy_process_wrapper: '/var/lib/neutron/dhcp_haproxy_wrapper'
|
||||||
tripleo::profile::base::neutron::dhcp_agent_wrappers::haproxy_image: {get_param: DockerNeutronDHCPImage}
|
tripleo::profile::base::neutron::dhcp_agent_wrappers::haproxy_image: {get_param: DockerNeutronDHCPImage}
|
||||||
|
tripleo::profile::base::neutron::dhcp_agent_wrappers::debug:
|
||||||
|
if:
|
||||||
|
- service_debug_unset
|
||||||
|
- {get_param: Debug }
|
||||||
|
- {get_param: NeutronWrapperDebug}
|
||||||
|
tripleo::profile::base::neutron::container_cli: {get_param: ContainerCli}
|
||||||
service_config_settings:
|
service_config_settings:
|
||||||
map_merge:
|
map_merge:
|
||||||
- get_attr: [NeutronBase, role_data, service_config_settings]
|
- get_attr: [NeutronBase, role_data, service_config_settings]
|
||||||
@ -203,7 +225,11 @@ outputs:
|
|||||||
- /run/openvswitch:/run/openvswitch
|
- /run/openvswitch:/run/openvswitch
|
||||||
- /var/lib/neutron:/var/lib/neutron
|
- /var/lib/neutron:/var/lib/neutron
|
||||||
- /run/netns:/run/netns:shared
|
- /run/netns:/run/netns:shared
|
||||||
- /var/lib/openstack:/var/lib/openstack
|
-
|
||||||
|
if:
|
||||||
|
- docker_enabled
|
||||||
|
- - /var/lib/openstack:/var/lib/openstack
|
||||||
|
- null
|
||||||
-
|
-
|
||||||
if:
|
if:
|
||||||
- dnsmasq_wrapper_enabled
|
- dnsmasq_wrapper_enabled
|
||||||
|
@ -40,6 +40,20 @@ parameters:
|
|||||||
once the fix to radvd is generally available across target distributions.
|
once the fix to radvd is generally available across target distributions.
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
|
Debug:
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
description: Set to True to enable debugging on all services.
|
||||||
|
NeutronWrapperDebug:
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
description: Controls debugging for the wrapper scripts.
|
||||||
|
ContainerCli:
|
||||||
|
type: string
|
||||||
|
default: 'docker'
|
||||||
|
description: CLI tool used to manage containers.
|
||||||
|
constraints:
|
||||||
|
- allowed_values: ['docker', 'podman']
|
||||||
ServiceData:
|
ServiceData:
|
||||||
default: {}
|
default: {}
|
||||||
description: Dictionary packing service data
|
description: Dictionary packing service data
|
||||||
@ -72,6 +86,8 @@ conditions:
|
|||||||
haproxy_wrapper_enabled: {equals: [{get_param: NeutronEnableHaproxyDockerWrapper}, true]}
|
haproxy_wrapper_enabled: {equals: [{get_param: NeutronEnableHaproxyDockerWrapper}, true]}
|
||||||
dibbler_wrapper_enabled: {equals: [{get_param: NeutronEnableDibblerDockerWrapper}, true]}
|
dibbler_wrapper_enabled: {equals: [{get_param: NeutronEnableDibblerDockerWrapper}, true]}
|
||||||
radvd_wrapper_enabled: {equals: [{get_param: NeutronEnableRadvdDockerWrapper}, true]}
|
radvd_wrapper_enabled: {equals: [{get_param: NeutronEnableRadvdDockerWrapper}, true]}
|
||||||
|
docker_enabled: {equals: [{get_param: ContainerCli}, 'docker']}
|
||||||
|
service_debug_unset: {equals : [{get_param: NeutronWrapperDebug}, false]}
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
|
|
||||||
@ -116,6 +132,12 @@ outputs:
|
|||||||
tripleo::profile::base::neutron::l3_agent_wrappers::enable_radvd_wrapper: {get_param: NeutronEnableRadvdDockerWrapper}
|
tripleo::profile::base::neutron::l3_agent_wrappers::enable_radvd_wrapper: {get_param: NeutronEnableRadvdDockerWrapper}
|
||||||
tripleo::profile::base::neutron::l3_agent_wrappers::radvd_process_wrapper: '/var/lib/neutron/radvd_wrapper'
|
tripleo::profile::base::neutron::l3_agent_wrappers::radvd_process_wrapper: '/var/lib/neutron/radvd_wrapper'
|
||||||
tripleo::profile::base::neutron::l3_agent_wrappers::radvd_image: {get_param: DockerNeutronL3AgentImage}
|
tripleo::profile::base::neutron::l3_agent_wrappers::radvd_image: {get_param: DockerNeutronL3AgentImage}
|
||||||
|
tripleo::profile::base::neutron::l3_agent_wrappers::debug:
|
||||||
|
if:
|
||||||
|
- service_debug_unset
|
||||||
|
- {get_param: Debug }
|
||||||
|
- {get_param: NeutronWrapperDebug}
|
||||||
|
tripleo::profile::base::neutron::container_cli: {get_param: ContainerCli}
|
||||||
|
|
||||||
service_config_settings:
|
service_config_settings:
|
||||||
map_merge:
|
map_merge:
|
||||||
@ -202,7 +224,11 @@ outputs:
|
|||||||
- /run/openvswitch:/run/openvswitch
|
- /run/openvswitch:/run/openvswitch
|
||||||
- /var/lib/neutron:/var/lib/neutron
|
- /var/lib/neutron:/var/lib/neutron
|
||||||
- /run/netns:/run/netns:shared
|
- /run/netns:/run/netns:shared
|
||||||
- /var/lib/openstack:/var/lib/openstack
|
-
|
||||||
|
if:
|
||||||
|
- docker_enabled
|
||||||
|
- - /var/lib/openstack:/var/lib/openstack
|
||||||
|
- null
|
||||||
-
|
-
|
||||||
if:
|
if:
|
||||||
- keepalived_wrapper_enabled
|
- keepalived_wrapper_enabled
|
||||||
|
@ -19,6 +19,20 @@ parameters:
|
|||||||
description: Generate a wrapper script so that haproxy is launched in a separate container.
|
description: Generate a wrapper script so that haproxy is launched in a separate container.
|
||||||
type: boolean
|
type: boolean
|
||||||
default: true
|
default: true
|
||||||
|
Debug:
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
description: Set to True to enable debugging on all services.
|
||||||
|
OVNWrapperDebug:
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
description: Controls debugging for the wrapper scripts.
|
||||||
|
ContainerCli:
|
||||||
|
type: string
|
||||||
|
default: 'docker'
|
||||||
|
description: CLI tool used to manage containers.
|
||||||
|
constraints:
|
||||||
|
- allowed_values: ['docker', 'podman']
|
||||||
ServiceData:
|
ServiceData:
|
||||||
default: {}
|
default: {}
|
||||||
description: Dictionary packing service data
|
description: Dictionary packing service data
|
||||||
@ -47,7 +61,9 @@ parameters:
|
|||||||
type: json
|
type: json
|
||||||
|
|
||||||
conditions:
|
conditions:
|
||||||
haproxy_wrapper_enabled: {equals: [{get_param: OVNEnableHaproxyDockerWrapper}, true]}
|
haproxy_wrapper_enabled: {equals: [{get_param: OVNEnableHaproxyDockerWrapper}, true]}
|
||||||
|
docker_enabled: {equals: [{get_param: ContainerCli}, 'docker']}
|
||||||
|
service_debug_unset: {equals : [{get_param: OVNWrapperDebug}, false]}
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
|
|
||||||
@ -81,6 +97,12 @@ outputs:
|
|||||||
- tripleo::profile::base::neutron::ovn_metadata_agent_wrappers::enable_haproxy_wrapper: {get_param: OVNEnableHaproxyDockerWrapper}
|
- tripleo::profile::base::neutron::ovn_metadata_agent_wrappers::enable_haproxy_wrapper: {get_param: OVNEnableHaproxyDockerWrapper}
|
||||||
tripleo::profile::base::neutron::ovn_metadata_agent_wrappers::haproxy_process_wrapper: '/var/lib/neutron/ovn_metadata_haproxy_wrapper'
|
tripleo::profile::base::neutron::ovn_metadata_agent_wrappers::haproxy_process_wrapper: '/var/lib/neutron/ovn_metadata_haproxy_wrapper'
|
||||||
tripleo::profile::base::neutron::ovn_metadata_agent_wrappers::haproxy_image: {get_param: DockerOvnMetadataImage}
|
tripleo::profile::base::neutron::ovn_metadata_agent_wrappers::haproxy_image: {get_param: DockerOvnMetadataImage}
|
||||||
|
tripleo::profile::base::neutron::ovn_metadata_agent_wrappers::debug:
|
||||||
|
if:
|
||||||
|
- service_debug_unset
|
||||||
|
- {get_param: Debug }
|
||||||
|
- {get_param: OVNWrapperDebug}
|
||||||
|
tripleo::profile::base::neutron::container_cli: {get_param: ContainerCli}
|
||||||
puppet_config:
|
puppet_config:
|
||||||
puppet_tags: neutron_config,ovn_metadata_agent_config
|
puppet_tags: neutron_config,ovn_metadata_agent_config
|
||||||
config_volume: neutron
|
config_volume: neutron
|
||||||
@ -171,7 +193,11 @@ outputs:
|
|||||||
- /run/openvswitch:/run/openvswitch
|
- /run/openvswitch:/run/openvswitch
|
||||||
- /var/lib/neutron:/var/lib/neutron
|
- /var/lib/neutron:/var/lib/neutron
|
||||||
- /run/netns:/run/netns:shared
|
- /run/netns:/run/netns:shared
|
||||||
- /var/lib/openstack:/var/lib/openstack
|
-
|
||||||
|
if:
|
||||||
|
- docker_enabled
|
||||||
|
- - /var/lib/openstack:/var/lib/openstack
|
||||||
|
- null
|
||||||
-
|
-
|
||||||
if:
|
if:
|
||||||
- haproxy_wrapper_enabled
|
- haproxy_wrapper_enabled
|
||||||
|
@ -68,6 +68,15 @@ parameters:
|
|||||||
default: ''
|
default: ''
|
||||||
description: User added to the docker group in order to use container commands.
|
description: User added to the docker group in order to use container commands.
|
||||||
type: string
|
type: string
|
||||||
|
parameter_groups:
|
||||||
|
- label: deprecated
|
||||||
|
description: |
|
||||||
|
The following parameters are deprecated and will be removed. They should not
|
||||||
|
be relied on for new deployments. If you have concerns regarding deprecated
|
||||||
|
parameters, please contact the TripleO development team on IRC or the
|
||||||
|
OpenStack mailing list.
|
||||||
|
parameters:
|
||||||
|
- DockerAdditionalSockets
|
||||||
|
|
||||||
conditions:
|
conditions:
|
||||||
insecure_registry_is_empty: {equals : [{get_param: DockerInsecureRegistryAddress}, []]}
|
insecure_registry_is_empty: {equals : [{get_param: DockerInsecureRegistryAddress}, []]}
|
||||||
|
@ -0,0 +1,16 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- |
|
||||||
|
``ContainerCli`` allows 'docker' (deprecated) and 'podman' for Neutron
|
||||||
|
L3/DHCP and OVN metadata rootwrap containers managed by agents.
|
||||||
|
Parameters ``OVNWrapperDebug`` and ``NeutronWrapperDebug`` (Defaults to
|
||||||
|
`False`) allow to log debug messages for the wrapper scripts managing
|
||||||
|
rootwrap containers. It is also controled by the global ``Debug`` setting.
|
||||||
|
fixes:
|
||||||
|
- |
|
||||||
|
Neutron/OVN rootwrap containers are managed by agents and will no longer
|
||||||
|
be deleted, when the parent container restarts.
|
||||||
|
deprecations:
|
||||||
|
- |
|
||||||
|
Parameter ``DockerAdditionalSockets`` is deprecated. No sockets are
|
||||||
|
expected to bind mount for podman. So it only works for the docker runtime.
|
Loading…
Reference in New Issue
Block a user