<div dir="ltr"><div>Hi Brendan,</div><div><br></div><div>Yes, you are right, after downgrade the version, the problem is fixed. Thanks for your support.</div><div><br></div><div>Thanks and regards</div><div>Pradeep<br></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jul 20, 2020 at 3:31 AM Brendan Shephard <<a href="mailto:brendan.shephard@gmail.com">brendan.shephard@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">Hey Pradeep,<br><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">It looks like your issue here is that you have Ansible >2.9 and that Playbook is written using formatting from Ansible 2.8. <br clear="all"></div><div><br></div><div><div style="font-family:verdana,sans-serif" class="gmail_default">I can't find the exact change that did it, but as of Ansible 2.9 the <span style="font-family:monospace">when: something|changed</span> conditional needs to be written like <span style="font-family:monospace">when: something is changed</span></div><br><div style="font-family:verdana,sans-serif" class="gmail_default">And you can also see that difference in tripleo-heat-templates after Rocky:<br></div><div style="font-family:verdana,sans-serif" class="gmail_default">Your version:<br><a href="https://opendev.org/openstack/tripleo-heat-templates/src/branch/stable/rocky/docker/services/swift-proxy.yaml#L266-L269" target="_blank">https://opendev.org/openstack/tripleo-heat-templates/src/branch/stable/rocky/docker/services/swift-proxy.yaml#L266-L269</a><br><br></div><div style="font-family:verdana,sans-serif" class="gmail_default">Updated version in Train:<br><a href="https://opendev.org/openstack/tripleo-heat-templates/src/branch/stable/train/deployment/swift/swift-proxy-container-puppet.yaml#L464-L467" target="_blank">https://opendev.org/openstack/tripleo-heat-templates/src/branch/stable/train/deployment/swift/swift-proxy-container-puppet.yaml#L464-L467</a><br><br></div><div style="font-family:verdana,sans-serif" class="gmail_default">I think it should work for you if you downgrade the version of Ansible you're using to Ansible 2.8.<br></div><br><br></div>-- <br><div dir="ltr"><div dir="ltr"><font face="verdana,sans-serif">Brendan Shephard<br></font><br><br><div style="font-family:verdana,sans-serif;margin-left:40px" class="gmail_default"><span style="color:rgb(153,153,153)">Hi,<br clear="all"></span><div><span style="color:rgb(153,153,153)"><br></span></div><div><span style="color:rgb(153,153,153)">I have tried to install OpenStack via TripleO (Rocky), but always getting the error below.<br><br>Please help me to solve this problem, I have read many docs but how to fix it No idea found.</span></div><div><span style="color:rgb(153,153,153)"><br></span></div><div><span style="color:rgb(153,153,153)">TASK [Restart rsyslogd service after logging conf change] ******************************</span><span style="color:rgb(153,153,153)">******************************</span><span style="color:rgb(153,153,153)">******************************</span><span style="color:rgb(153,153,153)">*********<br>fatal:
 [mgmt01]: FAILED! => {"msg": "The conditional check 
'logconfig|changed' failed. The error was: template error while 
templating string: no filter named 'changed'. String: {% if 
logconfig|changed %} True {% else %} False {% endif %}\n\nThe error 
appears to be in '/home/stack/undercloud-</span><span style="color:rgb(153,153,153)">ansible-ibPUGS/Undercloud/</span><span style="color:rgb(153,153,153)">host_prep_tasks.yaml':
 line 664, column 5, but may\nbe elsewhere in the file depending on the 
exact syntax problem.\n\nThe offending line appears to be:\n\n   
 register: logconfig\n  - name: Restart rsyslogd service after logging 
conf change\n    ^ here\n"}<br><br>NO MORE HOSTS LEFT ******************************</span><span style="color:rgb(153,153,153)">******************************</span><span style="color:rgb(153,153,153)">******************************</span><span style="color:rgb(153,153,153)">******************************</span><span style="color:rgb(153,153,153)">******************<br><br>PLAY RECAP ******************************</span><span style="color:rgb(153,153,153)">******************************</span><span style="color:rgb(153,153,153)">******************************</span><span style="color:rgb(153,153,153)">******************************</span><span style="color:rgb(153,153,153)">**************************<br>mgmt01                     : ok=185  changed=53   unreachable=0    failed=1    skipped=164  rescued=0    ignored=1<br><br>Sunday 19 July 2020  21:45:12 +0530 (0:00:00.031)       0:01:34.752 ***********<br>==============================</span><span style="color:rgb(153,153,153)">==============================</span><span style="color:rgb(153,153,153)">===================<br>Ensure system is NTP time synced ------------------------------</span><span style="color:rgb(153,153,153)">------------------------------</span><span style="color:rgb(153,153,153)">------------------------------</span><span style="color:rgb(153,153,153)">--------------------------- 7.47s<br>Run async deployment NetworkDeployment ------------------------------</span><span style="color:rgb(153,153,153)">------------------------------</span><span style="color:rgb(153,153,153)">------------------------------</span><span style="color:rgb(153,153,153)">--------------------- 4.05s<br>Run deployment UndercloudAllNodesDeployment ------------------------------</span><span style="color:rgb(153,153,153)">------------------------------</span><span style="color:rgb(153,153,153)">------------------------------</span><span style="color:rgb(153,153,153)">---------------- 2.11s<br>Run deployment UndercloudDeployment ------------------------------</span><span style="color:rgb(153,153,153)">------------------------------</span><span style="color:rgb(153,153,153)">------------------------------</span><span style="color:rgb(153,153,153)">------------------------ 2.09s<br>Run deployment InstanceIdDeployment ------------------------------</span><span style="color:rgb(153,153,153)">------------------------------</span><span style="color:rgb(153,153,153)">------------------------------</span><span style="color:rgb(153,153,153)">------------------------ 2.08s<br>Run deployment UndercloudAllNodesValidationDe</span><span style="color:rgb(153,153,153)">ployment ------------------------------</span><span style="color:rgb(153,153,153)">------------------------------</span><span style="color:rgb(153,153,153)">------------------------------</span><span style="color:rgb(153,153,153)">------ 1.92s<br>Run deployment HostsEntryDeployment ------------------------------</span><span style="color:rgb(153,153,153)">------------------------------</span><span style="color:rgb(153,153,153)">------------------------------</span><span style="color:rgb(153,153,153)">------------------------ 1.71s<br>Run deployment UndercloudPreDeployment ------------------------------</span><span style="color:rgb(153,153,153)">------------------------------</span><span style="color:rgb(153,153,153)">------------------------------</span><span style="color:rgb(153,153,153)">--------------------- 1.68s<br>Run deployment UndercloudHostsDeployment ------------------------------</span><span style="color:rgb(153,153,153)">------------------------------</span><span style="color:rgb(153,153,153)">------------------------------</span><span style="color:rgb(153,153,153)">------------------- 1.68s<br>Run deployment UndercloudArtifactsDeploy ------------------------------</span><span style="color:rgb(153,153,153)">------------------------------</span><span style="color:rgb(153,153,153)">------------------------------</span><span style="color:rgb(153,153,153)">------------------- 1.67s<br>tripleo-bootstrap : Deploy required packages to bootstrap TripleO ------------------------------</span><span style="color:rgb(153,153,153)">------------------------------</span><span style="color:rgb(153,153,153)">------------------------ 1.59s<br>Remove dracut-config-generic ------------------------------</span><span style="color:rgb(153,153,153)">------------------------------</span><span style="color:rgb(153,153,153)">------------------------------</span><span style="color:rgb(153,153,153)">------------------------------</span><span style="color:rgb(153,153,153)">- 1.15s<br>container-registry : Install Docker ------------------------------</span><span style="color:rgb(153,153,153)">------------------------------</span><span style="color:rgb(153,153,153)">------------------------------</span><span style="color:rgb(153,153,153)">------------------------ 1.13s<br>Install ntpdate ------------------------------</span><span style="color:rgb(153,153,153)">------------------------------</span><span style="color:rgb(153,153,153)">------------------------------</span><span style="color:rgb(153,153,153)">------------------------------</span><span style="color:rgb(153,153,153)">-------------- 1.13s<br>container-registry : ensure docker-distribution is installed ------------------------------</span><span style="color:rgb(153,153,153)">------------------------------</span><span style="color:rgb(153,153,153)">----------------------------- 1.10s<br>Render deployment file for UndercloudDeployment ------------------------------</span><span style="color:rgb(153,153,153)">------------------------------</span><span style="color:rgb(153,153,153)">------------------------------</span><span style="color:rgb(153,153,153)">------------ 0.97s<br>container-registry : Start Docker daemon ------------------------------</span><span style="color:rgb(153,153,153)">------------------------------</span><span style="color:rgb(153,153,153)">------------------------------</span><span style="color:rgb(153,153,153)">------------------- 0.89s<br>tripleo-bootstrap : Check required packages are installed ------------------------------</span><span style="color:rgb(153,153,153)">------------------------------</span><span style="color:rgb(153,153,153)">------------------------------</span><span style="color:rgb(153,153,153)">-- 0.82s<br>allow logrotate to read inside containers ------------------------------</span><span style="color:rgb(153,153,153)">------------------------------</span><span style="color:rgb(153,153,153)">------------------------------</span><span style="color:rgb(153,153,153)">------------------ 0.78s<br>tripleo-ssh-known-hosts : Write temporary file ------------------------------</span><span style="color:rgb(153,153,153)">------------------------------</span><span style="color:rgb(153,153,153)">------------------------------</span><span style="color:rgb(153,153,153)">------------- 0.76s<br>Exception: Deployment failed<br>Traceback (most recent call last):<br>  File "/usr/lib/python2.7/site-</span><span style="color:rgb(153,153,153)">packages/tripleoclient/v1/</span><span style="color:rgb(153,153,153)">tripleo_deploy.py", line 1217, in _standalone_deploy<br>    raise exceptions.DeploymentError('</span><span style="color:rgb(153,153,153)">Deployment failed')<br>DeploymentError: Deployment failed<br>None<br>Install artifact is located at /home/stack/undercloud-</span><span style="color:rgb(153,153,153)">install-20200719161512.tar.</span><span style="color:rgb(153,153,153)">bzip2<br><br>!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!</span><span style="color:rgb(153,153,153)">!!!!!!!!!!!!!!!!!!!!!!!!!!!!<br><br>Deployment Failed!<br><br>ERROR: Heat log files: /var/log/heat-launcher/</span><span style="color:rgb(153,153,153)">undercloud_deploy-mzrbrN<br><br>!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!</span><span style="color:rgb(153,153,153)">!!!!!!!!!!!!!!!!!!!!!!!!!!!!<br><br>Deployment failed.<br><br>!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!</span><span style="color:rgb(153,153,153)">!!!!!!!!!!!!!!!!!!!!!!!!!!!!<br><br>An error has occured while deploying the Undercloud.<br><br>See the previous output for details about what went wrong.<br><br>!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!</span><span style="color:rgb(153,153,153)">!!!!!!!!!!!!!!!!!!!!!!!!!!!!<br><br>Command
 '['sudo', '--preserve-env', 'openstack', 'tripleo', 'deploy', 
'--standalone', '--standalone-role', 'Undercloud', '--stack', 
'undercloud', '--local-domain=localdomain', '--local-ip=<a href="http://172.31.50.11/24" target="_blank">172.31.50.11/24</a>', '--templates=/usr/share/</span><span style="color:rgb(153,153,153)">openstack-tripleo-heat-</span><span style="color:rgb(153,153,153)">templates/', '--heat-native', '-e', '/usr/share/openstack-tripleo-</span><span style="color:rgb(153,153,153)">heat-templates/environments/</span><span style="color:rgb(153,153,153)">docker.yaml', '-e', '/usr/share/openstack-tripleo-</span><span style="color:rgb(153,153,153)">heat-templates/environments/</span><span style="color:rgb(153,153,153)">undercloud.yaml', '-e', '/usr/share/openstack-tripleo-</span><span style="color:rgb(153,153,153)">heat-templates/environments/</span><span style="color:rgb(153,153,153)">use-dns-for-vips.yaml', '-e', '/usr/share/openstack-tripleo-</span><span style="color:rgb(153,153,153)">heat-templates/environments/</span><span style="color:rgb(153,153,153)">services/masquerade-networks.</span><span style="color:rgb(153,153,153)">yaml', '-e', '/usr/share/openstack-tripleo-</span><span style="color:rgb(153,153,153)">heat-templates/environments/</span><span style="color:rgb(153,153,153)">services/ironic.yaml', '-e', '/usr/share/openstack-tripleo-</span><span style="color:rgb(153,153,153)">heat-templates/environments/</span><span style="color:rgb(153,153,153)">services/ironic-inspector.</span><span style="color:rgb(153,153,153)">yaml', '-e', '/usr/share/openstack-tripleo-</span><span style="color:rgb(153,153,153)">heat-templates/environments/</span><span style="color:rgb(153,153,153)">services/mistral.yaml', '-e', '/usr/share/openstack-tripleo-</span><span style="color:rgb(153,153,153)">heat-templates/environments/</span><span style="color:rgb(153,153,153)">services/zaqar-swift-backend.</span><span style="color:rgb(153,153,153)">yaml', '-e', '/usr/share/openstack-tripleo-</span><span style="color:rgb(153,153,153)">heat-templates/environments/</span><span style="color:rgb(153,153,153)">disable-telemetry.yaml', '-e', '/usr/share/openstack-tripleo-</span><span style="color:rgb(153,153,153)">heat-templates/environments/</span><span style="color:rgb(153,153,153)">services/tripleo-ui.yaml', '-e', '/usr/share/openstack-tripleo-</span><span style="color:rgb(153,153,153)">heat-templates/environments/</span><span style="color:rgb(153,153,153)">services/tempest.yaml', '-e', '/usr/share/openstack-tripleo-</span><span style="color:rgb(153,153,153)">heat-templates/environments/</span><span style="color:rgb(153,153,153)">public-tls-undercloud.yaml',
 '--public-virtual-ip', '172.31.50.12', '--control-virtual-ip', 
'172.31.50.13', '-e', '/usr/share/openstack-tripleo-</span><span style="color:rgb(153,153,153)">heat-templates/environments/</span><span style="color:rgb(153,153,153)">ssl/tls-endpoints-public-ip.</span><span style="color:rgb(153,153,153)">yaml', '-e', '/usr/share/openstack-tripleo-</span><span style="color:rgb(153,153,153)">heat-templates/environments/</span><span style="color:rgb(153,153,153)">services/undercloud-haproxy.</span><span style="color:rgb(153,153,153)">yaml', '-e', '/usr/share/openstack-tripleo-</span><span style="color:rgb(153,153,153)">heat-templates/environments/</span><span style="color:rgb(153,153,153)">services/undercloud-</span><span style="color:rgb(153,153,153)">keepalived.yaml', '--deployment-user', 'stack', '--output-dir=/home/stack', '--cleanup', '-e', '/home/stack/tripleo-config-</span><span style="color:rgb(153,153,153)">generated-env-files/</span><span style="color:rgb(153,153,153)">undercloud_parameters.yaml', '-e', '/usr/share/openstack-tripleo-</span><span style="color:rgb(153,153,153)">heat-templates/environments/</span><span style="color:rgb(153,153,153)">tripleo-validations.yaml', '--log-file=install-</span><span style="color:rgb(153,153,153)">undercloud.log', '-e', '/usr/share/openstack-tripleo-</span><span style="color:rgb(153,153,153)">heat-templates/undercloud-</span><span style="color:rgb(153,153,153)">stack-vstate-dropin.yaml']' returned non-zero exit status 1<br>Command
 '['sudo', '--preserve-env', 'openstack', 'tripleo', 'deploy', 
