Bug 901

Summary: qemumips sanity tests fail at rpm_query and connman due to no space on device
Product: [Build System, Metadata & Runtime] Other YP Layers Reporter: Beth Flanagan <elizabeth.flanagan>
Component: layersAssignee: Saul Wold <sgw>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: Undecided CC: edwin.zhai, elizabeth.flanagan, jiajun.xu, kevin.tian, meta.layer.watcher, meta.watcher, richard.purdie, yp.test.watcher, yp.watcher
Version: 1.0   
Target Milestone: 1.0 M4   
Hardware: Other   
OS: mips   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Beth Flanagan 2011-03-17 20:37:32 UTC
rpm_query and connman failed on the autobuilder due to no space left on the qemumips device:

connman_test.sh                                 0%    0     0.0KB/s   --:-- ETA
connman_test.sh                               100% 1308     1.3KB/s   00:00
| scp: /opt/test/connman_test.sh: No space left on device

and

rpm_test.sh                                     0%    0     0.0KB/s   --:-- ETA
rpm_test.sh                                   100%  786     0.8KB/s   00:00
| scp: /opt/test/rpm_test.sh: No space left on device
Comment 1 Jiajun Xu 2011-03-17 22:35:33 UTC
The problem is that qemu rootfs has no enough disk space. I think we may need to find why qemumips rootfs has no spare size.
Comment 2 Jiajun Xu 2011-03-17 23:47:26 UTC
The no space issue is caused by the zypper search command. In case "zypper search", sanity test will run "zypper search avahi" in target. This will casue target out of disk space. I manually run the command in qemumips image and got following information:

##########
root@qemumips:~# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/root               271885    247658     10407  96% /
tmpfs                       40         0        40   0% /mnt/.psplash
none                     61356       112     61244   0% /dev
tmpfs                    61356        56     61300   0% /var/volatile
tmpfs                    61356         0     61356   0% /media/ram

root@qemumips:~#
root@qemumips:~#
root@qemumips:~# ls
root@qemumips:~# zypper search avahi
Loading repository data...
Reading installed packages...

S | Name             | Summary                                           | Type
--+------------------+---------------------------------------------------+--------
i | avahi-daemon     | Avahi IPv4LL network address configuration daemon | package
i | libavahi-client3 | Avahi IPv4LL network address configuration daemon | package
i | libavahi-common3 | Avahi IPv4LL network address configuration daemon | package
i | libavahi-core7   | Avahi IPv4LL network address configuration daemon | package
i | libavahi-glib1   | Avahi IPv4LL network address configuration daemon | package


root@qemumips:~# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/root               271885    267402         0 100% /
tmpfs                       40         0        40   0% /mnt/.psplash
none                     61356       112     61244   0% /dev
tmpfs                    61356       280     61076   0% /var/volatile
tmpfs                    61356         0     61356   0% /media/ram
##########

And the failed connman and rpm tests could pass if target has enough disk space.
Comment 3 Kevin Tian 2011-03-17 23:50:07 UTC
qemuppc sanity test failed too, with same "No space left on device" error.

It looks that recent rpm/zypper changes add more footprint. Beth is trying to increase IMAGE_OVERHEAD_FACTOR now...
Comment 4 Jiajun Xu 2011-03-18 00:24:34 UTC
I remove /lost+found folder on target and find command "zypper search avahi"
needs about 20M disk space:

####root@qemumips:/# df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/root               265.5M    228.3M     23.7M  91% /
tmpfs                    40.0K         0     40.0K   0% /mnt/.psplash
none                     59.9M    112.0K     59.8M   0% /dev
tmpfs                    59.9M     56.0K     59.9M   0% /var/volatile
tmpfs                    59.9M         0     59.9M   0% /media/ram

root@qemumips:/# zypper search avahi
Loading repository data...
Reading installed packages...

S | Name             | Summary                                           | Type
--+------------------+---------------------------------------------------+--------
i | avahi-daemon     | Avahi IPv4LL network address configuration daemon |
package
i | libavahi-client3 | Avahi IPv4LL network address configuration daemon |
package
i | libavahi-common3 | Avahi IPv4LL network address configuration daemon |
package
i | libavahi-core7   | Avahi IPv4LL network address configuration daemon |
package
i | libavahi-glib1   | Avahi IPv4LL network address configuration daemon |
package

root@qemumips:/# df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/root               265.5M    247.6M      4.4M  98% /
tmpfs                    40.0K         0     40.0K   0% /mnt/.psplash
none                     59.9M    112.0K     59.8M   0% /dev
tmpfs                    59.9M    280.0K     59.6M   0% /var/volatile
tmpfs                    59.9M         0     59.9M   0% /media/ram
####
Comment 5 Edwin Zhai 2011-03-18 00:28:58 UTC
Mips sato image is ~460M, so increasing IMAGE_OVERHEAD_FACTOR from 1.2 to 1.3 is enough for 20M space.
Comment 6 Beth Flanagan 2011-03-18 00:43:49 UTC
Testing the fix for it on my test ab. When I verify it, I'll implement on the autobuilders.