Merge "ovn standalone: Start OVN ovsdb-servers using the kolla startup script"
This commit is contained in:
commit
998cdf08c8
|
@ -204,6 +204,9 @@ outputs:
|
||||||
- path: /var/log/openvswitch
|
- path: /var/log/openvswitch
|
||||||
owner: root:root
|
owner: root:root
|
||||||
recurse: true
|
recurse: true
|
||||||
|
- path: /var/log/ovn
|
||||||
|
owner: root:root
|
||||||
|
recurse: true
|
||||||
metadata_settings:
|
metadata_settings:
|
||||||
if:
|
if:
|
||||||
- internal_tls_enabled
|
- internal_tls_enabled
|
||||||
|
@ -252,7 +255,9 @@ outputs:
|
||||||
# openvswitch systemd script is fixed to not delete /run/openvswitch
|
# openvswitch systemd script is fixed to not delete /run/openvswitch
|
||||||
# folder in the host when openvswitch service is stopped.
|
# folder in the host when openvswitch service is stopped.
|
||||||
- /run:/run
|
- /run:/run
|
||||||
|
- /var/lib/openvswitch/ovn:/run/ovn:shared,z
|
||||||
- /var/log/containers/openvswitch:/var/log/openvswitch:z
|
- /var/log/containers/openvswitch:/var/log/openvswitch:z
|
||||||
|
- /var/log/containers/openvswitch:/var/log/ovn:z
|
||||||
- if:
|
- if:
|
||||||
- internal_tls_enabled
|
- internal_tls_enabled
|
||||||
-
|
-
|
||||||
|
@ -274,6 +279,7 @@ outputs:
|
||||||
setype: "{{ item.setype }}"
|
setype: "{{ item.setype }}"
|
||||||
with_items:
|
with_items:
|
||||||
- { 'path': /var/log/containers/openvswitch, 'setype': svirt_sandbox_file_t, 'mode': '0750' }
|
- { 'path': /var/log/containers/openvswitch, 'setype': svirt_sandbox_file_t, 'mode': '0750' }
|
||||||
|
- { 'path': /var/lib/openvswitch/ovn, 'setype': svirt_sandbox_file_t }
|
||||||
- name: enable virt_sandbox_use_netlink for healthcheck
|
- name: enable virt_sandbox_use_netlink for healthcheck
|
||||||
seboolean:
|
seboolean:
|
||||||
name: virt_sandbox_use_netlink
|
name: virt_sandbox_use_netlink
|
||||||
|
|
|
@ -86,43 +86,23 @@ outputs:
|
||||||
include ::tripleo::profile::base::neutron::ovn_northd #unused
|
include ::tripleo::profile::base::neutron::ovn_northd #unused
|
||||||
kolla_config:
|
kolla_config:
|
||||||
/var/lib/kolla/config_files/ovn_north_db_server.json:
|
/var/lib/kolla/config_files/ovn_north_db_server.json:
|
||||||
command:
|
command: /usr/local/bin/start-nb-db-server
|
||||||
list_join:
|
|
||||||
- ' '
|
|
||||||
- - '/usr/sbin/ovsdb-server'
|
|
||||||
- '/var/lib/openvswitch/ovnnb.db'
|
|
||||||
- '--pidfile=/run/openvswitch/ovnnb_db.pid'
|
|
||||||
- '-vconsole:emer -vsyslog:err -vfile:info'
|
|
||||||
- '--remote=punix:/run/openvswitch/ovnnb_db.sock'
|
|
||||||
- '--unixctl=/run/openvswitch/ovnnb_db.ctl'
|
|
||||||
- '--remote=db:OVN_Northbound,NB_Global,connections'
|
|
||||||
- '--private-key=db:OVN_Northbound,SSL,private_key'
|
|
||||||
- '--certificate=db:OVN_Northbound,SSL,certificate'
|
|
||||||
- '--ca-cert=db:OVN_Northbound,SSL,ca_cert'
|
|
||||||
- '--log-file=/var/log/openvswitch/ovsdb-server-nb.log'
|
|
||||||
permissions:
|
permissions:
|
||||||
- path: /var/log/openvswitch
|
- path: /var/log/openvswitch
|
||||||
owner: root:root
|
owner: root:root
|
||||||
recurse: true
|
recurse: true
|
||||||
|
- path: /var/log/ovn
|
||||||
|
owner: root:root
|
||||||
|
recurse: true
|
||||||
/var/lib/kolla/config_files/ovn_south_db_server.json:
|
/var/lib/kolla/config_files/ovn_south_db_server.json:
|
||||||
command:
|
command: /usr/local/bin/start-sb-db-server
|
||||||
list_join:
|
|
||||||
- ' '
|
|
||||||
- - '/usr/sbin/ovsdb-server'
|
|
||||||
- '/var/lib/openvswitch/ovnsb.db'
|
|
||||||
- '--pidfile=/run/openvswitch/ovnsb_db.pid'
|
|
||||||
- '-vconsole:emer -vsyslog:err -vfile:info'
|
|
||||||
- '--remote=punix:/run/openvswitch/ovnsb_db.sock'
|
|
||||||
- '--unixctl=/run/openvswitch/ovnsb_db.ctl'
|
|
||||||
- '--remote=db:OVN_Southbound,SB_Global,connections'
|
|
||||||
- '--private-key=db:OVN_Southbound,SSL,private_key'
|
|
||||||
- '--certificate=db:OVN_Southbound,SSL,certificate'
|
|
||||||
- '--ca-cert=db:OVN_Southbound,SSL,ca_cert'
|
|
||||||
- '--log-file=/var/log/openvswitch/ovsdb-server-sb.log'
|
|
||||||
permissions:
|
permissions:
|
||||||
- path: /var/log/openvswitch
|
- path: /var/log/openvswitch
|
||||||
owner: root:root
|
owner: root:root
|
||||||
recurse: true
|
recurse: true
|
||||||
|
- path: /var/log/ovn
|
||||||
|
owner: root:root
|
||||||
|
recurse: true
|
||||||
/var/lib/kolla/config_files/ovn_northd.json:
|
/var/lib/kolla/config_files/ovn_northd.json:
|
||||||
command:
|
command:
|
||||||
list_join:
|
list_join:
|
||||||
|
@ -136,44 +116,14 @@ outputs:
|
||||||
- path: /var/log/openvswitch
|
- path: /var/log/openvswitch
|
||||||
owner: root:root
|
owner: root:root
|
||||||
recurse: true
|
recurse: true
|
||||||
|
- path: /var/log/ovn
|
||||||
|
owner: root:root
|
||||||
|
recurse: true
|
||||||
docker_config:
|
docker_config:
|
||||||
step_3:
|
|
||||||
ovn_north_db_init:
|
|
||||||
image: &northd_db_image {get_param: ContainerOvnNbDbImage}
|
|
||||||
net: host
|
|
||||||
privileged: false
|
|
||||||
detach: false
|
|
||||||
user: root
|
|
||||||
volumes:
|
|
||||||
list_concat:
|
|
||||||
- {get_attr: [ContainersCommon, volumes]}
|
|
||||||
-
|
|
||||||
- /var/lib/kolla/config_files/ovn_north_db_server.json:/var/lib/kolla/config_files/config.json:ro
|
|
||||||
- /lib/modules:/lib/modules:ro
|
|
||||||
- /var/lib/openvswitch/ovn:/var/lib/openvswitch:shared,z
|
|
||||||
- /var/lib/openvswitch/ovn:/run/openvswitch:shared,z
|
|
||||||
- /var/log/containers/openvswitch:/var/log/openvswitch:z
|
|
||||||
command: "ovsdb-tool create /var/lib/openvswitch/ovnnb.db /usr/share/openvswitch/ovn-nb.ovsschema"
|
|
||||||
ovn_south_db_init:
|
|
||||||
image: &south_db_image {get_param: ContainerOvnSbDbImage}
|
|
||||||
net: host
|
|
||||||
privileged: false
|
|
||||||
detach: false
|
|
||||||
user: root
|
|
||||||
volumes:
|
|
||||||
list_concat:
|
|
||||||
- {get_attr: [ContainersCommon, volumes]}
|
|
||||||
-
|
|
||||||
- /var/lib/kolla/config_files/ovn_north_db_server.json:/var/lib/kolla/config_files/config.json:ro
|
|
||||||
- /lib/modules:/lib/modules:ro
|
|
||||||
- /var/lib/openvswitch/ovn:/var/lib/openvswitch:shared,z
|
|
||||||
- /var/lib/openvswitch/ovn:/run/openvswitch:shared,z
|
|
||||||
- /var/log/containers/openvswitch:/var/log/openvswitch:z
|
|
||||||
command: "ovsdb-tool create /var/lib/openvswitch/ovnsb.db /usr/share/openvswitch/ovn-sb.ovsschema"
|
|
||||||
step_4:
|
step_4:
|
||||||
ovn_north_db_server:
|
ovn_north_db_server:
|
||||||
start_order: 0
|
start_order: 0
|
||||||
image: *northd_db_image
|
image: {get_param: ContainerOvnNbDbImage}
|
||||||
net: host
|
net: host
|
||||||
privileged: false
|
privileged: false
|
||||||
restart: always
|
restart: always
|
||||||
|
@ -186,11 +136,16 @@ outputs:
|
||||||
- /var/lib/openvswitch/ovn:/var/lib/openvswitch:shared,z
|
- /var/lib/openvswitch/ovn:/var/lib/openvswitch:shared,z
|
||||||
- /var/lib/openvswitch/ovn:/run/openvswitch:shared,z
|
- /var/lib/openvswitch/ovn:/run/openvswitch:shared,z
|
||||||
- /var/log/containers/openvswitch:/var/log/openvswitch:z
|
- /var/log/containers/openvswitch:/var/log/openvswitch:z
|
||||||
|
- /var/lib/openvswitch/ovn:/var/lib/ovn:shared,z
|
||||||
|
- /var/lib/openvswitch/ovn:/etc/openvswitch:shared,z
|
||||||
|
- /var/lib/openvswitch/ovn:/etc/ovn:shared,z
|
||||||
|
- /var/lib/openvswitch/ovn:/run/ovn:shared,z
|
||||||
|
- /var/log/containers/openvswitch:/var/log/ovn:z
|
||||||
environment:
|
environment:
|
||||||
KOLLA_CONFIG_STRATEGY: COPY_ALWAYS
|
KOLLA_CONFIG_STRATEGY: COPY_ALWAYS
|
||||||
ovn_south_db_server:
|
ovn_south_db_server:
|
||||||
start_order: 0
|
start_order: 0
|
||||||
image: *south_db_image
|
image: {get_param: ContainerOvnSbDbImage}
|
||||||
net: host
|
net: host
|
||||||
privileged: false
|
privileged: false
|
||||||
restart: always
|
restart: always
|
||||||
|
@ -203,6 +158,11 @@ outputs:
|
||||||
- /var/lib/openvswitch/ovn:/var/lib/openvswitch:shared,z
|
- /var/lib/openvswitch/ovn:/var/lib/openvswitch:shared,z
|
||||||
- /var/lib/openvswitch/ovn:/run/openvswitch:shared,z
|
- /var/lib/openvswitch/ovn:/run/openvswitch:shared,z
|
||||||
- /var/log/containers/openvswitch:/var/log/openvswitch:z
|
- /var/log/containers/openvswitch:/var/log/openvswitch:z
|
||||||
|
- /var/lib/openvswitch/ovn:/var/lib/ovn:shared,z
|
||||||
|
- /var/lib/openvswitch/ovn:/etc/openvswitch:shared,z
|
||||||
|
- /var/lib/openvswitch/ovn:/etc/ovn:shared,z
|
||||||
|
- /var/lib/openvswitch/ovn:/run/ovn:shared,z
|
||||||
|
- /var/log/containers/openvswitch:/var/log/ovn:z
|
||||||
environment:
|
environment:
|
||||||
KOLLA_CONFIG_STRATEGY: COPY_ALWAYS
|
KOLLA_CONFIG_STRATEGY: COPY_ALWAYS
|
||||||
configure_ovn_north_db_server:
|
configure_ovn_north_db_server:
|
||||||
|
@ -231,6 +191,8 @@ outputs:
|
||||||
- /lib/modules:/lib/modules:ro
|
- /lib/modules:/lib/modules:ro
|
||||||
- /var/lib/openvswitch/ovn:/run/openvswitch:shared,z
|
- /var/lib/openvswitch/ovn:/run/openvswitch:shared,z
|
||||||
- /var/log/containers/openvswitch:/var/log/openvswitch:z
|
- /var/log/containers/openvswitch:/var/log/openvswitch:z
|
||||||
|
- /var/lib/openvswitch/ovn:/run/ovn:shared,z
|
||||||
|
- /var/log/containers/openvswitch:/var/log/ovn:z
|
||||||
environment:
|
environment:
|
||||||
KOLLA_CONFIG_STRATEGY: COPY_ALWAYS
|
KOLLA_CONFIG_STRATEGY: COPY_ALWAYS
|
||||||
host_prep_tasks:
|
host_prep_tasks:
|
||||||
|
|
Loading…
Reference in New Issue