Bug 916589

Summary: Failed to install Host ovirt-node. Failed to execute stage 'Setup validation': [Errno 5] Input/output error.
Product: [oVirt] ovirt-host-deploy Reporter: kissi7
Component: Plugins.VDSMAssignee: Alon Bar-Lev <alonbl>
Status: CLOSED CURRENTRELEASE QA Contact: Haim <hateya>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: masterCC: bazulay, bugs, dougsland, gouyang, iheim, jkt, yeylon
Target Milestone: ---   
Target Release: 1.0.0   
Hardware: Unspecified   
OS: Linux   
Whiteboard: infra
Fixed In Version: ovirt-host-deploy-1.1.0_beta Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-23 07:35:31 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
engine.log
none
host-deploy log - ovirt-20130228130710-10.1.1.70.log
none
cpu.tar
none
msr.py none

Description kissi7 2013-02-28 12:21:26 UTC
Created attachment 703888 [details]
engine.log

Description of problem:


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. install 2 virtual machines using Fedora18 netinstall.iso. Select minimal install
2. on both system add ovirt repository. (sudo yum localinstall http://ovirt.org/releases/ovirt-release-fedora.noarch.rpm)
3. on first VM install ovirt-engine
4. on second VM install vdsm and vdsm-hook-faqemu. Configure enable fake_kvm_support in /etc/vdsm/vdsm.conf
5. add host in oVirt Engine Web Administration

  
Actual results:
in the events are these errors:
Host ovirt-node installation failed. Command returned failure code 1 during SSH session 'root.1.70'.
Failed to install Host ovirt-node. Failed to execute stage 'Setup validation': [Errno 5] Input/output error.

Host status is: Install Failed

Expected results:
Host will be added


Additional info:

Comment 1 kissi7 2013-02-28 12:22:22 UTC
Created attachment 703889 [details]
host-deploy log - ovirt-20130228130710-10.1.1.70.log

Comment 2 Alon Bar-Lev 2013-02-28 12:54:40 UTC
Hi,

can you please archive in tar all the /dev/cpu/*/msr files and attach?

Thanks!

Comment 3 kissi7 2013-02-28 13:50:57 UTC
Created attachment 703901 [details]
cpu.tar

Comment 4 Alon Bar-Lev 2013-02-28 19:08:58 UTC
(In reply to comment #3)
> Created attachment 703901 [details]
> cpu.tar

Thanks but this is not good, as you archived the actual device instead the content.

You need to take caution... perform cat /dev/cpu/0/msr and attach the result.

Thanks!

Comment 5 kissi7 2013-03-01 07:45:33 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > Created attachment 703901 [details]
> > cpu.tar
> 
> Thanks but this is not good, as you archived the actual device instead the
> content.
> 
> You need to take caution... perform cat /dev/cpu/0/msr and attach the result.
> 
> Thanks!

Hi, I did it but there is no result. It show nothing. "cat /dev/cpu/0/msr" command is running forever. Maybe rdmsr from msr-tools can help.

Comment 6 Alon Bar-Lev 2013-03-02 07:10:25 UTC
Created attachment 704423 [details]
msr.py

OK, let's try this script, can you please run and send me the output?

Comment 7 kissi7 2013-03-02 10:37:01 UTC
(In reply to comment #6)
> Created attachment 704423 [details]
> msr.py
> 
> OK, let's try this script, can you please run and send me the output?

Hi,
here is the output.

[root@ovirt-node ~]# python msr.py
vmx
Traceback (most recent call last):
  File "msr.py", line 52, in <module>
    t._vmx_enabled_by_bios()
  File "msr.py", line 29, in _vmx_enabled_by_bios
    msr = self._prdmsr(0, MSR_IA32_FEATURE_CONTROL)
  File "msr.py", line 17, in _prdmsr
    ret = struct.unpack('L', f.read(8))[0]
IOError: [Errno 5] Input/output error
svm
Traceback (most recent call last):
  File "msr.py", line 57, in <module>
    t._svm_enabled_by_bios()
  File "msr.py", line 44, in _svm_enabled_by_bios
    vm_cr = self._prdmsr(0, MSR_VM_CR)
  File "msr.py", line 17, in _prdmsr
    ret = struct.unpack('L', f.read(8))[0]
IOError: [Errno 5] Input/output error

Comment 8 Alon Bar-Lev 2013-03-02 11:13:21 UTC
Thanks!
Before we debug this python farther, can you please install msr-tools package and send the output of:
# rdmsr 0x3a

Comment 9 kissi7 2013-03-03 13:48:08 UTC
(In reply to comment #8)
> Thanks!
> Before we debug this python farther, can you please install msr-tools
> package and send the output of:
> # rdmsr 0x3a

Hi,

[root@ovirt-node ~]# rdmsr 0x3a
rdmsr:pread: Input/output error

Comment 10 Alon Bar-Lev 2013-03-03 15:28:35 UTC
Haim,

Do we have "Intel Core 2 Duo P9xxx (Penryn Class Core 2)" board?

Comment 11 kissi7 2013-03-03 16:13:37 UTC
Hi Alon,

just to make sure... as I already mentione both machines are virtual. With standard QEMU cpu I was not able to add host to ovirt (same error). Than I change virtual CPU via virt-manage to "Intel Core 2 Duo P9xxx (Penryn Class Core 2)" by clicking on Copy Host CPU configuration" but the result is same. 

If you run your msr.py or rdmsr 0x3a on any KVM machine with "QEMU Virtual CPU version (cpu64-rhel6)" you should receive same error as I.

Comment 12 Alon Bar-Lev 2013-03-03 16:24:52 UTC
Oh!!!
I did not understand these machine are virtual!
Then this must a bug in qemu environment.
Now it makes more sense.
OK, I will just ignore this error and warn user.
Thanks!

Comment 13 Alon Bar-Lev 2013-03-06 19:46:16 UTC
commit d749db45d759e243e377625679a35ee15efb78d3
Author: Alon Bar-Lev <alonbl>
Date:   Wed Mar 6 15:27:27 2013 +0200

    vdsm: hardware: do not fail if msr cannot be read
    
    Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=916589
    Change-Id: I96ff8f98b58f34ff2b1af4c0232150fd357ac018
    Signed-off-by: Alon Bar-Lev <alonbl>

Comment 14 Alon Bar-Lev 2013-03-06 19:46:58 UTC
I am unsure this worth issue in 1.0.1 as this is nested virtualization.

Comment 15 Itamar Heim 2013-09-23 07:35:31 UTC
closing as this should be in 3.3 (doing so in bulk, so may be incorrect)