- Feb 04, 2023
-
-
Michal Arbet authored
This patch fixes kolla_docker module as it did not take into account common_options parameter. From patchset it's visible that module's default values are used always - even if user overrided some param in common_options dict. Closes-Bug: #2003079 Change-Id: I677fde708dd004decaff4bd39f2173d8d81052fb
-
- Feb 03, 2023
-
-
Michal Nasiadka authored
It is deprecated in 20.10 and removed in 23.0 (and 23.0 is out) [1], [2]. [1]: https://docs.docker.com/engine/deprecated/#kernel-memory-limit [2]: https://docs.docker.com/engine/api/version-history/#v142-api-changes Change-Id: Ia6fa85172aad7bcd5f958922d3c224ef79882e6c
-
- Jan 19, 2023
-
-
Martin Hiner authored
This commit adds SystemdWorker class to kolla_docker ansible module. It is used to manage container state via systemd calls. Change-Id: I20e65a6771ebeee462a3aaaabaa5f0596bdd0581 Signed-off-by:
Ivan Halomi <i.halomi@partner.samsung.com> Signed-off-by:
Martin Hiner <m.hiner@partner.samsung.com>
-
- Jan 12, 2023
-
-
Michal Nasiadka authored
Change-Id: I110c642da925a5f6b3bd071e7844c20fda673c66
-
- Apr 05, 2022
-
-
Marcin Juszkiewicz authored
Change-Id: I3d402e43bebd9054a94990e6bc2183bad9922419
-
- Jan 06, 2022
-
-
Martin authored
Moved the DockerWorker class from module file into its separate file in module_utils directory for future extension. Unit tests changed accordingly. Signed-off-by:
Ivan Halomi <ivan.halomi@tietoevry.com> Co-authored-by:
Martin Hiner <martin.hiner@tietoevry.com> Change-Id: Ia2a471a9a2805e13b2c20dbf8a7297c23231aae3
-
- May 30, 2021
-
-
Radosław Piliszek authored
This is required to support Debian Bullseye (11) - need to set nova-libvirt to use 'host' CgroupnsMode. Change-Id: I40213d4092fa325bcf37bb1fb4437ab125fe328b
-
- Apr 27, 2021
-
-
Radosław Piliszek authored
The proposed approach allows for checking whether config files are current, e.g. cases when the deployment was aborted after config files were generated but before they were injected into the containers which lead to old config staying in containers. After this patch we can do: kolla-ansible genconfig kolla-ansible deploy-containers and it would do what we expected rather than being a noop in the second part. We also lose the need to have notifies and whens in config and handler sections respectively. This is optimised in a separate patch. Future work: - optimise for large files - could we get away with comparing timestamps and sizes? container's should have a newer timestamp due to copy, could also preserve it Change-Id: I1d26e48e1958f13b854d8afded4bfba5021a2dec Closes-Bug: #1848775 Depends-On: https://review.opendev.org/c/openstack/kolla/+/773257 Co-Authored-By:
Mark Goddard <mark@stackhpc.com>
-
- Jan 23, 2021
-
-
likui authored
Change-Id: Id9110a1f536377cea0386dda6814035d73de13b1 Implements: blueprint remove-unicode
-
- Dec 16, 2020
-
-
Mark Goddard authored
Partial-Bug: #1897276 Change-Id: Ia06da456a7f26f0f2ceebc35eb88c0da0767e1c6
-
- Oct 04, 2020
-
-
Radosław Piliszek authored
Keepalived and haproxy cooperate to provide control plane HA in kolla-ansible deployments. Certain care should be exerted to avoid prolonged availability loss during reconfigurations and upgrades. This patch aims to provide this care. There is nothing special about keepalived upgrade compared to reconfig, hence it is simplified to run the same code as for deploy. The broken logic of safe upgrade is replaced by common handler code which's goal is to ensure we down current master only after we have backups ready. This change introduces a switch to kolla_docker module that allows to ignore missing containers (as they are logically stopped). ignore_missing is the switch's name. All tests are included. Change-Id: I22ddec5f7ee4a7d3d502649a158a7e005fe29c48
-
- Sep 30, 2020
-
-
Michal Nasiadka authored
blueprint container-health-check Implements healthchecks option in kolla_docker Ansible module Change-Id: I9323d4e75378d06f52b869f31009fd656bf270d2
-
- May 11, 2020
-
-
Will Szumski authored
This causes non-local side effects that are hard to track down. E.g: --- import errors --- Failed to import test module: tests.test_merge_yaml Traceback (most recent call last): File "/home/will/.pyenv/versions/3.7.7/lib/python3.7/unittest/loader.py", line 436, in _find_test_path module = self._get_module_from_name(name) File "/home/will/.pyenv/versions/3.7.7/lib/python3.7/unittest/loader.py", line 377, in _get_module_from_name __import__(name) File "/home/will/code/kolla-ansible/tests/test_merge_yaml.py", line 19, in <module> from ansible.errors import AnsibleModuleError ModuleNotFoundError: No module named 'ansible.errors'; 'ansible' is not a package This `'ansible' is not a package` message occurs because ansible is a Mock. Depends-On: https://review.opendev.org/#/c/726768/ Change-Id: Iddbdd3d855daadbf12536cc990559e6b8e123051
-
- Apr 26, 2020
-
-
Radosław Piliszek authored
Removes and/or replaces all mentions of py27. Cleans up obsolete requirements and their lower-constraints. Separates test-requirements. Makes lower-constraints pass outside of CI (MarkupSafe). Adds FIXMEs about some hacky Mocks that may misbehave. Change-Id: Ifc090bf3c1db17d8542ee591c91e8225a597bfe2
-
- Apr 04, 2020
-
-
Andreas Jaeger authored
The repo is Python 3 now, so update hacking to version 3.0 which supports Python 3. Fix problems found by updated hacking version. Remove hacking and friends from lower-constraints, they are not needed during installation. Change-Id: I7ef5ac8a89e94f5da97780198619b6facc86ecfe
-
- Apr 02, 2020
-
-
Radosław Piliszek authored
Now that py2 is gone, oslotest dropped dependency on mock and will soon affect Ussuri CI [1], let's use unittest.mock built in py3. This also fixes py38 jobs and proactively prevents py36 and py37 failing due to [1]. This is because we never included mock in test-requirements (but in lower-constraints where it does not really belong at all) and instead relied on oslotest to bring it in. [1] https://review.opendev.org/716322 Change-Id: I30e82e2d87418272a71c7ee089a8acdaf8872158
-
- Nov 28, 2019
-
-
Mark Goddard authored
Adds support for configuration of the Docker client timeout via 'docker_client_timeout'. This change also increases the default timeout to 120 seconds, as we sometimes see timeouts in CI and heavily loaded or underpowered environments. Increasing 'docker_client_timeout' further may be helpful in cases where Docker reports 'Read timed out'. Change-Id: I73745771078cb2c0ebae2b1d87ba2c4c12958d82 Closes-Bug: #1809844
-
- Nov 14, 2019
-
-
Mark Goddard authored
* Deploy services using kolla-ansible deploy * Reconfigure the image for one or more services to use an invalid * config * Deploy/reconfigure services using kolla-ansible reconfigure The invalid config could be a wrong docker registry, wrong image name, wrong tag, etc. The restart handler for the service fails, and the old container is left running. The restart handler for the service fails, and the old container is stopped and removed. This leaves the service in a broken state. This change fixes the issue by pulling the image if necessary prior to stopping and removing the container. Change-Id: I85b2a1b224d4c4d85c32c4922a2cd2c41171a1dc Closes-Bug: #1852572
-
- Aug 22, 2019
-
-
Michal Nasiadka authored
In order to orchestrate smooth transition to fluentd 0.14.x aka 1.0 stable branch aka td-agent 3 from td-agent repository - use image labels (fluentd_version and fluentd_binary). Depends-On: https://review.opendev.org/676411 Change-Id: Iab8518c34ef876056c6abcdb5f2e9fc9f1f7dbdd
-
- Jul 18, 2019
-
-
Radosław Piliszek authored
Docker has no restart policy named 'never'. It has 'no'. This has bitten us already (see [1]) and might bite us again whenever we want to change the restart policy to 'no'. This patch makes our docker integration honor all valid restart policies and only valid restart policies. All relevant docker restart policy usages are patched as well. I added some FIXMEs around which are relevant to kolla-ansible docker integration. They are not fixed in here to not alter behavior. [1] https://review.opendev.org/667363 Change-Id: I1c9764fb9bbda08a71186091aced67433ad4e3d6 Signed-off-by:
Radosław Piliszek <radoslaw.piliszek@gmail.com>
-
- Jun 07, 2019
-
-
Mark Goddard authored
This is useful when removing a container that is no longer supported. Change-Id: I08d79ce7dd2f3d11e466930de85412017cd5f747
-
- Mar 10, 2019
-
-
Victor Coutellier authored
It is possible to reference undefined variable in kolla-docker module if DockerWorker object initialization fail, so the current behaviour will crash the playbook with the unwanted error message : UnboundLocalError: local variable 'dw' referenced before assignment Change-Id: Ic8d26b11f93255220888b5406f8ab4a6f81736c2 Closes-Bug: #1819361
-
- Jan 24, 2019
-
-
binhong.hua authored
By default, docker containers inherit ulimit from limits of docker deamon. On CentOS 7, docker daemon default NOFILE is 1048576. It can found in /usr/lib/systemd/system/docker.service. The big limit will cause many problem. we should control it in production environment. Change-Id: Iab962446a94ef092977728259d9818b86cfa7f68
-
- Dec 14, 2018
-
-
Mark Goddard authored
Nova services may reasonably expect cell databases to exist when they start. The current cell setup tasks in kolla run after the nova containers have started, meaning that cells may or may not exist in the database when they start, depending on timing. In particular, we are seeing issues in kolla CI currently with jobs timing out waiting for nova compute services to start. The following error is seen in the nova logs of these jobs, which may or may not be relevant: No cells are configured, unable to continue This change creates the cell0 and cell1 databases prior to starting nova services. In order to do this, we must create new containers in which to run the nova-manage commands, because the nova-api container may not yet exist. This required adding support to the kolla_docker module for specifying a command for the container to run that overrides the image's command. We also add the standard output and error to the module's result when a non-detached container is run. A secondary benefit of this is that the output of bootstrap containers is now displayed in the Ansible output if the bootstrapping command fails, which will help with debugging. Change-Id: I2c1e991064f9f588f398ccbabda94f69dc285e61 Closes-Bug: #1808575
-
- Dec 05, 2018
-
-
Eduardo Gonzalez authored
This change adds support to comfigure tty, it was enabled by default but a recent patch removed it. Some services such as Karaf in opendaylight requires a TTY during startup. Closes-Bug: #1806662 Change-Id: Ia4335523b727d0e45505cbb1efb40ccf04c27db7
-
- Nov 03, 2018
-
-
Rabi Mishra authored
With a pseudo terminal, service is not treated as a daemon and signals would not work as expected. Change-Id: I16aa29a7924df51659d973a81d8005ae3d86f57b Related-Bug: #1799642
-
- Sep 14, 2018
-
-
Eduardo Gonzalez authored
Add support to remove images from kolla_docker ansible module. Change-Id: Ib6bcb98b5b295a2d590df3013188913d1f7f3584
-
- Jul 25, 2018
-
-
Lakshmi Prasanna Goutham Pratapa authored
This commit is to apply resource-constraints only to few OpenStack services. Commit to apply constraints to other services will be made in coming commits. Partially-Implements: blueprint resource-constraints Change-Id: Icafa54baca24d2de64238222a5677b9d8b90e2aa
-
- Jul 12, 2018
-
-
Lakshmi Prasanna Goutham Pratapa authored
This commit will constrain the dimensions of service `Nova` and sub-containers deployed along with it. A user can give the dimension values in `/etc/kolla/globals.yml` the data-types just like stated in this commit. Reference-Docs: https://docs.docker.com/config/containers/resource_constraints/ Added Test-cases for the same. Partially-Implements: blueprint resource-constraints Change-Id: I6458d8fb7b26a6e7c3a9fd0d674d9cf129b0bf5d
-
- Apr 06, 2018
-
-
wangwei authored
In old docker, if you do not specify ipc_mode, the default value is empty, but in the latest docker, such as 17.09.0, if not specified, the default is "IpcMode": "shareable", which will cause all containers to be deleted and re-create when to redeploy or upgrade. This commit solves the problem. Change-Id: Ia8269b9c8066880e4aee23d6fdea8d9c04c41e44 Closes-Bug: #1747586
-
- Jan 26, 2018
-
-
Eduardo Gonzalez authored
Missing container status check in recreate_or_restart_container, this causes if the container is not running (kolla-ansible stop), to not be started with deploy/reconfigure/upgrade if any other param changes. Change-Id: I5cff5f367e963ba8b1807ec46469da817e40e468 Closes-Bug: #1714015
-
- Jul 28, 2017
-
-
Jeffrey Zhang authored
Docker has an issue[0] when restart container. But stop then start works. [0] https://github.com/moby/moby/issues/29704 Change-Id: If0a9c0c257cd72209be8e138a1f0b8871500e089 Closes-Bug: #1707097
-
- Jul 14, 2017
-
-
Bertrand Lallau authored
Ansible check if modules parameters are named like %password% and allow to hidden log param in this case. This requires adding "no_log" parameters. This patch just add "no_log" param in order to avoid this warning. Change-Id: I9c1df1093e0fd101090292d6e8bf3527f99aeb17 Closes-Bug: #1702244
-
- Jul 10, 2017
-
-
Hongbin Lu authored
The pypi package 'docker-py' [1] has been renamed to 'docker' [2]. It is better to move to the new 'docker' package because the old package will be deprecated and all the new features will go into the new package only. Package 'docker' has been added to requirements [3]. The old package 'docker-py' is still allowed to be in the global requirements during the transition period but it should be removed after all or most of the projects finsih the migration. [1] https://pypi.python.org/pypi/docker-py [2] https://pypi.python.org/pypi/docker [3] https://review.openstack.org/#/c/423715/ Change-Id: Ibcd5a57a1fbf55dcc5a690e41f20917f95b63da0
-
- Jun 08, 2017
-
-
lingyongxu authored
In testcase, setUp will be called automatically. This patch used to remove setUp functions that do nothing. Besides, it will keep code clean. Change-Id: I60e368dc066af30ce2e53bf7e4cc7bba69387cd8
-
- Apr 13, 2017
-
-
Duong Ha-Quang authored
Currently, when stoping/restarting container, Kolla uses default timeout value between SIGTERM and SIGKILL provided by docker which is 10 sec. But some services require more than it to finish graceful shutdown progress. This patchset adds graceful_timeout to kolla_docker to override the default one. Partial Implements: bp signaling-to-container Change-Id: Ica0b48a53c650cc23dfa1955027d2cf936a5932f
-
- Apr 06, 2017
-
-
Mohammed Naser authored
At the moment, the process to determine if an image has changed or not relies on the Docker API which depending on the Docker release server can return different results. This patch addresses this issue by grabbing the SHA256 of the image before pulling (defaulting to None if it does not exist) and then comparing it after the pull is complete which should always be successful at determining if the image did change or not. The test for unknown status images is removed because this is not a possible scenario as we do not rely on status anymore except for failures (which are still tested). Change-Id: Ia60a7f34420b02f50597dddb96a4c36ff3996612 Closes-Bug: #1668059
-
- Feb 16, 2017
-
-
Abel Lopez authored
There is inconsistent use of either `/usr/bin/python` or `/usr/bin/env python`. This makes for unexpected results when a user might be using a virtualenv. Change-Id: Ibb030f920a8869f9113ade70b66a921cc815060d
-
- Feb 03, 2017
-
-
Jeffrey Zhang authored
bypass_checks is disabled by Ib2e19794bbe804470a880253d5870254041358c8 . But we use pid_mode: "{{ service.pid_mode | default('') }}" pattern in the yaml file. whereas pid_mode only support "host" value, this patch add '' as a choice of these two parameters. Change-Id: Ib83ed5e437ca868f0e42ce740ad1125d2fa48ff4
-
- Feb 02, 2017
-
-
Jeffrey Zhang authored
Recreate and start a new container when container parameter is changed in COPY_ALWAYS strategy. Change-Id: I1e45c0dc34a93a18b664109823d6fd5b88c331a2 Closes-Bug: #1659799
-