Re: [ovirt-users] VM migration/creation on host problem ...

2014-11-14 Thread James James
Thanks for your answer.
There was 2 problems
 1 - selinux problem : https://bugzilla.redhat.com/show_bug.cgi?id=1157185
 2 - A Network problem : I had to configure my switch port.

The 2 problems are solved.

Thanks for your help.

2014-11-14 17:05 GMT+01:00 Francesco Romani :

> - Original Message -
> > From: "James James" 
> > To: "Francesco Romani" 
> > Cc: "users" 
> > Sent: Friday, 14 November, 2014 4:53:22 PM
> > Subject: Re: [ovirt-users] VM migration/creation on host problem ...
> >
> > In /var/log/libvirt/libvirt.log :
> >
> > [root@ovirt-node2 ~]# tail -f /var/log/libvirt/libvirtd.log
> > 2014-11-14 15:45:03.770+: 13769: error :
> virDomainObjGetMetadata:16650
> > : metadata not found: Requested metadata element is not present
> > 2014-11-14 15:45:18.791+: 13772: error :
> virDomainObjGetMetadata:16650
> > : metadata not found: Requested metadata element is not present
> > 2014-11-14 15:45:33.812+: 13772: error :
> virDomainObjGetMetadata:16650
> > : metadata not found: Requested metadata element is not present
> > 2014-11-14 15:45:48.867+: 13768: error :
> virDomainObjGetMetadata:16650
> > : metadata not found: Requested metadata element is not present
> > 2014-11-14 15:46:03.889+: 13772: error :
> virDomainObjGetMetadata:16650
> > : metadata not found: Requested metadata element is not present
> > 2014-11-14 15:46:18.911+: 13768: error :
> virDomainObjGetMetadata:16650
> > : metadata not found: Requested metadata element is not present
> > 2014-11-14 15:46:21.595+: 13767: error : virNetSocketReadWire:1194 :
> > End of file while reading data: Input/output error
> > 2014-11-14 15:46:33.931+: 13770: error :
> virDomainObjGetMetadata:16650
> > : metadata not found: Requested metadata element is not present
> >
> > Does anybody knows what that means ?
>
> That and the selinux issue you reported previously reminded me of one bug:
>
> https://bugzilla.redhat.com/show_bug.cgi?id=1157185
>
> further information:
>
> https://bugzilla.redhat.com/show_bug.cgi?id=1150243#c17
>
> Can't find more precise information at the moment :(
>
> --
> Francesco Romani
> RedHat Engineering Virtualization R & D
> Phone: 8261328
> IRC: fromani
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] VM migration/creation on host problem ...

2014-11-14 Thread Francesco Romani
- Original Message -
> From: "James James" 
> To: "Francesco Romani" 
> Cc: "users" 
> Sent: Friday, 14 November, 2014 4:53:22 PM
> Subject: Re: [ovirt-users] VM migration/creation on host problem ...
> 
> In /var/log/libvirt/libvirt.log :
> 
> [root@ovirt-node2 ~]# tail -f /var/log/libvirt/libvirtd.log
> 2014-11-14 15:45:03.770+: 13769: error : virDomainObjGetMetadata:16650
> : metadata not found: Requested metadata element is not present
> 2014-11-14 15:45:18.791+: 13772: error : virDomainObjGetMetadata:16650
> : metadata not found: Requested metadata element is not present
> 2014-11-14 15:45:33.812+: 13772: error : virDomainObjGetMetadata:16650
> : metadata not found: Requested metadata element is not present
> 2014-11-14 15:45:48.867+: 13768: error : virDomainObjGetMetadata:16650
> : metadata not found: Requested metadata element is not present
> 2014-11-14 15:46:03.889+: 13772: error : virDomainObjGetMetadata:16650
> : metadata not found: Requested metadata element is not present
> 2014-11-14 15:46:18.911+: 13768: error : virDomainObjGetMetadata:16650
> : metadata not found: Requested metadata element is not present
> 2014-11-14 15:46:21.595+: 13767: error : virNetSocketReadWire:1194 :
> End of file while reading data: Input/output error
> 2014-11-14 15:46:33.931+: 13770: error : virDomainObjGetMetadata:16650
> : metadata not found: Requested metadata element is not present
> 
> Does anybody knows what that means ?

That and the selinux issue you reported previously reminded me of one bug:

https://bugzilla.redhat.com/show_bug.cgi?id=1157185

further information:

https://bugzilla.redhat.com/show_bug.cgi?id=1150243#c17

