Bug 1397029

Summary: [RFE] Remove more unneeded packages from IPA ramdisk
Product: Red Hat OpenStack Reporter: Amit Ugol <augol>
Component: diskimage-builderAssignee: Ben Nemec <bnemec>
Status: CLOSED WONTFIX QA Contact: Arik Chernetsky <achernet>
Severity: low Docs Contact:
Priority: low    
Version: 10.0 (Newton)CC: athomas, bfournie, dsneddon, dtantsur, mburns, rhel-osp-director-maint
Target Milestone: ---Keywords: FutureFeature, Triaged
Target Release: 11.0 (Ocata)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-06-20 12:18:03 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:

Comment 1 Dmitry Tantsur 2016-11-21 18:06:12 UTC
Thanks for reporting, I think it belongs in diskimage-builder, where we already remove quite a few things: https://github.com/openstack/diskimage-builder/blob/master/elements/ironic-agent/finalise.d/99-remove-extra-packages

Comment 2 Ben Nemec 2016-11-21 18:23:29 UTC
I'm not sure I am the best person to look at this.  I don't have the expertise in IPA to say for sure what is and isn't needed ("probably" and "not sure" is not strong enough for me to start removing random packages from a ramdisk that can be used in a huge number of varying environments).

Honestly, I don't know that looking at a list of files and packages is the right approach to cleaning up the memory usage anyway.  The RAM usage isn't due to the number of files in the image - it's only ~300 MB total right now.  If we want to reduce the RAM usage (and is that really worth our while?  Who's using Ironic to deploy to 2 GB machines these days?) it would be better to look at what is actually using RAM on the booted image and see if any of that can be removed.  If network manager is a culprit and someone can tell me definitely that we don't need it then we can certainly remove it.  If either of those things are not true then I'd be opposed to removing it.

Comment 3 Dmitry Tantsur 2016-11-22 09:29:45 UTC
> I'm not sure I am the best person to look at this

You get automatically assigned to all bugs with diskimage-builder component :) I didn't mean to assign you specifically.

> The RAM usage isn't due to the number of files in the image - it's only ~300 MB total right now.

Not sure about RAM usage, but reducing the size of the ramdisk might mitigate some networking issues with iPXE and especially PXE. Upstream we have a TinyCoreLinux-based ramdisk with size around 80 MiB and memory footprint around 384 MiB.

Comment 6 Bob Fournier 2018-02-06 21:48:25 UTC
Moving this to a RFE, it not a bug directly affecting deployments.