Bug 1348861

Summary: ironic-python-agent.initramfs should not have a yum cache
Product: Red Hat OpenStack Reporter: Attila Fazekas <afazekas>
Component: diskimage-builderAssignee: Ben Nemec <bnemec>
Status: CLOSED ERRATA QA Contact: Arik Chernetsky <achernet>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 10.0 (Newton)CC: jcoufal, jschluet, mburns, mkovacik, rhel-osp-director-maint, slinaber
Target Milestone: rcKeywords: Triaged
Target Release: 10.0 (Newton)   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-12-14 15:41:10 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Attila Fazekas 2016-06-22 08:40:44 UTC
Description of problem:
IPA agent does not expected to use yum, therefore it does not needs 178MB yum cache (uncompressed size.)

Even If IPA would try to use yum, the cache would be outdated.

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

# ironic-python-agent.initramfs decompressed:
$ du -hs cpio/var/cache/*
24K	cpio/var/cache/ldconfig
0	cpio/var/cache/man
178M	cpio/var/cache/yum

Additional info:
Probably you can remove the the whole yum package content as well.

Comment 1 Dmitry Tantsur 2016-06-22 11:37:57 UTC
I thought we do it, hmm

Comment 2 Ben Nemec 2016-10-10 14:18:54 UTC
The upstream fix merged a long time ago, so this should be fixed in OSP 10.

Comment 4 mkovacik 2016-10-20 13:07:09 UTC
# This has been fixed indeed (checked on my undercloud):

[stack@undercloud tmp]$ file ironic-python-agent.initramfs
ironic-python-agent.initramfs: gzip compressed data, from Unix, last modified: Tue Oct 18 21:53:40 2016
[stack@undercloud tmp]$ zcat -f ironic-python-agent.initramfs > ironic-python-agent.cpio
[stack@undercloud tmp]$ cpio -vid < ironic-python-agent.cpio
# ---%<----
[stack@undercloud tmp]$ du -hs var/cache/*
du: cannot access ‘var/cache/*’: No such file or directory
[stack@undercloud tmp]$ du -hs var/cache/
4.0K	var/cache/
[stack@undercloud tmp]$ cat etc/redhat-release
Red Hat Enterprise Linux Server release 7.3 (Maipo)
[stack@undercloud tmp]$ sudo chroot . /bin/bash
[root@undercloud /]# rpm -qa '*agent*'
[root@undercloud /]#

Comment 6 Ben Nemec 2016-12-13 19:00:40 UTC
This is an internal cleanup only, it should have no user-visible impact.

Comment 8 errata-xmlrpc 2016-12-14 15:41:10 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.