Bug 1784903

Summary: [OSP 16] Update: Undercloud failed due the image octavia-amphora conflicts with file from package octavia-amphora-image
Product: Red Hat OpenStack Reporter: Yuri Obshansky <yobshans>
Component: rhosp-director-imagesAssignee: Lon Hohberger <lhh>
Status: CLOSED ERRATA QA Contact: Sasha Smolyak <ssmolyak>
Severity: urgent Docs Contact:
Priority: high    
Version: 16.0 (Train)CC: amuller, cgoncalves, gregraka, gthiemon, lhh, mburns, oblaut, ramishra, sclewis, slinaber
Target Milestone: gaKeywords: AutomationBlocker, Triaged
Target Release: 16.0 (Train on RHEL 8.1)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rhosp-director-images-16.0-20200110.2.el8ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-02-06 14:32:08 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
undercloud_update.log none

Description Yuri Obshansky 2019-12-18 16:09:19 UTC
Created attachment 1646132 [details]
undercloud_update.log

Description of problem:
Undercloud update failed 
2019-12-18 04:21:41 | TASK [Update all packages] *****************************************************
2019-12-18 04:21:41 | Wednesday 18 December 2019  04:21:41 +0000 (0:00:00.448)       0:00:40.406 ****
2019-12-18 04:22:27 | fatal: [site-undercloud-0]: FAILED! => {"changed": false, "failures": [], "msg": "Unknown Error occured: Transaction check e
rror:\n  file /usr/share/openstack-octavia-amphora-images/octavia-amphora-16.0-20191213.2-x86_64-rpm.manifest from install of octavia-amphora-imag
e-x86_64-16.0-20191217.1.el8ost.noarch conflicts with file from package octavia-amphora-image-x86_64-16.0-20191213.2.el8ost.noarch\n  file /usr/sh
are/openstack-octavia-amphora-images/octavia-amphora-16.0-20191213.2-x86_64-signature.manifest from install of octavia-amphora-image-x86_64-16.0-2
0191217.1.el8ost.noarch conflicts with file from package octavia-amphora-image-x86_64-16.0-20191213.2.el8ost.noarch\n  file /usr/share/openstack-o
ctavia-amphora-images/octavia-amphora-16.0-20191213.2.x86_64-CHECKSUM.md5 from install of octavia-amphora-image-x86_64-16.0-20191217.1.el8ost.noar
ch conflicts with file from package octavia-amphora-image-x86_64-16.0-20191213.2.el8ost.noarch\n  file /usr/share/openstack-octavia-amphora-images
/octavia-amphora-16.0-20191213.2.x86_64-CHECKSUM.sha256 from install of octavia-amphora-image-x86_64-16.0-20191217.1.el8ost.noarch conflicts with 
file from package octavia-amphora-image-x86_64-16.0-20191213.2.el8ost.noarch\n  file /usr/share/openstack-octavia-amphora-images/octavia-amphora-1
6.0-20191213.2.x86_64.qcow2 from install of octavia-amphora-image-x86_64-16.0-20191217.1.el8ost.noarch conflicts with file from package octavia-am
phora-image-x86_64-16.0-20191213.2.el8ost.noarch\n", "rc": 1, "results": []}
......
2019-12-18 04:22:27 | Exception: Upgrade failed
2019-12-18 04:22:27 | Traceback (most recent call last):
2019-12-18 04:22:27 |   File "/usr/lib/python3.6/site-packages/tripleoclient/v1/tripleo_deploy.py", line 1318, in _standalone_deploy
2019-12-18 04:22:27 |     raise exceptions.DeploymentError('Upgrade failed')
2019-12-18 04:22:27 | tripleoclient.exceptions.DeploymentError: Upgrade failed


Version-Release number of selected component (if applicable):
Performed update from 
passed_phase2 (RHOS_TRUNK-16.0-RHEL-8-20191213.n.5)
to
passed_phase1 (RHOS_TRUNK-16.0-RHEL-8-20191217.n.1)

How reproducible:
Jenkins job:
https://rhos-ci-staging-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/view/DFG/view/edge/job/DFG-edge-day2-16-rhel-virthost-3cont-2comp-2leafs-x-2comp-update/32/console

Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 Gregory Thiemonge 2020-01-07 10:03:58 UTC
octavia-amphora-image packages have different versions but they share the same content:

$ rpm -qpl octavia-amphora-image-x86_64-16.0-20191213.2.el8ost.noarch.rpm
/usr/share/openstack-octavia-amphora-images/octavia-amphora-16.0-20191213.2-x86_64-rpm.manifest
/usr/share/openstack-octavia-amphora-images/octavia-amphora-16.0-20191213.2-x86_64-signature.manifest
/usr/share/openstack-octavia-amphora-images/octavia-amphora-16.0-20191213.2.x86_64-CHECKSUM.md5
/usr/share/openstack-octavia-amphora-images/octavia-amphora-16.0-20191213.2.x86_64-CHECKSUM.sha256
/usr/share/openstack-octavia-amphora-images/octavia-amphora-16.0-20191213.2.x86_64.qcow2
/usr/share/openstack-octavia-amphora-images/version-16.0-20191213.2.el8ost.txt

$ rpm -qpl octavia-amphora-image-x86_64-16.0-20191217.1.el8ost.noarch.rpm
warning: octavia-amphora-image-x86_64-16.0-20191217.1.el8ost.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
/usr/share/openstack-octavia-amphora-images/octavia-amphora-16.0-20191213.2-x86_64-rpm.manifest
/usr/share/openstack-octavia-amphora-images/octavia-amphora-16.0-20191213.2-x86_64-signature.manifest
/usr/share/openstack-octavia-amphora-images/octavia-amphora-16.0-20191213.2.x86_64-CHECKSUM.md5
/usr/share/openstack-octavia-amphora-images/octavia-amphora-16.0-20191213.2.x86_64-CHECKSUM.sha256
/usr/share/openstack-octavia-amphora-images/octavia-amphora-16.0-20191213.2.x86_64.qcow2
/usr/share/openstack-octavia-amphora-images/version-16.0-20191217.1.el8ost.txt

and the package contains the "installonlypkg(vm)" flag, therefore yum/dnf triggers an update issue.

The root cause of problem comes from the name of the files in the 16.0-20191217 package which are incorrect.

Comment 18 Yuri Obshansky 2020-01-28 18:55:07 UTC
The issue was not reproducible when run CI job Minor update 
from RHOS_TRUNK-16.0-RHEL-8-20191213.n.5 up to RHOS_TRUNK-16.0-RHEL-8-20200124.n.1
See details
https://rhos-qe-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/view/DFG/view/edge/job/DFG-edge-day2-16-rhel-virthost-3cont-2comp-2leafs-x-2comp-update/1/

Comment 20 errata-xmlrpc 2020-02-06 14:32:08 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2020:0428