'--standalone', '--standalone-role', 'Undercloud', '--stack', 
'undercloud', '--local-domain=localdomain', '--local-ip=<a href="http://172.31.50.11/24" target="_blank">172.31.50.11/24</a>', '--templates=/usr/share/</span><span style="color:rgb(153,153,153)">openstack-tripleo-heat-</span><span style="color:rgb(153,153,153)">templates/', '--heat-native', '-e', '/usr/share/openstack-tripleo-</span><span style="color:rgb(153,153,153)">heat-templates/environments/</span><span style="color:rgb(153,153,153)">docker.yaml', '-e', '/usr/share/openstack-tripleo-</span><span style="color:rgb(153,153,153)">heat-templates/environments/</span><span style="color:rgb(153,153,153)">undercloud.yaml', '-e', '/usr/share/openstack-tripleo-</span><span style="color:rgb(153,153,153)">heat-templates/environments/</span><span style="color:rgb(153,153,153)">use-dns-for-vips.yaml', '-e', '/usr/share/openstack-tripleo-</span><span style="color:rgb(153,153,153)">heat-templates/environments/</span><span style="color:rgb(153,153,153)">services/masquerade-networks.</span><span style="color:rgb(153,153,153)">yaml', '-e', '/usr/share/openstack-tripleo-</span><span style="color:rgb(153,153,153)">heat-templates/environments/</span><span style="color:rgb(153,153,153)">services/ironic.yaml', '-e', '/usr/share/openstack-tripleo-</span><span style="color:rgb(153,153,153)">heat-templates/environments/</span><span style="color:rgb(153,153,153)">services/ironic-inspector.</span><span style="color:rgb(153,153,153)">yaml', '-e', '/usr/share/openstack-tripleo-</span><span style="color:rgb(153,153,153)">heat-templates/environments/</span><span style="color:rgb(153,153,153)">services/mistral.yaml', '-e', '/usr/share/openstack-tripleo-</span><span style="color:rgb(153,153,153)">heat-templates/environments/</span><span style="color:rgb(153,153,153)">services/zaqar-swift-backend.</span><span style="color:rgb(153,153,153)">yaml', '-e', '/usr/share/openstack-tripleo-</span><span style="color:rgb(153,153,153)">heat-templates/environments/</span><span style="color:rgb(153,153,153)">disable-telemetry.yaml', '-e', '/usr/share/openstack-tripleo-</span><span style="color:rgb(153,153,153)">heat-templates/environments/</span><span style="color:rgb(153,153,153)">services/tripleo-ui.yaml', '-e', '/usr/share/openstack-tripleo-</span><span style="color:rgb(153,153,153)">heat-templates/environments/</span><span style="color:rgb(153,153,153)">services/tempest.yaml', '-e', '/usr/share/openstack-tripleo-</span><span style="color:rgb(153,153,153)">heat-templates/environments/</span><span style="color:rgb(153,153,153)">public-tls-undercloud.yaml',
 '--public-virtual-ip', '172.31.50.12', '--control-virtual-ip', 