Can't find more precise information at the moment :(

-- 
Francesco Romani
RedHat Engineering Virtualization R & D
Phone: 8261328
IRC: fromani
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] VM migration/creation on host problem ...

2014-11-14 Thread James James
0-c7165ddb3c82 old-net=?
> new-net=00:1A:4A:7C:94:00 exe="/usr/sbin/libvirtd" hostname=? addr=?
> terminal=? res=success'
> type=VIRT_RESOURCE msg=audit(1415921728.910:2877): user pid=21206 uid=0
> auid=4294967295 ses=4294967295
> subj=system_u:system_r:virtd_t:s0-s0:c0.c1023 msg='virt=kvm resrc=mem
> reason=start vm="test" uuid=2932fd25-7c09-48a8-a5f0-c7165ddb3c82 old-mem=0
> new-mem=1048576 exe="/usr/sbin/libvirtd" hostname=? addr=? terminal=?
> res=success'
> type=VIRT_RESOURCE msg=audit(1415921728.910:2878): user pid=21206 uid=0
> auid=4294967295 ses=4294967295
> subj=system_u:system_r:virtd_t:s0-s0:c0.c1023 msg='virt=kvm resrc=vcpu
> reason=start vm="test" uuid=2932fd25-7c09-48a8-a5f0-c7165ddb3c82 old-vcpu=0
> new-vcpu=1 exe="/usr/sbin/libvirtd" hostname=? addr=? terminal=?
> res=success'
> type=VIRT_CONTROL msg=audit(1415921728.910:2879): user pid=21206 uid=0
> auid=4294967295 ses=4294967295
> subj=system_u:system_r:virtd_t:s0-s0:c0.c1023 msg='virt=kvm op=start
> reason=booted vm="test" uuid=2932fd25-7c09-48a8-a5f0-c7165ddb3c82 vm-pid=-1
> exe="/usr/sbin/libvirtd" hostname=? addr=? terminal=? res=failed'
>
>
> 2014-11-13 19:06 GMT+01:00 James James :
>
>> Hi Francesco,
>>
>> thanks for your help  :)
>>
>> 2014-11-13 17:51 GMT+01:00 Francesco Romani :
>>
>>>
>>> --
>>>
>>> *From: *"James James" 
>>> *To: *"users" 
>>> *Sent: *Thursday, November 13, 2014 5:41:21 PM
>>> *Subject: *[ovirt-users] VM migration/creation on host problem ...
>>>
>>>
>>> Hello,
>>>
>>> I've just reinstall a host (ovirt-node2) and now I am unable to
>>> create/migrate vm on this host.
>>>
>>> In attachment, the log from the destination server (ovirt-node2).
>>>
>>> Any help will be appreciated.
>>>
>>> James
>>>
>>>
>>> Hi James,
>>>
>>> can you please add the libvirt logs? depending on the version of oVirt
>>> VDSM is either
>>> /var/log/libvirt/libvirtd.log
>>> or multiplexed into
>>> /var/log/messages
>>>
>>> please also add QEMU logs as found in
>>> /var/log/libvirt/qemu/$VM_NAME.log
>>>
>>> where VM_NAME is "puppetdb" here
>>>
>>> thanks,
>>>
>>> --
>>> Francesco Romani
>>> RedHat Engineering Virtualization R & D
>>> Phone: 8261328
>>> IRC: fromani
>>>
>>
>>
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] VM migration/creation on host problem ...

2014-11-13 Thread James James
It's look like Selinux problem. I've just set selinux in permissive mode
and migration and vm creation work but I am not able to connect to the vm.
The network doesn't works. ;(

