qemu-img not available in mistral executor

Bug #1816382 reported by Carlos Goncalves
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Undecided
Carlos Goncalves

Bug Description

The Octavia playbook in tripleo-common and run in Mistral executor fails because qemu-img is not available. This happens when either the operator explicitly instructs TripleO to convert the amphora qcow2 file to raw format or when Ceph is enabled.

Patch that added dependency on qemu-img: https://review.openstack.org/#/c/577573/

    "TASK [octavia-undercloud : create temporary directory] *************************",
    "Tuesday 12 February 2019 12:16:46 -0500 (0:00:00.080) 0:00:12.589 ****** ",
    "changed: [undercloud-0]",
    "",
    "TASK [octavia-undercloud : set RAW file name] **********************************",
    "Tuesday 12 February 2019 12:16:47 -0500 (0:00:00.369) 0:00:12.958 ****** ",
    "ok: [undercloud-0]",
    "",
    "TASK [octavia-undercloud : convert image from qcow2 to raw] ********************",
    "Tuesday 12 February 2019 12:16:47 -0500 (0:00:00.078) 0:00:13.036 ****** ",
    "fatal: [undercloud-0]: FAILED! => {\"changed\": true, \"cmd\": \"qemu-img convert -f qcow2 -O raw /usr/share/openstack-octavia-amphora-images/octavia-amphora.qcow2 /tmp/ansible.pBX8Sr/octavia-amphora.img\", \"delta\": \"0:00:00.004194\", \"end\": \"2019-02-12 12:16:47.259985\", \"msg\": \"non-zero return code\", \"rc\": 127, \"start\": \"2019-02-12 12:16:47.255791\", \"stderr\": \"/bin/sh: qemu-img: command not found\", \"stderr_lines\": [\"/bin/sh: qemu-img: command not found\"], \"stdout\": \"\", \"stdout_lines\": []}",
    "",
    "PLAY RECAP *********************************************************************",
    "undercloud-0 : ok=10 changed=2 unreachable=0 failed=1 ",
    "",
    "Tuesday 12 February 2019 12:16:47 -0500 (0:00:00.190) 0:00:13.227 ****** ",
    "=============================================================================== "

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-common (master)

Fix proposed to branch: master
Review: https://review.openstack.org/637515

Changed in tripleo:
assignee: nobody → Carlos Goncalves (cgoncalves)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-common (master)

Reviewed: https://review.openstack.org/637515
Committed: https://git.openstack.org/cgit/openstack/tripleo-common/commit/?id=0381d6cc370ec6309fb68133c7b7f655364aa837
Submitter: Zuul
Branch: master

commit 0381d6cc370ec6309fb68133c7b7f655364aa837
Author: Carlos Goncalves <email address hidden>
Date: Mon Feb 18 11:11:25 2019 +0100

    Append qemu-img to Mistral executor package list

    The Octavia playbook in tripleo-common and run in Mistral executor fails
    because qemu-img is not available. This happens when either the operator
    explicitly instructs TripleO to convert the amphora qcow2 file to raw
    format or when Ceph is enabled.

    This patch appends qemu-img to the package list so that the command is
    available in the mistral-executor container.

    Closes-Bug: #1816382

    Change-Id: I5aba5ba0a800aabe6e662a333e3f0436c1b563a0

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-common (stable/rocky)

Fix proposed to branch: stable/rocky
Review: https://review.openstack.org/638446

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-common (stable/rocky)

Reviewed: https://review.openstack.org/638446
Committed: https://git.openstack.org/cgit/openstack/tripleo-common/commit/?id=50c9efc9a3a2abcdfe149ab70faff84dc09b857d
Submitter: Zuul
Branch: stable/rocky

commit 50c9efc9a3a2abcdfe149ab70faff84dc09b857d
Author: Carlos Goncalves <email address hidden>
Date: Mon Feb 18 11:11:25 2019 +0100

    Append qemu-img to Mistral executor package list

    The Octavia playbook in tripleo-common and run in Mistral executor fails
    because qemu-img is not available. This happens when either the operator
    explicitly instructs TripleO to convert the amphora qcow2 file to raw
    format or when Ceph is enabled.

    This patch appends qemu-img to the package list so that the command is
    available in the mistral-executor container.

    Conflicts:
        container-images/tripleo_kolla_template_overrides.j2

    Closes-Bug: #1816382

    Change-Id: I5aba5ba0a800aabe6e662a333e3f0436c1b563a0
    (cherry picked from commit 0381d6cc370ec6309fb68133c7b7f655364aa837)

tags: added: in-stable-rocky
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-common 10.5.0

This issue was fixed in the openstack/tripleo-common 10.5.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-common 9.6.0

This issue was fixed in the openstack/tripleo-common 9.6.0 release.

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.