Bug 916589 - Failed to install Host ovirt-node. Failed to execute stage 'Setup validation': [Errno 5] Input/output error.
Summary: Failed to install Host ovirt-node. Failed to execute stage 'Setup validation'...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-host-deploy
Classification: oVirt
Component: Plugins.VDSM
Version: master
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: ---
: 1.0.0
Assignee: Alon Bar-Lev
QA Contact: Haim
URL:
Whiteboard: infra
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-28 12:21 UTC by kissi7
Modified: 2016-02-10 19:03 UTC (History)
7 users (show)

Fixed In Version: ovirt-host-deploy-1.1.0_beta
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-09-23 07:35:31 UTC
oVirt Team: Infra
Embargoed:


Attachments (Terms of Use)
engine.log (51.77 KB, application/octet-stream)
2013-02-28 12:21 UTC, kissi7
no flags Details
host-deploy log - ovirt-20130228130710-10.1.1.70.log (105.29 KB, application/octet-stream)
2013-02-28 12:22 UTC, kissi7
no flags Details
cpu.tar (10.00 KB, application/x-tar)
2013-02-28 13:50 UTC, kissi7
no flags Details
msr.py (1.39 KB, text/plain)
2013-03-02 07:10 UTC, Alon Bar-Lev
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 12767 0 'None' 'MERGED' 'vdsm: hardware: do not fail if msr cannot be read' 2019-12-04 21:37:13 UTC

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)


Note You need to log in before you can comment on or make changes to this bug.