Allow option for amphora image to be automatically uploaded in raw format

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

Bug Description

When deploying an overcloud with Octavia, the amphora image is uploaded to Glance as QCOW2. When using the RBD backend for Glance and Nova, this causes the image to be converted to RAW on each deployment. With slower storage, this leads to load balancer creation to fail with a compute timeout exception from Octavia.

It would be nice to have an option to cause the post-deploy workflow to convert this image to raw and upload it as such automatically rather than having the user delete our automatically-uploaded image and replace it with a new one every time.

Initially reported at https://bugzilla.redhat.com/show_bug.cgi?id=1593341

tags: added: queens-backport-potential
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/577573

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

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

Changed in tripleo:
milestone: none → rocky-3
importance: Undecided → Medium
Changed in tripleo:
milestone: rocky-3 → rocky-rc1
Changed in tripleo:
milestone: rocky-rc1 → stein-1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (master)

Reviewed: https://review.openstack.org/592938
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=a33d42abb6f31149769627b6fc316b02d3c51726
Submitter: Zuul
Branch: master

commit a33d42abb6f31149769627b6fc316b02d3c51726
Author: Carlos Goncalves <email address hidden>
Date: Fri Aug 17 10:54:51 2018 +0200

    scenario010: enable Ceph RBD

    Enabling Ceph on scenario010 allow us to test conversion of amphora
    image format from QCOW2 to RAW in octavia-undercloud role in
    tripleo-common.

    This patch also removes NeutronServicePlugins from being set (in line
    with I3da329db28701c7e9798083982953c5c9c861c50) and unchecks Octavia
    from scenario003 in the service testing matrix set previously by
    mistake.

    Partial-Bug: #1778303
    Related-Bug: #1722758

    Change-Id: I717301dc0777ecd2118253a86cd1f8353539482f

Changed in tripleo:
milestone: stein-1 → stein-2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-common (master)

Reviewed: https://review.openstack.org/577573
Committed: https://git.openstack.org/cgit/openstack/tripleo-common/commit/?id=73631a23ee3bc1abeaad30590dde3a62c3c387fb
Submitter: Zuul
Branch: master

commit 73631a23ee3bc1abeaad30590dde3a62c3c387fb
Author: Carlos Goncalves <email address hidden>
Date: Fri Jun 22 18:24:31 2018 -0400

    Option to upload Octavia amphora img in RAW format

    When deploying an overcloud with Octavia, the amphora image is uploaded
    to Glance as QCOW2. When using the RBD backend for Glance and Nova, this
    causes the image to be converted to RAW on each deployment. With slower
    storage, this leads to load balancer creation to fail with a compute
    timeout exception from Octavia.

    This patch adds an option to allow amphora image to be automatically
    uploaded to Glance in raw format.

    Partial-Bug: #1778303
    Change-Id: I698ed96881756bb547f5338b147b0c795103acb5

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/624393

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

Fix proposed to branch: stable/queens
Review: https://review.openstack.org/624394

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

Reviewed: https://review.openstack.org/624394
Committed: https://git.openstack.org/cgit/openstack/tripleo-common/commit/?id=a95b5c5b1d1922bd1209cf05eed8ac126fbcc0fb
Submitter: Zuul
Branch: stable/queens

commit a95b5c5b1d1922bd1209cf05eed8ac126fbcc0fb
Author: Carlos Goncalves <email address hidden>
Date: Fri Jun 22 18:24:31 2018 -0400

    Option to upload Octavia amphora img in RAW format

    When deploying an overcloud with Octavia, the amphora image is uploaded
    to Glance as QCOW2. When using the RBD backend for Glance and Nova, this
    causes the image to be converted to RAW on each deployment. With slower
    storage, this leads to load balancer creation to fail with a compute
    timeout exception from Octavia.

    This patch adds an option to allow amphora image to be automatically
    uploaded to Glance in raw format.

    Partial-Bug: #1778303
    Change-Id: I698ed96881756bb547f5338b147b0c795103acb5
    (cherry picked from commit 73631a23ee3bc1abeaad30590dde3a62c3c387fb)

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

Reviewed: https://review.openstack.org/624393
Committed: https://git.openstack.org/cgit/openstack/tripleo-common/commit/?id=48ab9fa95a43d35b7bd21b46c26e2d07e2b42b55
Submitter: Zuul
Branch: stable/rocky

