Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1563435

Summary: FFU: post undercloud upgrade /usr/share/rhosp-director-images/{overcloud-full.tar,ironic-python-agent.tar} symlinks point to inexistent files
Product: Red Hat OpenStack Reporter: Marius Cornea <mcornea>
Component: rhosp-releaseAssignee: Jason Joyce <jjoyce>
Status: CLOSED ERRATA QA Contact: Omri Hochman <ohochman>
Severity: high Docs Contact:
Priority: high    
Version: 13.0 (Queens)CC: augol, dbecker, jjoyce, joflynn, jschluet, lbezdick, mburns, morazi, rhel-osp-director-maint, tonyb
Target Milestone: z2Keywords: Triaged, ZStream
Target Release: 13.0 (Queens)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rhosp-release-13.0-9.el7ost Doc Type: Bug Fix
Doc Text:
When removing older image packages, the post scriptlets sometimes incorrectly updated the symlinks for image packages. The scriptlets have been updated to call a script that can be used to fix the symlinks.
Story Points: ---
Clone Of:
: 1619770 (view as bug list) Environment:
Last Closed: 2018-08-29 16:32:35 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:
Bug Depends On:    
Bug Blocks: 1619770    

Description Marius Cornea 2018-04-04 00:19:03 UTC
Description of problem:

FFU: post undercloud upgrade /usr/share/rhosp-director-images/{overcloud-full.tar,ironic-python-agent.tar} symlinks point to inexistent files

(undercloud) [stack@undercloud-0 ~]$ ls -l /usr/share/rhosp-director-images/{overcloud-full.tar,ironic-python-agent.tar}
lrwxrwxrwx. 1 root root 79 Apr  3 13:35 /usr/share/rhosp-director-images/ironic-python-agent.tar -> /usr/share/rhosp-director-images/ironic-python-agent-13.0-20180328.1.el7ost.tar
lrwxrwxrwx. 1 root root 74 Apr  3 13:35 /usr/share/rhosp-director-images/overcloud-full.tar -> /usr/share/rhosp-director-images/overcloud-full-13.0-20180328.1.el7ost.tar

(undercloud) [stack@undercloud-0 ~]$ ls /usr/share/rhosp-director-images/ironic-python-agent-13.0-20180328.1.el7ost.tar
ls: cannot access /usr/share/rhosp-director-images/ironic-python-agent-13.0-20180328.1.el7ost.tar: No such file or directory

(undercloud) [stack@undercloud-0 ~]$ ls /usr/share/rhosp-director-images/overcloud-full-13.0-20180328.1.el7ost.tar
ls: cannot access /usr/share/rhosp-director-images/overcloud-full-13.0-20180328.1.el7ost.tar: No such file or directory

The correct files location is:

(undercloud) [stack@undercloud-0 ~]$ ls /usr/share/rhosp-director-images/ironic-python-agent-13.0-20180328.1.el7ost.x86_64.tar
/usr/share/rhosp-director-images/ironic-python-agent-13.0-20180328.1.el7ost.x86_64.tar
(undercloud) [stack@undercloud-0 ~]$ ls /usr/share/rhosp-director-images/overcloud-full-13.0-20180328.1.el7ost.x86_64.tar
/usr/share/rhosp-director-images/overcloud-full-13.0-20180328.1.el7ost.x86_64.tar


Version-Release number of selected component (if applicable):
(undercloud) [stack@undercloud-0 ~]$ rpm -q rhosp-director-images
rhosp-director-images-11.0-20180402.1.el7ost.noarch
rhosp-director-images-12.0-20180402.1.el7ost.noarch
rhosp-director-images-13.0-20180328.1.el7ost.noarch

Comment 1 Lukas Bezdicka 2018-04-04 14:42:09 UTC
This seems to be packaging issue.

Comment 2 Marius Cornea 2018-04-04 20:18:20 UTC
Note: on a fresh deployment the symlinks point to existent files:

[root@undercloud-0 ~]# ls -l /usr/share/rhosp-director-images/{overcloud-full.tar,ironic-python-agent.tar}

lrwxrwxrwx. 1 root root 86 Apr  3 19:43 /usr/share/rhosp-director-images/ironic-python-agent.tar -> /usr/share/rhosp-director-images/ironic-python-agent-13.0-20180328.1.el7ost.x86_64.tar

lrwxrwxrwx. 1 root root 81 Apr  3 19:43 /usr/share/rhosp-director-images/overcloud-full.tar -> /usr/share/rhosp-director-images/overcloud-full-13.0-20180328.1.el7ost.x86_64.tar

Comment 11 errata-xmlrpc 2018-08-29 16:32:35 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/RHBA-2018:2573