Add iscsid/tgtd specific parameters to Kolla infrastructure

This partially implements iscsi and lvm2 support for cinder
in Kolla. Add integration with Kolla infrastructure.

Change-Id: I5b7d59163518080f38aec0c00617440de0763f1d
Implements: blueprint iscsi-lvm2-docker
This commit is contained in:
Serguei Bezverkhi 2016-03-31 10:40:55 -04:00
parent 6c2d7c7944
commit c605d6ca26
5 changed files with 29 additions and 9 deletions

View File

@ -79,6 +79,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"
@ -182,6 +184,7 @@ enable_horizon: "yes"
enable_swift: "no"
enable_murano: "no"
enable_ironic: "no"
enable_iscsi: "no"
enable_magnum: "no"
enable_mistral: "no"
enable_central_logging: "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

@ -31,7 +31,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',