/dev/hpet" rdev=0A:E4 acl=rw exe="/usr/sbin/libvirtd" hostname=? addr=?
terminal=? res=success'
type=ANOM_PROMISCUOUS msg=audit(1415921728.561:2869): dev=vnet0 prom=256
old_prom=0 auid=4294967295 uid=0 gid=0 ses=4294967295
type=SYSCALL msg=audit(1415921728.561:2869): arch=c03e syscall=16
success=yes exit=0 a0=1e a1=89a2 a2=7ff7c77ecd30 a3=3a2032373a65736f
items=0 ppid=1 pid=21225 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0
egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="libvirtd"
exe="/usr/sbin/libvirtd" subj=system_u:system_r:virtd_t:s0-s0:c0.c1023
key=(null)
type=VIRT_RESOURCE msg=audit(1415921728.561:2870): user pid=21206 uid=0
auid=4294967295 ses=4294967295
subj=system_u:system_r:virtd_t:s0-s0:c0.c1023 msg='virt=kvm resrc=net
reason=open vm="test" uuid=2932fd25-7c09-48a8-a5f0-c7165ddb3c82
net=00:1A:4A:7C:94:00 path="/dev/net/tun" rdev=0A:C8
exe="/usr/sbin/libvirtd" hostname=? addr=? terminal=? res=success'
type=VIRT_RESOURCE msg=audit(1415921728.684:2871): user pid=21206 uid=0
auid=4294967295 ses=4294967295
subj=system_u:system_r:virtd_t:s0-s0:c0.c1023 msg='virt=kvm resrc=net
reason=open vm="test" uuid=2932fd25-7c09-48a8-a5f0-c7165ddb3c82
net=00:1A:4A:7C:94:00 path="/dev/vhost-net" rdev=0A:39
exe="/usr/sbin/libvirtd" hostname=? addr=? terminal=? res=success'
type=AVC msg=audit(1415921728.689:2872): avc:  denied  { connectto } for
pid=22575 comm="libvirtd" path="/var/run/sanlock/sanlock.sock"
scontext=system_u:system_r:svirt_t:s0:c110,c335
tcontext=system_u:system_r:sanlock_t:s0-s0:c0.c1023
tclass=unix_stream_socket
type=SYSCALL msg=audit(1415921728.689:2872): arch=c03e syscall=42
success=no exit=-13 a0=3 a1=7ff7c77ec710 a2=6e a3=0 items=0 ppid=1
pid=22575 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0
fsgid=0 tty=(none) ses=4294967295 comm="libvirtd" exe="/usr/sbin/libvirtd"
subj=system_u:system_r:virtd_t:s0-s0:c0.c1023 key=(null)
type=AVC msg=audit(1415921728.690:2873): avc:  denied  { connectto } for
pid=22575 comm="libvirtd" path="/var/run/sanlock/sanlock.sock"
scontext=system_u:system_r:svirt_t:s0:c110,c335
tcontext=system_u:system_r:sanlock_t:s0-s0:c0.c1023
tclass=unix_stream_socket
type=SYSCALL msg=audit(1415921728.690:2873): arch=c03e syscall=42
success=no exit=-13 a0=3 a1=7ff7c77ec890 a2=6e a3=0 items=0 ppid=1
pid=22575 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0
fsgid=0 tty=(none) ses=4294967295 comm="libvirtd" exe="/usr/sbin/libvirtd"
subj=system_u:system_r:virtd_t:s0-s0:c0.c1023 key=(null)
type=ANOM_ABEND msg=audit(1415921728.690:2874): auid=4294967295 uid=0 gid=0
ses=4294967295 subj=system_u:system_r:virtd_t:s0-s0:c0.c1023 pid=22575
comm="libvirtd" sig=11
type=ANOM_PROMISCUOUS msg=audit(1415921728.719:2875): dev=vnet0 prom=0
old_prom=256 auid=4294967295 uid=0 gid=0 ses=4294967295
type=VIRT_RESOURCE msg=audit(1415921728.910:2876): user pid=21206 uid=0
auid=4294967295 ses=4294967295
subj=system_u:system_r:virtd_t:s0-s0:c0.c1023 msg='virt=kvm resrc=net
reason=start vm="test" uuid=2932fd25-7c09-48a8-a5f0-c7165ddb3c82 old-net=?
new-net=00:1A:4A:7C:94:00 exe="/usr/sbin/libvirtd" hostname=? addr=?
terminal=? res=success'
type=VIRT_RESOURCE msg=audit(1415921728.910:2877): user pid=21206 uid=0
auid=4294967295 ses=4294967295
subj=system_u:system_r:virtd_t:s0-s0:c0.c1023 msg='virt=kvm resrc=mem
reason=start vm="test" uuid=2932fd25-7c09-48a8-a5f0-c7165ddb3c82 old-mem=0
new-mem=1048576 exe="/usr/sbin/libvirtd" hostname=? addr=? terminal=?
res=success'
type=VIRT_RESOURCE msg=audit(1415921728.910:2878): user pid=21206 uid=0
auid=4294967295 ses=4294967295
subj=system_u:system_r:virtd_t:s0-s0:c0.c1023 msg='virt=kvm resrc=vcpu
reason=start vm="test" uuid=2932fd25-7c09-48a8-a5f0-c7165ddb3c82 old-vcpu=0
new-vcpu=1 exe="/usr/sbin/libvirtd" hostname=? addr=? terminal=?
res=success'
type=VIRT_CONTROL msg=audit(1415921728.910:2879): user pid=21206 uid=0
auid=4294967295 ses=4294967295
subj=system_u:system_r:virtd_t:s0-s0:c0.c1023 msg='virt=kvm op=start
reason=booted vm="test" uuid=2932fd25-7c09-48a8-a5f0-c7165ddb3c82 vm-pid=-1
exe="/usr/sbin/libvirtd" hostname=? addr=? terminal=? res=failed'


