Bug 1700178 - Octavia amphora image uploaded into glance even if it already exists
Summary: Octavia amphora image uploaded into glance even if it already exists
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-common
Version: 13.0 (Queens)
Hardware: x86_64
OS: Linux
low
low
Target Milestone: z11
: 13.0 (Queens)
Assignee: Brent Eagles
QA Contact: Bruna Bonguardo
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-04-16 04:59 UTC by Matt Parkinson
Modified: 2024-06-13 22:06 UTC (History)
15 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-04-29 11:12:51 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1843059 0 None None None 2019-12-02 15:10:10 UTC
OpenStack gerrit 680756 0 'None' NEW Move away from md5 digests in managing octavia amphora images 2021-03-24 15:35:03 UTC
Red Hat Bugzilla 1745643 0 medium CLOSED openstack-tripleo-common image_mgmt.yml playbook contains invalid "when" condition in task "set image id fact" 2023-12-15 16:44:16 UTC
Red Hat Issue Tracker OSP-2281 0 None None None 2022-08-26 12:39:29 UTC

Description Matt Parkinson 2019-04-16 04:59:28 UTC
Description of problem:

During an overcloud deploy and subsequent stack updates, an md5sum is taken of the Octavia amphora image file (/usr/share/rhosp-director-images/octavia-amphora.qcow2). This is compared to the checksum of the existing amphora image in glance before deciding whether or not to upload the amphora image file into glance.

These checksums are always different, resulting in the image being unnecessarily uploaded on every overcloud stack update. The reason is that the local Octavia image file is converted from qcow2 to raw format before being uploaded into glance. This occurs after the checksum is taken, not before.

Manually performing an md5sum on the converted image (in my case /tmp/ansible.mRsIIP/octavia-amphora.img) shows that the checksums match between the converted image and the glance image checksum of an existing image.

The playbook logic needs to be fixed, probably to perform the image conversion first, then run a checksum and compare to the glance image checksum.


Version-Release number of selected component (if applicable):

octavia-amphora-image-x86_64-13.0-20190304.1.el7ost.noarch
octavia-amphora-image-13.0-20190304.1.el7ost.noarch
puppet-octavia-12.4.0-8.el7ost.noarch


How reproducible:

Always


Steps to Reproduce:
1. Deploy OSP13 overcloud with Octavia
2. Run `openstack overcloud deploy` again
3. Check glance images


Actual results:

Octavia amphora image is continually re-uploaded


Expected results:

checksum should confirm that image upload is not necessary


Additional info:

Comment 5 Phuong 2019-11-27 00:42:48 UTC
Hi,

We are still experiencing this issue on z8 release.


Phuong

Comment 6 Carlos Goncalves 2019-11-27 08:36:51 UTC
Engineering acknowledges this issue. However, how does this negatively impact customers other than taking a few more seconds on stack update?
This BZ was set with severity by the reporter and received priority low by Engineering. Please let us know if there's a considerable impact we have not considered, we can reconsider priority.

Comment 8 Carlos Goncalves 2019-12-02 15:10:10 UTC
As part of fixing BZ#1745643, the associated patch will also fix the issue here reported.

Comment 15 AMOL LONARE 2021-02-26 11:57:51 UTC
HI all,
Do we have any update on this BZ?

Regards,
Amol Lonare


Note You need to log in before you can comment on or make changes to this bug.