aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/common/tasks/start.yml
AgeCommit message (Collapse)AuthorFilesLines
2016-11-15Remove Ansible from KollaSteven Dake1-49/+0
Change-Id: I5396e4b9927d3e65b6aa4185238a43a4765a996b
2016-10-15Fix stale namespace removal issueJeffrey Zhang1-1/+1
When using both /run and /run/netns in docker container, mount propagation won't work when delete namespace after the containers are restarted. This PS makes /run mount as shared. Closes-Bug: #1616268 Change-Id: Ie16699e1b193b2bf1263d89ea634e89ea69add9e
2016-09-22Fix idempotent for initializing toolbox container taskJeffrey Zhang1-0/+1
TrivialFix Change-Id: I643940d04ec0c2ffeb95816dde5d1438829c7464
2016-09-02Use the standard start method for kolla-toolbox containerJeffrey Zhang1-0/+1
TrivialFix Change-Id: Icb092e47713e0b89859747d6ed4c02b3950d7ced Signed-off-by: Jeffrey Zhang <zhang.lei.fly@gmail.com>
2016-08-26Fix toolbox permission issue when enabling cephliyingjun1-0/+3
Directory /home/ansible/.ansible and file /var/log/kolla/ansible.log are not created by default in toolbox image, so when ceph enabled, the directory and file will be created with user 'root' instead of user 'ansible' after running bootstrap osds because it using sudo when bootstraping osds, this will cause permission denied issue for other commands not using sudo. Fixes this issue by initializing ansible by running 'ansible localhost --version' using user 'ansible' TrivialFix Change-Id: Ibac3f98b3b72cbe287ee1d3a69ed9cea7ae3cd9e
2016-05-23Change ansible image to kolla_toolboxRyan Hallisey1-1/+1
All the images follow the same naming schema where the container name is part of the ansible variable name. Currently, the kolla_toolbox container is named ansible_image_full. Change this to match what the container name is. Could impact operators who are specifying ansible_image_full in globals.yml. TrivialFix Change-Id: I9f0cbe4bd69ce17489310a1f5734a254e6ebe27b
2016-05-03map the host localtime to the containerJeffrey Zhang1-0/+3
Closes-Bug: #1577148 Change-Id: I636cefc63cf532434a41af3898b63dffa711e280
2016-03-09Add cron image and playbookÉric Lemoine1-0/+11
Add cron image and playbook for logrotate. The "common" Ansible playbook includes configuration files for logrotate. At this point the operator cannot customize/override the logrotate configuration. Closes-Bug: #1553244 Change-Id: Ic9fdda9a273c9ccd90502f0acc7614d2c7157dca
2016-03-07Fix "wait for log socket" in start.shÉric Lemoine1-0/+3
The code in docker/base/start.sh that waits for the log socket does not work because it includes a bad "space" character after "-S". This patch changes that character to a real "space" character. It also sets the SKIP_LOG_SETUP envvar for the Heka container. TrivialFix Change-Id: I17a3005df5bbd57678350fc77030e44b5ad6acae
2016-02-23Remove Rsyslog entirelyÉric Lemoine1-15/+0
Partially implements: blueprint heka Change-Id: I1322d2dc870e6f8fe052926995d993e8a08a25db
2016-02-19Make Ansible write its logs into "kolla_logs"Éric Lemoine1-1/+1
The Ansible logs are currently not collected by Heka. This can be done later, with an Ansible-specific decoder for Heka. Partially implements: blueprint heka Change-Id: I8d3ba4edb527f61c0a8234024b4be953c6e6c565
2016-02-19Add Heka to common roleÉric Lemoine1-0/+12
Partially implements: blueprint heka Change-Id: I9ddad09b3f16b323c7ed535243458b0de6620cdb
2016-02-16Move socket binding to named_volumeSamYaple1-2/+5
The extend_start.sh script for rsyslog is removed as it is no longer needed. Docker no longer binds to /dev/log or /run/kolla/log Closes-Bug: #1544545 Change-Id: Ic0a323a26ee4e9e15baf4598285844a8a4955f23
2016-02-06Fix gate for docker 1.10SamYaple1-2/+2
Docker 1.10 has broken the gate and this patch will correct that breakage. The issue comes with rsyslog. Due to a commit in Docker 1.10 [1] we must change the way we get the log socket for rsyslog. The /dev/ folder will no longer populate as we used it. So instead we simply make a new socket in a path we control and share that to the correct location in the containers. Additionally, adjust the gate for new Docker daemon. [1] https://github.com/docker/docker/pull/16639 Partially-Implements: blueprint kolla-upgrade Change-Id: I881a2ecdf6d7b35991e1d38a3f3e60d022d6577f
2016-02-02Rename kolla_ansible to kolla_toolboxSamYaple1-2/+2
This change is needed for clarity. We have a kolla-ansible script. We have a kolla-mesos repo. We plan to have a kolla-ansible repo. Already we have had far too much confusion about whether we are talking about the container or the project. Naming this kolla-toolbox eliminates all of that confusion and its probably a bit more accurate of a name too. Closes-Bug: #1541053 Change-Id: I8fd1f49d5a22b36ede5b10f46b9fe02ddda9007e
2016-01-03Convert to named volumes instead of data containerSamYaple1-9/+1
This intentionally leaves out rabbitmq from this patchset. It will require additional work to remove its data container UpgradeImpact Partially-Implements: blueprint docker-named-volumes Change-Id: Id68b8e43a3c077ef4f4f4d67ea34d0692e66eef7
2015-12-31Convert common role to kolla_dockerSamYaple1-53/+24
Change-Id: I793d89322d5be32972d10386f2feeb39cb57e5fe Partially-Implements: blueprint kolla-docker-module
2015-12-26Fix file permissionsSamYaple1-0/+0
Throughout the project overtime some of these file permissions have changed to have an executable bit. They should not have this bit set. TrivialFix Change-Id: I1748b5bde813a0fcac36aeecdfd83245b8ee5be3
2015-12-26Adjust CMD for data and kolla-ansibleSamYaple1-1/+0
The CMD command for data causes docker to launch it with /bin/sh which is ugly when viewing the containers statuses. Additionally for kolla_ansible we were not specifying the CMD at all, forcing us to use the 'command' param to set the sleep command. This patch brings the kolla_ansible launch inline with the rest of the project. TrivialFix Change-Id: Ic87a89921674802c15596756526e07f52a782f32
2015-11-20Switch find_disks to use a decent python libSam Yaple1-0/+2
Now /dev/loop devices will work! Change-Id: Icb8efe4f9bc3a21a72eb04bfd03452c26f13fd70 Closes-Bug: #1518438
2015-10-14Add tty to containersSam Yaple1-0/+3
sudo requires a tty to function by default on centos. Instead of tweaking the sudo conf we can just add a tty. This has the added advantage of making the containers more friendly if you have to `docker exec -i <container> bash` into them. Change-Id: If97a02ca1d37c243a787d98ade54bde8d641aecd backport: liberty Partially-Implements: blueprint functional-testing-gate
2015-10-13Bump ansible to 1.9.2Sam Yaple1-3/+0
Ansible 1.9.2 contains the fix needed for docker-py >1.2.0 This is needed for some gate reasons, but it is also a good version bump because it fixes a few issues with delegate_to. Change-Id: Iafbabb3b0232620849d0548c5cd9d8d316c2b0f3 backport: liberty Partially-Implements: blueprint functional-testing-gate
2015-10-06Bring Kolla inline with FHSSam Yaple1-1/+1
This brings Kolla images inline with FHS and should make finding locations of things more consistent and reliable with the linux world at large. Change-Id: Iece5b4da4bace0fb8b1f41a65ab2c852ec73e6f8 Closes-Bug: #1485742
2015-09-28Remove config-external for rsyslogSam Yaple1-1/+1
Additionally, fix privleges for rsyslog container. It needs to be privleged otherwise it will complain about creating device node Change-Id: I364858f0a1df01b53cee46db3ec7cd5ecbe82c54 Partially-Implements: blueprint replace-config-external
2015-09-27Replace config-external - rsyslogSam Yaple1-1/+1
Change-Id: Ic19c1a0e975f6097813cad52f880042e33730ff8 Partially-Implements: blueprint replace-config-external
2015-09-24Ansible bits to rsysloginc01-0/+44
Ansible installation of rsyslog container Change-Id: I17a7ee679f72e8fe667012d7eb6e07a27098a909 Implements: bp logging-container
2015-08-19Remove start.yml abstraction for kolla-ansibleSam Yaple1-6/+16
Change-Id: If2e6d5cd5530c1e17f34415e169f82465f8362a1 Partially-Implements: blueprint remove-abstraction-ansible
2015-08-06Reduce dependencies on the dest nodesSam Yaple1-0/+9
Currently we require a slew of deps on each destination node, this includes a gcc compiler and installing things via pip. We can remove these dependencies by containerizing them and running and Ansible inside the container itself. The container would then report back facts about idempotency. DocImpact Closes-Bug: #1481495 Implements: blueprint containerize-dependencies Change-Id: I3dfccbf9fafc06ffc36e78f3006fe5d3367891df