2014-11-13 19:06 GMT+01:00 James James :

> Hi Francesco,
>
> thanks for your help  :)
>
> 2014-11-13 17:51 GMT+01:00 Francesco Romani :
>
>>
>> --
>>
>> *From: *"James James" 
>> *To: *"users" 
>> *Sent: *Thursday, November 13, 2014 5:41:21 P

Re: [ovirt-users] VM migration/creation on host problem ...

2014-11-13 Thread Francesco Romani
- Original Message -

> From: "James James" 
> To: "users" 
> Sent: Thursday, November 13, 2014 5:41:21 PM
> Subject: [ovirt-users] VM migration/creation on host problem ...

> Hello,

> I've just reinstall a host (ovirt-node2) and now I am unable to
> create/migrate vm on this host.

> In attachment, the log from the destination server (ovirt-node2).

> Any help will be appreciated.

> James

Hi James, 

can you please add the libvirt logs? depending on the version of oVirt VDSM is 
either 
/var/log/libvirt/libvirtd.log 
or multiplexed into 
/var/log/messages 

please also add QEMU logs as found in 
/var/log/libvirt/qemu/$VM_NAME.log 

where VM_NAME is "puppetdb" here 

thanks, 

-- 
Francesco Romani 
RedHat Engineering Virtualization R & D 
Phone: 8261328 
IRC: fromani 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] VM migration/creation on host problem ...

2014-11-13 Thread James James
Hello,

I've just reinstall a host (ovirt-node2) and now I am unable to
create/migrate vm on this host.

In attachment, the log from the destination server (ovirt-node2).

Any help will be appreciated.

James
Thread-57::DEBUG::2014-11-13 17:36:26,669::BindingXMLRPC::1067::vds::(wrapper) 
client [192.168.111.101]::call vmMigrationCreate with ({'guestFQDN': 
'puppetdb.example.com', 'acpiEnable': 'true', 'emulatedMachine': 'rhel6.5.0', 
'afterMigrationStatus': '', 'spiceSecureChannels': 
'smain,sinputs,scursor,splayback,srecord,sdisplay,susbredir,ssmartcard', 
'vmId': '0fdea856-9aec-4300-8d88-4cfd330cf4ff', 'memGuaranteedSize': 2048, 
'transparentHugePages': 'true', 'displaySecurePort': '5902', 
'spiceSslCipherSuite': 'DEFAULT', 'cpuType': 'Westmere', 'smp': '1', 
'pauseCode': 'NOERR', 'migrationDest': 'libvirt', 'numaTune': {'nodeset': 
'1,0', 'mode': 'interleave'}, 'custom': 
{'device_e10694e6-667b-41ef-aba6-697fd45e7960device_de79bf09-c5e0-4f4e-9b6d-188ee7178793device_4ecc434d-6d65-4771-9638-c78339d6feb9':
 'VmDevice {vmId=0fdea856-9aec-4300-8d88-4cfd330cf4ff, 
deviceId=4ecc434d-6d65-4771-9638-c78339d6feb9, device=unix, type=CHANNEL, 
bootOrder=0, specParams={}, address={port=2, bus=0, controller=0, 
type=virtio-serial}, managed=false, plugged=true, readOnly=false, 
deviceAlias=channel1, customProperties={}, snapshotId=null}', 
'device_e10694e6-667b-41ef-aba6-697fd45e7960device_de79bf09-c5e0-4f4e-9b6d-188ee7178793device_4ecc434d-6d65-4771-9638-c78339d6feb9device_5d4760e6-a49b-4a24-9daf-84fd119bcbd5':
 'VmDevice {vmId=0fdea856-9aec-4300-8d88-4cfd330cf4ff, 
deviceId=5d4760e6-a49b-4a24-9daf-84fd119bcbd5, device=spicevmc, type=CHANNEL, 
bootOrder=0, specParams={}, address={port=3, bus=0, controller=0, 
type=virtio-serial}, managed=false, plugged=true, readOnly=false, 
deviceAlias=channel2, customProperties={}, snapshotId=null}', 
'device_e10694e6-667b-41ef-aba6-697fd45e7960': 'VmDevice 
{vmId=0fdea856-9aec-4300-8d88-4cfd330cf4ff, 
deviceId=e10694e6-667b-41ef-aba6-697fd45e7960, device=ide, type=CONTROLLER, 
bootOrder=0, specParams={}, address={bus=0x00, domain=0x, type=pci, 
slot=0x01, function=0x1}, managed=false, plugged=true, readOnly=false, 
deviceAlias=ide0, customProperties={}, snapshotId=null}', 
'device_e10694e6-667b-41ef-aba6-697fd45e7960device_de79bf09-c5e0-4f4e-9b6d-188ee7178793':
 'VmDevice {vmId=0fdea856-9aec-4300-8d88-4cfd330cf4ff, 
deviceId=de79bf09-c5e0-4f4e-9b6d-188ee7178793, device=unix, type=CHANNEL, 
bootOrder=0, specParams={}, address={port=1, bus=0, controller=0, 
type=virtio-serial}, managed=false, plugged=true, readOnly=false, 
deviceAlias=channel0, customProperties={}, snapshotId=null}'}, 'vmType': 'kvm', 
'_srcDomXML': "\n  puppetdb\n  
0fdea856-9aec-4300-8d88-4cfd330cf4ff\n  2097152\n  2097152\n  16\n  \n1020\n
1000\n-1\n  \n  \n
\n  \n  \n\n  oVirt\n  
oVirt Node\n  6.6-1\n  4C4C4544-0035-5310-8038-C7C04F39354A\n  0fdea856-9aec-4300-8d88-4cfd330cf4ff\n\n  
\n  \nhvm\n
\n\n  \n  \n
\n  \n  \nWestmere\n\n  \n  \n\n\n\n  
\n  destroy\n  
restart\n  destroy\n  \n   
 /usr/libexec/qemu-kvm\n\n  \n  \n  \n  
