[rdo-users] Tripleo Undercloud deploy failes on rsyslogd centos 7

Pradeep Pal pspal83 at gmail.com
Mon Jul 20 04:42:52 UTC 2020


Hi Brendan,

Yes, you are right, after downgrade the version, the problem is fixed.
Thanks for your support.

Thanks and regards
Pradeep


On Mon, Jul 20, 2020 at 3:31 AM Brendan Shephard <brendan.shephard at gmail.com>
wrote:

> Hey Pradeep,
>
> It looks like your issue here is that you have Ansible >2.9 and that
> Playbook is written using formatting from Ansible 2.8.
>
> I can't find the exact change that did it, but as of Ansible 2.9 the when:
> something|changed conditional needs to be written like when: something is
> changed
>
> And you can also see that difference in tripleo-heat-templates after Rocky:
> Your version:
>
> https://opendev.org/openstack/tripleo-heat-templates/src/branch/stable/rocky/docker/services/swift-proxy.yaml#L266-L269
>
> Updated version in Train:
>
> https://opendev.org/openstack/tripleo-heat-templates/src/branch/stable/train/deployment/swift/swift-proxy-container-puppet.yaml#L464-L467
>
> I think it should work for you if you downgrade the version of Ansible
> you're using to Ansible 2.8.
>
>
> --
> Brendan Shephard
>
>
> Hi,
>
> I have tried to install OpenStack via TripleO (Rocky), but always getting
> the error below.
>
> Please help me to solve this problem, I have read many docs but how to fix
> it No idea found.
>
> TASK [Restart rsyslogd service after logging conf change]
> ************************************************************
> ***************************************
> 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-ansible-ibPUGS/Undercloud/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"}
>
> NO MORE HOSTS LEFT ******************************
> ************************************************************
> ************************************************
>
> PLAY RECAP ************************************************************
> ************************************************************
> **************************
> mgmt01                     : ok=185  changed=53   unreachable=0
>  failed=1    skipped=164  rescued=0    ignored=1
>
> Sunday 19 July 2020  21:45:12 +0530 (0:00:00.031)       0:01:34.752
> ***********
> ============================================================
> ===================
> Ensure system is NTP time synced ------------------------------
> ---------------------------------------------------------------------------------------
> 7.47s
> Run async deployment NetworkDeployment ------------------------------
> ---------------------------------------------------------------------------------
> 4.05s
> Run deployment UndercloudAllNodesDeployment ------------------------------
> ----------------------------------------------------------------------------
> 2.11s
> Run deployment UndercloudDeployment ------------------------------
> ------------------------------------------------------------------------------------
> 2.09s
> Run deployment InstanceIdDeployment ------------------------------
> ------------------------------------------------------------------------------------
> 2.08s
> Run deployment UndercloudAllNodesValidationDeployment
> ------------------------------------------------------------
> ------------------------------------ 1.92s
> Run deployment HostsEntryDeployment ------------------------------
> ------------------------------------------------------------------------------------
> 1.71s
> Run deployment UndercloudPreDeployment ------------------------------
> ---------------------------------------------------------------------------------
> 1.68s
> Run deployment UndercloudHostsDeployment ------------------------------
> -------------------------------------------------------------------------------
> 1.68s
> Run deployment UndercloudArtifactsDeploy ------------------------------
> -------------------------------------------------------------------------------
> 1.67s
> tripleo-bootstrap : Deploy required packages to bootstrap TripleO
> ------------------------------------------------------------------------------------
> 1.59s
> Remove dracut-config-generic ------------------------------
> ------------------------------------------------------------
> ------------------------------- 1.15s
> container-registry : Install Docker ------------------------------
> ------------------------------------------------------------------------------------
> 1.13s
> Install ntpdate ------------------------------
> ------------------------------------------------------------
> -------------------------------------------- 1.13s
> container-registry : ensure docker-distribution is installed
> -----------------------------------------------------------------------------------------
> 1.10s
> Render deployment file for UndercloudDeployment
> ------------------------------------------------------------
> ------------------------------------------ 0.97s
> container-registry : Start Docker daemon ------------------------------
> -------------------------------------------------------------------------------
> 0.89s
> tripleo-bootstrap : Check required packages are installed
> ------------------------------------------------------------
> -------------------------------- 0.82s
> allow logrotate to read inside containers ------------------------------
> ------------------------------------------------------------------------------
> 0.78s
> tripleo-ssh-known-hosts : Write temporary file
> ------------------------------------------------------------
> ------------------------------------------- 0.76s
> Exception: Deployment failed
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/site-packages/tripleoclient/v1/tripleo_deploy.py",
> line 1217, in _standalone_deploy
>     raise exceptions.DeploymentError('Deployment failed')
> DeploymentError: Deployment failed
> None
> Install artifact is located at /home/stack/undercloud-
> install-20200719161512.tar.bzip2
>
> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
>
> Deployment Failed!
>
> ERROR: Heat log files: /var/log/heat-launcher/undercloud_deploy-mzrbrN
>
> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
>
> Deployment failed.
>
> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
>
> An error has occured while deploying the Undercloud.
>
> See the previous output for details about what went wrong.
>
> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
>
> Command '['sudo', '--preserve-env', 'openstack', 'tripleo', 'deploy',
> '--standalone', '--standalone-role', 'Undercloud', '--stack', 'undercloud',
> '--local-domain=localdomain', '--local-ip=172.31.50.11/24',
> '--templates=/usr/share/openstack-tripleo-heat-templates/',
> '--heat-native', '-e', '/usr/share/openstack-tripleo-
> heat-templates/environments/docker.yaml', '-e',
> '/usr/share/openstack-tripleo-heat-templates/environments/undercloud.yaml',
> '-e', '/usr/share/openstack-tripleo-heat-templates/environments/use-dns-for-vips.yaml',
> '-e', '/usr/share/openstack-tripleo-heat-templates/environments/
> services/masquerade-networks.yaml', '-e', '/usr/share/openstack-tripleo-
> heat-templates/environments/services/ironic.yaml', '-e',
> '/usr/share/openstack-tripleo-heat-templates/environments/
> services/ironic-inspector.yaml', '-e', '/usr/share/openstack-tripleo-
> heat-templates/environments/services/mistral.yaml', '-e',
> '/usr/share/openstack-tripleo-heat-templates/environments/
> services/zaqar-swift-backend.yaml', '-e', '/usr/share/openstack-tripleo-
> heat-templates/environments/disable-telemetry.yaml', '-e',
> '/usr/share/openstack-tripleo-heat-templates/environments/services/tripleo-ui.yaml',
> '-e', '/usr/share/openstack-tripleo-heat-templates/environments/services/tempest.yaml',
> '-e', '/usr/share/openstack-tripleo-heat-templates/environments/public-tls-undercloud.yaml',
> '--public-virtual-ip', '172.31.50.12', '--control-virtual-ip',
> '172.31.50.13', '-e', '/usr/share/openstack-tripleo-
> heat-templates/environments/ssl/tls-endpoints-public-ip.yaml', '-e',
> '/usr/share/openstack-tripleo-heat-templates/environments/
> services/undercloud-haproxy.yaml', '-e', '/usr/share/openstack-tripleo-
> heat-templates/environments/services/undercloud-keepalived.yaml',
> '--deployment-user', 'stack', '--output-dir=/home/stack', '--cleanup',
> '-e', '/home/stack/tripleo-config-generated-env-files/undercloud_parameters.yaml',
> '-e', '/usr/share/openstack-tripleo-heat-templates/environments/tripleo-validations.yaml',
> '--log-file=install-undercloud.log', '-e', '/usr/share/openstack-tripleo-
> heat-templates/undercloud-stack-vstate-dropin.yaml']' returned non-zero
> exit status 1
> Command '['sudo', '--preserve-env', 'openstack', 'tripleo', 'deploy',
> '--standalone', '--standalone-role', 'Undercloud', '--stack', 'undercloud',
> '--local-domain=localdomain', '--local-ip=172.31.50.11/24',
> '--templates=/usr/share/openstack-tripleo-heat-templates/',
> '--heat-native', '-e', '/usr/share/openstack-tripleo-
> heat-templates/environments/docker.yaml', '-e',
> '/usr/share/openstack-tripleo-heat-templates/environments/undercloud.yaml',
> '-e', '/usr/share/openstack-tripleo-heat-templates/environments/use-dns-for-vips.yaml',
> '-e', '/usr/share/openstack-tripleo-heat-templates/environments/
> services/masquerade-networks.yaml', '-e', '/usr/share/openstack-tripleo-
> heat-templates/environments/services/ironic.yaml', '-e',
> '/usr/share/openstack-tripleo-heat-templates/environments/
> services/ironic-inspector.yaml', '-e', '/usr/share/openstack-tripleo-
> heat-templates/environments/services/mistral.yaml', '-e',
> '/usr/share/openstack-tripleo-heat-templates/environments/
> services/zaqar-swift-backend.yaml', '-e', '/usr/share/openstack-tripleo-
> heat-templates/environments/disable-telemetry.yaml', '-e',
> '/usr/share/openstack-tripleo-heat-templates/environments/services/tripleo-ui.yaml',
> '-e', '/usr/share/openstack-tripleo-heat-templates/environments/services/tempest.yaml',
> '-e', '/usr/share/openstack-tripleo-heat-templates/environments/public-tls-undercloud.yaml',
> '--public-virtual-ip', '172.31.50.12', '--control-virtual-ip',
> '172.31.50.13', '-e', '/usr/share/openstack-tripleo-
> heat-templates/environments/ssl/tls-endpoints-public-ip.yaml', '-e',
> '/usr/share/openstack-tripleo-heat-templates/environments/
> services/undercloud-haproxy.yaml', '-e', '/usr/share/openstack-tripleo-
> heat-templates/environments/services/undercloud-keepalived.yaml',
> '--deployment-user', 'stack', '--output-dir=/home/stack', '--cleanup',
> '-e', '/home/stack/tripleo-config-generated-env-files/undercloud_parameters.yaml',
> '-e', '/usr/share/openstack-tripleo-heat-templates/environments/tripleo-validations.yaml',
> '--log-file=install-undercloud.log', '-e', '/usr/share/openstack-tripleo-
> heat-templates/undercloud-stack-vstate-dropin.yaml']' returned non-zero
> exit status 1
>
>

-- 
Thanks & Regards
Pradeep Pal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rdoproject.org/pipermail/users/attachments/20200720/64b5dd3e/attachment-0001.html>


More information about the users mailing list