Remove unused Neutron Agents container
The Neutron Agents is currently not used. Refactor the heat templates to accommodate for this change. Change-Id: Ice3c5ce723fa16cfb66c2b0afbe51d7b282c3210
This commit is contained in:
parent
41a333f874
commit
a0b9dacf95
@ -17,8 +17,6 @@ parameters:
|
|||||||
type: string
|
type: string
|
||||||
DockerLibvirtImage:
|
DockerLibvirtImage:
|
||||||
type: string
|
type: string
|
||||||
DockerNeutronAgentImage:
|
|
||||||
type: string
|
|
||||||
DockerOpenvswitchImage:
|
DockerOpenvswitchImage:
|
||||||
type: string
|
type: string
|
||||||
DockerOvsVswitchdImage:
|
DockerOvsVswitchdImage:
|
||||||
@ -32,18 +30,13 @@ parameters:
|
|||||||
type: string
|
type: string
|
||||||
default: "/etc/nova/nova.conf"
|
default: "/etc/nova/nova.conf"
|
||||||
NeutronOpenvswitchAgentConfig:
|
NeutronOpenvswitchAgentConfig:
|
||||||
type: string
|
|
||||||
default: "/etc/neutron/neutron.conf,/etc/neutron/plugins/ml2/ml2_conf.ini"
|
|
||||||
NeutronAgentConfig:
|
|
||||||
type: string
|
type: string
|
||||||
default: "/etc/neutron/neutron.conf,/etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini"
|
default: "/etc/neutron/neutron.conf,/etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini"
|
||||||
NeutronAgentPluginVolume:
|
NeutronOpenvswitchAgentPluginVolume:
|
||||||
type: string
|
type: string
|
||||||
description: The neutron agent plugin to mount into the neutron-agents container
|
|
||||||
default: "/var/lib/etc-data/neutron/plugins/ml2/openvswitch_agent.ini:/var/lib/kolla/config_files/ovs_neutron_plugin.ini:ro"
|
default: "/var/lib/etc-data/neutron/plugins/ml2/openvswitch_agent.ini:/var/lib/kolla/config_files/ovs_neutron_plugin.ini:ro"
|
||||||
NeutronAgentOvsVolume:
|
NeutronOpenvswitchAgentOvsVolume:
|
||||||
type: string
|
type: string
|
||||||
description: The neutron agent ovs agents to mount into the neutron-agents container
|
|
||||||
default: " "
|
default: " "
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
@ -99,7 +92,6 @@ resources:
|
|||||||
- name: libvirt_config
|
- name: libvirt_config
|
||||||
- name: nova_config
|
- name: nova_config
|
||||||
- name: neutron_openvswitch_agent_config
|
- name: neutron_openvswitch_agent_config
|
||||||
- name: neutron_agent_config
|
|
||||||
config: |
|
config: |
|
||||||
#!/bin/python
|
#!/bin/python
|
||||||
import json
|
import json
|
||||||
@ -112,13 +104,11 @@ resources:
|
|||||||
libvirt_config = os.getenv('libvirt_config').split(',')
|
libvirt_config = os.getenv('libvirt_config').split(',')
|
||||||
nova_config = os.getenv('nova_config').split(',')
|
nova_config = os.getenv('nova_config').split(',')
|
||||||
neutron_openvswitch_agent_config = os.getenv('neutron_openvswitch_agent_config').split(',')
|
neutron_openvswitch_agent_config = os.getenv('neutron_openvswitch_agent_config').split(',')
|
||||||
neutron_agent_config = os.getenv('neutron_agent_config').split(',')
|
|
||||||
|
|
||||||
# Command, Config_files, Owner, Perms
|
# Command, Config_files, Owner, Perms
|
||||||
services = {'nova-libvirt': ['/usr/sbin/libvirtd', libvirt_config, 'root', libvirt_perms],
|
services = {'nova-libvirt': ['/usr/sbin/libvirtd', libvirt_config, 'root', libvirt_perms],
|
||||||
'nova-compute': ['/usr/bin/nova-compute', nova_config, 'nova', file_perms],
|
'nova-compute': ['/usr/bin/nova-compute', nova_config, 'nova', file_perms],
|
||||||
'neutron-openvswitch-agent': ['/usr/bin/neutron-openvswitch-agent', neutron_openvswitch_agent_config, 'neutron', file_perms],
|
'neutron-openvswitch-agent': ['/usr/bin/neutron-openvswitch-agent', neutron_openvswitch_agent_config, 'neutron', file_perms],
|
||||||
'neutron-agent': ['/usr/bin/neutron-openvswitch-agent', neutron_agent_config, 'neutron', file_perms],
|
|
||||||
'ovs-vswitchd': ['/usr/sbin/ovs-vswitchd unix:/run/openvswitch/db.sock -vconsole:emer -vsyslog:err -vfile:info --mlockall --log-file=/var/log/openvswitch/ovs-vswitchd.log'],
|
'ovs-vswitchd': ['/usr/sbin/ovs-vswitchd unix:/run/openvswitch/db.sock -vconsole:emer -vsyslog:err -vfile:info --mlockall --log-file=/var/log/openvswitch/ovs-vswitchd.log'],
|
||||||
'ovsdb-server': ['/usr/sbin/ovsdb-server /etc/openvswitch/conf.db -vconsole:emer -vsyslog:err -vfile:info --remote=punix:/run/openvswitch/db.sock --log-file=/var/log/openvswitch/ovsdb-server.log']
|
'ovsdb-server': ['/usr/sbin/ovsdb-server /etc/openvswitch/conf.db -vconsole:emer -vsyslog:err -vfile:info --remote=punix:/run/openvswitch/db.sock --log-file=/var/log/openvswitch/ovsdb-server.log']
|
||||||
}
|
}
|
||||||
@ -171,7 +161,6 @@ resources:
|
|||||||
libvirt_config: {get_param: LibvirtConfig}
|
libvirt_config: {get_param: LibvirtConfig}
|
||||||
nova_config: {get_param: NovaConfig}
|
nova_config: {get_param: NovaConfig}
|
||||||
neutron_openvswitch_agent_config: {get_param: NeutronOpenvswitchAgentConfig}
|
neutron_openvswitch_agent_config: {get_param: NeutronOpenvswitchAgentConfig}
|
||||||
neutron_agent_config: {get_param: NeutronAgentConfig}
|
|
||||||
|
|
||||||
NovaComputeContainersDeploymentOVS:
|
NovaComputeContainersDeploymentOVS:
|
||||||
type: OS::Heat::StructuredDeployments
|
type: OS::Heat::StructuredDeployments
|
||||||
@ -291,27 +280,7 @@ resources:
|
|||||||
properties:
|
properties:
|
||||||
group: docker-compose
|
group: docker-compose
|
||||||
config:
|
config:
|
||||||
openvswitch:
|
neutronovsagent:
|
||||||
image:
|
|
||||||
list_join:
|
|
||||||
- '/'
|
|
||||||
- [ {get_param: DockerNamespace}, {get_param: DockerOpenvswitchImage} ]
|
|
||||||
net: host
|
|
||||||
privileged: true
|
|
||||||
restart: always
|
|
||||||
volumes:
|
|
||||||
- /run:/run
|
|
||||||
- /lib/modules:/lib/modules:ro
|
|
||||||
- /var/lib/etc-data/json-config/neutron-openvswitch-agent.json:/var/lib/kolla/config_files/config.json
|
|
||||||
- /var/lib/etc-data/neutron/neutron.conf:/etc/kolla/neutron-openvswitch-agent/:ro
|
|
||||||
- /var/lib/etc-data/neutron/plugins/ml2/ml2_conf.ini:/var/lib/kolla/config_files/ml2_conf.ini:ro
|
|
||||||
- /var/lib/etc-data/neutron/neutron.conf:/var/lib/kolla/config_files/neutron.conf:ro
|
|
||||||
environment:
|
|
||||||
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
|
|
||||||
volumes_from:
|
|
||||||
- computedata
|
|
||||||
|
|
||||||
neutronagent:
|
|
||||||
image:
|
image:
|
||||||
list_join:
|
list_join:
|
||||||
- '/'
|
- '/'
|
||||||
@ -326,10 +295,11 @@ resources:
|
|||||||
- list_join:
|
- list_join:
|
||||||
- ","
|
- ","
|
||||||
- [ "/run:/run", "/lib/modules:/lib/modules:ro",
|
- [ "/run:/run", "/lib/modules:/lib/modules:ro",
|
||||||
"/var/lib/etc-data/json-config/neutron-agent.json:/var/lib/kolla/config_files/config.json",
|
"/var/lib/etc-data/json-config/neutron-openvswitch-agent.json:/var/lib/kolla/config_files/config.json",
|
||||||
"/var/lib/etc-data/neutron/neutron.conf:/var/lib/kolla/config_files/neutron.conf:ro",
|
"/var/lib/etc-data/neutron/neutron.conf:/var/lib/kolla/config_files/neutron.conf:ro",
|
||||||
{get_param: NeutronAgentPluginVolume},
|
"/var/lib/etc-data/neutron/plugins/ml2/ml2_conf.ini:/var/lib/kolla/config_files/ml2_conf.ini:ro",
|
||||||
{get_param: NeutronAgentOvsVolume} ]
|
{get_param: NeutronOpenvswitchAgentPluginVolume},
|
||||||
|
{get_param: NeutronOpenvswitchAgentOvsVolume} ]
|
||||||
environment:
|
environment:
|
||||||
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
|
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
|
||||||
volumes_from:
|
volumes_from:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
parameter_defaults:
|
parameter_defaults:
|
||||||
NeutronAgentConfig: "/etc/neutron/neutron.conf,/etc/neutron/plugins/openvswitch/openvswitch_agent.ini"
|
NeutronOpenvswitchAgentConfig: "/etc/neutron/neutron.conf,/etc/neutron/plugins/openvswitch/openvswitch_agent.ini"
|
||||||
NeutronAgentPluginVolume: "/var/lib/etc-data/neutron/plugins/ml2/openvswitch_agent.ini:/var/lib/kolla/config_files/openvswitch_agent.ini:ro"
|
NeutronOpenvswitchAgentPluginVolume: "/var/lib/etc-data/neutron/plugins/ml2/openvswitch_agent.ini:/var/lib/kolla/config_files/openvswitch_agent.ini:ro"
|
||||||
NeutronAgentOvsVolume: "/var/lib/etc-data/neutron/conf.d/neutron-openvswitch-agent:/etc/neutron/conf.d/neutron-openvswitch-agent:ro"
|
NeutronOpenvswitchAgentOvsVolume: "/var/lib/etc-data/neutron/conf.d/neutron-openvswitch-agent:/etc/neutron/conf.d/neutron-openvswitch-agent:ro"
|
||||||
|
@ -16,7 +16,6 @@ parameter_defaults:
|
|||||||
DockerComputeImage: centos-binary-nova-compute:latest
|
DockerComputeImage: centos-binary-nova-compute:latest
|
||||||
DockerComputeDataImage: centos-binary-data:latest
|
DockerComputeDataImage: centos-binary-data:latest
|
||||||
DockerLibvirtImage: centos-binary-nova-libvirt:latest
|
DockerLibvirtImage: centos-binary-nova-libvirt:latest
|
||||||
DockerNeutronAgentImage: centos-binary-neutron-agents:latest
|
|
||||||
DockerOpenvswitchImage: centos-binary-neutron-openvswitch-agent:latest
|
DockerOpenvswitchImage: centos-binary-neutron-openvswitch-agent:latest
|
||||||
DockerOvsVswitchdImage: centos-binary-openvswitch-vswitchd:latest
|
DockerOvsVswitchdImage: centos-binary-openvswitch-vswitchd:latest
|
||||||
DockerOpenvswitchDBImage: centos-binary-openvswitch-db-server:latest
|
DockerOpenvswitchDBImage: centos-binary-openvswitch-db-server:latest
|
||||||
|
Loading…
Reference in New Issue
Block a user