Undercloud deploy fails at rsyslog

asked 2020-07-02 08:39:48 -0500

kendrick gravatar image

I have attempted to install tripleo several times and keep getting errrors on centos. I used the same config on rhel and it completes normally.

TASK [Restart rsyslogd service after logging conf change] *************************************************************************fatal: [ucloud]: 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-qjinqf/Undercloud/host_prep_tasks.yaml': line 807, 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 ***

I looked in the play book and the item listed was *- name: Check if rsyslog exists register: rsyslog_config stat: path: /etc/rsyslog.d - block: - copy: content: '# Fix for https://bugs.launchpad.net/tripleo/+bug/1776180 (https://bugs.launchpad.net/tripleo/+b...)

    local2.*                 /var/log/containers/swift/swift.log

    &                        stop

    '
  dest: /etc/rsyslog.d/openstack-swift.conf
name: Forward logging to swift.log file
register: logconfig

- name: Restart rsyslogd service after logging conf change service: name=rsyslog state=restarted when: - logconfig|changed when: rsyslog_config.stat.exists - file: path: '{{ item }}' state: directory name: create persistent directories with_items: - /srv/node - /var/cache/swift - /var/log/swift - /var/log/containers - /var/log/containers/swift *

I found the config file created in rsyslog.d but no sift.log in the containers folder. any thoughts on how to figure this out would be appriciated.

edit retag flag offensive close merge delete