Overcloud deployment failed with the following error:
error: unrecognized arguments: --log-file /var/log/tripleo-container-image-prepare.log
TASK [Run tripleo-container-image-prepare logged to /var/log/tripleo-container-image-prepare.log] ***
Friday 26 October 2018 04:37:03 +0000 (0:00:00.498) 0:02:17.098 ********
[WARNING]: Consider using 'become', 'become_method', and 'become_user' rather
than running sudo
fatal: [undercloud]: FAILED! => {"changed": true, "cmd": "sudo /usr/bin/tripleo-container-image-prepare --roles-file /tmp/ansible.keUbll-role-data --environment-file /tmp/ansible.bqwiKz-prepare-param --cleanup partial --log-file /var/log/tripleo-container-image-prepare.log", "delta": "0:00:02.251481", "end": "2018-10-26 04:37:05.588623", "msg": "non-zero return code", "rc": 2, "start": "2018-10-26 04:37:03.337142", "stderr": "usage: tripleo-container-image-prepare [-h] --environment-file <file path>\n [--roles-file ROLES_FILE]\n [--cleanup <full, partial, none>]\ntripleo-container-image-prepare: error: unrecognized arguments: --log-file /var/log/tripleo-container-image-prepare.log", "stderr_lines": ["usage: tripleo-container-image-prepare [-h] --environment-file <file path>", " [--roles-file ROLES_FILE]", " [--cleanup <full, partial, none>]", "tripleo-container-image-prepare: error: unrecognized arguments: --log-file /var/log/tripleo-container-image-prepare.log"], "stdout": "", "stdout_lines": []}
I did'nt run into this error if I used config download, created an inventory and then ran the playbooks using the same stack. (Following guidelines from here: https:/ /docs.openstack .org/tripleo- docs/latest/ install/ advanced_ deployment/ ansible_ config_ download. html#run- config- download)