Bug 860658
| Summary: | nova boot fails because /dev/kvm is 0600 instead of 0666 | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Sandro Mathys <sandro> | ||||||
| Component: | qemu | Assignee: | Fedora Virtualization Maintainers <virt-maint> | ||||||
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
| Severity: | unspecified | Docs Contact: | |||||||
| Priority: | unspecified | ||||||||
| Version: | 18 | CC: | akscram, alexander.sakhnov, amit.shah, apevec, apevec, asalkeld, berrange, bfilippov, breu, cfergeau, crobinso, dwmw2, itamar, Jan.van.Eldik, jonathansteffan, jose.castro.leon, knoel, markmc, matt_domsch, mlvov, pbonzini, p, rbryant, rjones, rkukura, scottt.tw, virt-maint | ||||||
| Target Milestone: | --- | ||||||||
| Target Release: | --- | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | |||||||||
| : | 863374 (view as bug list) | Environment: | |||||||
| Last Closed: | 2012-09-28 15:48:09 UTC | Type: | Bug | ||||||
| Regression: | --- | Mount Type: | --- | ||||||
| Documentation: | --- | CRM: | |||||||
| Verified Versions: | Category: | --- | |||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||
| Embargoed: | |||||||||
| Attachments: |
|
||||||||
|
Description
Sandro Mathys
2012-09-26 12:22:16 UTC
Created attachment 617531 [details]
compute.log
Created attachment 617534 [details]
scheduler.log
Note regarding the logs: what I did was roughly: - nova boot 4 systems - restart scheduler (as suggested in similar bugs) - nova boot 4 systems - chmod 0666 /dev/kvm - nova boot 2 systems Cole - have you seen reports of bad /dev/kvm permissions in F18? FWIW: /usr/lib/udev/rules.d/80-kvm.rules:KERNEL=="kvm", GROUP="kvm", MODE="0666" Figure that explains why reboot helps. But the first time kvm is loaded (libvirtd is installed and started) it seems to get 0600 nevertheless - is /dev/kvm not created by udev in that situation? Mark, haven't seen any bug reports go by about that besides this one. Is this consistently reproducible or a one off? Even on a fresh F18 Alpha minimal install (no updates, no openstack): crw-------. 1 root root 10, 232 Sep 27 08:46 /dev/kvm Just to confirm Sandro's observation on a fresh F17 install, without updates or openstack: crw-------. 1 root root 10, 232 Sep 28 08:57 /dev/kvm Moving to qemu as it seems that package on install should do: chmod 666 /dev/kvm or more generally udevadm trigger --action=change %post in qemu-system-x86 runs /etc/sysconfig/modules/kvm.modules where kvm kernel module is modprobed. Why modprobe itself doesn't trigger udev? The KVM modules are part of the main kernel RPM, so perhaps the module was loaded before the KVM RPM was installed. If this was the case it would have got the default permssiosn, since the udev rules would not be present yet. Then when %post ran module, nothing would be done since they were already loaded (albeit with wrong permissions). Fixed in qemu-1.2.0-12.fc18 and qemu-1.2.0-12.fc19. For reference the change is: http://pkgs.fedoraproject.org/cgit/qemu.git/commit/?id=8cc727f1 I was a bit surprised that --action=change wasn't specified, but I now see that that's the default operation. Also note this was reported as an issue against F17 as well as F18. Thanks Paolo! qemu-1.2.0-12.fc18 has been submitted as an update for Fedora 18. https://admin.fedoraproject.org/updates/FEDORA-2012-15631/qemu-1.2.0-12.fc18 |