Bug 1744759 - Octavia update and upgrade tasks fail because docker module has been removed in OSP 13
Summary: Octavia update and upgrade tasks fail because docker module has been removed ...
Keywords:
Status: CLOSED DUPLICATE of bug 1743518
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates
Version: 13.0 (Queens)
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: ---
Assignee: RHOS Maint
QA Contact: Sasha Smolyak
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-08-22 19:55 UTC by Andreas Karis
Modified: 2019-08-23 11:23 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-08-23 11:23:45 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1840742 0 None None None 2019-08-22 20:00:24 UTC

Description Andreas Karis 2019-08-22 19:55:17 UTC
Description of problem:

Bug Description

The docker Ansible module was removed in Ansible 2.4. It was replaced by dedicated modules docker_container and docker_image.

[...]
2019-08-16 17:25:18,449 p=21450 u=mistral | TASK [Set internal tls variable] ***********************************************
2019-08-16 17:25:18,450 p=21450 u=mistral | Friday 16 August 2019 17:25:18 +0200 (0:00:00.498) 0:04:25.926 *********
2019-08-16 17:25:18,631 p=21450 u=mistral | ok: [ctr2-xx-yyy-1] => {"ansible_facts": {"internal_tls_enabled": true}, "changed": false}
2019-08-16 17:25:19,085 p=21450 u=mistral | TASK [remove TLS proxy if configured and running] ******************************
2019-08-16 17:25:19,086 p=21450 u=mistral | Friday 16 August 2019 17:25:19 +0200 (0:00:00.636) 0:04:26.562 *********
2019-08-16 17:25:19,760 p=21450 u=mistral | fatal: [ctr2-xx-yyy-1]: FAILED! => {"changed": false, "msg": "This module has been removed. The module documentation may contain hints for porting"}
2019-08-16 17:25:19,766 p=21450 u=mistral | PLAY RECAP *********************************************************************

PLAY RECAP *********************************************************************
ctr2-xx-yyy-1 : ok=59 changed=26 unreachable=0 failed=1

Friday 16 August 2019 17:25:19 +0200 (0:00:00.682) 0:04:27.245 *********
===============================================================================

Ansible failed, check log at /var/lib/mistral/1e6cc465-bb47-471f-95bc-fa37318dd45f/ansible.log.

Comment 1 Andreas Karis 2019-08-22 20:36:54 UTC
I manually patched the .yaml for something else, hence the line numbers are off, but this is the fix (also see the attached upstream bug):
~~~
cat<<'EOF'>/root/tripleo-octavia.patch.2
--- /usr/share/openstack-tripleo-heat-templates/docker/services/octavia-api.yaml.old	2019-08-22 15:56:47.913346476 -0400
+++ /usr/share/openstack-tripleo-heat-templates/docker/services/octavia-api.yaml	2019-08-22 15:57:37.993186127 -0400
@@ -206,7 +206,7 @@
           when:
             - step|int == 2
             - internal_tls_enabled|bool
-          docker:
+          docker_container:
             name: octavia_api_tls_proxy
             state: absent
       upgrade_tasks:
@@ -261,7 +261,7 @@
               service: name=httpd state=stopped
             - name: remove TLS proxy if configured and running
               when: internal_tls_enabled|bool
-              docker:
+              docker_container:
                 name: octavia_api_tls_proxy
                 state: absent
       metadata_settings:
EOF
patch /usr/share/openstack-tripleo-heat-templates/docker/services/octavia-api.yaml /root/tripleo-octavia.patch.2
~~~

Comment 2 Carlos Goncalves 2019-08-23 11:23:45 UTC

*** This bug has been marked as a duplicate of bug 1743518 ***


Note You need to log in before you can comment on or make changes to this bug.