[container build broken] Installing openstack-tripleo-common after openstack-tripleo-common-container-base is broken

Bug #1706997 reported by Jiří Stránský
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Critical
Jiří Stránský

Bug Description

Installing openstack-tripleo-common after openstack-tripleo-common-container-base is broken with:

  Installing : openstack-tripleo-common-7.3.1-0.20170726221158.408f8a1.el7.centos.noarch 1/1
Error unpacking rpm package openstack-tripleo-common-7.3.1-0.20170726221158.408f8a1.el7.centos.noarch
error: unpacking of archive failed on file /usr/share/tripleo-common: cpio: rename

This breaks container image builds.

The problem is that we first create

/usr/share/tripleo-common as a regular directory with openstack-tripleo-common-container-base, and then tripleo-common tries to replace it with a symlink, which fails.

I'll submit a patch to RPM spec to fix this.

Tags: containers
tags: added: containers
removed: cont
Changed in tripleo:
assignee: nobody → Jiří Stránský (jistr)
Revision history for this message
Jiří Stránský (jistr) wrote :
tags: added: alert
Revision history for this message
Jiří Stránský (jistr) wrote :

To further clarify the issue, this is while only openstack-tripleo-common-container-base is installed:

()[root@a63a23b81eef /]# ll -d /usr/share/tripleo-common
drwxr-xr-x. 3 root root 25 Jul 27 14:21 /usr/share/tripleo-common
()[root@a63a23b81eef /]# ll -d /usr/share/openstack-tripleo-common
ls: cannot access /usr/share/openstack-tripleo-common: No such file or directory

()[root@a63a23b81eef /]# rpm -qf /usr/share/tripleo-common
file /usr/share/tripleo-common is not owned by any package
()[root@a63a23b81eef /]# rpm -qf /usr/share/tripleo-common/healthcheck
openstack-tripleo-common-container-base-7.3.1-0.20170726221158.408f8a1.el7.centos.noarch

And because of that, this later fails:

https://github.com/rdo-packages/tripleo-common-distgit/blob/8c6e3cefb2fb54e6f37e87e89876d05d4d95e95e/openstack-tripleo-common.spec#L63

Changed in tripleo:
status: Triaged → In Progress
Revision history for this message
Jiří Stránský (jistr) wrote :

The fix was merged in RDO, we just need a promotion to get it into current-tripleo.

Changed in tripleo:
status: In Progress → Fix Released
tags: removed: alert
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.