Skip to content
Snippets Groups Projects
  1. May 17, 2020
    • gugug's avatar
      Enable W503 for flake8 check · 22f7aecb
      gugug authored
      W503 and W504 are incompatible and we need to choose one of them.
      Existing codes follows W503, so we disable W504.
      
      Change-Id: Ic745e956dd332eb0fa49b93c1e6acb12f8a7f26c
      22f7aecb
  2. Apr 04, 2020
    • Andreas Jaeger's avatar
      Update hacking for Python3 · 45448976
      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
      45448976
  3. Feb 11, 2020
  4. Jan 06, 2020
  5. Nov 28, 2019
    • Mark Goddard's avatar
      Support configuration of Docker client timeout · 01050dc0
      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
      01050dc0
  6. Nov 14, 2019
    • Mark Goddard's avatar
      Attempt to pull image before stopping and removing container · 64d07c0b
      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
      64d07c0b
  7. Oct 01, 2019
    • Mark Goddard's avatar
      Add service-rabbitmq role · 039cc2be
      Mark Goddard authored
      This role can be used by other roles to register RabbitMQ resources.
      Currently support is provided for creating virtual hosts and users.
      
      Change-Id: Ie1774a10b4d629508584af679b8aa9e372847804
      Partially Implements: blueprint support-nova-cells
      Depends-On: https://review.opendev.org/684742
      039cc2be
  8. Sep 30, 2019
  9. Sep 16, 2019
    • Mark Goddard's avatar
      Catch errors and changes in kolla_toolbox module · 70b515bf
      Mark Goddard authored
      The kolla_toolbox Ansible module executes as-hoc ansible commands in the
      kolla_toolbox container, and parses the output to make it look as if
      ansible-playbook executed the command. Currently however, this module
      sometimes fails to catch failures of the underlying command, and also
      sometimes shows tasks as 'ok' when the underlying command was changed.
      This has been tested both before and after the upgrade to ansible 2.8.
      
      This change fixes this issue by configuring ansible to emit output in
      JSON format, to make parsing simpler. We can now pick up errors and
      changes, and signal them to the caller.
      
      This change also adds an ansible playbook, tests/test-kolla-toolbox.yml,
      that can be executed to test the module. It's not currently integrated
      with any CI jobs.
      
      Note that this change cannot be backported as the JSON output callback
      plugin was added in Ansible 2.5.
      
      Change-Id: I8236dd4165f760c819ca972b75cbebc62015fada
      Closes-Bug: #1844114
      70b515bf
  10. Aug 22, 2019
  11. Aug 07, 2019
  12. Aug 05, 2019
    • Radosław Piliszek's avatar
      ceph: fixes to deployment and upgrade · 826f6850
      Radosław Piliszek authored
      1) ceph-nfs (ganesha-ceph) - use NFSv4 only
      This is recommended upstream.
      v3 and UDP require portmapper (aka rpcbind) which we
      do not want, except where Ubuntu ganesha version (2.6)
      forces it by requiring enabled UDP, see [1].
      The issue has been fixed in 2.8, included in CentOS.
      Additionally disable v3 helper protocols and kerberos
      to avoid meaningless warnings.
      
      2) ceph-nfs (ganesha-ceph) - do not export host dbus
      It is not in use. This avoids the temptation to try
      handling it on host.
      
      3) Properly handle ceph services deploy and upgrade
      Upgrade runs deploy.
      The order has been corrected - nfs goes after mds.
      Additionally upgrade takes care of rgw for keystone
      (for swift emulation).
      
      4) Enhance ceph keyring module with error detection
      Now it does not blindly try to create a keyring after
      any failure. This used to hide real issue.
      
      5) Retry ceph admin keyring update until cluster works
      Reordering deployment caused issue with ceph cluster not being
      fully operational before taking actions on it.
      
      6) CI: Remove osd df from collected logs as it may hang CI
      Hangs are caused by healthy MON and no healthy MGR.
      A descriptive note is left in its place.
      
      7) CI: Add 5s timeout to ceph informational commands
      This decreases the timeout from the default 300s.
      
      [1] https://review.opendev.org/669315
      
      
      
      Change-Id: I1cf0ad10b80552f503898e723f0c4bd00a38f143
      Signed-off-by: default avatarRadosław Piliszek <radoslaw.piliszek@gmail.com>
      826f6850
  13. Jul 18, 2019
    • Radosław Piliszek's avatar
      Fix handling of docker restart policy · 6a737b19
      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: default avatarRadosław Piliszek <radoslaw.piliszek@gmail.com>
      6a737b19
  14. Jun 07, 2019
  15. Mar 10, 2019
    • Victor Coutellier's avatar
      Fix kolla-docker possible undefined variable · 3bb4c199
      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
      3bb4c199
  16. Jan 24, 2019
    • binhong.hua's avatar
      add ulimit support for kolla_docker · 3d3f5f16
      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
      3d3f5f16
  17. Dec 27, 2018
    • confi-surya's avatar
      Update hacking version · b41309ef
      confi-surya authored
      Use latest release 1.1.0 and compatible changes w.r.t pep8
      
      Change-Id: Ie5e5417a1d8481bb59d516a320bd7cc1dd89591e
      b41309ef
  18. Dec 14, 2018
    • Mark Goddard's avatar
      Create cells before starting nova services · 365bb517
      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
      365bb517
  19. Dec 05, 2018
    • Eduardo Gonzalez's avatar
      Allow set tty for containers · 846c15d8
      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
      846c15d8
  20. Nov 03, 2018
  21. Oct 31, 2018
  22. Sep 14, 2018
  23. Aug 09, 2018
  24. Jul 25, 2018
  25. Jul 12, 2018
  26. Apr 26, 2018
    • Jorge Niedbalski's avatar
      Increase timeout for kolla_toolbox module. · 044e82cc
      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: default avatarJorge Niedbalski <jorge.niedbalski@linaro.org>
      044e82cc
  27. Apr 06, 2018
    • wangwei's avatar
      Fix ipc_mode comparison in the latest docker · 193ce726
      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
      193ce726
  28. Mar 30, 2018
  29. Feb 01, 2018
  30. Jan 26, 2018
    • Eduardo Gonzalez's avatar
      Add container state check in kolla_docker · 448a10df
      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
      448a10df
  31. Jul 28, 2017
  32. Jul 14, 2017
    • Bertrand Lallau's avatar
      Remove warning during kolla_docker execution · 2d424ffb
      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
      2d424ffb
  33. Jul 10, 2017
  34. Apr 24, 2017
  35. Apr 13, 2017
    • Duong Ha-Quang's avatar
      Add graceful_timeout argument to kolla_docker · d9293595
      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
      d9293595
  36. Apr 06, 2017
    • Mohammed Naser's avatar
      Switch kolla_docker to rely on SHA256 for image changes · 27d675ea
      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
      27d675ea
    • Mohammed Naser's avatar
      Fix documentation for kolla_docker image pulling · 10861350
      Mohammed Naser authored
      The example to pull images is incorrect, this patch
      addresses it and corrects it accordingly.
      
      Change-Id: Ice79e7f73d99c024781cb379d190f6d05e1a34a9
      10861350
  37. Mar 05, 2017
    • Jeffrey Zhang's avatar
      Fix the incompatible of docker-py 2.0.0 · 78e5c865
      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
      78e5c865
Loading