From 72d1ef47ddc5e44868c56633707b346281e9d41a Mon Sep 17 00:00:00 2001 From: Ryan Hallisey Date: Tue, 14 Apr 2015 16:29:21 -0400 Subject: Add cinder into the docker compose setup This patch adds the docker-compose files, updates the docs, and adds cinder to the start command. Implements: blueprint container-set-storage-operation Change-Id: I5386851e2247c00696704dc26a8a286451d4bf59 --- compose/cinder-api-scheduler.yml | 15 +++++++++ compose/cinder-backup.yml | 9 ++++++ compose/cinder-volume.yml | 18 +++++++++++ compose/nova-compute-network.yml | 2 ++ compose/nova-compute.yml | 2 ++ docs/integration-guide.md | 22 ++++++++++++- tools/genenv | 69 ++++++++++++++++++++++++++++++++++++++++ tools/kolla | 3 ++ 8 files changed, 139 insertions(+), 1 deletion(-) create mode 100644 compose/cinder-api-scheduler.yml create mode 100644 compose/cinder-backup.yml create mode 100644 compose/cinder-volume.yml diff --git a/compose/cinder-api-scheduler.yml b/compose/cinder-api-scheduler.yml new file mode 100644 index 000000000..86bbf53b6 --- /dev/null +++ b/compose/cinder-api-scheduler.yml @@ -0,0 +1,15 @@ +cinderapi: + image: kollaglue/centos-rdo-cinder-api:latest + name: cinder-api + net: host + restart: always + env_file: + - openstack.env + +cinderscheduler: + image: kollaglue/centos-rdo-cinder-scheduler:latest + name: cinder-scheduler + net: host + restart: always + env_file: + - openstack.env diff --git a/compose/cinder-backup.yml b/compose/cinder-backup.yml new file mode 100644 index 000000000..b7c82f339 --- /dev/null +++ b/compose/cinder-backup.yml @@ -0,0 +1,9 @@ +cinderbackup: + image: kollaglue/centos-rdo-cinder-backup:latest + name: cinder-backup + net: host + restart: always + env_file: + - openstack.env + volumes: + - /dev:/dev diff --git a/compose/cinder-volume.yml b/compose/cinder-volume.yml new file mode 100644 index 000000000..a1d601acf --- /dev/null +++ b/compose/cinder-volume.yml @@ -0,0 +1,18 @@ +cinderdata: + image: kollaglue/centos-rdo-cinder-data:latest + name: cinderdata + restart: on-failure + +cindervolume: + image: kollaglue/centos-rdo-cinder-volume:latest + name: cinder-volume + net: host + privileged: true + restart: always + env_file: + - openstack.env + volumes: + - /lib/modules:/lib/modules:ro + - /dev:/dev + volumes_from: + - cinderdata diff --git a/compose/nova-compute-network.yml b/compose/nova-compute-network.yml index 1f6392c5f..7b8781e5f 100644 --- a/compose/nova-compute-network.yml +++ b/compose/nova-compute-network.yml @@ -14,6 +14,7 @@ libvirt: volumes: - /run:/run - /sys/fs/cgroup:/sys/fs/cgroup + - /dev:/dev volumes_from: - computedata @@ -43,5 +44,6 @@ novacompute: volumes: - /run:/run - /sys/fs/cgroup:/sys/fs/cgroup + - /dev:/dev volumes_from: - computedata diff --git a/compose/nova-compute.yml b/compose/nova-compute.yml index 766db52e9..297b5cf10 100644 --- a/compose/nova-compute.yml +++ b/compose/nova-compute.yml @@ -15,6 +15,7 @@ libvirt: - /run:/run - /sys/fs/cgroup:/sys/fs/cgroup - /lib/modules:/lib/modules:ro + - /dev:/dev volumes_from: - computedata @@ -30,5 +31,6 @@ novacompute: - /run:/run - /sys/fs/cgroup:/sys/fs/cgroup - /lib/modules:/lib/modules:ro + - /dev:/dev volumes_from: - computedata diff --git a/docs/integration-guide.md b/docs/integration-guide.md index a1989eaf5..d793686dc 100644 --- a/docs/integration-guide.md +++ b/docs/integration-guide.md @@ -142,7 +142,27 @@ all containers. This allows a simple method of ensuring every type of node DESIGNATE_SINK_NEUTRON_DOMAIN_NAME= - Name of domain used to create records from Neutron notifications DESIGNATE_SINK_NOVA_FORMATS=<("%(octet0)s-%(octet1)s-%(octet2)s-%(octet3)s.%(domain)s" "%(hostname)s.%(domain)s")> - List of formats for records that will be created by Nova handler DESIGNATE_SINK_NEUTRON_FORMATS=<("%(octet0)s-%(octet1)s-%(octet2)s-%(octet3)s.%(domain)s" "%(hostname)s.%(domain)s")> - List of formats for records that will be created by Neutron handler - + CINDER_API_SERVICE_HOST= - The IP Address where the Cinder service is running + CINDER_API_SERVICE_PORT=<8776> - Port where Cinder operates + CINDER_API_SERVICE_LISTEN= - The IP Address where the Cinder API listens + CINDER_KEYSTONE_USER= - Cinder Keystone User + CINDER_KEYSTONE_PASSWORD= - The Cinder Keystone password + CINDER_ADMIN_PASSWORD= - The Cinder password + CINDER_DB_NAME= - Cinder's DB name + CINDER_DB_USER= - User name of Cinder in the database + CINDER_DB_PASSWORD= - Cinder DB password + CINDER_BACKUP_DRIVER= - The backup driver for Cinder + CINDER_BACKUP_MANAGER= - The backup manager for Cinder + CINDER_BACKUP_API_CLASS= - The cinder-backup api class + CINDER_BACKUP_NAME_TEMPLATE=