Bug 9800

Summary: core-image-sato out of space when smart and rpm are installed
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Bill Randle <bill.randle>
Component: coreAssignee: Saul Wold <sgw>
Status: RESOLVED FIXED QA Contact: Juan Ramos <juan.fernandox.ramos.frayle>
Severity: normal    
Priority: Medium+ CC: jose.perez.carranza, juro.bystricky, meta.mr.watcher, meta.watcher, richard.purdie, ross.burton, sgw
Version: 2.2   
Target Milestone: 2.2 M1   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Bill Randle 2016-06-17 16:04:32 UTC
On qemux86-64 build, the qa tests for smartpm fail due to lack on disk space on the target rootfs. In image.bbclass IMAGE_OVERHEAD_FACTOR is set to 1.3 to allow for startup overhead. On this build, that amounts to about 85 MB free space.

When 'rpm' and 'smartpm' are run as part of the qa tests, they use about 42 MB for rpm and 59 MB for smartpm, which leaves no space remaining, causing subsequent tests to fail.

In rootfs_rpm.bbclass, an additional 51 MB is added to the rootfs size via IMAGE_ROOTFS_EXTRA_SPACE_append when smartpm is one of the package managers in PACKAGE_INSTALL. However, this additional 51 MB is not being included in the rootfs size so either this class is not being run or, if it is, smartpm is not ending up in the PACKAGE_INSTALL list. Even so, it would be good to increase this extra space to account for the additional 42 MB or so used by rpm.
Comment 1 Saul Wold 2016-06-17 21:59:28 UTC
Some additional details

I verified that the smartpm additional 51MB is correctly getting added to the ROOTFS_SIZE.

I tweaked the size adjustment to be 100MB and here is the output of df -h for 3 images.

Filesystem      Size  Used Avail Use% Mounted on
/dev/loop0      506M  378M   89M  81% /srv/sdb/releases/master/builds/4.4/rpm1
/dev/loop2      552M  378M  133M  75% /srv/sdb/releases/master/builds/4.4/rpm2
/dev/loop3      454M  318M  109M  75% /srv/sdb/releases/master/builds/4.4/ipk

rpm1 is the current 51MB additional
rpm2 is a tweaked 100MB additional
ipk is using the IPK package manager just for comparison.

I believe that if we are going to be running QA tests that we need to have a sufficient additional space in the image to run the tests. Since we know in testimage.bbclass that we will be doing SMART testing makes the most sense to add space there.
Comment 2 Ross Burton 2016-06-21 11:07:10 UTC
Extra space increase merged in oe-core 2d636068d9d3a1ea2db3ace49462be13ba9ef125.