| Summary: | Sometimes building under BA can fail due to make utility reporting timestamps anomalies | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] Runtime | Reporter: | Cristian Iorga <cristian.iorga> | ||||
| Component: | build-appliance | Assignee: | Unassigned <unassigned> | ||||
| Status: | RESOLVED OBSOLETE | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | Medium+ | CC: | its.muhammadosama, ke.zou, randy.macleod, sgw, yi.zhao | ||||
| Version: | unspecified | ||||||
| Target Milestone: | 4.99 | ||||||
| Hardware: | x86 | ||||||
| OS: | x86_64 | ||||||
| Whiteboard: | |||||||
| OS type for building Yocto: | --- | Type of Regression: | --- | ||||
| Verified: | Documentation change: | No (bug/feature does not impact docs) | |||||
| Attachments: |
|
||||||
|
Description
Cristian Iorga
2013-08-30 10:39:00 UTC
Investigation started. Preliminary investigation concludes that: The issue stems from the fact the BA VM has issues with the emulated RTC (real time clock) upon which Linux opeartion is based. Some dates of the extracted files might look that they were created in the future, as such, configure file will not appear to the build system as correct and as an end-result of the configuration phase. Possible solutions: 1. Enable timesync between BA VM and host OS. BA does not have the vmware tools installed, as such time synchronisation with the host is not an option. timeSync plugin is handling this feature, and is not installed in BA's kernel/VM. Feature is not yet implemented for BA. See "Bug 2817 - Build Appliance: Add vmware guest modules" for details: https://bugzilla.yoctoproject.org/show_bug.cgi?id=2817 2. Enable NTP-based time synchronisation inside BA. However, at this moment, this solution is a little bit complex to implement, because sometimes BA is ran behind a proxified internet connection, which will mean NTP won't work with the outside world. See discussions here, under "Use NTP Behind Proxy or Firewall" section: http://xmodulo.com/2012/09/how-to-synchronize-time-with-ntp.html References: 1. Similar issue: http://serverfault.com/questions/136186/what-steps-can-you-take-to-ensure-sane-build-environments-when-compiling-softwar Hint for increasing the reproducibility of the issue: "the thing that makes this really frustrating is that this script works sometimes, when the VM has been running for an hour or so it works, but not at boot." 2. Actual solution based on vmWare Time Synchronisation Linux vmWare plugin (contained in open-vmware-tools) or using ntpd: http://www.guldmyr.com/blog/time-sync-for-linux-vms-in-vmware-workstation/ 3. Technical discussion with valid pointers on stackoverflow: http://stackoverflow.com/questions/276965/how-to-keep-a-vmware-vms-clock-in-sync Others: Timekeeping best practices for Linux guests (1006427) http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1006427 Timekeeping in VMware Virtual Machines http://www.cse.iitd.ernet.in/~sbansal/csl862-virt/readings/vmware_timekeeping.pdf Time drifting when running a Linux guest under VMware ESX server http://www.novell.com/support/kb/doc.php?id=3858673 Network Time Protocol daemon https://wiki.archlinux.org/index.php/Network_Time_Protocol_daemon Please note that this issue is not easily reproducible (2 from 10, maybe). Due to other more important tasks (and to the fact that I might be wrong with bug report) the issue will be solved in 1.6M3 timeframe. Re-testing due to changed BA, changed vmWare Player started. Patch sent in for review. Fixed with commit http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=ad1447d6526ace1d8e635fc8a3d15098426f5a6b According to last reports, issue is still present, so I am reopening this. *** Bug 6747 has been marked as a duplicate of this bug. *** *** Bug 7288 has been marked as a duplicate of this bug. *** This was REOPENED Created attachment 2954 [details]
Reference documentation about timekeeping in vmWare VMs
Reference documentation about timekeeping in vmWare VMs.
This seems to be working but we're not 100% sure. |