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

Bug #1800166 reported by Harald Jensås
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Invalid
High
Unassigned

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

Revision history for this message
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: https://docs.openstack.org/tripleo-docs/latest/install/advanced_deployment/ansible_config_download.html#run-config-download)

Revision history for this message
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]
                                       [--debug]

 Is it some container not having the latest stuff?

Revision history for this message
Harald Jensås (harald-jensas) wrote :

BLAME - docker.io/tripleomaster/centos-binary-mistral-executor:965941f1e62cef16967e7a7cd6d98263e52acb62_0989b280

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.