commit 48ab9fa95a43d35b7bd21b46c26e2d07e2b42b55
Author: Carlos Goncalves <email address hidden>
Date: Fri Jun 22 18:24:31 2018 -0400

    Option to upload Octavia amphora img in RAW format

    When deploying an overcloud with Octavia, the amphora image is uploaded
    to Glance as QCOW2. When using the RBD backend for Glance and Nova, this
    causes the image to be converted to RAW on each deployment. With slower
    storage, this leads to load balancer creation to fail with a compute
    timeout exception from Octavia.

    This patch adds an option to allow amphora image to be automatically
    uploaded to Glance in raw format.

    Partial-Bug: #1778303
    Change-Id: I698ed96881756bb547f5338b147b0c795103acb5
    (cherry picked from commit 73631a23ee3bc1abeaad30590dde3a62c3c387fb)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (master)

Reviewed: https://review.openstack.org/577579
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=6d1a5b6bc27d34ee4ef58cbce5a5e087b1736791
Submitter: Zuul
Branch: master

commit 6d1a5b6bc27d34ee4ef58cbce5a5e087b1736791
Author: Carlos Goncalves <email address hidden>
Date: Fri Jun 22 19:20:21 2018 -0400

    Upload amphora image in RAW format if RBD backend

    When deploying an overcloud with Octavia enabled, the amphora image is
    uploaded to Glance as QCOW2. When using the RBD backend for Glance and
    Nova, this causes the image to be converted to RAW on each deployment.
    With slower storage, this leads to load balancer creation to fail with a
    compute timeout exception from Octavia.

    This patch makes TripleO oppiniated. If Ceph is being used, it will
    automatically convert the QCOW2 file to RAW before uploading to Glance.
    The upfront cost of conversion to RAW and uploading to Glance is worth
    the performance improvements.

    Closes-Bug: #1778303
    Depends-On: https://review.openstack.org/#/c/577573/
    Change-Id: If36c87e783b532b1e8b368d8e18f5a83b581b933

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

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (stable/queens)

Fix proposed to branch: stable/queens
Review: https://review.openstack.org/625981

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

Reviewed: https://review.openstack.org/625978
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=cdeb05ca1fc60b4b52ea26b57fdddcdf8d294ed5
Submitter: Zuul
Branch: stable/rocky

commit cdeb05ca1fc60b4b52ea26b57fdddcdf8d294ed5
Author: Carlos Goncalves <email address hidden>
Date: Fri Jun 22 19:20:21 2018 -0400

    Upload amphora image in RAW format if RBD backend

    When deploying an overcloud with Octavia enabled, the amphora image is
    uploaded to Glance as QCOW2. When using the RBD backend for Glance and
    Nova, this causes the image to be converted to RAW on each deployment.
    With slower storage, this leads to load balancer creation to fail with a
    compute timeout exception from Octavia.

    This patch makes TripleO oppiniated. If Ceph is being used, it will
    automatically convert the QCOW2 file to RAW before uploading to Glance.
    The upfront cost of conversion to RAW and uploading to Glance is worth
    the performance improvements.

    Closes-Bug: #1778303
    Depends-On: https://review.openstack.org/#/c/577573/
    Change-Id: If36c87e783b532b1e8b368d8e18f5a83b581b933
    (cherry picked from commit 6d1a5b6bc27d34ee4ef58cbce5a5e087b1736791)

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

Reviewed: https://review.openstack.org/625981
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=cd0b38ea3219ddabf3643f0e8968f1495d368fb1
Submitter: Zuul
Branch: stable/queens

commit cd0b38ea3219ddabf3643f0e8968f1495d368fb1
Author: Carlos Goncalves <email address hidden>
Date: Fri Jun 22 19:20:21 2018 -0400

    Upload amphora image in RAW format if RBD backend

    When deploying an overcloud with Octavia enabled, the amphora image is
    uploaded to Glance as QCOW2. When using the RBD backend for Glance and
    Nova, this causes the image to be converted to RAW on each deployment.
    With slower storage, this leads to load balancer creation to fail with a
    compute timeout exception from Octavia.

    This patch makes TripleO oppiniated. If Ceph is being used, it will
    automatically convert the QCOW2 file to RAW before uploading to Glance.
    The upfront cost of conversion to RAW and uploading to Glance is worth
    the performance improvements.

    Conflicts:
        docker/services/octavia/octavia-deployment-config.yaml

    Closes-Bug: #1778303
    Depends-On: https://review.openstack.org/#/c/577573/
    Change-Id: If36c87e783b532b1e8b368d8e18f5a83b581b933
    (cherry picked from commit 6d1a5b6bc27d34ee4ef58cbce5a5e087b1736791)
    (cherry picked from commit cdeb05ca1fc60b4b52ea26b57fdddcdf8d294ed5)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates 9.2.0

This issue was fixed in the openstack/tripleo-heat-templates 9.2.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates 10.3.0

This issue was fixed in the openstack/tripleo-heat-templates 10.3.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates 8.3.0

This issue was fixed in the openstack/tripleo-heat-templates 8.3.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.