'172.31.50.13', '-e', '/usr/share/openstack-tripleo-</span><span style="color:rgb(153,153,153)">heat-templates/environments/</span><span style="color:rgb(153,153,153)">ssl/tls-endpoints-public-ip.</span><span style="color:rgb(153,153,153)">yaml', '-e', '/usr/share/openstack-tripleo-</span><span style="color:rgb(153,153,153)">heat-templates/environments/</span><span style="color:rgb(153,153,153)">services/undercloud-haproxy.</span><span style="color:rgb(153,153,153)">yaml', '-e', '/usr/share/openstack-tripleo-</span><span style="color:rgb(153,153,153)">heat-templates/environments/</span><span style="color:rgb(153,153,153)">services/undercloud-</span><span style="color:rgb(153,153,153)">keepalived.yaml', '--deployment-user', 'stack', '--output-dir=/home/stack', '--cleanup', '-e', '/home/stack/tripleo-config-</span><span style="color:rgb(153,153,153)">generated-env-files/</span><span style="color:rgb(153,153,153)">undercloud_parameters.yaml', '-e', '/usr/share/openstack-tripleo-</span><span style="color:rgb(153,153,153)">heat-templates/environments/</span><span style="color:rgb(153,153,153)">tripleo-validations.yaml', '--log-file=install-</span><span style="color:rgb(153,153,153)">undercloud.log', '-e', '/usr/share/openstack-tripleo-</span><span style="color:rgb(153,153,153)">heat-templates/undercloud-</span><span style="color:rgb(153,153,153)">stack-vstate-dropin.yaml']' returned non-zero exit status 1<br></span></div><span style="color:rgb(153,153,153)"></span></div><br></div></div></div>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">Thanks & Regards<br>Pradeep Pal<br></div></div>