- Aug 09, 2018
-
-
Eduardo Gonzalez authored
Missing the module name in the examples. Change-Id: I7a60f92bd163688401ab5dd0f6cc9464ae934356
-
- 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
-
wu.chunyang authored
module_name is required for kolla_toolbox,but this module does not check this argument. Change-Id: Iae256c0690b408a040b4e0b079525d3dab917e90
-
- 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 26, 2018
-
-
Jorge Niedbalski authored
This patch increases the default timeout for the kolla_toolbox ansible module when talking with the docker API from the default 60 to 180 secs. This is required on slower deployments, specially when bootstraping an environment and fernet tokes are in usage. For faster deployments this will be harmless, but for slower deployments this would be beneficial. Bug: #1767136 Change-Id: I0391715b16cf86d6c27fecf8a666de64f2735a7d Signed-off-by:
Jorge Niedbalski <jorge.niedbalski@linaro.org>
-
- 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
-
- Mar 30, 2018
-
-
Jeffrey Zhang authored
When upgrade from ceph Jewel to ceph luminous, the client.admin caps should add `mgr 'allow *'` caps Change-Id: Ia4cb7a59d4cf215a1dce1efe31e00f1401e0b753 Closes-Bug: #1750967
-
- Feb 01, 2018
-
-
Jeffrey Zhang authored
the wait function in docker 3.0 return a dict now. Closes-Bug: #1746748 Change-Id: Ice87128a936e36a0d7eb75c1ffd57dae39d89a64
-
- 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
In some case, docker can not remove container and raise following error message: Unable to remove filesystem for xxx remove /var/lib/docker/containers/xxx/shm: device or resource busy But the container is removed. This patch assumes container is removed if only container name is not shown in docker ps. Closes-Bug: #1662598 Change-Id: I079d5ec6178018403ec7a49c975f137e27eb9ad4
-
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
-
- Apr 24, 2017
-
-
Pavel Glushchak authored
When docker-py is newer than docker daemon following APIError may be raised: client is newer than server (client API version: 1.24, server API version: 1.22) So it's better to pass api_version='auto' to docker client, so client will discover suitable version if not specified. Change-Id: Ib747ed91b315ca762936a6efa6b71a29b2d2ae1e Signed-off-by:
Pavel Glushchak <pglushchak@virtuozzo.com>
-
- 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
-
Mohammed Naser authored
The example to pull images is incorrect, this patch addresses it and corrects it accordingly. Change-Id: Ice79e7f73d99c024781cb379d190f6d05e1a34a9
-
- Mar 05, 2017
-
-
Jeffrey Zhang authored
docker-py 2.0.0 is released with renaming docker.Client to docker.APIClient. and with a new python package name "docker" rather than "docker-py". This patch support docker and docker-py packages. Change-Id: Ib4400a4d2ce803191ee6215c5b28f0052970332c Closes-Bug: #1668346
-
- Feb 21, 2017
-
-
Chao Guo authored
A empty docker volume item will cause start_container to fail. This bug is not triggered in current kolla deployment scripts, but only if you pass a empty volume item to kolla_docker module. E.g. Using a if expression in items of volumes list while calling start_container. Like the one in start.yml of iscsi and cinder. Change-Id: I389246fb9650ab5304463e943459ecb68706167f
-
- 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 08, 2017
-
-
Jeffrey Zhang authored
Security opt is disable when using host ipc or host pid or privileged[0]. [0] https://github.com/docker/docker/blob/master/daemon/create.go#L161,L164 Change-Id: I83d7c74aaeb5c59981c76464e69d5b5baa00fefb
-
- Feb 04, 2017
-
-
Mauricio Lima authored
Co-Authored-By:
Jeffrey Zhang <jeffrey.zhang@99cloud.net> Change-Id: I92c0757af6567cbb4ff338493df9931ebef3366c
-
- 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
-
- Jan 26, 2017
-
-
Jeffrey Zhang authored
Co-Authored-By:
Mauricio Lima <mauriciolimab@gmail.com> Change-Id: I9a4a6b6523dee4b388513386b7d85d421f2b7b89
-
- Jan 25, 2017
-
-
Jeffrey Zhang authored
Change-Id: Ida7c955d9ddf7b7dc3289001958326c38c62d0c9 Partially-implements: blueprint better-reconfigure
-
- Jan 23, 2017
-
-
zhuzeyu authored
Replace the original code with required_if when Ansible 2.0 lands Change-Id: Ib2e19794bbe804470a880253d5870254041358c8
-
- Jan 20, 2017
-
-
Jeffrey Zhang authored
docker engine 1.10 and docker engine 1.12 have different response for list containers. Use status=running filter instead. It is provided by all docker version. Closes-Bug: #1658015 Change-Id: I54df4b08f215322d97d604ebd84e04255a359ef6
-
Jeffrey Zhang authored
Docker v1.25 api now validates restart policies[0] [0] https://github.com/docker/docker/blob/master/docs/api/version-history.md Change-Id: Idc90cb99cf38ab1e637568ee5dbe5adcb2fa5b78 Closes-Bug: #1657946
-
- Jan 12, 2017
-
-
Jeffrey Zhang authored
Change-Id: I00d2dcb0895548ba169ab85764cf546c2214cbf5
-
- Jan 02, 2017
-
-
Jeffrey Zhang authored
Partically-implements: blueprint better-reconfigure Change-Id: I89e30e8b87f24a621c521d915842a4af0042d6fe
-
- Nov 29, 2016
-
-
Jeffrey Zhang authored
Depends-On: I0773851b61d341117ab214382856a9036aca51bb Change-Id: I060e21ada928577e833de2782be5ea570be32730 Partially-implements: blueprint condition-pre-check
-
- Nov 25, 2016
-
-
Paul Bourke authored
When using stream=True with docker-py it returns byte arrays rather than strings. Change-Id: I8eb6707ba2b122cf779135173abafe874b7223d2 Closes-Bug: #1643740
-
- Nov 09, 2016
-
-
maniram477 authored
The parameter "required=True" is mistyped as "requried=True" in ansible/library/kolla_docker.py and tests/test_kolla_docker.py Closes bug: 1640423 Change-Id: I64c333275b9eb3eff5b1c0fa5d550f478e68020d
-
- Sep 26, 2016
-
-
Sajauddin Mohammad authored
Current implementation has docker_restart_policy "always" and docker_restart_policy_retry:"10" which should be mutually exclusive. "unless-stopped" will restart the containers on any exit state but not start on daemon startup if container was put to stopped state before. Closes-Bug: #1621187 Change-Id: I4d881cd123a55625121b7a9047385e9b54e2e129
-
- Aug 31, 2016
-
-
Sean Mooney authored
- This change indroduces a merge_yaml action_plugin - This change generates bifrost yaml configs. Change-Id: I9814e6a5d55cbd46c4b60c06ed70ed54a575bd2f Implements: blueprint bifrost-support
-
- Aug 04, 2016
-
-
Lu lei authored
Fix a spelling error, and modify some words. TrivialFix Change-Id: Ieb55bd2679291ab61080b55feaaaf3c494939978
-
- Aug 02, 2016
-
-
MD NADEEM authored
Change-Id: I354d7350671bf6a6d6fb432b074144b4e02cd154 Closes-Bug: #1608841
-
- Aug 01, 2016
-
-
Jeffrey Zhang authored
After docker 1.12, the RepoTags will be None rather than [] in the image list API. This PS will handle the both case. Change-Id: Ie2da44b44229c2f190550755b50876f607f9cc0c Closes-Bug: #1608358
-
- Jul 26, 2016
-
-
qinchunhua authored
Replace dict.iteritems() with dict.items(). The Python 3 dict type has no iteritems() method, the old iteritems() method was renamed to items(). TrivialFix. Change-Id: I2137e72554fd16d2c70e50306e4f57d27e35bcd3
-