\n  \n  \n  
\n
\n\n  \n  
\n
  \n  
0e710a40-017b-4547-9b47-49524777d0d4\n  \n  \n\n\n  \n  \n
\n\n 
 \n  \n\n\n  \n  \n\n
\n  \n  \n
\n\n  \n  \n  
\n  \n  \n  \n  \n  \n  \n  \n\n
\n  \n
  \n  \n  \n\n\n  \n
  \n  \n  \n\n\n  \n  \n 
 \n
\n\n\n  \n  \n  \n
  \n  \n  \n  \n  \n  \n
\n\n  \n  \n  \n\n
\n  \n  \n
\n  \n  \nsystem_u:system_r:svirt_t:s0:c656,c983\n
system_u:object_r:svirt_image_t:s0:c656,c983\n  
\n\n", 'memSize': 2048, 'smpCoresPerSocket': '1', 'vmName': 
'puppetdb', 'nice': '0', 'username': 'None', 'bootMenuEnable': 'false', 
'copyPasteEnable': 'true', 'displayIp': '192.168.111.101', 'keyboardLayout': 
'en-us', 'displayPort': '-1', 'smartcardEnable': 'false', 'clientIp': '', 
'fileTransferEnable': 'true', 'nicModel': 'rtl8139,pv', 'elapsedTimeOffset': 
5698.6938869953156, 'kvmEnable': 'true', 'pitReinjection': 'false', 
'displayNetwork': 'ovirtmgmt', 'devices': [{'target': 2097152, 'specParams': 
{'model': 'virtio'}, 'alias': 'balloon0', 'deviceId': 
'8159e614-2ad3-41a1-961d-ba046a609942', 'address': {'slot': '0x07', 'bus': 
'0x00', 'domain': '0x', 'type': 'pci', 'function': '0x0'}, 'device': 
'memballoon', 'type': 'balloon'}, {'index': '0', 'alias': 'scsi0', 
'specParams': {}, 'deviceId': '8013dd09-45a6-4c62-a529-7ec1e79e4961', 
'address': {'slot': '0x04', 'bus': '0x00', 'domain': '0x', 'type': 'pci', 
'function': '0x0'}, 'device': 'scsi', 'model': 'virtio-scsi', 'type': 
'controller'}, {'specParams': {}, 'alias': 'virtio-serial0', 'deviceId':