Bug 1397029 - [RFE] Remove more unneeded packages from IPA ramdisk
Summary: [RFE] Remove more unneeded packages from IPA ramdisk
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: diskimage-builder
Version: 10.0 (Newton)
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: 11.0 (Ocata)
Assignee: Ben Nemec
QA Contact: Arik Chernetsky
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-21 12:36 UTC by Amit Ugol
Modified: 2018-06-20 12:18 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-06-20 12:18:03 UTC
Target Upstream Version:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.