aboutsummaryrefslogtreecommitdiff
path: root/compose
AgeCommit message (Collapse)AuthorFilesLines
2015-03-22Make mariadb use a data container without a bindmountSteven Dake1-5/+3
A data container is meant to operate without bindmounts. Change-Id: I2624a63fd75db7ed8050054c17e19885f8a7ac8a Co-Authored-By: Daneyon Hansen (danehans@cisco.com)
2015-03-22Make nova-compute-network use a data volume containerSteven Dake1-8/+10
A data volume container is far superior to bind mounting the host's shared directories. It preserves the idempotency, immutability and declarative properties of the containers. The way this works in practice is that a data volume container is created. Then when the containers start they use LVM to access the filesystem where /var/lib/docker is contained. Then the container startup logic bindmounts the data volume stored on the host filesystem in /var/lib/docker/vfs/dir/ID. This prevents people with access to the host operating system from damaging the contents of the data container. It does mean that now we must use tools/stop to stop our containers rather than tools/cleanup-containers -f. This is a containers best practice. For more details see: https://docs.docker.com/userguide/dockervolumes/ Big credit goes to Danyeon Hansen for seeding this idea in the mariadb containers. Note occasionally docker-compose start/stop seems to not want to stop a container. This bug needs to be addressed upstream separately from our utilization of this best practice. Change-Id: Iaa1419f606e1b1b7a7560a095c49e79d643164f1
2015-03-21Merge "Refactors nwfilter"Jenkins1-3/+0
2015-03-21Merge "Make the Horizon dashboard work properly"Jenkins1-0/+7
2015-03-21Merge "Improve Heat integration"Jenkins1-0/+0
2015-03-21Merge "Add pid: host to libvirt"Jenkins1-1/+1
2015-03-20Refactors nwfilterDaneyon Hansen1-3/+0
Previously, the nwfilter daemon/conf pkgs would need to be installed on the host. Compose would then mount the host DIR to the compute containers. A more efficient approach is to simply install the nwfilter config/daemon in the libvirt container. Both appoaches address the following error when booting an instance: 'no-mac-spoofing' is missing Change-Id: I81b446d198920473bf99b97ef5eac6ef5ee85024
2015-03-20Make the Horizon dashboard work properlySteven Dake1-0/+7
The Horizon dashboard was not working properly prior to this work. Also a docker-compose file was added to start the dashboard. Change-Id: I8a438c15b967b0cec00bfe44b997f833bf745191
2015-03-20Improve Heat integrationSteven Dake1-0/+0
Generate Heat environment variables. Rename yml file to api and engine to follow other service conventions. Add heat to compose/start Modify integration guide to include new variables. Change-Id: I058d829901881e28d6f4785f59fcf778058241e4
2015-03-20Add pid: host to libvirtSteven Dake1-1/+1
Without pid: host, nova-compute and libvirt fail to operate correctly together. I don't understand why, and I wish it weren't so, but it means folks will have to install docker-compose from my personal github account until the pull request is merged upstream. Change-Id: I24e55405139c831f2df246f54c5b6fd39d00656a
2015-03-20Implements: blueprint Implement a database container setDaneyon Hansen1-0/+14
Previously, the database container was configured for use with Kubernetes. This patch removed any k8s dependencies, adds a script to manage mysql server.cnf settings and splits data and app containers. Splitting the containers provides additional portability and operational efficiencies compared to host mounts. Change-Id: I80656450c02dda5f2959d187eec20d5877dc54a2
2015-03-20Merge "Move genenv.sh and start.sh to tools directory"Jenkins3-183/+2
2015-03-20Merge "Always restart glance services"Jenkins1-0/+2
2015-03-20Move genenv.sh and start.sh to tools directoryMartin André3-183/+2
Rename them `genenv` and `start`. Have `genenv` create the openrc file in the top-level directory. Add openrc and compose/openstack.env to gitignore, as well as *.img. Change-Id: I5d8006e97efd77cf364215f55d5e585139ae273e
2015-03-20Merge "Check for root privilege in start.sh"Jenkins1-0/+5
2015-03-19Always restart glance servicesSteven Dake1-0/+2
Always restart glance services since they are idempotent. Change-Id: I6ad98eacf0fd10b97a007db81dbe23459cc71e2b
2015-03-19Merge "Correct glance-api-registry format"Jenkins1-11/+10
2015-03-19Check for root privilege in start.shJeff Peeler1-0/+5
Change-Id: I38f6cf133b0ebf59a9595fb62868a81f731a0b85
2015-03-19Merge "Implements: blueprint heat-fig-update"Jenkins1-0/+14
2015-03-19Merge "Update start.sh"Jenkins1-50/+35
2015-03-18Make genenv.sh create an environment that will actually start keystoneSteven Dake1-1/+1
The latest keystone container parses the keystone admin port environment variable. This script was setting it incorrectly. Change-Id: I0d85e5266e5198e47b77906639bc121cd1e6d1f5
2015-03-18Merge "Fix an error in the nwfilter definition"Jenkins1-3/+3
2015-03-18Correct glance-api-registry formatSteven Dake1-11/+10
The yaml formatting is wrong, causing some versions of compose to bail. Change-Id: I20c0709699c2c259e9d2443a7d91e5f70ce67188
2015-03-18Update start.shSteven Dake1-50/+35
Clean up start.sh and make more functional Change-Id: If9cb8a6a621991a28cf9b95c4fd0e5b7e780272a
2015-03-18Implements: blueprint heat-fig-updateRyan Hallisey1-0/+14
Heat is split into the engine and api. The current images built in kollaglue work. Change-Id: I14bb8520cf76a84491163f0f102d603d312cd5fb
2015-03-18Merge "Fig config for glance"Jenkins1-0/+13
2015-03-17Fix an error in the nwfilter definitionSteven Dake1-3/+3
The host directory is /etc/libvirt/nwfilter, not /etc/libvirt/nwfilters Change-Id: If7dc4a8028477d938aaa0dba20b79589217ceaf9
2015-03-17Merge "rabbitmq yml file."Jenkins1-0/+7
2015-03-16Fig config for glanceRyan Hallisey1-0/+13
Based off of ccrouch's glance fig.yml file and my install.sh script. https://github.com/ccrouch/kolla/blob/dev/docker/fig.yml https://github.com/rthallisey/atomic-osp-installer/blob/master/install.sh Change-Id: I6a40f54c60e061b5e18cd3748debe59937a575e0
2015-03-16Complete docker compose setup.Ian Main3-0/+216
This change proposes a minimal openstack deployment stood up using docker-compose. Included is a script to generate the necessary environment variables for use by the containers as well as an 'openrc'. There is also a script which demonstrates starting the included services. We have this working locally using patched containers and can start instances with networking etc. However, there are several changes required to various containers that will need to be made to get this working. We are also using Steven Dake's patches to docker-compose to allow the use of pid=host. I propose we either merge this change or build changes on top of this to get a functioning installation. Co-authored-by: Ryan Hallisey <rhallise@redhat.com> Change-Id: I5e6051054d31edf9840c3a22502d4a7963893f29
2015-03-16Change keystone yml file to always restart.Ian Main1-0/+1
Change-Id: I814a369233857da1495028189f855b88bead5a6d
2015-03-16rabbitmq yml file.Ian Main1-0/+7
Change-Id: Ied8798fd1f8c77ce1f800747f25be2d8455e4344
2015-03-12New nova compute and nova network yml file for docker compose.Ian Main2-64/+47
This one uses the single environment file and has a few changes to mounted directories. Change-Id: I047a92b5ab89aa9b3b75213c19e05eb84d48adf6
2015-03-12docker compose file for nova api, conductor and scheduler.Ian Main1-0/+26
Change-Id: I2341f4b00ece5fb643a0436f30e1065fc1d037b1
2015-03-12Add keystone docker-compose file.Ryan Hallisey1-0/+6
To follow the model of container sets, net will be set to host so that containers will not need to be linked together. All enviroment variables will come from 'openstack.env'. Co-authored-by: Ian Main <imain@redhat.com> Change-Id: Ifdb0f146ff82c0fedb09255f6e1955ecdc435444
2015-02-27Implement nova-compute-nova-netSteven Dake1-0/+64
This provides a nova compute 3 container set. Implements; blueprint container-set-compute-operation-nova Change-Id: Ied4a0bece57eedeb680d520ea7c8393d24c89f0a