Bug 12861 - [2.6 M2RC1] [Meta-Intel][ corei7-64_WIC_MTURBOT64][MTURBOT64] [test_parselogs] inotify_add_watch(6, /dev/loop0, 10) failed: No such file or directory
Summary: [2.6 M2RC1] [Meta-Intel][ corei7-64_WIC_MTURBOT64][MTURBOT64] [test_parselogs...
Status: RESOLVED FIXED
Alias: None
Product: BSPs
Classification: Build System, Metadata & Runtime
Component: bsps-intel-corei7-64 (show other bugs)
Version: 2.6
Hardware: x86 Multiple
: Medium normal
Target Milestone: 2.6
Assignee: Anuj Mittal
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2018-07-23 08:38 UTC by pankaj yadav
Modified: 2018-09-20 22:16 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments
log.do_testimage (843.00 KB, text/plain)
2018-07-23 08:57 UTC, pravin
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description pankaj yadav 2018-07-23 08:38:13 UTC
Hardware Used : MTURBOT64


Steps to reproduce :
Step1 : Write the image to a bootable media (USB key, SD Card, etc.) using the dd command:
sudo dd if=core-image-lsb-sdk-genericx86.wic of=/dev/sdb
Attach the bootable device to the DUT
Turn the DUT on, and use its boot options to select the correct media for booting
Ensure the device has a network connection and a valid IP address
Step 2 : Clone poky repo $git clone git://git.yoctoproject.org/poky ( git checkout ) 
Step 3 :clone the layer repo inside poky $git clone git://git.yoctoproject.org/meta-intel
       4.1 $cd meta-intel
       4.2 Checkout to the meta-intel commit specified on the release information $git checkout <commit-id>
       4.3 Return to the poky root path $cd ..

Step 4 : Modify local.conf

MACHINE = "intel-corei7-64"
INHERIT += "testimage"
TEST_TARGET = "simpleremote"
TEST_SERVER_IP = "10.221.183.11"
TEST_TARGET_IP = "10.221.70.157"
PARALLEL_MAKE = "-j 64"
BB_NUMBER_THREADS = "64"
IMAGE_FSTYPES = "wic" (For LSB Related test case)
DISTRO ?= "poky-lsb" (For LSB Related test case)
Step 5 : run "bitbake rpm busybox curl run-postinsts" and "bitbake package-index" under build directory
Step 6 : 
Download Artifacts
there are 2 links available from Public AutoBuilder to download images 
http://autobuilder.yoctoproject.org/pub/releases/
https://autobuilder.yocto.io/pub/releases/

Artifacts to be downloaded are: 
Real HW
under folder machines/<MACHINE_UNDER_TEST>
<IMAGE_TO_BE_TESTED>.hddimg
<IMAGE_TO_BE_TESTED>.wic
<IMAGE_TO_BE_TESTED>.wic.bmap
<IMAGE_TO_BE_TESTED>.manifest
<IMAGE_TO_BE_TESTED>.testdata.json
example of <IMAGE_TO_BE_TESTED> name core-image-sato-sdk-genericx86.OR core-image-lsb-sdk-genericx86
Put downloaded images under poky/genericx86-WIC/tmp/deploy/images/MACHINE_UNDER_TEST/ directory
expample of MACHINE_UNDER_TEST= intel-corei7-64 etc
step 7 : run "bitbake core-image-sato-sdk -c testimage -v" OR bitbake core-image-lsb-sdk -c testimage -v" under build directory

Please find the logs as mentioned below :

NOTE: ======================================================================
NOTE: FAIL: test_parselogs (parselogs.ParseLogsTest)
NOTE: ----------------------------------------------------------------------
NOTE: Traceback (most recent call last):
  File "/data/pankajsx/Meta-Intel-2.6_10.0/poky/meta/lib/oeqa/core/decorator/__init__.py", line 32, in wrapped_f
    return func(*args, **kwargs)
  File "/data/pankajsx/Meta-Intel-2.6_10.0/poky/meta/lib/oeqa/core/decorator/__init__.py", line 32, in wrapped_f
    return func(*args, **kwargs)
  File "/data/pankajsx/Meta-Intel-2.6_10.0/poky/meta/lib/oeqa/runtime/cases/parselogs.py", line 366, in test_parselogs
    self.assertEqual(errcount, 0, msg=self.msg)
AssertionError: 3 != 0 : Log: /data/pankajsx/Meta-Intel-2.6_10.0/poky/corei7-64_WIC_NUC7/tmp/work/intel_corei7_64-poky-linux/core-image-lsb-sdk/1.0-r0/dmesg
-----------------------
Central error: [   12.905230] udevd[204]: inotify_add_watch(6, /dev/loop0, 10) failed: No such file or directory
***********************
[    5.687098] hid-generic 0003:03F0:0024.0001: input: USB HID v1.10 Keyboard [CHICONY HP Basic USB Keyboard] on usb-0000:00:14.0-2.3/input0
[    5.802208] usb 1-2.4: new low-speed USB device number 5 using xhci_hcd
[    5.940737] input: HP HP USB 1000dpi Laser Mouse as /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.4/1-2.4:1.0/0003:03F0:1198.0002/input/input4
[    5.970240] hid-generic 0003:03F0:1198.0002: input: USB HID v2.00 Mouse [HP HP USB 1000dpi Laser Mouse] on usb-0000:00:14.0-2.4/input0
[    5.994123] hid-generic 0003:03F0:1198.0003: hiddev0: USB HID v2.00 Device [HP HP USB 1000dpi Laser Mouse] on usb-0000:00:14.0-2.4/input1
[    8.629461] random: crng init done
[    8.641313] random: 6 urandom warning(s) missed due to ratelimiting
[   12.295936] EXT4-fs (loop0): couldn't mount as ext3 due to feature incompatibilities
[   12.311600] EXT4-fs (loop0): couldn't mount as ext2 due to feature incompatibilities
[   12.836407] EXT4-fs (loop0): mounted filesystem with ordered data mode. Opts: (null)
[   12.905230] udevd[204]: inotify_add_watch(6, /dev/loop0, 10) failed: No such file or directory
[   13.590384] udevd[498]: starting version 3.2.5
[   13.664232] udevd[499]: starting eudev-3.2.5
[   13.902326] dw_dmac INTL9C60:00: DesignWare DMA Controller, 8 channels
[   13.945958] dca service started, version 1.12.1
[   13.955285] dw_dmac INTL9C60:01: DesignWare DMA Controller, 8 channels
[   13.993410] igb: Intel(R) Gigabit Ethernet Network Driver - version 5.4.0-k
[   14.016507] [drm] Memory usable by graphics device = 2048M
[   14.016512] checking generic (80000000 1d5000) vs hw (80000000 10000000)
[   14.016514] fb: switching to inteldrmfb from EFI VGA
[   14.032758] Console: switching to colour dummy device 80x25

***********************
Log: /data/pankajsx/Meta-Intel-2.6_10.0/poky/corei7-64_WIC_NUC7/tmp/work/intel_corei7_64-poky-linux/core-image-lsb-sdk/1.0-r0/dmesg_output.log
-----------------------
Central error: [   12.905230] udevd[204]: inotify_add_watch(6, /dev/loop0, 10) failed: No such file or directory
***********************
[    5.687098] hid-generic 0003:03F0:0024.0001: input: USB HID v1.10 Keyboard [CHICONY HP Basic USB Keyboard] on usb-0000:00:14.0-2.3/input0
[    5.802208] usb 1-2.4: new low-speed USB device number 5 using xhci_hcd
[    5.940737] input: HP HP USB 1000dpi Laser Mouse as /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.4/1-2.4:1.0/0003:03F0:1198.0002/input/input4
[    5.970240] hid-generic 0003:03F0:1198.0002: input: USB HID v2.00 Mouse [HP HP USB 1000dpi Laser Mouse] on usb-0000:00:14.0-2.4/input0
[    5.994123] hid-generic 0003:03F0:1198.0003: hiddev0: USB HID v2.00 Device [HP HP USB 1000dpi Laser Mouse] on usb-0000:00:14.0-2.4/input1
[    8.629461] random: crng init done
[    8.641313] random: 6 urandom warning(s) missed due to ratelimiting
[   12.295936] EXT4-fs (loop0): couldn't mount as ext3 due to feature incompatibilities
[   12.311600] EXT4-fs (loop0): couldn't mount as ext2 due to feature incompatibilities
[   12.836407] EXT4-fs (loop0): mounted filesystem with ordered data mode. Opts: (null)
[   12.905230] udevd[204]: inotify_add_watch(6, /dev/loop0, 10) failed: No such file or directory
[   13.590384] udevd[498]: starting version 3.2.5
[   13.664232] udevd[499]: starting eudev-3.2.5
[   13.902326] dw_dmac INTL9C60:00: DesignWare DMA Controller, 8 channels
[   13.945958] dca service started, version 1.12.1
[   13.955285] dw_dmac INTL9C60:01: DesignWare DMA Controller, 8 channels
[   13.993410] igb: Intel(R) Gigabit Ethernet Network Driver - version 5.4.0-k
[   14.016507] [drm] Memory usable by graphics device = 2048M
[   14.016512] checking generic (80000000 1d5000) vs hw (80000000 10000000)
[   14.016514] fb: switching to inteldrmfb from EFI VGA
[   14.032758] Console: switching to colour dummy device 80x25

***********************
Log: /data/pankajsx/Meta-Intel-2.6_10.0/poky/corei7-64_WIC_NUC7/tmp/work/intel_corei7_64-poky-linux/core-image-lsb-sdk/1.0-r0/kern.log
-----------------------
Central error: Jul 20 15:31:10 intel-corei7-64 kernel: <27>[   12.905230] udevd[204]: inotify_add_watch(6, /dev/loop0, 10) failed: No such file or directory
***********************
Jul 20 15:31:10 intel-corei7-64 kernel: [    5.687098] hid-generic 0003:03F0:0024.0001: input: USB HID v1.10 Keyboard [CHICONY HP Basic USB Keyboard] on usb-0000:00:14.0-2.3/input0
Jul 20 15:31:10 intel-corei7-64 kernel: [    5.802208] usb 1-2.4: new low-speed USB device number 5 using xhci_hcd
Jul 20 15:31:10 intel-corei7-64 kernel: [    5.940737] input: HP HP USB 1000dpi Laser Mouse as /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.4/1-2.4:1.0/0003:03F0:1198.0002/input/input4
Jul 20 15:31:10 intel-corei7-64 kernel: [    5.970240] hid-generic 0003:03F0:1198.0002: input: USB HID v2.00 Mouse [HP HP USB 1000dpi Laser Mouse] on usb-0000:00:14.0-2.4/input0
Jul 20 15:31:10 intel-corei7-64 kernel: [    5.994123] hid-generic 0003:03F0:1198.0003: hiddev0: USB HID v2.00 Device [HP HP USB 1000dpi Laser Mouse] on usb-0000:00:14.0-2.4/input1
Jul 20 15:31:10 intel-corei7-64 kernel: [    8.629461] random: crng init done
Jul 20 15:31:10 intel-corei7-64 kernel: [    8.641313] random: 6 urandom warning(s) missed due to ratelimiting
Jul 20 15:31:10 intel-corei7-64 kernel: [   12.295936] EXT4-fs (loop0): couldn't mount as ext3 due to feature incompatibilities
Jul 20 15:31:10 intel-corei7-64 kernel: [   12.311600] EXT4-fs (loop0): couldn't mount as ext2 due to feature incompatibilities
Jul 20 15:31:10 intel-corei7-64 kernel: [   12.836407] EXT4-fs (loop0): mounted filesystem with ordered data mode. Opts: (null)
Jul 20 15:31:10 intel-corei7-64 kernel: <27>[   12.905230] udevd[204]: inotify_add_watch(6, /dev/loop0, 10) failed: No such file or directory
Jul 20 15:31:10 intel-corei7-64 kernel: <30>[   13.590384] udevd[498]: starting version 3.2.5
Jul 20 15:31:10 intel-corei7-64 kernel: <30>[   13.664232] udevd[499]: starting eudev-3.2.5
Jul 20 15:31:10 intel-corei7-64 kernel: [   13.902326] dw_dmac INTL9C60:00: DesignWare DMA Controller, 8 channels
Jul 20 15:31:10 intel-corei7-64 kernel: [   13.945958] dca service started, version 1.12.1
Jul 20 15:31:10 intel-corei7-64 kernel: [   13.955285] dw_dmac INTL9C60:01: DesignWare DMA Controller, 8 channels
Jul 20 15:31:10 intel-corei7-64 kernel: [   13.993410] igb: Intel(R) Gigabit Ethernet Network Driver - version 5.4.0-k
Jul 20 15:31:10 intel-corei7-64 kernel: [   14.016507] [drm] Memory usable by graphics device = 2048M
Jul 20 15:31:10 intel-corei7-64 kernel: [   14.016512] checking generic (80000000 1d5000) vs hw (80000000 10000000)
Jul 20 15:31:10 intel-corei7-64 kernel: [   14.016514] fb: switching to inteldrmfb from EFI VGA
Jul 20 15:31:10 intel-corei7-64 kernel: [   14.032758] Console: switching to colour dummy device 80x25

***********************
3 errors found in logs.
Comment 1 pravin 2018-07-23 08:55:07 UTC
same error coming in yocto 2.6 m2 rc1.

I have tested core-image-sato-sdk-x86-64.hddimg image on nuc6 and nuc7.

I have attached logs.
Comment 2 pravin 2018-07-23 08:57:26 UTC
Created attachment 4349 [details]
log.do_testimage
Comment 3 Anuj Mittal 2018-09-19 08:08:55 UTC
In case someone following this is confused because of the convoluted steps to reproduce, the steps are: Build core-image-minimal and boot up the live image on actual hardware.

I think the problem is that we are switching root before the add_watch has been processed (add_watch for loop device is triggered when mount is executed in the rootfs step). It is easier to debug what is happening by adding some debug logs to eudev.