tripleo-container-image-prepare :: unrecognized arguments: --log-file

Bug #1800166 reported by Harald Jensås on 2018-10-26
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

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": []}

Harald Jensås (harald-jensas) wrote :

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:

Harald Jensås (harald-jensas) wrote :

The usage info in that error indicate that this is not running the script in the root filesystem:

["usage: tripleo-container-image-prepare [-h] --environment-file <file path>", " [--roles-file ROLES_FILE]", " [--cleanup <full, partial, none>]"

[root@undercloud ~]# /usr/bin/tripleo-container-image-prepare
usage: tripleo-container-image-prepare [-h] --environment-file <file path>
                                       [--roles-file ROLES_FILE]
                                       [--cleanup <full, partial, none>]
                                       [--log-file <file path>] [--dry-run]

 Is it some container not having the latest stuff?

Harald Jensås (harald-jensas) wrote :


Changed in tripleo:
status: Triaged → Invalid
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers