Rocky promotion jobs failing on tripleo-modify-image-playbook

Bug #1836048 reported by Arx Cruz on 2019-07-10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Emilien Macchi

Bug Description

INFO:tripleo_common.image.image_uploader:Running skopeo inspect docker://
INFO:tripleo_common.image.image_uploader:Running skopeo inspect docker://
INFO:tripleo_common.image.image_uploader:Running skopeo inspect docker://
INFO:tripleo_common.image.image_uploader:Using config files: ['/tmp/tmpKwCtqL']
INFO:tripleo_common.image.image_uploader:Running skopeo inspect --tls-verify=false docker://
INFO:tripleo_common.actions.ansible:Running ansible-playbook command: ['ansible-playbook', '-vvvvv', '/tmp/tripleo-modify-image-playbook-eZNCvb/playbook.yaml']
Traceback (most recent call last):
  File "/usr/bin/tripleo-container-image-prepare", line 100, in <module>
    env, roles_data, cleanup=args.cleanup)
  File "/usr/lib/python2.7/site-packages/tripleo_common/image/", line 193, in container_images_prepare_multi
  File "/usr/lib/python2.7/site-packages/tripleo_common/image/", line 132, in upload
  File "/usr/lib/python2.7/site-packages/tripleo_common/image/", line 514, in run_tasks
    result = self.upload_image(*first)
  File "/usr/lib/python2.7/site-packages/tripleo_common/image/", line 262, in upload_image
    target_image_source_tag, append_tag)
  File "/usr/lib/python2.7/site-packages/tripleo_common/image/", line 212, in run_modify_playbook
    result =
  File "/usr/lib/python2.7/site-packages/tripleo_common/actions/", line 589, in run
  File "/usr/lib/python2.7/site-packages/oslo_concurrency/", line 424, in execute
oslo_concurrency.processutils.ProcessExecutionError: Unexpected error while running command.
Command: ansible-playbook -vvvvv /tmp/tripleo-modify-image-playbook-eZNCvb/playbook.yaml
Exit code: 2

[tripleo-modify-image : Set original_user with Docker] ********************
task path: /usr/share/ansible/roles/tripleo-modify-image/tasks/get_original_user.yml:23
Wednesday 10 July 2019 05:13:19 +0000 (0:00:00.054) 0:00:02.284 ********
fatal: [localhost]: FAILED! => {

The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'images'

The error appears to have been in '/usr/share/ansible/roles/tripleo-modify-image/tasks/get_original_user.yml': line 23, column 7, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

      when: source_image_facts.images | length == 0
    - name: Set original_user with Docker
      ^ here

Emilien Macchi (emilienm) wrote :

It's a bug in Ansible, we can reproduce with this simple playbook:

I'll file the issue and in the meantime we have a workaround :

Emilien Macchi (emilienm) wrote :

Turns out it's an expected behaviour in Ansible:

Changed in tripleo:
status: Triaged → In Progress
Alex Schultz (alex-schultz) wrote :
Changed in tripleo:
assignee: nobody → Emilien Macchi (emilienm)
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

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