Merge "Add iscsid/tgtd specific parameters to Kolla infrastructure"

This commit is contained in:
Jenkins 2016-04-15 12:05:39 +00:00 committed by Gerrit Code Review
commit 0078d9b4a1
5 changed files with 29 additions and 9 deletions

View File

@ -86,6 +86,8 @@ tunnel_interface: "{{ network_interface }}"
neutron_plugin_agent: "openvswitch"
# The default ports used by each service.
iscsi_port: "3260"
mariadb_port: "3306"
mariadb_wsrep_port: "4567"
mariadb_ist_port: "4568"
@ -188,6 +190,7 @@ enable_cinder: "no"
enable_heat: "yes"
enable_horizon: "yes"
enable_ironic: "no"
enable_iscsi: "no"
enable_magnum: "no"
enable_manila: "no"
enable_mistral: "no"

View File

@ -146,6 +146,13 @@ cinder
[cinder-volume:children]
storage
# iSCSI
[iscsd:children]
storage
[tgtd:children]
storage
# Manila
[manila-api:children]
manila

View File

@ -119,14 +119,6 @@
state: stopped
when: inventory_hostname in groups['haproxy']
- name: Checking free port for iSCSI Target
wait_for:
host: "{{ hostvars[inventory_hostname]['ansible_' + storage_interface]['ipv4']['address'] }}"
port: "3260"
connect_timeout: 1
state: stopped
when: inventory_hostname in groups['cinder-volume']
- name: Checking free port for Keystone Admin
wait_for:
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
@ -159,6 +151,14 @@
state: stopped
when: inventory_hostname in groups['haproxy']
- name: Checking free port for iscsi
wait_for:
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
port: "{{ iscsi_port }}"
connect_timeout: 1
state: stopped
when: inventory_hostname in groups['tgtd']
- name: Checking free port for MariaDB
wait_for:
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"

View File

@ -20,6 +20,8 @@
- haproxy
- keystone
- mariadb
- iscsid
- tgtd
- murano-api
- neutron-server
- nova-api
@ -50,6 +52,14 @@
tags: mariadb,
when: enable_mariadb | bool }
- hosts:
- iscsid
- tgtd
roles:
- { role: iscsi,
tags: iscsi,
when: enable_iscsi | bool }
- hosts: rabbitmq
roles:
- { role: rabbitmq,

View File

@ -32,7 +32,7 @@ _PROFILE_OPTS = [
help='Infra images'),
cfg.ListOpt('main',
default=['cinder', 'ceilometer', 'glance', 'heat',
'horizon', 'keystone', 'neutron', 'nova',
'horizon', 'iscsi', 'keystone', 'neutron', 'nova',
'swift'],
help='Main images'),
cfg.ListOpt('aux',