Re: [Users] virt-v2v

2014-03-03 Thread Richard W.M. Jones
On Fri, Feb 28, 2014 at 02:41:16PM -0500, Maurice James wrote:
 I ran
 LIBGUESTFS_TRACE=1 LIBGUESTFS_DEBUG=1 virt-v2v -ic 
 esx://172.16.10.200/?no_verify=1 -o rhev -osd 
 host.domain.com:/storage/exports --network ovirtmgmt Tester 21 | tee 
 virt-v2v.log
 The contents of virt-v2v.log is:
 virt-v2v: Didn't receive full volume. Received 1139880072 of 21474836480 
 bytes.virt-v2v: Transferring storage volume Tester_Tester: 21474836480 bytes

This is, unfortunately, a known bug in virt-v2v which we've never been
able to reproduce here, and so have never been able to diagnose.
There is no known fix or workaround.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
libguestfs lets you edit virtual machines.  Supports shell scripting,
bindings from many languages.  http://libguestfs.org
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Adding FC19 Host to oVirt Engine 3.3.3-2.fc19 - Failed to configure management network on the host

2014-03-03 Thread Moti Asayag
 - Original Message -
  From: Udaya Kiran P ukiran...@yahoo.in
  To: users users@ovirt.org, Alon Bar-Lev alo...@redhat.com
  Sent: Monday, March 3, 2014 8:55:23 AM
  Subject: Adding FC19 Host to oVirt Engine 3.3.3-2.fc19 - Failed to
  configure management network on the host
  
  Hi All,
  
  I am trying to add FC19 host to oVirt Engine 3.3.3-2.fc19.
  
  It fails with the error - Host installation failed. Failed to configure
  management network on the host. Attached is the host deploy log.
 
 Host deploy is OK.
 Please attach engine.log.

and /var/log/vdsm/vdsm.log, /var/log/vdsm/supervdsm.log and /var/log/messages

 CCing Moti.
 
 Thanks!
 
  Appreciate your help.
  
  
  Events logged
  =
  
  2014-Mar-03, 11:39
  Host Bay16FC19 installation failed. Failed to configure management network
  on
  the host.
  
  2014-Mar-03, 11:39
  Failed to configure management network on host Bay16FC19 due to setup
  networks failure.
  
  2014-Mar-03, 11:36
  Installing Host Bay16FC19. Stage: Termination.
  
  2014-Mar-03, 11:35
  Installing Host Bay16FC19. Retrieving installation logs to:
  '/var/log/ovirt-engine/host-deploy/ovirt-20140303113559-10.10.22.114-33078fb1.log'.
  
  2014-Mar-03, 11:35
  Installing Host Bay16FC19. Stage: Pre-termination.
  
  2014-Mar-03, 11:35
  Installing Host Bay16FC19. Starting vdsm.
  
  2014-Mar-03, 11:35
  Installing Host Bay16FC19. Stopping libvirtd.
  
  2014-Mar-03, 11:35
  Installing Host Bay16FC19. Stage: Closing up.
  
  2014-Mar-03, 11:35
  Installing Host Bay16FC19. Stage: Transaction commit.
  
  2014-Mar-03, 11:35
  Installing Host Bay16FC19. Enrolling certificate.
  
  2014-Mar-03, 11:35
  Installing Host Bay16FC19. Setting time.
  
  2014-Mar-03, 11:35
  Installing Host Bay16FC19. Stage: Misc configuration.
  
  2014-Mar-03, 11:35
  Installing Host Bay16FC19. Stage: Package installation.
  
  2014-Mar-03, 11:35
  Installing Host Bay16FC19. Stage: Misc configuration.
  
  2014-Mar-03, 11:35
  Installing Host Bay16FC19. Stage: Transaction setup.
  
  2014-Mar-03, 11:35
  Installing Host Bay16FC19. Hardware supports virtualization.
  
  2014-Mar-03, 11:35
  Installing Host Bay16FC19. Stage: Setup validation.
  
  2014-Mar-03, 11:35
  Installing Host Bay16FC19. Logs at host located at:
  '/tmp/ovirt-host-deploy-20140303010018.log'.
  
  2014-Mar-03, 11:35
  Installing Host Bay16FC19. Stage: Environment customization.
  
  2014-Mar-03, 11:35
  Installing Host Bay16FC19. Stage: Programs detection.
  
  2014-Mar-03, 11:35
  Installing Host Bay16FC19. Stage: Environment packages setup.
  
  2014-Mar-03, 11:35
  Installing Host Bay16FC19. Stage: Environment setup.
  
  2014-Mar-03, 11:35
  Installing Host Bay16FC19. Stage: Initializing.
  
  2014-Mar-03, 11:35
  Installing Host Bay16FC19. Connected to host 10.10.22.114 with SSH key
  fingerprint: 60:9d:74:6b:cf:2d:af:3c:77:c6:38:bd:49:de:59:5c.
  
  
  Regards,
  Udaya Kiran
 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Adding FC19 Host to oVirt Engine 3.3.3-2.fc19 - Failed to configure management network on the host

2014-03-03 Thread Moti Asayag

The engine attempts to configure the management network on top of 'em1' device 
which is reported 
in the getVdsCaps without the cfg element:

'em1': {'netmask': '255.255.0.0', 'addr': '10.10.22.114', 'hwaddr': 
'e8:39:35:2b:3c:26', 'cfg': {}, 'ipv6addrs': ['fe80::ea39:35ff:fe2b:3c26/64'], 
'speed': 5000, 'mtu': '1500'}

IIRC this issue is already reported and can be solved by creating the ifcfg-em1 
on the host.
Toni, could you confirm ?

- Original Message -
 From: Udaya Kiran P ukiran...@yahoo.in
 To: Moti Asayag masa...@redhat.com
 Cc: users users@ovirt.org, Alon Bar-Lev alo...@redhat.com
 Sent: Monday, March 3, 2014 11:29:25 AM
 Subject: Re: Adding FC19 Host to oVirt Engine 3.3.3-2.fc19 - Failed to 
 configure management network on the host
 
 Hi Moti,
 
 Attached.
 
 Thank you.
 
 Regards,
 Udaya Kiran
 
 
 
 On Monday, 3 March 2014 2:43 PM, Moti Asayag masa...@redhat.com wrote:
  
  - Original Message -
   From: Udaya Kiran P ukiran...@yahoo.in
   To: users users@ovirt.org, Alon Bar-Lev alo...@redhat.com
   Sent: Monday, March 3, 2014 8:55:23 AM
   Subject: Adding FC19 Host to oVirt Engine 3.3.3-2.fc19 - Failed to
   configure management network on the host
   
   Hi All,
   
   I am trying to add FC19 host to oVirt Engine 3.3.3-2.fc19.
   
   It fails with the error - Host installation failed. Failed to configure
   management network on the host. Attached is the host deploy log.
  
  Host deploy is OK.
  Please attach engine.log.
 
 and /var/log/vdsm/vdsm.log, /var/log/vdsm/supervdsm.log and /var/log/messages
 
 
  CCing Moti.
  
  Thanks!
  
   Appreciate your help.
   
   
   Events logged
   =
   
   2014-Mar-03, 11:39
   Host Bay16FC19 installation failed. Failed to configure management
   network
   on
   the host.
   
   2014-Mar-03, 11:39
   Failed to configure management network on host Bay16FC19 due to setup
   networks failure.
   
   2014-Mar-03, 11:36
   Installing Host Bay16FC19. Stage: Termination.
   
   2014-Mar-03, 11:35
   Installing Host Bay16FC19. Retrieving installation logs to:
   '/var/log/ovirt-engine/host-deploy/ovirt-20140303113559-10.10.22.114-33078fb1.log'.
   
   2014-Mar-03, 11:35
   Installing Host Bay16FC19. Stage: Pre-termination.
   
   2014-Mar-03, 11:35
   Installing Host Bay16FC19. Starting vdsm.
   
   2014-Mar-03, 11:35
   Installing Host Bay16FC19. Stopping libvirtd.
   
   2014-Mar-03, 11:35
   Installing Host Bay16FC19. Stage: Closing up.
   
   2014-Mar-03, 11:35
   Installing Host Bay16FC19. Stage: Transaction commit.
   
   2014-Mar-03, 11:35
   Installing Host Bay16FC19. Enrolling certificate.
   
   2014-Mar-03, 11:35
   Installing Host Bay16FC19. Setting time.
   
   2014-Mar-03, 11:35
   Installing Host Bay16FC19. Stage: Misc configuration.
   
   2014-Mar-03, 11:35
   Installing Host Bay16FC19. Stage: Package installation.
   
   2014-Mar-03, 11:35
   Installing Host Bay16FC19. Stage: Misc configuration.
   
   2014-Mar-03, 11:35
   Installing Host Bay16FC19. Stage: Transaction setup.
   
   2014-Mar-03, 11:35
   Installing Host Bay16FC19. Hardware supports virtualization.
   
   2014-Mar-03, 11:35
   Installing Host Bay16FC19. Stage: Setup validation.
   
   2014-Mar-03, 11:35
   Installing Host Bay16FC19. Logs at host located at:
   '/tmp/ovirt-host-deploy-20140303010018.log'.
   
   2014-Mar-03, 11:35
   Installing Host Bay16FC19. Stage: Environment customization.
   
   2014-Mar-03, 11:35
   Installing Host Bay16FC19. Stage: Programs detection.
   
   2014-Mar-03, 11:35
   Installing Host Bay16FC19. Stage: Environment packages setup.
   
   2014-Mar-03, 11:35
   Installing Host Bay16FC19. Stage: Environment setup.
   
   2014-Mar-03, 11:35
   Installing Host Bay16FC19. Stage: Initializing.
   
   2014-Mar-03, 11:35
   Installing Host Bay16FC19. Connected to host 10.10.22.114 with SSH key
   fingerprint: 60:9d:74:6b:cf:2d:af:3c:77:c6:38:bd:49:de:59:5c.
   
   
   Regards,
   Udaya Kiran
 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Supported Billing Software for oVirt

2014-03-03 Thread Gilad Chaplik
I'm not aware of this kind of feature...

You can open a RFE, and I hope we'll have the time to add it the upcoming 
versions:
https://bugzilla.redhat.com/enter_bug.cgi?product=oVirt

There could have been a possibly to write a cron job/similar that manage quotas 
externally using oVirt public API, but unfortunately, quotas aren't exposed 
there yet (on our TODO list).

BUT (there's always one  :-)), you can use quotas^^ for capping, and use 
external plugin (external scheduler/ vdsm hook) that responsible for 
subscription duration (integrate with 3rd party or write one your self, names 
and dates- shouldn't be that hard).

keep me posted :-)


Thanks, 
Gilad.


- Original Message -
 From: Dewangga Bachrul Alam dewangg...@xtremenitro.org
 To: Gilad Chaplik gchap...@redhat.com
 Cc: users@ovirt.org
 Sent: Monday, March 3, 2014 2:04:16 AM
 Subject: Re: [Users] Supported Billing Software for oVirt
 
 Hi Gilad,
 
 
 Thanks for the info, but Is there any info about billing software? For the
 example, user A only have one month subscription, then if more than one
 month, the subscription has expired. So, the service on user A was suspended
 while the subscription has expired.
 
 
 
 
 Is it possible on oVirt?
 —
 Dewangga Bachrul Alam, S.St
 Network  System Administrator
 Sent from Mailbox for iPad
 
 On Sun, Mar 2, 2014 at 10:39 PM, Gilad Chaplik gchap...@redhat.com
 wrote:
 
  Hi,
  Don't know about 3rd parties, but you can use quotas to limit user
  activities (storage/memory/cpu consumption).
  Check out these clips, and see if it suits you:
  http://www.youtube.com/watch?v=zazJ_fW05Qk
  http://www.youtube.com/watch?v=jExFWEojF4c
  http://www.youtube.com/watch?v=y8qUoRImimY
  Thanks,
  Gilad.
  - Original Message -
  From: Dewangga dewangg...@xtremenitro.org
  To: users@ovirt.org
  Sent: Sunday, March 2, 2014 5:08:59 PM
  Subject: [Users] Supported Billing Software for oVirt
  
  -BEGIN PGP SIGNED MESSAGE-
  Hash: SHA1
  
  Hi there,
  
  I'm new using oVirt 3.3, and I planned to make cloud environment using
  payment gateway. For example, Hostbill are support Openstack, basic
  things are for provision. http://hostbillapp.com/hostbill/
  
  And, is there any billing software/management support oVirt?
  -BEGIN PGP SIGNATURE-
  Version: GnuPG v1
  
  iQEcBAEBAgAGBQJTE0mLAAoJEEyntV5BtO+QO/cH/0Akcj/MWj4wihjHUKcoEfWU
  DBUvL+yiPAY9jRnd6jyGXfEGe8rFekS1PhdF+D+tpih1s8rt6PPC0bSnpVJmCaro
  I5FvJiQD8W6ZMilKdHEPfc1TGIqM2+nd3uyaGVis7tcxySebfpheJ/k7qxzxZHUf
  YQqtKOLbTKttRu2t4vSbaQa76LEUdr74GQV+/XTHWQ2yGFHCul7lI3Rv+CT14mH/
  +y+AWUQVmO3euaCt8IpYvpy5AZe55ytSSLYplBueyVE8fhMwhwME+qDqHp5lx8j6
  PfDuxJfcHvZK1KrQrq55U6aUc2mkf6vi29l5aRWE4svq12aweJvvGvN1NsMvIAM=
  =ViEx
  -END PGP SIGNATURE-
  ___
  Users mailing list
  Users@ovirt.org
  http://lists.ovirt.org/mailman/listinfo/users
 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[Users] Proper way to reboot an ovirt node

2014-03-03 Thread Jonas Israelsson

What is the recommended proper way reboot an Ovirt node ?

I started by putting the host into in Maintenance mode and was going to 
via the TUI interface just reboot the machine.
Should I then use the confirm host rebooted before I put the host back 
from Maintenance mode ?


I have rebooted my Nodes violently hundreds of times (and they have 
always recovered), but now I have data/config that I'm keen not to loose.


Failed to find this info on the wiki...

Brgds Jonas
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[Users] hosted engine issues

2014-03-03 Thread René Koch

Hi,

I have some issues with hosted engine (oVirt 3.4 prerelease repo on 
CentOS 6.5).

My setups is the following:
2 hosts (will be 4 in the future) with 4 GlusterFS shares:
- engine (for hosted engine)
- iso (for ISO domain)
- ovirt (oVirt storage domain)

I had a split-brain situation today (after rebooting both nodes) on 
hosted-engine.lockspace file on engine GlusterFS volume which I resolved.


hosted engine used engine share via NFS (TCP) as glusterfs isn't 
supported for oVirt hosted engine, yet. I'll switch to GlusterFS as soon 
as oVirt will support it (I hope this will be soon as RHEV 3.3 is 
already supporting GlusterFS for hosted engine).



First of all ovirt-ha-agent fails to start on both nodes:

# service ovirt-ha-agent start
Starting ovirt-ha-agent:   [  OK  ]
# service ovirt-ha-agent status
ovirt-ha-agent dead but subsys locked


MainThread::INFO::2014-03-03 
11:20:39,539::agent::52::ovirt_hosted_engine_ha.agent.agent.Agent::(run) 
ovirt-hosted-engine-ha agent 1.1.0 started
MainThread::INFO::2014-03-03 
11:20:39,590::hosted_engine::223::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(_get_hostname) 
Found certificate common name: 10.0.200.101
MainThread::CRITICAL::2014-03-03 
11:20:39,590::agent::103::ovirt_hosted_engine_ha.agent.agent.Agent::(run) Could 
not start ha-agent

Traceback (most recent call last):
  File 
/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/agent/agent.py, line 
97, in run

self._run_agent()
  File 
/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/agent/agent.py, line 
154, in _run_agent

hosted_engine.HostedEngine(self.shutdown_requested).start_monitoring()
  File 
/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/agent/hosted_engine.py, 
line 152, in __init__

STOP_VM: self._stop_engine_vm
  File 
/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/agent/state_machine.py, 
line 56, in __init__

logger, actions)
  File 
/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/lib/fsm/machine.py, 
line 93, in __init__

self._logger = FSMLoggerAdapter(logger, self)
  File 
/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/lib/fsm/machine.py, 
line 16, in __init__

super(FSMLoggerAdapter, self).__init__(logger, None)
TypeError: super() argument 1 must be type, not classobj



If I want to start my hosted engine, I receive the following error in 
vdsm logs, which makes absolutly no sense to me, as there is plenty of 
disk space available:


Thread-62::DEBUG::2014-03-03 
11:24:46,282::libvirtconnection::124::root::(wrapper) Unknown 
libvirterror: ecode: 38 edom: 42 level: 2 message: Failed to acquire 
lock: No space left on device
Thread-62::DEBUG::2014-03-03 
11:24:46,282::vm::2252::vm.Vm::(_startUnderlyingVm) 
vmId=`f26dd37e-13b5-430c-b2f2-ecd098b82a91`::_ongoingCreations released
Thread-62::ERROR::2014-03-03 
11:24:46,283::vm::2278::vm.Vm::(_startUnderlyingVm) 
vmId=`f26dd37e-13b5-430c-b2f2-ecd098b82a91`::The vm start process failed

Traceback (most recent call last):
  File /usr/share/vdsm/vm.py, line 2238, in _startUnderlyingVm
self._run()
  File /usr/share/vdsm/vm.py, line 3159, in _run
self._connection.createXML(domxml, flags),
  File /usr/lib64/python2.6/site-packages/vdsm/libvirtconnection.py, 
line 92, in wrapper

ret = f(*args, **kwargs)
  File /usr/lib64/python2.6/site-packages/libvirt.py, line 2665, in 
createXML
if ret is None:raise libvirtError('virDomainCreateXML() failed', 
conn=self)

libvirtError: Failed to acquire lock: No space left on device
Thread-62::DEBUG::2014-03-03 
11:24:46,286::vm::2720::vm.Vm::(setDownStatus) 
vmId=`f26dd37e-13b5-430c-b2f2-ecd098b82a91`::Changed state to Down: 
Failed to acquire lock: No space left on device


# df -h | grep engine
ovirt-host01:/engine 281G   21G  261G   8% 
/rhev/data-center/mnt/ovirt-host01:_engine


# sudo -u vdsm dd if=/dev/zero 
of=/rhev/data-center/mnt/ovirt-host01:_engine/2851af27-8744-445d-9fb1-a0d083c8dc82/images/0e4d270f-2f7e-4b2b-847f-f114a4ba9bdc/test 
bs=512 count=100

100+0 records in
100+0 records out
51200 bytes (51 kB) copied, 0.0230566 s, 2.2 MB/s


Could you give me some information on how to fix the ovirt-ha-agent and 
then hosted-engine storage issue? Thanks a lot.


Btw, I had some issues during installation which I will explain in 
separate emails.



--
Best Regards

René Koch
Senior Solution Architect


LIS-Linuxland GmbH
Brünner Straße 163, A-1210 Vienna

Phone:   +43 1 236 91 60
Mobile:  +43 660 / 512 21 31
E-Mail:  rk...@linuxland.at


___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] hosted engine issues

2014-03-03 Thread Sandro Bonazzola
Il 03/03/2014 11:33, René Koch ha scritto:
 Hi,
 
 I have some issues with hosted engine (oVirt 3.4 prerelease repo on CentOS 
 6.5).
 My setups is the following:
 2 hosts (will be 4 in the future) with 4 GlusterFS shares:
 - engine (for hosted engine)
 - iso (for ISO domain)
 - ovirt (oVirt storage domain)
 
 I had a split-brain situation today (after rebooting both nodes) on 
 hosted-engine.lockspace file on engine GlusterFS volume which I resolved.

How did you solved it? By switching to NFS only?


 hosted engine used engine share via NFS (TCP) as glusterfs isn't supported 
 for oVirt hosted engine, yet. I'll switch to GlusterFS as soon as oVirt
 will support it (I hope this will be soon as RHEV 3.3 is already supporting 
 GlusterFS for hosted engine).
 
 
 First of all ovirt-ha-agent fails to start on both nodes:
 
 # service ovirt-ha-agent start
 Starting ovirt-ha-agent:   [  OK  ]
 # service ovirt-ha-agent status
 ovirt-ha-agent dead but subsys locked
 
 
 MainThread::INFO::2014-03-03 
 11:20:39,539::agent::52::ovirt_hosted_engine_ha.agent.agent.Agent::(run) 
 ovirt-hosted-engine-ha agent 1.1.0 started
 MainThread::INFO::2014-03-03 
 11:20:39,590::hosted_engine::223::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(_get_hostname)
  Found
 certificate common name: 10.0.200.101
 MainThread::CRITICAL::2014-03-03 
 11:20:39,590::agent::103::ovirt_hosted_engine_ha.agent.agent.Agent::(run) 
 Could not start ha-agent
 Traceback (most recent call last):
   File 
 /usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/agent/agent.py, 
 line 97, in run
 self._run_agent()
   File 
 /usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/agent/agent.py, 
 line 154, in _run_agent
 hosted_engine.HostedEngine(self.shutdown_requested).start_monitoring()
   File 
 /usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/agent/hosted_engine.py,
  line 152, in __init__
 STOP_VM: self._stop_engine_vm
   File 
 /usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/agent/state_machine.py,
  line 56, in __init__
 logger, actions)
   File 
 /usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/lib/fsm/machine.py, 
 line 93, in __init__
 self._logger = FSMLoggerAdapter(logger, self)
   File 
 /usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/lib/fsm/machine.py, 
 line 16, in __init__
 super(FSMLoggerAdapter, self).__init__(logger, None)
 TypeError: super() argument 1 must be type, not classobj
 
 
 
 If I want to start my hosted engine, I receive the following error in vdsm 
 logs, which makes absolutly no sense to me, as there is plenty of disk
 space available:
 
 Thread-62::DEBUG::2014-03-03 
 11:24:46,282::libvirtconnection::124::root::(wrapper) Unknown libvirterror: 
 ecode: 38 edom: 42 level: 2 message: Failed
 to acquire lock: No space left on device

seems like a vdsm failure in starting monitor the hosted engine storage domain.
Can you attach vdsm logs?



 Thread-62::DEBUG::2014-03-03 
 11:24:46,282::vm::2252::vm.Vm::(_startUnderlyingVm) 
 vmId=`f26dd37e-13b5-430c-b2f2-ecd098b82a91`::_ongoingCreations released
 Thread-62::ERROR::2014-03-03 
 11:24:46,283::vm::2278::vm.Vm::(_startUnderlyingVm) 
 vmId=`f26dd37e-13b5-430c-b2f2-ecd098b82a91`::The vm start process failed
 Traceback (most recent call last):
   File /usr/share/vdsm/vm.py, line 2238, in _startUnderlyingVm
 self._run()
   File /usr/share/vdsm/vm.py, line 3159, in _run
 self._connection.createXML(domxml, flags),
   File /usr/lib64/python2.6/site-packages/vdsm/libvirtconnection.py, line 
 92, in wrapper
 ret = f(*args, **kwargs)
   File /usr/lib64/python2.6/site-packages/libvirt.py, line 2665, in 
 createXML
 if ret is None:raise libvirtError('virDomainCreateXML() failed', 
 conn=self)
 libvirtError: Failed to acquire lock: No space left on device
 Thread-62::DEBUG::2014-03-03 11:24:46,286::vm::2720::vm.Vm::(setDownStatus) 
 vmId=`f26dd37e-13b5-430c-b2f2-ecd098b82a91`::Changed state to Down: Failed
 to acquire lock: No space left on device
 
 # df -h | grep engine
 ovirt-host01:/engine 281G   21G  261G   8% 
 /rhev/data-center/mnt/ovirt-host01:_engine
 
 # sudo -u vdsm dd if=/dev/zero
 of=/rhev/data-center/mnt/ovirt-host01:_engine/2851af27-8744-445d-9fb1-a0d083c8dc82/images/0e4d270f-2f7e-4b2b-847f-f114a4ba9bdc/test
  bs=512 count=100
 100+0 records in
 100+0 records out
 51200 bytes (51 kB) copied, 0.0230566 s, 2.2 MB/s
 
 
 Could you give me some information on how to fix the ovirt-ha-agent and then 
 hosted-engine storage issue? Thanks a lot.
 
 Btw, I had some issues during installation which I will explain in separate 
 emails.
 
 


-- 
Sandro Bonazzola
Better technology. Faster innovation. Powered by community collaboration.
See how it works at redhat.com
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Adding FC19 Host to oVirt Engine 3.3.3-2.fc19 - Failed to configure management network on the host

2014-03-03 Thread Dan Kenigsberg
On Mon, Mar 03, 2014 at 04:42:25AM -0500, Moti Asayag wrote:
 
 The engine attempts to configure the management network on top of 'em1' 
 device which is reported 
 in the getVdsCaps without the cfg element:
 
 'em1': {'netmask': '255.255.0.0', 'addr': '10.10.22.114', 'hwaddr': 
 'e8:39:35:2b:3c:26', 'cfg': {}, 'ipv6addrs': 
 ['fe80::ea39:35ff:fe2b:3c26/64'], 'speed': 5000, 'mtu': '1500'}
 
 IIRC this issue is already reported and can be solved by creating the 
 ifcfg-em1 on the host.
 Toni, could you confirm ?

Ondrej is working of a fix for this bug in these very days
http://gerrit.ovirt.org/#/c/25170/
Independent verification most welcome (hint hint).
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] hosted engine issues

2014-03-03 Thread Martin Sivak
Hi René,

thanks for the report.

  TypeError: super() argument 1 must be type, not classobj
What Python version are you using?

You can debug a crash of this version of ha-agent using:

/usr/share/ovirt-hosted-engine-ha/ovirt-ha-agent --no-daemon --pdb

But this exception is trying to tell you that 
FSMLoggerAdapter(logging.LoggerAdapter) does not have object in the ancestor 
list. And that is very weird.

It can be related to the disk space issues.

  libvirtError: Failed to acquire lock: No space left on device

Check the free space on all your devices, including /tmp and /var. Or post the 
output of df -h command here

Regards

--
Martin Sivák
msi...@redhat.com
Red Hat Czech
RHEV-M SLA / Brno, CZ

- Original Message -
 Il 03/03/2014 11:33, René Koch ha scritto:
  Hi,
  
  I have some issues with hosted engine (oVirt 3.4 prerelease repo on CentOS
  6.5).
  My setups is the following:
  2 hosts (will be 4 in the future) with 4 GlusterFS shares:
  - engine (for hosted engine)
  - iso (for ISO domain)
  - ovirt (oVirt storage domain)
  
  I had a split-brain situation today (after rebooting both nodes) on
  hosted-engine.lockspace file on engine GlusterFS volume which I resolved.
 
 How did you solved it? By switching to NFS only?
 
 
  hosted engine used engine share via NFS (TCP) as glusterfs isn't supported
  for oVirt hosted engine, yet. I'll switch to GlusterFS as soon as oVirt
  will support it (I hope this will be soon as RHEV 3.3 is already supporting
  GlusterFS for hosted engine).
  
  
  First of all ovirt-ha-agent fails to start on both nodes:
  
  # service ovirt-ha-agent start
  Starting ovirt-ha-agent:   [  OK  ]
  # service ovirt-ha-agent status
  ovirt-ha-agent dead but subsys locked
  
  
  MainThread::INFO::2014-03-03
  11:20:39,539::agent::52::ovirt_hosted_engine_ha.agent.agent.Agent::(run)
  ovirt-hosted-engine-ha agent 1.1.0 started
  MainThread::INFO::2014-03-03
  11:20:39,590::hosted_engine::223::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(_get_hostname)
  Found
  certificate common name: 10.0.200.101
  MainThread::CRITICAL::2014-03-03
  11:20:39,590::agent::103::ovirt_hosted_engine_ha.agent.agent.Agent::(run)
  Could not start ha-agent
  Traceback (most recent call last):
File
/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/agent/agent.py,
line 97, in run
  self._run_agent()
File
/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/agent/agent.py,
line 154, in _run_agent
  hosted_engine.HostedEngine(self.shutdown_requested).start_monitoring()
File

  /usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/agent/hosted_engine.py,
line 152, in __init__
  STOP_VM: self._stop_engine_vm
File

  /usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/agent/state_machine.py,
line 56, in __init__
  logger, actions)
File

  /usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/lib/fsm/machine.py,
line 93, in __init__
  self._logger = FSMLoggerAdapter(logger, self)
File

  /usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/lib/fsm/machine.py,
line 16, in __init__
  super(FSMLoggerAdapter, self).__init__(logger, None)
  TypeError: super() argument 1 must be type, not classobj
  
  
  
  If I want to start my hosted engine, I receive the following error in vdsm
  logs, which makes absolutly no sense to me, as there is plenty of disk
  space available:
  
  Thread-62::DEBUG::2014-03-03
  11:24:46,282::libvirtconnection::124::root::(wrapper) Unknown
  libvirterror: ecode: 38 edom: 42 level: 2 message: Failed
  to acquire lock: No space left on device
 
 seems like a vdsm failure in starting monitor the hosted engine storage
 domain.
 Can you attach vdsm logs?
 
 
 
  Thread-62::DEBUG::2014-03-03
  11:24:46,282::vm::2252::vm.Vm::(_startUnderlyingVm)
  vmId=`f26dd37e-13b5-430c-b2f2-ecd098b82a91`::_ongoingCreations released
  Thread-62::ERROR::2014-03-03
  11:24:46,283::vm::2278::vm.Vm::(_startUnderlyingVm)
  vmId=`f26dd37e-13b5-430c-b2f2-ecd098b82a91`::The vm start process failed
  Traceback (most recent call last):
File /usr/share/vdsm/vm.py, line 2238, in _startUnderlyingVm
  self._run()
File /usr/share/vdsm/vm.py, line 3159, in _run
  self._connection.createXML(domxml, flags),
File /usr/lib64/python2.6/site-packages/vdsm/libvirtconnection.py, line
92, in wrapper
  ret = f(*args, **kwargs)
File /usr/lib64/python2.6/site-packages/libvirt.py, line 2665, in
createXML
  if ret is None:raise libvirtError('virDomainCreateXML() failed',
  conn=self)
  libvirtError: Failed to acquire lock: No space left on device
  Thread-62::DEBUG::2014-03-03 11:24:46,286::vm::2720::vm.Vm::(setDownStatus)
  vmId=`f26dd37e-13b5-430c-b2f2-ecd098b82a91`::Changed state to Down: Failed
  to acquire lock: No space left on device
  
  # df -h | grep engine
  ovirt-host01:/engine 281G   21G  261G   8%
  

[Users] Which ovirt-node version to use

2014-03-03 Thread Andy Michielsen
Hello,

Which ovirt-node iso should I use to install and use with the ovirt-engine
3.3

Kind regards.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] hosted engine issues

2014-03-03 Thread René Koch

On 03/03/2014 11:47 AM, Sandro Bonazzola wrote:

Il 03/03/2014 11:33, René Koch ha scritto:

Hi,

I have some issues with hosted engine (oVirt 3.4 prerelease repo on CentOS 6.5).
My setups is the following:
2 hosts (will be 4 in the future) with 4 GlusterFS shares:
- engine (for hosted engine)
- iso (for ISO domain)
- ovirt (oVirt storage domain)

I had a split-brain situation today (after rebooting both nodes) on 
hosted-engine.lockspace file on engine GlusterFS volume which I resolved.


How did you solved it? By switching to NFS only?



I removed the file on host1 (directly on the brick) and ran gluster 
volume heal engine full, which synced the file from host2 to host1.






hosted engine used engine share via NFS (TCP) as glusterfs isn't supported for 
oVirt hosted engine, yet. I'll switch to GlusterFS as soon as oVirt
will support it (I hope this will be soon as RHEV 3.3 is already supporting 
GlusterFS for hosted engine).


First of all ovirt-ha-agent fails to start on both nodes:

# service ovirt-ha-agent start
Starting ovirt-ha-agent:   [  OK  ]
# service ovirt-ha-agent status
ovirt-ha-agent dead but subsys locked


MainThread::INFO::2014-03-03 
11:20:39,539::agent::52::ovirt_hosted_engine_ha.agent.agent.Agent::(run) 
ovirt-hosted-engine-ha agent 1.1.0 started
MainThread::INFO::2014-03-03 
11:20:39,590::hosted_engine::223::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(_get_hostname)
 Found
certificate common name: 10.0.200.101
MainThread::CRITICAL::2014-03-03 
11:20:39,590::agent::103::ovirt_hosted_engine_ha.agent.agent.Agent::(run) Could 
not start ha-agent
Traceback (most recent call last):
   File 
/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/agent/agent.py, line 
97, in run
 self._run_agent()
   File 
/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/agent/agent.py, line 
154, in _run_agent
 hosted_engine.HostedEngine(self.shutdown_requested).start_monitoring()
   File 
/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/agent/hosted_engine.py,
 line 152, in __init__
 STOP_VM: self._stop_engine_vm
   File 
/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/agent/state_machine.py,
 line 56, in __init__
 logger, actions)
   File 
/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/lib/fsm/machine.py, 
line 93, in __init__
 self._logger = FSMLoggerAdapter(logger, self)
   File 
/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/lib/fsm/machine.py, 
line 16, in __init__
 super(FSMLoggerAdapter, self).__init__(logger, None)
TypeError: super() argument 1 must be type, not classobj



If I want to start my hosted engine, I receive the following error in vdsm 
logs, which makes absolutly no sense to me, as there is plenty of disk
space available:

Thread-62::DEBUG::2014-03-03 
11:24:46,282::libvirtconnection::124::root::(wrapper) Unknown libvirterror: 
ecode: 38 edom: 42 level: 2 message: Failed
to acquire lock: No space left on device


seems like a vdsm failure in starting monitor the hosted engine storage domain.
Can you attach vdsm logs?


Logs are quite big for an email (6.8MB).
I attached the last entries which show the information for vm-start.






Thread-62::DEBUG::2014-03-03 
11:24:46,282::vm::2252::vm.Vm::(_startUnderlyingVm) 
vmId=`f26dd37e-13b5-430c-b2f2-ecd098b82a91`::_ongoingCreations released
Thread-62::ERROR::2014-03-03 
11:24:46,283::vm::2278::vm.Vm::(_startUnderlyingVm) 
vmId=`f26dd37e-13b5-430c-b2f2-ecd098b82a91`::The vm start process failed
Traceback (most recent call last):
   File /usr/share/vdsm/vm.py, line 2238, in _startUnderlyingVm
 self._run()
   File /usr/share/vdsm/vm.py, line 3159, in _run
 self._connection.createXML(domxml, flags),
   File /usr/lib64/python2.6/site-packages/vdsm/libvirtconnection.py, line 
92, in wrapper
 ret = f(*args, **kwargs)
   File /usr/lib64/python2.6/site-packages/libvirt.py, line 2665, in createXML
 if ret is None:raise libvirtError('virDomainCreateXML() failed', conn=self)
libvirtError: Failed to acquire lock: No space left on device
Thread-62::DEBUG::2014-03-03 11:24:46,286::vm::2720::vm.Vm::(setDownStatus) 
vmId=`f26dd37e-13b5-430c-b2f2-ecd098b82a91`::Changed state to Down: Failed
to acquire lock: No space left on device

# df -h | grep engine
ovirt-host01:/engine 281G   21G  261G   8% 
/rhev/data-center/mnt/ovirt-host01:_engine

# sudo -u vdsm dd if=/dev/zero
of=/rhev/data-center/mnt/ovirt-host01:_engine/2851af27-8744-445d-9fb1-a0d083c8dc82/images/0e4d270f-2f7e-4b2b-847f-f114a4ba9bdc/test
 bs=512 count=100
100+0 records in
100+0 records out
51200 bytes (51 kB) copied, 0.0230566 s, 2.2 MB/s


Could you give me some information on how to fix the ovirt-ha-agent and then 
hosted-engine storage issue? Thanks a lot.

Btw, I had some issues during installation which I will explain in separate 
emails.





libvirtEventLoop::DEBUG::2014-03-03 11:18:58,466::vm::5111::vm.Vm::(_onLibvirtLifecycleEvent) 

Re: [Users] Proper way to reboot an ovirt node

2014-03-03 Thread René Koch

On 03/03/2014 11:14 AM, Jonas Israelsson wrote:

What is the recommended proper way reboot an Ovirt node ?

I started by putting the host into in Maintenance mode and was going to
via the TUI interface just reboot the machine.
Should I then use the confirm host rebooted before I put the host back
from Maintenance mode ?


No, you don't need to use confirm host rebooted. This option is only 
required if you solved an issue manually.


Maintenance - reboot and activate is the right way.


Regards,
René




I have rebooted my Nodes violently hundreds of times (and they have
always recovered), but now I have data/config that I'm keen not to loose.

Failed to find this info on the wiki...

Brgds Jonas
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[Users] hosted engine setup (NFS)

2014-03-03 Thread René Koch

Hi,

I installed hosted engine and faced an issue with NFS during installation.

First of all, I'm using GlusterFS on my storage and ovirt engine doesn't 
support GlusterFS yet, only NFS.


But for NFS I can't use mountprotpo=tcp as hosted-engine --setup doesn't 
ask for NFS options.


So I manually edited the following file:
/usr/share/ovirt-hosted-engine-setup/plugins/ovirt-hosted-engine-setup/storage/storage.py

and changed opts.append('vers=3'):

if domain_type == 'nfs3':
fstype = 'nfs'
opts.append('vers=3,mountproto=tcp')

My question is now: is it possible to ask for NFS options during setup 
or do you think this can lead into problems? NFS via TCP worked fine for 
me for one week until I rebooted the host today (did reboot tests last 
weeks, too which was fine) and can't start hosted engine anymore (see 
other mail thread), but I think the other issue is not NFS mountproto 
related.



--
Best Regards

René Koch
Senior Solution Architect


LIS-Linuxland GmbH
Brünner Straße 163, A-1210 Vienna

Phone:   +43 1 236 91 60
Mobile:  +43 660 / 512 21 31
E-Mail:  rk...@linuxland.at


___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[Users] hosted engine setup (network)

2014-03-03 Thread René Koch

Hi,

During hosted engine setup I faced issues with network configuration on 
my CentOS 6.5 hosts:


My network setup was the following which doesn't work with hosted engine 
setup:

- eth0.200 (VLAN tag 200) should become ovirtmgmt interface
- GATEWAY is in /etc/sysconfig/network and not in ifcfg-eth0.200

The following errors occured:
014-02-25 15:42:31 INFO 
otopi.plugins.ovirt_hosted_engine_setup.network.bridge bridge._misc:189 
Configuring the management bridge
2014-02-25 15:42:31 DEBUG 
otopi.plugins.ovirt_hosted_engine_setup.network.bridge bridge._misc:198 
getVdsCaps for eth0: {'addr': '', 'cfg': {'DEVICE': 'eth0', 'PEERDNS': 
'no', 'NM_CONTROLLED': 'no', 'BOOTPROTO': 'none', 'HWADDR': '00:25:9
0:75:87:C2', 'ONBOOT': 'yes'}, 'ipv6addrs': 
['fe80::225:90ff:fe75:87c2/64'], 'mtu': '1500', 'netmask': '', 'hwaddr': 
'00:25:90:75:87:c2', 'speed': 1000}
2014-02-25 15:42:31 DEBUG otopi.context context._executeMethod:152 
method exception

Traceback (most recent call last):
  File /usr/lib/python2.6/site-packages/otopi/context.py, line 142, 
in _executeMethod

method['method']()
  File 
/usr/share/ovirt-hosted-engine-setup/scripts/../plugins/ovirt-hosted-engine-setup/network/bridge.py, 
line 231, in _misc

'gateway=%s' % caps['cfg']['GATEWAY'],
KeyError: 'GATEWAY'

This can be solved by setting GATEWAY in ifcfg-eth* file instead of 
/etc/sysconfig/network



Next, VLAN tagged interfaces don't work:
2014-02-25 15:35:20 INFO 
otopi.plugins.ovirt_hosted_engine_setup.network.bridge bridge._misc:189 
Configuring the management bridge
2014-02-25 15:35:20 DEBUG otopi.context context._executeMethod:152 
method exception

Traceback (most recent call last):
  File /usr/lib/python2.6/site-packages/otopi/context.py, line 142, 
in _executeMethod

method['method']()
  File 
/usr/share/ovirt-hosted-engine-setup/scripts/../plugins/ovirt-hosted-engine-setup/network/bridge.py, 
line 194, in _misc

].s.getVdsCapabilities()['info']['nics'][nics]
KeyError: 'eth0.200'

So I had to do the following:
- Set switch port to untagged for this VLAN
- Configure eth0 instead of eth0.200
- Run hosted engine setup
- Configure VLAN for ovirtmgmt in oVirt (which surprisingly worked for 
an active interface)

- Configure VLAN tagging on hosts
- Reconfigure switch ports
- Sync networks in oVirt network setup tab

As this was a real pain to do I would love to see support for VLAN 
tagging in hosted engine setup :)



Shall I open bug reports for these 2 issues or are they already known?


--
Best Regards

René Koch
Senior Solution Architect


LIS-Linuxland GmbH
Brünner Straße 163, A-1210 Vienna

Phone:   +43 1 236 91 60
Mobile:  +43 660 / 512 21 31
E-Mail:  rk...@linuxland.at


___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[Users] Installing ovirt-engine on ovirt-node

2014-03-03 Thread Andy Michielsen
Hello,

Can I use the ovirt-node iso (3.0.4-1.0.201401291204.vdsm33.el6) to install
an ovirt-engine on.

This way I don't have to worry about installing a centos 6.5 and installing
to much.

Kind regards.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] oVirt 3.5 planning

2014-03-03 Thread René Koch

Hi,

On 02/24/2014 05:59 PM, Itamar Heim wrote:

with oVirt 3.4 getting close to GA with many many great features, time
to collect requests for 3.5...



Here's my wish list :)

- Cloning of vms VMs without templates (of is this already implemented)?

- Enable host updates through engine (yum update via oVirt engine)

- Integrate v2v into oVirt engine

- hosted engine with iSCSI/FC/GlusterFS support

- ISO and export domain on FC/iSCSI/GlusterFS would be nice
ISO domain on GlusterFS using POSIXFS domain doesn't work for me in 
oVirt 3.4


- Central Repository for oVirt guest agents
Atm packages are available for Debian, SLES, RHEL/CentOS, Fedora but 
there are different sources and users have to know where to find the 
guest tools. So would love to see e.g. 
http://resources.ovirt.org/guest-agents/{ubuntu,debian,opensuse,...}


Windows needs to be created manually as described here 
http://www.ovirt.org/OVirt_Guest_Agent_For_Windows, right?


I could provide repositories for guest agent in a central point and also 
Windows guest agent packages if you don't plan to do it on ovirt.org as 
I have to required infrastructure (OBS with multiple distributions in 
it) on our side.


- RHEV guest tools APT (Application Provisioning Tool) for Windows 
ported to oVirt

This makes it easier to update guest tools on Windows...

- Upload ISOs thorugh oVirt engine gui

- Use existing share for ISO domain
When creating an ISO domain, oVirt creates it's own directory structure 
with IDs. It would be nice if an existing share could be used (e.g. an 
ISO share on NFS server which is used by other service, too) without 
creating the structure with IDs. I know that the IDs are needed 
internally but I think it should be possible to reuse an existing share.


- Signed RPMs
gpgcheck=0 is really ugly...

- NFS options for storage domains
It would be great if I can change NFS options like e.g. mountproto=tcp 
for NFS storage domains.



Regards,
René




___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Installing ovirt-engine on ovirt-node

2014-03-03 Thread Itamar Heim

On 03/03/2014 02:30 PM, Andy Michielsen wrote:

Hello,

Can I use the ovirt-node iso (3.0.4-1.0.201401291204.vdsm33.el6) to
install an ovirt-engine on.

This way I don't have to worry about installing a centos 6.5 and
installing to much.

Kind regards.


___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users



not yet.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Host requirements for 3.4 compatibility

2014-03-03 Thread Lior Vernia
Hi Darren,

Looks to me like your VDSM version isn't up-to-date, I think those
supported in 3.4 clusters are  4.14. I would try installing the ovirt
yum repo file by running:

sudo yum localinstall
http://resources.ovirt.org/releases/3.4.0-rc/rpm/Fedora/20/noarch/ovirt-release-11.0.2-1.noarch.rpm

Then enable the ovirt-3.4.0-prerelease repository in the repo file,
then install vdsm. Then let us know if that worked :)

Yours, Lior.

On 01/03/14 00:32, Darren Evenson wrote:
 I have updated my engine to 3.4 rc.
 
  
 
 I created a new cluster with 3.4 compatibility version, and then I moved
 a host I had in maintenance mode to the new cluster.
 
  
 
 When I activate it, I get the error “Host kvmhost2 is compatible with
 versions (3.0,3.1,3.2,3.3) and cannot join Cluster Cluster_new which is
 set to version 3.4.”
 
  
 
 My host was Fedora 20 with the latest updates:
 
  
 
 Kernel Version: 3.13.4 - 200.fc20.x86_64
 
 KVM Version: 1.6.1 - 3.fc20
 
 LIBVIRT Version: libvirt-1.1.3.3-5.fc20
 
 VDSM Version: vdsm-4.13.3-3.fc20
 
  
 
 So I enabled fedora-virt-preview and updated, but I still get the same
 error, even now with libvirt 1.2.1:
 
  
 
 Kernel Version: 3.13.4 - 200.fc20.x86_64
 
 KVM Version: 1.7.0 - 5.fc20
 
 LIBVIRT Version: libvirt-1.2.1-3.fc20
 
 VDSM Version: vdsm-4.13.3-3.fc20
 
  
 
 What am I missing?
 
  
 
 - Darren
 
  
 
 
 
 ___
 Users mailing list
 Users@ovirt.org
 http://lists.ovirt.org/mailman/listinfo/users
 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Host requirements for 3.4 compatibility

2014-03-03 Thread Lior Vernia
Hi Darren,

Looks to me like your VDSM version isn't up-to-date, I think those
supported in 3.4 clusters are  4.14. I would try installing the ovirt
yum repo file by running:

sudo yum localinstall
http://resources.ovirt.org/releases/3.4.0-rc/rpm/Fedora/20/noarch/ovirt-release-11.0.2-1.noarch.rpm

Then enable the ovirt-3.4.0-prerelease repository in the repo file,
then install vdsm. Then let us know if that worked

Yours, Lior.

On 01/03/14 00:32, Darren Evenson wrote:
 I have updated my engine to 3.4 rc.
 
  
 
 I created a new cluster with 3.4 compatibility version, and then I moved
 a host I had in maintenance mode to the new cluster.
 
  
 
 When I activate it, I get the error “Host kvmhost2 is compatible with
 versions (3.0,3.1,3.2,3.3) and cannot join Cluster Cluster_new which is
 set to version 3.4.”
 
  
 
 My host was Fedora 20 with the latest updates:
 
  
 
 Kernel Version: 3.13.4 - 200.fc20.x86_64
 
 KVM Version: 1.6.1 - 3.fc20
 
 LIBVIRT Version: libvirt-1.1.3.3-5.fc20
 
 VDSM Version: vdsm-4.13.3-3.fc20
 
  
 
 So I enabled fedora-virt-preview and updated, but I still get the same
 error, even now with libvirt 1.2.1:
 
  
 
 Kernel Version: 3.13.4 - 200.fc20.x86_64
 
 KVM Version: 1.7.0 - 5.fc20
 
 LIBVIRT Version: libvirt-1.2.1-3.fc20
 
 VDSM Version: vdsm-4.13.3-3.fc20
 
  
 
 What am I missing?
 
  
 
 - Darren
 
  
 
 
 
 ___
 Users mailing list
 Users@ovirt.org
 http://lists.ovirt.org/mailman/listinfo/users
 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] hosted engine issues

2014-03-03 Thread Martin Sivak
Hi René,

 # python --version
 Python 2.6.6

Then I guess the traceback is my fault...

See http://gerrit.ovirt.org/#/c/25269/ for the fix. I will try to get it into 
the soonest release possible.

 I can't see a full filesystem here:
 

Me neither. Is everything Read-Write? Read-Only FS might report no space left 
as well in some cases. Other than that, I do not know.

Regards
--
Martin Sivák
msi...@redhat.com
Red Hat Czech
RHEV-M SLA / Brno, CZ

- Original Message -
 On 03/03/2014 12:05 PM, Martin Sivak wrote:
  Hi René,
 
  thanks for the report.
 
  TypeError: super() argument 1 must be type, not classobj
  What Python version are you using?
 
 # python --version
 Python 2.6.6
 
 
  You can debug a crash of this version of ha-agent using:
 
  /usr/share/ovirt-hosted-engine-ha/ovirt-ha-agent --no-daemon --pdb
 
 This gives me the same information as in vdsm.log
 
 
  But this exception is trying to tell you that
  FSMLoggerAdapter(logging.LoggerAdapter) does not have object in the
  ancestor list. And that is very weird.
 
  It can be related to the disk space issues.
 
  libvirtError: Failed to acquire lock: No space left on device
 
  Check the free space on all your devices, including /tmp and /var. Or post
  the output of df -h command here
 
 I can't see a full filesystem here:
 
 # df -h
 Filesystem   Size  Used Avail Use% Mounted on
 /dev/mapper/vg0-lv_root  5.0G  1.1G  3.6G  24% /
 tmpfs 16G 0   16G   0% /dev/shm
 /dev/sda1243M   45M  185M  20% /boot
 /dev/mapper/vg0-lv_data  281G   21G  261G   8% /data
 /dev/mapper/vg0-lv_tmp   2.0G   69M  1.9G   4% /tmp
 /dev/mapper/vg0-lv_var   5.0G  384M  4.3G   9% /var
 ovirt-host01:/engine 281G   21G  261G   8%
 /rhev/data-center/mnt/ovirt-host01:_engine
 
 
 Thanks,
 René
 
 
 
  Regards
 
  --
  Martin Sivák
  msi...@redhat.com
  Red Hat Czech
  RHEV-M SLA / Brno, CZ
 
  - Original Message -
  Il 03/03/2014 11:33, René Koch ha scritto:
  Hi,
 
  I have some issues with hosted engine (oVirt 3.4 prerelease repo on
  CentOS
  6.5).
  My setups is the following:
  2 hosts (will be 4 in the future) with 4 GlusterFS shares:
  - engine (for hosted engine)
  - iso (for ISO domain)
  - ovirt (oVirt storage domain)
 
  I had a split-brain situation today (after rebooting both nodes) on
  hosted-engine.lockspace file on engine GlusterFS volume which I resolved.
 
  How did you solved it? By switching to NFS only?
 
 
  hosted engine used engine share via NFS (TCP) as glusterfs isn't
  supported
  for oVirt hosted engine, yet. I'll switch to GlusterFS as soon as oVirt
  will support it (I hope this will be soon as RHEV 3.3 is already
  supporting
  GlusterFS for hosted engine).
 
 
  First of all ovirt-ha-agent fails to start on both nodes:
 
  # service ovirt-ha-agent start
  Starting ovirt-ha-agent:   [  OK  ]
  # service ovirt-ha-agent status
  ovirt-ha-agent dead but subsys locked
 
 
  MainThread::INFO::2014-03-03
  11:20:39,539::agent::52::ovirt_hosted_engine_ha.agent.agent.Agent::(run)
  ovirt-hosted-engine-ha agent 1.1.0 started
  MainThread::INFO::2014-03-03
  11:20:39,590::hosted_engine::223::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(_get_hostname)
  Found
  certificate common name: 10.0.200.101
  MainThread::CRITICAL::2014-03-03
  11:20:39,590::agent::103::ovirt_hosted_engine_ha.agent.agent.Agent::(run)
  Could not start ha-agent
  Traceback (most recent call last):
 File
 
  /usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/agent/agent.py,
 line 97, in run
   self._run_agent()
 File
 
  /usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/agent/agent.py,
 line 154, in _run_agent
   
  hosted_engine.HostedEngine(self.shutdown_requested).start_monitoring()
 File
 
  /usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/agent/hosted_engine.py,
 line 152, in __init__
   STOP_VM: self._stop_engine_vm
 File
 
  /usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/agent/state_machine.py,
 line 56, in __init__
   logger, actions)
 File
 
  /usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/lib/fsm/machine.py,
 line 93, in __init__
   self._logger = FSMLoggerAdapter(logger, self)
 File
 
  /usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/lib/fsm/machine.py,
 line 16, in __init__
   super(FSMLoggerAdapter, self).__init__(logger, None)
  TypeError: super() argument 1 must be type, not classobj
 
 
 
  If I want to start my hosted engine, I receive the following error in
  vdsm
  logs, which makes absolutly no sense to me, as there is plenty of disk
  space available:
 
  Thread-62::DEBUG::2014-03-03
  11:24:46,282::libvirtconnection::124::root::(wrapper) Unknown
  libvirterror: ecode: 38 edom: 42 level: 2 message: Failed
  to acquire lock: No space left on device
 
  seems like a vdsm failure in starting monitor the hosted 

Re: [Users] hosted engine issues

2014-03-03 Thread Yedidyah Bar David
 Me neither. Is everything Read-Write? Read-Only FS might report no space left
 as well in some cases. Other than that, I do not know.

Perhaps some ipc resource? semaphores?

Please check:

ipcs

cat /proc/sys/kernel/sem

I know nothing about libvirt, that's just a wild guess.
-- 
Didi
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Creating Logical Network issue - API

2014-03-03 Thread Tejesh M
Thanks, I'm able to create logical network  attached the same to host.

Now I tried to change the network for a VM nic from rhevm to VLAN1189, but
it is not working. any suggestion?


api.getVMs().get(vmName).getNics().get(nic1).setNetwork(api.getNetworks().get(VLAN1189));
  api.getVMs().get(vmName).getNics().get(nic1).update();




On Mon, Feb 24, 2014 at 5:23 PM, Moti Asayag masa...@redhat.com wrote:



 - Original Message -
  From: Tejesh M tejes...@gmail.com
  To: Moti Asayag masa...@redhat.com
  Cc: users@oVirt.org users@ovirt.org
  Sent: Monday, February 24, 2014 1:18:53 PM
  Subject: Re: [Users] Creating Logical Network issue - API
 
  The example updates the existing Network (i.e. if the Logical Network is
  already mapped to eth1). But what i'm looking for is how to map Logical
  Network ApiNetWork to eth1, please refer screenshot.
 

 Please check the last example named AddNetworkToNic from

 https://motiasayag.wordpress.com/2014/02/24/network-configuration-using-ovirt-engine-java-sdk/

 It should achieve what you're aiming for.

 
  On Mon, Feb 24, 2014 at 4:11 PM, Moti Asayag masa...@redhat.com wrote:
 
   - Original Message -
From: Tejesh M tejes...@gmail.com
To: Moti Asayag masa...@redhat.com
Cc: users@oVirt.org users@ovirt.org
Sent: Monday, February 24, 2014 11:59:42 AM
Subject: Re: [Users] Creating Logical Network issue - API
   
While setting Logical Network, it fails with below error:
code  : 400
reason: Bad Request
detail: Previous network name is required.
  
   See an example in the following post:
  
  
  
 https://motiasayag.wordpress.com/2014/02/24/network-configuration-using-ovirt-engine-java-sdk/
  
   
Code:
  String nw_name=ApiNetWork;
  org.ovirt.engine.sdk.decorators.Host hst =
api.getHosts().get(rhevhost);
   
   
 hst.getHostNics().get(eth1).setNetwork(api.getNetworks().get(nw_name));
  //hst.getHostNics().get(eth1).setCheckConnectivity(true);
   
 //hst.getHostNics().get(eth1).setOverrideConfiguration(true);
  hst.getHostNics().get(eth1).update();
   
   
   
On Mon, Feb 24, 2014 at 2:30 PM, Tejesh M tejes...@gmail.com
 wrote:
   
 Can you tel me how do i assign Logical Network(s) to one of the
   Physical
 Nic on the Host.


 On Fri, Feb 21, 2014 at 1:37 PM, Moti Asayag masa...@redhat.com
   wrote:

 h

 - Original Message -
  From: Tejesh M tejes...@gmail.com
  To: users@oVirt.org users@ovirt.org
  Sent: Thursday, February 20, 2014 11:48:56 AM
  Subject: [Users] Creating Logical Network issue - API
 
  Hi ,
 
  I'm trying to create Logical Network and assign it to cluster 
   want to
 bond
  this to one of the Network Interface on Host. so that i can
 isolate
   my
 VM
  from other networks.
 
  The issue is even if i set Cluster while creating Logical
 Network,
   it
 is not
  setting the cluster. In Web Admin it is in unset state.
 
  Also, let me know how do i bind this Logical network on Host
   Interface.
 
  Java code:
 
  Network nw1=new Network();
  VLAN vlan = new VLAN();
  vlan.setId(2000);
  nw1.setVlan(vlan);
  IP ip = new IP();
  ip.setAddress(192.168.1.151);
  ip.setGateway(192.168.1.1);
  ip.setNetmask(255.255.255.0);

 Note that the stated IP above will not be used to set the address
 on
   the
 host itself.
 In order to do so you should use either the 'setup networks' api
 on
 host's nics level.
 (Alternately, you can send POST request to /hosts/{host:id}/nics
 which
 utilize the
 former api (it is a bit simpler than using the setup networks
 api).

 Should look like:
 Host host = api.getHosts().get(host_name);
 Action action = new Action();
 action.setCheckConnectivity(true); //required for rollback in
   case of
 configuration failure
 action.setHostNics(...); // should contain the target
   configuration
 host.getHostNics().setupnetworks(action);

 where the action should contain the entire desired network
   configuration.

 You can find various python-sdk example for setup networks on my
 blog
   [1]
 I'll post few examples using the java sdk earlier next week.

 [1] https://motiasayag.wordpress.com/

  nw1.setIp(ip);
  nw1.setName(apiNetwork);
 
  nw1.setDataCenter(api.getDataCenters().get(testDC));
  nw1.setCluster(api.getClusters().get(testCluster));
 
  org.ovirt.engine.sdk.decorators.Network nw2 =
 api.getNetworks().add(nw1);
 
  --
  Thanks  Regards
  Tejesh
 
  ___
  Users mailing list
  Users@ovirt.org
  http://lists.ovirt.org/mailman/listinfo/users
 




 --
 Thanks  Regards
 Tejesh

   
   
   
--

Re: [Users] Creating Logical Network issue - API

2014-03-03 Thread Moti Asayag


- Original Message -
 From: Tejesh M tejes...@gmail.com
 To: Moti Asayag masa...@redhat.com
 Cc: users@oVirt.org users@ovirt.org
 Sent: Monday, March 3, 2014 3:46:14 PM
 Subject: Re: [Users] Creating Logical Network issue - API
 
 Thanks, I'm able to create logical network  attached the same to host.
 
 Now I tried to change the network for a VM nic from rhevm to VLAN1189, but
 it is not working. any suggestion?
 
 
 api.getVMs().get(vmName).getNics().get(nic1).setNetwork(api.getNetworks().get(VLAN1189));
   api.getVMs().get(vmName).getNics().get(nic1).update();
 

This snippet is wrong: You attempt to modify a newly fetched
vnic than the one that was just modified in the first line.

I'd try:
 VMNIC vnic = api.getVMs().get(vmName).getNics().get(nic1);
 vnic.setNetwork(api.getNetworks().get(VLAN1189));
 vnic.update();

If this doesn't work - keep reading :-)

There has been a recent bug in this regards [1].

You can by pass it by nullifying the vnic-profile value until getting the 
next stable version (or using the 3.4 rc build).

You can read more about the vnic profile and see python examples here [2]

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1047887
Bug 1047887 - Update vnic_profile fails for VM vnic

[2] https://motiasayag.wordpress.com/2014/02/02/vnic-profiles/

 
 
 
 On Mon, Feb 24, 2014 at 5:23 PM, Moti Asayag masa...@redhat.com wrote:
 
 
 
  - Original Message -
   From: Tejesh M tejes...@gmail.com
   To: Moti Asayag masa...@redhat.com
   Cc: users@oVirt.org users@ovirt.org
   Sent: Monday, February 24, 2014 1:18:53 PM
   Subject: Re: [Users] Creating Logical Network issue - API
  
   The example updates the existing Network (i.e. if the Logical Network is
   already mapped to eth1). But what i'm looking for is how to map Logical
   Network ApiNetWork to eth1, please refer screenshot.
  
 
  Please check the last example named AddNetworkToNic from
 
  https://motiasayag.wordpress.com/2014/02/24/network-configuration-using-ovirt-engine-java-sdk/
 
  It should achieve what you're aiming for.
 
  
   On Mon, Feb 24, 2014 at 4:11 PM, Moti Asayag masa...@redhat.com wrote:
  
- Original Message -
 From: Tejesh M tejes...@gmail.com
 To: Moti Asayag masa...@redhat.com
 Cc: users@oVirt.org users@ovirt.org
 Sent: Monday, February 24, 2014 11:59:42 AM
 Subject: Re: [Users] Creating Logical Network issue - API

 While setting Logical Network, it fails with below error:
 code  : 400
 reason: Bad Request
 detail: Previous network name is required.
   
See an example in the following post:
   
   
   
  https://motiasayag.wordpress.com/2014/02/24/network-configuration-using-ovirt-engine-java-sdk/
   

 Code:
   String nw_name=ApiNetWork;
   org.ovirt.engine.sdk.decorators.Host hst =
 api.getHosts().get(rhevhost);


  hst.getHostNics().get(eth1).setNetwork(api.getNetworks().get(nw_name));
   //hst.getHostNics().get(eth1).setCheckConnectivity(true);

  //hst.getHostNics().get(eth1).setOverrideConfiguration(true);
   hst.getHostNics().get(eth1).update();



 On Mon, Feb 24, 2014 at 2:30 PM, Tejesh M tejes...@gmail.com
  wrote:

  Can you tel me how do i assign Logical Network(s) to one of the
Physical
  Nic on the Host.
 
 
  On Fri, Feb 21, 2014 at 1:37 PM, Moti Asayag masa...@redhat.com
wrote:
 
  h
 
  - Original Message -
   From: Tejesh M tejes...@gmail.com
   To: users@oVirt.org users@ovirt.org
   Sent: Thursday, February 20, 2014 11:48:56 AM
   Subject: [Users] Creating Logical Network issue - API
  
   Hi ,
  
   I'm trying to create Logical Network and assign it to cluster 
want to
  bond
   this to one of the Network Interface on Host. so that i can
  isolate
my
  VM
   from other networks.
  
   The issue is even if i set Cluster while creating Logical
  Network,
it
  is not
   setting the cluster. In Web Admin it is in unset state.
  
   Also, let me know how do i bind this Logical network on Host
Interface.
  
   Java code:
  
   Network nw1=new Network();
   VLAN vlan = new VLAN();
   vlan.setId(2000);
   nw1.setVlan(vlan);
   IP ip = new IP();
   ip.setAddress(192.168.1.151);
   ip.setGateway(192.168.1.1);
   ip.setNetmask(255.255.255.0);
 
  Note that the stated IP above will not be used to set the address
  on
the
  host itself.
  In order to do so you should use either the 'setup networks' api
  on
  host's nics level.
  (Alternately, you can send POST request to /hosts/{host:id}/nics
  which
  utilize the
  former api (it is a bit simpler than using the setup networks
  api).
 
  Should look like:
  Host host = api.getHosts().get(host_name);
  Action action = new Action();
 

Re: [Users] hosted engine issues

2014-03-03 Thread René Koch

On 03/03/2014 02:05 PM, Martin Sivak wrote:

Hi René,


# python --version
Python 2.6.6


Then I guess the traceback is my fault...

See http://gerrit.ovirt.org/#/c/25269/ for the fix. I will try to get it into 
the soonest release possible.



Thanks. Do I have to patch the files manually or is ovirt-ha-agent not 
strictly required for hosted engine? Some features like restarting 
engine on 2nd node want work if ovirt-ha-agent isn't working, I guess.





I can't see a full filesystem here:



Me neither. Is everything Read-Write? Read-Only FS might report no space left 
as well in some cases. Other than that, I do not know.


No, I can write to all disks.
Btw, the same error message occurs on both nodes...


Regards,
René




Regards
--
Martin Sivák
msi...@redhat.com
Red Hat Czech
RHEV-M SLA / Brno, CZ

- Original Message -

On 03/03/2014 12:05 PM, Martin Sivak wrote:

Hi René,

thanks for the report.


TypeError: super() argument 1 must be type, not classobj

What Python version are you using?


# python --version
Python 2.6.6



You can debug a crash of this version of ha-agent using:

/usr/share/ovirt-hosted-engine-ha/ovirt-ha-agent --no-daemon --pdb


This gives me the same information as in vdsm.log



But this exception is trying to tell you that
FSMLoggerAdapter(logging.LoggerAdapter) does not have object in the
ancestor list. And that is very weird.

It can be related to the disk space issues.


libvirtError: Failed to acquire lock: No space left on device


Check the free space on all your devices, including /tmp and /var. Or post
the output of df -h command here


I can't see a full filesystem here:

# df -h
Filesystem   Size  Used Avail Use% Mounted on
/dev/mapper/vg0-lv_root  5.0G  1.1G  3.6G  24% /
tmpfs 16G 0   16G   0% /dev/shm
/dev/sda1243M   45M  185M  20% /boot
/dev/mapper/vg0-lv_data  281G   21G  261G   8% /data
/dev/mapper/vg0-lv_tmp   2.0G   69M  1.9G   4% /tmp
/dev/mapper/vg0-lv_var   5.0G  384M  4.3G   9% /var
ovirt-host01:/engine 281G   21G  261G   8%
/rhev/data-center/mnt/ovirt-host01:_engine


Thanks,
René




Regards

--
Martin Sivák
msi...@redhat.com
Red Hat Czech
RHEV-M SLA / Brno, CZ

- Original Message -

Il 03/03/2014 11:33, René Koch ha scritto:

Hi,

I have some issues with hosted engine (oVirt 3.4 prerelease repo on
CentOS
6.5).
My setups is the following:
2 hosts (will be 4 in the future) with 4 GlusterFS shares:
- engine (for hosted engine)
- iso (for ISO domain)
- ovirt (oVirt storage domain)

I had a split-brain situation today (after rebooting both nodes) on
hosted-engine.lockspace file on engine GlusterFS volume which I resolved.


How did you solved it? By switching to NFS only?



hosted engine used engine share via NFS (TCP) as glusterfs isn't
supported
for oVirt hosted engine, yet. I'll switch to GlusterFS as soon as oVirt
will support it (I hope this will be soon as RHEV 3.3 is already
supporting
GlusterFS for hosted engine).


First of all ovirt-ha-agent fails to start on both nodes:

# service ovirt-ha-agent start
Starting ovirt-ha-agent:   [  OK  ]
# service ovirt-ha-agent status
ovirt-ha-agent dead but subsys locked


MainThread::INFO::2014-03-03
11:20:39,539::agent::52::ovirt_hosted_engine_ha.agent.agent.Agent::(run)
ovirt-hosted-engine-ha agent 1.1.0 started
MainThread::INFO::2014-03-03
11:20:39,590::hosted_engine::223::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(_get_hostname)
Found
certificate common name: 10.0.200.101
MainThread::CRITICAL::2014-03-03
11:20:39,590::agent::103::ovirt_hosted_engine_ha.agent.agent.Agent::(run)
Could not start ha-agent
Traceback (most recent call last):
File
/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/agent/agent.py,
line 97, in run
  self._run_agent()
File
/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/agent/agent.py,
line 154, in _run_agent
  hosted_engine.HostedEngine(self.shutdown_requested).start_monitoring()
File

/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/agent/hosted_engine.py,
line 152, in __init__
  STOP_VM: self._stop_engine_vm
File

/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/agent/state_machine.py,
line 56, in __init__
  logger, actions)
File

/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/lib/fsm/machine.py,
line 93, in __init__
  self._logger = FSMLoggerAdapter(logger, self)
File

/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/lib/fsm/machine.py,
line 16, in __init__
  super(FSMLoggerAdapter, self).__init__(logger, None)
TypeError: super() argument 1 must be type, not classobj



If I want to start my hosted engine, I receive the following error in
vdsm
logs, which makes absolutly no sense to me, as there is plenty of disk
space available:

Thread-62::DEBUG::2014-03-03
11:24:46,282::libvirtconnection::124::root::(wrapper) Unknown

Re: [Users] hosted engine issues

2014-03-03 Thread René Koch

On 03/03/2014 02:13 PM, Yedidyah Bar David wrote:

Me neither. Is everything Read-Write? Read-Only FS might report no space left
as well in some cases. Other than that, I do not know.


Perhaps some ipc resource? semaphores?

Please check:

ipcs

cat /proc/sys/kernel/sem

I know nothing about libvirt, that's just a wild guess.


# ipcs

-- Shared Memory Segments 
keyshmid  owner  perms  bytes  nattch status 

0x 0  root   64480 2 

0x 32769  root   64416384  2 

0x 65538  root   6442802 



-- Semaphore Arrays 
keysemid  owner  perms  nsems
0x 0  root   6001
0x 65537  root   6001
0x00a7 163842 root   6001

-- Message Queues 
keymsqid  owner  perms  used-bytes   messages

# cat /proc/sys/kernel/sem
250 32000   32  128


Do you see anything in this output?
I have no clue how to interpret this...


Thanks,
René





___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[Users] oVirt February 2014 Updates

2014-03-03 Thread Itamar Heim

1. Releases

- oVirt 3.3.3 was released early in the month:
  http://www.ovirt.org/OVirt_3.3.3_release_notes

- oVirt 3.3.4 about to release.
  http://www.ovirt.org/OVirt_3.3.4_release_notes

- oVirt 3.4.0 about to release!

2. Events
- Leonardo Vaz is organizing ovirt attendance at FISL15, the largest
  FOSS conference in LATAM which will happen from 7th to 10th of May in
  Porto Alegre, Brazil:
  http://softwarelivre.org/fisl15

- Allon Mureinik gave a presentation on DR with oVirt at devconf.cz
  http://www.slideshare.net/AllonMureinik/dev-conf-ovirt-dr

- oVirt workshop in korea slides (korean)
  http://www.slideshare.net/rogan/20140208-ovirtkorea-01
  https://www.facebook.com/groups/ovirt.korea

- Rogan also presented oVirt integration with OpenStack in OpenStack
  day in Korea
  http://alturl.com/m3jnx

- Pat Pierson posted on basic network setup
  http://izen.ghostpeppersrus.com/setting-up-networks/

- Fosdem 2014 sessions (slides and videos) are at:
  http://www.ovirt.org/FOSDEM_2014

- and some at Infrastructure.Next Ghent the week after forsdem.

3. oVirt Activity (software)

- oVirt Jenkins plugin by Dustin Kut Moy Cheung to control VM slaves
  managed by ovirt/RHEV
  https://github.com/thescouser89/ovirt-slaves-plugin

- Opaque oVirt/RHEV/Proxmox client and source code released
   https://play.google.com/store/apps/details?id=com.undatech.opaque

- great to see the NUMA push from HP:
  http://www.ovirt.org/Features/NUMA_and_Virtual_NUMA
  http://www.ovirt.org/Features/Detailed_NUMA_and_Virtual_NUMA

4. oVirt Activity (blogs, preso's)

- oVirt's has been accepted as a mentoring project for the Google
  Summer of Code 2014.

- Oved Ourfali posted on Importing Glance images as oVirt templates
  http://alturl.com/h7xid

- v2v had seen many active discussions. here's a post by Jon Archer on
  how to Import regular kvm image to oVirt or RHEV
  http://jonarcher.info/2014/02/import-regular-kvm-image-ovirt-rhev/

- great reviews on amazon.com for Getting Started with oVirt 3.3
  http://alturl.com/5rk2p

- oVirt Deep Dive 3.3 slides (Chinese)
  http://www.slideshare.net/mobile/johnwoolee/ovirt-deep-dive#

- oVirt intro video (russian)
  http://alturl.com/it546

- how to install oVirt 3.3 on CentOS 6.5
  http://www.youtube.com/watch?v=5i5ilSKsmbo

5. Related
- NetApp GA'd their Virtual Storage Console for RHEV, which is
  implemented as an oVirt UI plugin (and then some)
  http://captainkvm.com/2014/02/vsc-for-rhev-is-ga-today/#more-660
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] hosted engine issues

2014-03-03 Thread Yedidyah Bar David
- Original Message -
 From: René Koch rk...@linuxland.at
 To: Yedidyah Bar David d...@redhat.com, Martin Sivak msi...@redhat.com
 Cc: users@ovirt.org
 Sent: Monday, March 3, 2014 4:10:51 PM
 Subject: Re: [Users] hosted engine issues
 
 On 03/03/2014 02:13 PM, Yedidyah Bar David wrote:
  Me neither. Is everything Read-Write? Read-Only FS might report no space
  left
  as well in some cases. Other than that, I do not know.
 
  Perhaps some ipc resource? semaphores?
 
  Please check:
 
  ipcs
 
  cat /proc/sys/kernel/sem
 
  I know nothing about libvirt, that's just a wild guess.
 
 # ipcs
 
 -- Shared Memory Segments 
 keyshmid  owner  perms  bytes  nattch status
 
 0x 0  root   64480 2
 
 0x 32769  root   64416384  2
 
 0x 65538  root   6442802
 
 
 -- Semaphore Arrays 
 keysemid  owner  perms  nsems
 0x 0  root   6001
 0x 65537  root   6001
 0x00a7 163842 root   6001

This means you have 3 semaphore sets, of one semaphore each.

 
 -- Message Queues 
 keymsqid  owner  perms  used-bytes   messages
 

Also the rest is moderate usage.

 # cat /proc/sys/kernel/sem
 250   32000   32  128

So you are far from the maxima (250 per set, 32000 total, 128 sets).

 
 
 Do you see anything in this output?
 I have no clue how to interpret this...

See e.g. http://man7.org/linux/man-pages/man5/proc.5.html 

Is the above on a node? engine? both nodes are similar? If so, that's
not the reason for the no space left on device.

If this error is reproducible, you can try to find the process that this
happens to (perhaps libvirtd, vdsmd, or the hosted-engine ha daemon) and do:
strace -f -o /tmp/trace1 -tt -s 512 -p PID
where PID is the pid of that process, then search /tmp/trace1 for 'no space
left on device' and see the exact call that failed.
-- 
Didi
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Creating Logical Network issue - API

2014-03-03 Thread Tejesh M
Ok got it..
I just observed that my setup network is not getting saved, after attaching
my logical network to host nic.


On Mon, Mar 3, 2014 at 7:34 PM, Moti Asayag masa...@redhat.com wrote:



 - Original Message -
  From: Tejesh M tejes...@gmail.com
  To: Moti Asayag masa...@redhat.com
  Cc: users@oVirt.org users@ovirt.org
  Sent: Monday, March 3, 2014 3:46:14 PM
  Subject: Re: [Users] Creating Logical Network issue - API
 
  Thanks, I'm able to create logical network  attached the same to host.
 
  Now I tried to change the network for a VM nic from rhevm to VLAN1189,
 but
  it is not working. any suggestion?
 
 
 
 api.getVMs().get(vmName).getNics().get(nic1).setNetwork(api.getNetworks().get(VLAN1189));
api.getVMs().get(vmName).getNics().get(nic1).update();
 

 This snippet is wrong: You attempt to modify a newly fetched
 vnic than the one that was just modified in the first line.

 I'd try:
  VMNIC vnic = api.getVMs().get(vmName).getNics().get(nic1);
  vnic.setNetwork(api.getNetworks().get(VLAN1189));
  vnic.update();

 If this doesn't work - keep reading :-)

 There has been a recent bug in this regards [1].

 You can by pass it by nullifying the vnic-profile value until getting the
 next stable version (or using the 3.4 rc build).

 You can read more about the vnic profile and see python examples here [2]

 [1] https://bugzilla.redhat.com/show_bug.cgi?id=1047887
 Bug 1047887 - Update vnic_profile fails for VM vnic

 [2] https://motiasayag.wordpress.com/2014/02/02/vnic-profiles/

 
 
 
  On Mon, Feb 24, 2014 at 5:23 PM, Moti Asayag masa...@redhat.com wrote:
 
  
  
   - Original Message -
From: Tejesh M tejes...@gmail.com
To: Moti Asayag masa...@redhat.com
Cc: users@oVirt.org users@ovirt.org
Sent: Monday, February 24, 2014 1:18:53 PM
Subject: Re: [Users] Creating Logical Network issue - API
   
The example updates the existing Network (i.e. if the Logical
 Network is
already mapped to eth1). But what i'm looking for is how to map
 Logical
Network ApiNetWork to eth1, please refer screenshot.
   
  
   Please check the last example named AddNetworkToNic from
  
  
 https://motiasayag.wordpress.com/2014/02/24/network-configuration-using-ovirt-engine-java-sdk/
  
   It should achieve what you're aiming for.
  
   
On Mon, Feb 24, 2014 at 4:11 PM, Moti Asayag masa...@redhat.com
 wrote:
   
 - Original Message -
  From: Tejesh M tejes...@gmail.com
  To: Moti Asayag masa...@redhat.com
  Cc: users@oVirt.org users@ovirt.org
  Sent: Monday, February 24, 2014 11:59:42 AM
  Subject: Re: [Users] Creating Logical Network issue - API
 
  While setting Logical Network, it fails with below error:
  code  : 400
  reason: Bad Request
  detail: Previous network name is required.

 See an example in the following post:



  
 https://motiasayag.wordpress.com/2014/02/24/network-configuration-using-ovirt-engine-java-sdk/

 
  Code:
String nw_name=ApiNetWork;
org.ovirt.engine.sdk.decorators.Host hst =
  api.getHosts().get(rhevhost);
 
 
  
 hst.getHostNics().get(eth1).setNetwork(api.getNetworks().get(nw_name));
 
 //hst.getHostNics().get(eth1).setCheckConnectivity(true);
 
   //hst.getHostNics().get(eth1).setOverrideConfiguration(true);
hst.getHostNics().get(eth1).update();
 
 
 
  On Mon, Feb 24, 2014 at 2:30 PM, Tejesh M tejes...@gmail.com
   wrote:
 
   Can you tel me how do i assign Logical Network(s) to one of the
 Physical
   Nic on the Host.
  
  
   On Fri, Feb 21, 2014 at 1:37 PM, Moti Asayag 
 masa...@redhat.com
 wrote:
  
   h
  
   - Original Message -
From: Tejesh M tejes...@gmail.com
To: users@oVirt.org users@ovirt.org
Sent: Thursday, February 20, 2014 11:48:56 AM
Subject: [Users] Creating Logical Network issue - API
   
Hi ,
   
I'm trying to create Logical Network and assign it to
 cluster 
 want to
   bond
this to one of the Network Interface on Host. so that i can
   isolate
 my
   VM
from other networks.
   
The issue is even if i set Cluster while creating Logical
   Network,
 it
   is not
setting the cluster. In Web Admin it is in unset state.
   
Also, let me know how do i bind this Logical network on Host
 Interface.
   
Java code:
   
Network nw1=new Network();
VLAN vlan = new VLAN();
vlan.setId(2000);
nw1.setVlan(vlan);
IP ip = new IP();
ip.setAddress(192.168.1.151);
ip.setGateway(192.168.1.1);
ip.setNetmask(255.255.255.0);
  
   Note that the stated IP above will not be used to set the
 address
   on
 the
   host itself.
   In order to do so you should use either the 'setup networks'
 

Re: [Users] Creating Logical Network issue - API

2014-03-03 Thread Moti Asayag


- Original Message -
 From: Tejesh M tejes...@gmail.com
 To: Moti Asayag masa...@redhat.com
 Cc: users@oVirt.org users@ovirt.org
 Sent: Monday, March 3, 2014 4:36:32 PM
 Subject: Re: [Users] Creating Logical Network issue - API
 
 Ok got it..
 I just observed that my setup network is not getting saved, after attaching
 my logical network to host nic.
 

Let me refer you to yet another post [1]:

You should add the following at the end of your setup-networks action:

api.getHosts().get(your-host).commitnetconfig(new Action());

[1] https://motiasayag.wordpress.com/2013/04/08/it-is-not-over-till-moti-sings/


 
 On Mon, Mar 3, 2014 at 7:34 PM, Moti Asayag masa...@redhat.com wrote:
 
 
 
  - Original Message -
   From: Tejesh M tejes...@gmail.com
   To: Moti Asayag masa...@redhat.com
   Cc: users@oVirt.org users@ovirt.org
   Sent: Monday, March 3, 2014 3:46:14 PM
   Subject: Re: [Users] Creating Logical Network issue - API
  
   Thanks, I'm able to create logical network  attached the same to host.
  
   Now I tried to change the network for a VM nic from rhevm to VLAN1189,
  but
   it is not working. any suggestion?
  
  
  
  api.getVMs().get(vmName).getNics().get(nic1).setNetwork(api.getNetworks().get(VLAN1189));
 api.getVMs().get(vmName).getNics().get(nic1).update();
  
 
  This snippet is wrong: You attempt to modify a newly fetched
  vnic than the one that was just modified in the first line.
 
  I'd try:
   VMNIC vnic = api.getVMs().get(vmName).getNics().get(nic1);
   vnic.setNetwork(api.getNetworks().get(VLAN1189));
   vnic.update();
 
  If this doesn't work - keep reading :-)
 
  There has been a recent bug in this regards [1].
 
  You can by pass it by nullifying the vnic-profile value until getting the
  next stable version (or using the 3.4 rc build).
 
  You can read more about the vnic profile and see python examples here [2]
 
  [1] https://bugzilla.redhat.com/show_bug.cgi?id=1047887
  Bug 1047887 - Update vnic_profile fails for VM vnic
 
  [2] https://motiasayag.wordpress.com/2014/02/02/vnic-profiles/
 
  
  
  
   On Mon, Feb 24, 2014 at 5:23 PM, Moti Asayag masa...@redhat.com wrote:
  
   
   
- Original Message -
 From: Tejesh M tejes...@gmail.com
 To: Moti Asayag masa...@redhat.com
 Cc: users@oVirt.org users@ovirt.org
 Sent: Monday, February 24, 2014 1:18:53 PM
 Subject: Re: [Users] Creating Logical Network issue - API

 The example updates the existing Network (i.e. if the Logical
  Network is
 already mapped to eth1). But what i'm looking for is how to map
  Logical
 Network ApiNetWork to eth1, please refer screenshot.

   
Please check the last example named AddNetworkToNic from
   
   
  https://motiasayag.wordpress.com/2014/02/24/network-configuration-using-ovirt-engine-java-sdk/
   
It should achieve what you're aiming for.
   

 On Mon, Feb 24, 2014 at 4:11 PM, Moti Asayag masa...@redhat.com
  wrote:

  - Original Message -
   From: Tejesh M tejes...@gmail.com
   To: Moti Asayag masa...@redhat.com
   Cc: users@oVirt.org users@ovirt.org
   Sent: Monday, February 24, 2014 11:59:42 AM
   Subject: Re: [Users] Creating Logical Network issue - API
  
   While setting Logical Network, it fails with below error:
   code  : 400
   reason: Bad Request
   detail: Previous network name is required.
 
  See an example in the following post:
 
 
 
   
  https://motiasayag.wordpress.com/2014/02/24/network-configuration-using-ovirt-engine-java-sdk/
 
  
   Code:
 String nw_name=ApiNetWork;
 org.ovirt.engine.sdk.decorators.Host hst =
   api.getHosts().get(rhevhost);
  
  
   
  hst.getHostNics().get(eth1).setNetwork(api.getNetworks().get(nw_name));
  
  //hst.getHostNics().get(eth1).setCheckConnectivity(true);
  
//hst.getHostNics().get(eth1).setOverrideConfiguration(true);
 hst.getHostNics().get(eth1).update();
  
  
  
   On Mon, Feb 24, 2014 at 2:30 PM, Tejesh M tejes...@gmail.com
wrote:
  
Can you tel me how do i assign Logical Network(s) to one of the
  Physical
Nic on the Host.
   
   
On Fri, Feb 21, 2014 at 1:37 PM, Moti Asayag 
  masa...@redhat.com
  wrote:
   
h
   
- Original Message -
 From: Tejesh M tejes...@gmail.com
 To: users@oVirt.org users@ovirt.org
 Sent: Thursday, February 20, 2014 11:48:56 AM
 Subject: [Users] Creating Logical Network issue - API

 Hi ,

 I'm trying to create Logical Network and assign it to
  cluster 
  want to
bond
 this to one of the Network Interface on Host. so that i can
isolate
  my
VM
 from other networks.

 The issue is even if i set Cluster while creating Logical
Network,
  

[Users] Which iso to use when installing an ovirt-node

2014-03-03 Thread Andy Michielsen
Hello,

Which iso should I use to install an ovirt-node ?

What the difference between the el and fc versions. (I'm installing the
engine on a centos 6.5 minimal server.)

Which version should I use.

Kind regards.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] [Engine-devel] oVirt February 2014 Updates

2014-03-03 Thread Antoni Segura Puimedon


- Original Message -
 From: Itamar Heim ih...@redhat.com
 To: users@ovirt.org
 Sent: Monday, March 3, 2014 3:25:07 PM
 Subject: [Engine-devel] oVirt February 2014 Updates
 
 1. Releases
 
 - oVirt 3.3.3 was released early in the month:
http://www.ovirt.org/OVirt_3.3.3_release_notes
 
 - oVirt 3.3.4 about to release.
http://www.ovirt.org/OVirt_3.3.4_release_notes
 
 - oVirt 3.4.0 about to release!
 
 2. Events
 - Leonardo Vaz is organizing ovirt attendance at FISL15, the largest
FOSS conference in LATAM which will happen from 7th to 10th of May in
Porto Alegre, Brazil:
http://softwarelivre.org/fisl15
 
 - Allon Mureinik gave a presentation on DR with oVirt at devconf.cz
http://www.slideshare.net/AllonMureinik/dev-conf-ovirt-dr

Jiři Moskovcak presented as well the oVirt scheduler (@Jiri, can you attach
slides?)

I presented vdsm pluggable networking showing how to write parts of a 
configurator
and network hooks.
https://blog.antoni.me/devconf14/
(Better look at it with Chromium, firefox has a bug with svg files)

 
 - oVirt workshop in korea slides (korean)
http://www.slideshare.net/rogan/20140208-ovirtkorea-01
https://www.facebook.com/groups/ovirt.korea
 
 - Rogan also presented oVirt integration with OpenStack in OpenStack
day in Korea
http://alturl.com/m3jnx
 
 - Pat Pierson posted on basic network setup
http://izen.ghostpeppersrus.com/setting-up-networks/
 
 - Fosdem 2014 sessions (slides and videos) are at:
http://www.ovirt.org/FOSDEM_2014
 
 - and some at Infrastructure.Next Ghent the week after forsdem.
 
 3. oVirt Activity (software)
 
 - oVirt Jenkins plugin by Dustin Kut Moy Cheung to control VM slaves
managed by ovirt/RHEV
https://github.com/thescouser89/ovirt-slaves-plugin
 
 - Opaque oVirt/RHEV/Proxmox client and source code released
 https://play.google.com/store/apps/details?id=com.undatech.opaque
 
 - great to see the NUMA push from HP:
http://www.ovirt.org/Features/NUMA_and_Virtual_NUMA
http://www.ovirt.org/Features/Detailed_NUMA_and_Virtual_NUMA
 
 4. oVirt Activity (blogs, preso's)
 
 - oVirt's has been accepted as a mentoring project for the Google
Summer of Code 2014.
 
 - Oved Ourfali posted on Importing Glance images as oVirt templates
http://alturl.com/h7xid
 
 - v2v had seen many active discussions. here's a post by Jon Archer on
how to Import regular kvm image to oVirt or RHEV
http://jonarcher.info/2014/02/import-regular-kvm-image-ovirt-rhev/
 
 - great reviews on amazon.com for Getting Started with oVirt 3.3
http://alturl.com/5rk2p
 
 - oVirt Deep Dive 3.3 slides (Chinese)
http://www.slideshare.net/mobile/johnwoolee/ovirt-deep-dive#
 
 - oVirt intro video (russian)
http://alturl.com/it546
 
 - how to install oVirt 3.3 on CentOS 6.5
http://www.youtube.com/watch?v=5i5ilSKsmbo
 
 5. Related
 - NetApp GA'd their Virtual Storage Console for RHEV, which is
implemented as an oVirt UI plugin (and then some)
http://captainkvm.com/2014/02/vsc-for-rhev-is-ga-today/#more-660
 ___
 Engine-devel mailing list
 engine-de...@ovirt.org
 http://lists.ovirt.org/mailman/listinfo/engine-devel
 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] hosted engine issues

2014-03-03 Thread René Koch

On 03/03/2014 03:25 PM, Yedidyah Bar David wrote:

- Original Message -

From: René Koch rk...@linuxland.at
To: Yedidyah Bar David d...@redhat.com, Martin Sivak msi...@redhat.com
Cc: users@ovirt.org
Sent: Monday, March 3, 2014 4:10:51 PM
Subject: Re: [Users] hosted engine issues

On 03/03/2014 02:13 PM, Yedidyah Bar David wrote:

Me neither. Is everything Read-Write? Read-Only FS might report no space
left
as well in some cases. Other than that, I do not know.


Perhaps some ipc resource? semaphores?

Please check:

ipcs

cat /proc/sys/kernel/sem

I know nothing about libvirt, that's just a wild guess.


# ipcs

-- Shared Memory Segments 
keyshmid  owner  perms  bytes  nattch status

0x 0  root   64480 2

0x 32769  root   64416384  2

0x 65538  root   6442802


-- Semaphore Arrays 
keysemid  owner  perms  nsems
0x 0  root   6001
0x 65537  root   6001
0x00a7 163842 root   6001


This means you have 3 semaphore sets, of one semaphore each.



-- Message Queues 
keymsqid  owner  perms  used-bytes   messages



Also the rest is moderate usage.


# cat /proc/sys/kernel/sem
250 32000   32  128


So you are far from the maxima (250 per set, 32000 total, 128 sets).




Do you see anything in this output?
I have no clue how to interpret this...


See e.g. http://man7.org/linux/man-pages/man5/proc.5.html

Is the above on a node? engine? both nodes are similar? If so, that's
not the reason for the no space left on device.


Same on both hosts.
These are CentOS 6.5 hosts which are the base for hosted engine.



If this error is reproducible, you can try to find the process that this
happens to (perhaps libvirtd, vdsmd, or the hosted-engine ha daemon) and do:
strace -f -o /tmp/trace1 -tt -s 512 -p PID
where PID is the pid of that process, then search /tmp/trace1 for 'no space
left on device' and see the exact call that failed.


Thanks a lot for the troubleshooting tips.
I figured the following out:

strace of libvirtd:

3296  17:10:05.396192 write(4, 2014-03-03 16:10:05.396+: 3296: 
error : virLockManagerSanlockAcquire:974 : Failed to acquire lock: No 
space left on device\n, 127 unfinished ...


Then I checked sanlock.log where I found the following error message 
(which could to be the reason for No space left on device):
2014-03-03 17:10:05+0100 25094 [3105]: r6 cmd_acquire 2,9,11852 invalid 
lockspace found -1 failed 0 name 2851af27-8744-445d-9fb1-a0d083c8dc82


So my question is now if I can remove the lockspace file (it should be 
hosted-engine.lockspace located in 
/rhev/data-center/mnt/ovirt-host01\:_engine/2851af27-8744-445d-9fb1-a0d083c8dc82/ha_agent/, 
right?) and it will be created again. I fear the GlusterFS split-brain 
situation destroyed it as this file was affected.



Thanks,
René





___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Host requirements for 3.4 compatibility

2014-03-03 Thread Darren Evenson
Hi Lior,

Updating VDSM from 4.13 to 4.14 worked! Thank you!

Is it documented anywhere what the required versions of libvit and vdsm are for 
3.4 compatibility?

- Darren

-Original Message-
From: Lior Vernia [mailto:lver...@redhat.com] 
Sent: Monday, March 3, 2014 7:04 AM
To: Darren Evenson
Cc: users@ovirt.org
Subject: Re: [Users] Host requirements for 3.4 compatibility

Hi Darren,

Looks to me like your VDSM version isn't up-to-date, I think those supported in 
3.4 clusters are  4.14. I would try installing the ovirt yum repo file by 
running:

sudo yum localinstall
http://resources.ovirt.org/releases/3.4.0-rc/rpm/Fedora/20/noarch/ovirt-release-11.0.2-1.noarch.rpm

Then enable the ovirt-3.4.0-prerelease repository in the repo file, then 
install vdsm. Then let us know if that worked

Yours, Lior.

On 01/03/14 00:32, Darren Evenson wrote:
 I have updated my engine to 3.4 rc.
 
  
 
 I created a new cluster with 3.4 compatibility version, and then I 
 moved a host I had in maintenance mode to the new cluster.
 
  
 
 When I activate it, I get the error Host kvmhost2 is compatible with 
 versions (3.0,3.1,3.2,3.3) and cannot join Cluster Cluster_new which 
 is set to version 3.4.
 
  
 
 My host was Fedora 20 with the latest updates:
 
  
 
 Kernel Version: 3.13.4 - 200.fc20.x86_64
 
 KVM Version: 1.6.1 - 3.fc20
 
 LIBVIRT Version: libvirt-1.1.3.3-5.fc20
 
 VDSM Version: vdsm-4.13.3-3.fc20
 
  
 
 So I enabled fedora-virt-preview and updated, but I still get the same 
 error, even now with libvirt 1.2.1:
 
  
 
 Kernel Version: 3.13.4 - 200.fc20.x86_64
 
 KVM Version: 1.7.0 - 5.fc20
 
 LIBVIRT Version: libvirt-1.2.1-3.fc20
 
 VDSM Version: vdsm-4.13.3-3.fc20
 
  
 
 What am I missing?
 
  
 
 - Darren
 
  
 
 
 
 ___
 Users mailing list
 Users@ovirt.org
 http://lists.ovirt.org/mailman/listinfo/users
 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] hosted engine issues

2014-03-03 Thread Martin Sivak
The agent is required. In fact it contains all the logic.

--
Martin Sivák
msi...@redhat.com
Red Hat Czech
RHEV-M SLA / Brno, CZ

- Original Message -
 On 03/03/2014 02:05 PM, Martin Sivak wrote:
  Hi René,
 
  # python --version
  Python 2.6.6
 
  Then I guess the traceback is my fault...
 
  See http://gerrit.ovirt.org/#/c/25269/ for the fix. I will try to get it
  into the soonest release possible.
 
 
 Thanks. Do I have to patch the files manually or is ovirt-ha-agent not
 strictly required for hosted engine? Some features like restarting
 engine on 2nd node want work if ovirt-ha-agent isn't working, I guess.
 
 
  I can't see a full filesystem here:
 
 
  Me neither. Is everything Read-Write? Read-Only FS might report no space
  left as well in some cases. Other than that, I do not know.
 
 No, I can write to all disks.
 Btw, the same error message occurs on both nodes...
 
 
 Regards,
 René
 
 
 
  Regards
  --
  Martin Sivák
  msi...@redhat.com
  Red Hat Czech
  RHEV-M SLA / Brno, CZ
 
  - Original Message -
  On 03/03/2014 12:05 PM, Martin Sivak wrote:
  Hi René,
 
  thanks for the report.
 
  TypeError: super() argument 1 must be type, not classobj
  What Python version are you using?
 
  # python --version
  Python 2.6.6
 
 
  You can debug a crash of this version of ha-agent using:
 
  /usr/share/ovirt-hosted-engine-ha/ovirt-ha-agent --no-daemon --pdb
 
  This gives me the same information as in vdsm.log
 
 
  But this exception is trying to tell you that
  FSMLoggerAdapter(logging.LoggerAdapter) does not have object in the
  ancestor list. And that is very weird.
 
  It can be related to the disk space issues.
 
  libvirtError: Failed to acquire lock: No space left on device
 
  Check the free space on all your devices, including /tmp and /var. Or
  post
  the output of df -h command here
 
  I can't see a full filesystem here:
 
  # df -h
  Filesystem   Size  Used Avail Use% Mounted on
  /dev/mapper/vg0-lv_root  5.0G  1.1G  3.6G  24% /
  tmpfs 16G 0   16G   0% /dev/shm
  /dev/sda1243M   45M  185M  20% /boot
  /dev/mapper/vg0-lv_data  281G   21G  261G   8% /data
  /dev/mapper/vg0-lv_tmp   2.0G   69M  1.9G   4% /tmp
  /dev/mapper/vg0-lv_var   5.0G  384M  4.3G   9% /var
  ovirt-host01:/engine 281G   21G  261G   8%
  /rhev/data-center/mnt/ovirt-host01:_engine
 
 
  Thanks,
  René
 
 
 
  Regards
 
  --
  Martin Sivák
  msi...@redhat.com
  Red Hat Czech
  RHEV-M SLA / Brno, CZ
 
  - Original Message -
  Il 03/03/2014 11:33, René Koch ha scritto:
  Hi,
 
  I have some issues with hosted engine (oVirt 3.4 prerelease repo on
  CentOS
  6.5).
  My setups is the following:
  2 hosts (will be 4 in the future) with 4 GlusterFS shares:
  - engine (for hosted engine)
  - iso (for ISO domain)
  - ovirt (oVirt storage domain)
 
  I had a split-brain situation today (after rebooting both nodes) on
  hosted-engine.lockspace file on engine GlusterFS volume which I
  resolved.
 
  How did you solved it? By switching to NFS only?
 
 
  hosted engine used engine share via NFS (TCP) as glusterfs isn't
  supported
  for oVirt hosted engine, yet. I'll switch to GlusterFS as soon as oVirt
  will support it (I hope this will be soon as RHEV 3.3 is already
  supporting
  GlusterFS for hosted engine).
 
 
  First of all ovirt-ha-agent fails to start on both nodes:
 
  # service ovirt-ha-agent start
  Starting ovirt-ha-agent:   [  OK  ]
  # service ovirt-ha-agent status
  ovirt-ha-agent dead but subsys locked
 
 
  MainThread::INFO::2014-03-03
  11:20:39,539::agent::52::ovirt_hosted_engine_ha.agent.agent.Agent::(run)
  ovirt-hosted-engine-ha agent 1.1.0 started
  MainThread::INFO::2014-03-03
  11:20:39,590::hosted_engine::223::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(_get_hostname)
  Found
  certificate common name: 10.0.200.101
  MainThread::CRITICAL::2014-03-03
  11:20:39,590::agent::103::ovirt_hosted_engine_ha.agent.agent.Agent::(run)
  Could not start ha-agent
  Traceback (most recent call last):
  File
  
  /usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/agent/agent.py,
  line 97, in run
self._run_agent()
  File
  
  /usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/agent/agent.py,
  line 154, in _run_agent

  hosted_engine.HostedEngine(self.shutdown_requested).start_monitoring()
  File
  
  /usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/agent/hosted_engine.py,
  line 152, in __init__
STOP_VM: self._stop_engine_vm
  File
  
  /usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/agent/state_machine.py,
  line 56, in __init__
logger, actions)
  File
  
  /usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/lib/fsm/machine.py,
  line 93, in __init__
self._logger = FSMLoggerAdapter(logger, self)
  File
  
  

Re: [Users] hosted engine issues

2014-03-03 Thread René Koch

On 03/03/2014 05:27 PM, Martin Sivak wrote:

The agent is required. In fact it contains all the logic.


Thanks a lot for the information.
I patched the agent and now it is running fine:

# service ovirt-ha-agent status
ovirt-ha-agent (pid 12385) is running...

Btw, after starting the ha-agent the broken lock-file was fixed, too.
So hosted engine is working fine now.
Martin, Didi, thanks a lot for your help!


Regards,
René




--
Martin Sivák
msi...@redhat.com
Red Hat Czech
RHEV-M SLA / Brno, CZ

- Original Message -

On 03/03/2014 02:05 PM, Martin Sivak wrote:

Hi René,


# python --version
Python 2.6.6


Then I guess the traceback is my fault...

See http://gerrit.ovirt.org/#/c/25269/ for the fix. I will try to get it
into the soonest release possible.



Thanks. Do I have to patch the files manually or is ovirt-ha-agent not
strictly required for hosted engine? Some features like restarting
engine on 2nd node want work if ovirt-ha-agent isn't working, I guess.




I can't see a full filesystem here:



Me neither. Is everything Read-Write? Read-Only FS might report no space
left as well in some cases. Other than that, I do not know.


No, I can write to all disks.
Btw, the same error message occurs on both nodes...


Regards,
René




Regards
--
Martin Sivák
msi...@redhat.com
Red Hat Czech
RHEV-M SLA / Brno, CZ

- Original Message -

On 03/03/2014 12:05 PM, Martin Sivak wrote:

Hi René,

thanks for the report.


TypeError: super() argument 1 must be type, not classobj

What Python version are you using?


# python --version
Python 2.6.6



You can debug a crash of this version of ha-agent using:

/usr/share/ovirt-hosted-engine-ha/ovirt-ha-agent --no-daemon --pdb


This gives me the same information as in vdsm.log



But this exception is trying to tell you that
FSMLoggerAdapter(logging.LoggerAdapter) does not have object in the
ancestor list. And that is very weird.

It can be related to the disk space issues.


libvirtError: Failed to acquire lock: No space left on device


Check the free space on all your devices, including /tmp and /var. Or
post
the output of df -h command here


I can't see a full filesystem here:

# df -h
Filesystem   Size  Used Avail Use% Mounted on
/dev/mapper/vg0-lv_root  5.0G  1.1G  3.6G  24% /
tmpfs 16G 0   16G   0% /dev/shm
/dev/sda1243M   45M  185M  20% /boot
/dev/mapper/vg0-lv_data  281G   21G  261G   8% /data
/dev/mapper/vg0-lv_tmp   2.0G   69M  1.9G   4% /tmp
/dev/mapper/vg0-lv_var   5.0G  384M  4.3G   9% /var
ovirt-host01:/engine 281G   21G  261G   8%
/rhev/data-center/mnt/ovirt-host01:_engine


Thanks,
René




Regards

--
Martin Sivák
msi...@redhat.com
Red Hat Czech
RHEV-M SLA / Brno, CZ

- Original Message -

Il 03/03/2014 11:33, René Koch ha scritto:

Hi,

I have some issues with hosted engine (oVirt 3.4 prerelease repo on
CentOS
6.5).
My setups is the following:
2 hosts (will be 4 in the future) with 4 GlusterFS shares:
- engine (for hosted engine)
- iso (for ISO domain)
- ovirt (oVirt storage domain)

I had a split-brain situation today (after rebooting both nodes) on
hosted-engine.lockspace file on engine GlusterFS volume which I
resolved.


How did you solved it? By switching to NFS only?



hosted engine used engine share via NFS (TCP) as glusterfs isn't
supported
for oVirt hosted engine, yet. I'll switch to GlusterFS as soon as oVirt
will support it (I hope this will be soon as RHEV 3.3 is already
supporting
GlusterFS for hosted engine).


First of all ovirt-ha-agent fails to start on both nodes:

# service ovirt-ha-agent start
Starting ovirt-ha-agent:   [  OK  ]
# service ovirt-ha-agent status
ovirt-ha-agent dead but subsys locked


MainThread::INFO::2014-03-03
11:20:39,539::agent::52::ovirt_hosted_engine_ha.agent.agent.Agent::(run)
ovirt-hosted-engine-ha agent 1.1.0 started
MainThread::INFO::2014-03-03
11:20:39,590::hosted_engine::223::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(_get_hostname)
Found
certificate common name: 10.0.200.101
MainThread::CRITICAL::2014-03-03
11:20:39,590::agent::103::ovirt_hosted_engine_ha.agent.agent.Agent::(run)
Could not start ha-agent
Traceback (most recent call last):
 File
 /usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/agent/agent.py,
 line 97, in run
   self._run_agent()
 File
 /usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/agent/agent.py,
 line 154, in _run_agent
   hosted_engine.HostedEngine(self.shutdown_requested).start_monitoring()
 File
 
/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/agent/hosted_engine.py,
 line 152, in __init__
   STOP_VM: self._stop_engine_vm
 File
 
/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/agent/state_machine.py,
 line 56, in __init__
   logger, actions)
 File
 
/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/lib/fsm/machine.py,
 line 93, in 

[Users] SPICE causes migration failure?

2014-03-03 Thread Ted Miller
I just got my Data Center running again, and am proceeding with some setup  
testing.


I created a VM (not doing anything useful)
I clicked on the Console and had a SPICE console up (viewed in Win7).
I had it printing the time on the screen once per second (while date;do sleep 
1; done).

I tried to migrate the VM to another host and got in the GUI:

Migration started (VM: web1, Source: s1, Destination: s3, User: admin@internal).

Migration failed due to Error: Fatal error during migration (VM: web1, Source: 
s1, Destination: s3).

As I started the migration I happened to think I wonder how they handle the 
SPICE console, since I think that is a link from the host to my machine, 
letting me see the VM's screen.


After the failure, I tried shutting down the SPICE console, and found that 
the migration succeeded.  I again opened SPICE and had a migration fail.  
Closed SPICE, migration failed.


I can understand how migrating SPICE is a problem, but, at least could we 
give the victim of this condition a meaningful error message?  I have seen a 
lot of questions about failed migrations (mostly due to attached CDs), but I 
have never seen this discussed. If I had not had that particular thought 
cross my brain at that particular time, I doubt that SPICE would have been 
where I went looking for a solution.


If this is the first time this issue has been raised, I am willing to file a 
bug.

Ted Miller
Elkhart, IN, USA

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] SPICE causes migration failure?

2014-03-03 Thread Dafna Ron
I don't see a reason why open monitor will fail migration - at most, if 
there is a problem I would close the spice session on src and restarted 
it at the dst.
can you please attach vdsm/libvirt/qemu logs from both hosts and engine 
logs so that we can see the migration failure reason?


Thanks,
Dafna



On 03/03/2014 05:16 PM, Ted Miller wrote:
I just got my Data Center running again, and am proceeding with some 
setup  testing.


I created a VM (not doing anything useful)
I clicked on the Console and had a SPICE console up (viewed in Win7).
I had it printing the time on the screen once per second (while 
date;do sleep 1; done).

I tried to migrate the VM to another host and got in the GUI:

Migration started (VM: web1, Source: s1, Destination: s3, User: 
admin@internal).


Migration failed due to Error: Fatal error during migration (VM: web1, 
Source: s1, Destination: s3).


As I started the migration I happened to think I wonder how they 
handle the SPICE console, since I think that is a link from the host 
to my machine, letting me see the VM's screen.


After the failure, I tried shutting down the SPICE console, and found 
that the migration succeeded.  I again opened SPICE and had a 
migration fail.  Closed SPICE, migration failed.


I can understand how migrating SPICE is a problem, but, at least could 
we give the victim of this condition a meaningful error message?  I 
have seen a lot of questions about failed migrations (mostly due to 
attached CDs), but I have never seen this discussed. If I had not had 
that particular thought cross my brain at that particular time, I 
doubt that SPICE would have been where I went looking for a solution.


If this is the first time this issue has been raised, I am willing to 
file a bug.


Ted Miller
Elkhart, IN, USA

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users



--
Dafna Ron
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[Users] method glusterHostsList is not supported

2014-03-03 Thread René Koch

Hi list,

My hosted engine is running again, so I want to start a new thread for 
another issue with my setup.


I have a GlusterFS storage domain, which can be mounted from CLI without 
problems. oVirt is 3.4 from ovirt-3.4.0-prerelease repository running on 
CentOS 6.5 with latest updates (both OS and oVirt).


Both hosts, which act as hypervisors and GlusterFS nodes are in state 
Non Operational in oVirt because Gluster command [Non interactive 
user] failed on server ovirt-host02.dmz.linuxland.at.


In engine.log I see the entry glusterHostList is not supported 
(attached are the log entries when activating one of the hosts):


2014-03-03 18:17:11,764 ERROR 
[org.ovirt.engine.core.vdsbroker.gluster.GlusterServersListVDSCommand] 
(org.ovirt.thread.pool-6-thread-21) [6eee3cbd] Command 
GlusterServersListVDSCommand(HostName = ovirt-host02.dmz.linuxland.at, 
HostId = dd399eeb-f623-457a-9986-a7efc69010b2) execution failed. 
Exception: VDSNetworkException: org.apache.xmlrpc.XmlRpcException: type 
'exceptions.Exception':method glusterHostsList is not supported


Can you give me a hint what this means and how I can activate my hosts 
and storage again?

Thanks a lot!


--
Best Regards

René Koch
Senior Solution Architect


LIS-Linuxland GmbH
Brünner Straße 163, A-1210 Vienna

Phone:   +43 1 236 91 60
Mobile:  +43 660 / 512 21 31
E-Mail:  rk...@linuxland.at


2014-03-03 18:17:11,415 INFO  [org.ovirt.engine.core.bll.ActivateVdsCommand] (ajp--127.0.0.1-8702-7) [6eee3cbd] Lock Acquired to object EngineLock [exclusiveLocks= key: dd399eeb-f623-457a-9986-a7efc69010b2 value: VDS
, sharedLocks= ]
2014-03-03 18:17:11,452 INFO  [org.ovirt.engine.core.bll.ActivateVdsCommand] (org.ovirt.thread.pool-6-thread-21) [6eee3cbd] Running command: ActivateVdsCommand internal: false. Entities affected :  ID: dd399eeb-f623-457a-9986-a7efc69010b2 Type: VDS
2014-03-03 18:17:11,460 INFO  [org.ovirt.engine.core.bll.ActivateVdsCommand] (org.ovirt.thread.pool-6-thread-21) [6eee3cbd] Before acquiring lock in order to prevent monitoring for host ovirt-host02.dmz.linuxland.at from data-center Default
2014-03-03 18:17:11,463 INFO  [org.ovirt.engine.core.bll.ActivateVdsCommand] (org.ovirt.thread.pool-6-thread-21) [6eee3cbd] Lock acquired, from now a monitoring of host will be skipped for host ovirt-host02.dmz.linuxland.at from data-center Default
2014-03-03 18:17:11,484 INFO  [org.ovirt.engine.core.vdsbroker.SetVdsStatusVDSCommand] (org.ovirt.thread.pool-6-thread-21) [6eee3cbd] START, SetVdsStatusVDSCommand(HostName = ovirt-host02.dmz.linuxland.at, HostId = dd399eeb-f623-457a-9986-a7efc69010b2, status=Unassigned, nonOperationalReason=NONE, stopSpmFailureLogged=false), log id: 54a17343
2014-03-03 18:17:11,493 INFO  [org.ovirt.engine.core.vdsbroker.SetVdsStatusVDSCommand] (org.ovirt.thread.pool-6-thread-21) [6eee3cbd] FINISH, SetVdsStatusVDSCommand, log id: 54a17343
2014-03-03 18:17:11,539 INFO  [org.ovirt.engine.core.vdsbroker.ActivateVdsVDSCommand] (org.ovirt.thread.pool-6-thread-21) [6eee3cbd] START, ActivateVdsVDSCommand(HostName = ovirt-host02.dmz.linuxland.at, HostId = dd399eeb-f623-457a-9986-a7efc69010b2), log id: 31a12fe
2014-03-03 18:17:11,644 INFO  [org.ovirt.engine.core.vdsbroker.vdsbroker.GetHardwareInfoVDSCommand] (org.ovirt.thread.pool-6-thread-21) [6eee3cbd] START, GetHardwareInfoVDSCommand(HostName = ovirt-host02.dmz.linuxland.at, HostId = dd399eeb-f623-457a-9986-a7efc69010b2, vds=Host[ovirt-host02.dmz.linuxland.at]), log id: 130e9ee4
2014-03-03 18:17:11,653 INFO  [org.ovirt.engine.core.vdsbroker.vdsbroker.GetHardwareInfoVDSCommand] (org.ovirt.thread.pool-6-thread-21) [6eee3cbd] FINISH, GetHardwareInfoVDSCommand, log id: 130e9ee4
2014-03-03 18:17:11,717 INFO  [org.ovirt.engine.core.vdsbroker.gluster.GlusterServersListVDSCommand] (org.ovirt.thread.pool-6-thread-21) [6eee3cbd] START, GlusterServersListVDSCommand(HostName = ovirt-host02.dmz.linuxland.at, HostId = dd399eeb-f623-457a-9986-a7efc69010b2), log id: 3643f935
2014-03-03 18:17:11,764 ERROR [org.ovirt.engine.core.vdsbroker.gluster.GlusterServersListVDSCommand] (org.ovirt.thread.pool-6-thread-21) [6eee3cbd] Command GlusterServersListVDSCommand(HostName = ovirt-host02.dmz.linuxland.at, HostId = dd399eeb-f623-457a-9986-a7efc69010b2) execution failed. Exception: VDSNetworkException: org.apache.xmlrpc.XmlRpcException: type 'exceptions.Exception':method glusterHostsList is not supported
2014-03-03 18:17:11,769 INFO  [org.ovirt.engine.core.vdsbroker.gluster.GlusterServersListVDSCommand] (org.ovirt.thread.pool-6-thread-21) [6eee3cbd] FINISH, GlusterServersListVDSCommand, log id: 3643f935
2014-03-03 18:17:11,805 INFO  [org.ovirt.engine.core.bll.SetNonOperationalVdsCommand] (org.ovirt.thread.pool-6-thread-21) [798ab25a] Running command: SetNonOperationalVdsCommand internal: true. Entities affected :  ID: dd399eeb-f623-457a-9986-a7efc69010b2 Type: VDS
2014-03-03 18:17:11,825 INFO  

Re: [Users] hosted engine setup (network)

2014-03-03 Thread René Koch

On 03/03/2014 05:18 PM, Antoni Segura Puimedon wrote:



- Original Message -

From: René Koch rk...@linuxland.at
To: users@ovirt.org
Sent: Monday, March 3, 2014 12:48:43 PM
Subject: [Users] hosted engine setup (network)

Hi,

During hosted engine setup I faced issues with network configuration on
my CentOS 6.5 hosts:

My network setup was the following which doesn't work with hosted engine
setup:
- eth0.200 (VLAN tag 200) should become ovirtmgmt interface
- GATEWAY is in /etc/sysconfig/network and not in ifcfg-eth0.200

The following errors occured:
014-02-25 15:42:31 INFO
otopi.plugins.ovirt_hosted_engine_setup.network.bridge bridge._misc:189
Configuring the management bridge
2014-02-25 15:42:31 DEBUG
otopi.plugins.ovirt_hosted_engine_setup.network.bridge bridge._misc:198
getVdsCaps for eth0: {'addr': '', 'cfg': {'DEVICE': 'eth0', 'PEERDNS':
'no', 'NM_CONTROLLED': 'no', 'BOOTPROTO': 'none', 'HWADDR': '00:25:9
0:75:87:C2', 'ONBOOT': 'yes'}, 'ipv6addrs':
['fe80::225:90ff:fe75:87c2/64'], 'mtu': '1500', 'netmask': '', 'hwaddr':
'00:25:90:75:87:c2', 'speed': 1000}
2014-02-25 15:42:31 DEBUG otopi.context context._executeMethod:152
method exception
Traceback (most recent call last):
File /usr/lib/python2.6/site-packages/otopi/context.py, line 142,
in _executeMethod
  method['method']()
File
/usr/share/ovirt-hosted-engine-setup/scripts/../plugins/ovirt-hosted-engine-setup/network/bridge.py,
line 231, in _misc
  'gateway=%s' % caps['cfg']['GATEWAY'],
KeyError: 'GATEWAY'

This can be solved by setting GATEWAY in ifcfg-eth* file instead of
/etc/sysconfig/network


Currently we look only at ifcfg files for that sort of information. In the 
future, though, we'll be
checking things like dhcp leases for the device to know what is the bootproto.




Next, VLAN tagged interfaces don't work:
2014-02-25 15:35:20 INFO
otopi.plugins.ovirt_hosted_engine_setup.network.bridge bridge._misc:189
Configuring the management bridge
2014-02-25 15:35:20 DEBUG otopi.context context._executeMethod:152
method exception
Traceback (most recent call last):
File /usr/lib/python2.6/site-packages/otopi/context.py, line 142,
in _executeMethod
  method['method']()
File
/usr/share/ovirt-hosted-engine-setup/scripts/../plugins/ovirt-hosted-engine-setup/network/bridge.py,
line 194, in _misc
  ].s.getVdsCapabilities()['info']['nics'][nics]
KeyError: 'eth0.200'

So I had to do the following:
- Set switch port to untagged for this VLAN
- Configure eth0 instead of eth0.200
- Run hosted engine setup
- Configure VLAN for ovirtmgmt in oVirt (which surprisingly worked for
an active interface)
- Configure VLAN tagging on hosts
- Reconfigure switch ports
- Sync networks in oVirt network setup tab

As this was a real pain to do I would love to see support for VLAN
tagging in hosted engine setup :)


Shall I open bug reports for these 2 issues or are they already known?


I'd say for the second one. /etc/sysconfig/network is losing relevance fast
and I think the new code that checks live device information is better than
parsing that file.



Thanks a lot for the information. Good to hear that the network part 
will be improved.


Bug is created for the VLAN tagged interfaces:
https://bugzilla.redhat.com/show_bug.cgi?id=1072027


Regards,
René







--
Best Regards

René Koch
Senior Solution Architect


LIS-Linuxland GmbH
Brünner Straße 163, A-1210 Vienna

Phone:   +43 1 236 91 60
Mobile:  +43 660 / 512 21 31
E-Mail:  rk...@linuxland.at


___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] SD Disk's Logical Volume not visible/activated on some nodes

2014-03-03 Thread Nir Soffer
Hi Zdenek, can you look into this strange incident?

When user creates a disk on one host (create a new lv), the lv is not seen
on another host in the cluster.

Calling multipath -r cause the new lv to appear on the other host.

Finally, lvs tell us that vg_mda_free is zero - maybe unrelated, but unusual.

- Original Message -
 From: Boyan Tabakov bl...@alslayer.net
 To: Nir Soffer nsof...@redhat.com
 Cc: users@ovirt.org
 Sent: Monday, March 3, 2014 9:51:05 AM
 Subject: Re: [Users] SD Disk's Logical Volume not visible/activated on some 
 nodes
  Consequently, when creating/booting
  a VM with the said disk attached, the VM fails to start on host2,
  because host2 can't see the LV. Similarly, if the VM is started on
  host1, it fails to migrate to host2. Extract from host2 log is in the
  end. The LV in question is 6b35673e-7062-4716-a6c8-d5bf72fe3280.
 
  As far as I could track quickly the vdsm code, there is only call to
  lvs
  and not to lvscan or lvchange so the host2 LVM doesn't fully refresh.
  
  lvs should see any change on the shared storage.
  
  The only workaround so far has been to restart VDSM on host2, which
  makes it refresh all LVM data properly.
  
  When vdsm starts, it calls multipath -r, which ensure that we see all
  physical volumes.
  
 
  When is host2 supposed to pick up any newly created LVs in the SD VG?
  Any suggestions where the problem might be?
 
  When you create a new lv on the shared storage, the new lv should be
  visible on the other host. Lets start by verifying that you do see
  the new lv after a disk was created.
 
  Try this:
 
  1. Create a new disk, and check the disk uuid in the engine ui
  2. On another machine, run this command:
 
  lvs -o vg_name,lv_name,tags
 
  You can identify the new lv using tags, which should contain the new
  disk
  uuid.
 
  If you don't see the new lv from the other host, please provide
  /var/log/messages
  and /var/log/sanlock.log.
 
  Just tried that. The disk is not visible on the non-SPM node.
 
  This means that storage is not accessible from this host.
 
  Generally, the storage seems accessible ok. For example, if I restart
  the vdsmd, all volumes get picked up correctly (become visible in lvs
  output and VMs can be started with them).
  
  Lests repeat this test, but now, if you do not see the new lv, please
  run:
  
  multipath -r
  
  And report the results.
  
 
 Running multipath -r helped and the disk was properly picked up by the
 second host.
 
 Is running multipath -r safe while host is not in maintenance mode?

It should be safe, vdsm uses in some cases.

 If yes, as a temporary workaround I can patch vdsmd to run multipath -r
 when e.g. monitoring the storage domain.

I suggested running multipath as debugging aid; normally this is not needed.

You should see lv on the shared storage without running multipath.

Zdenek, can you explain this?

  One warning that I keep seeing in vdsm logs on both nodes is this:
 
  Thread-1617881::WARNING::2014-02-24
  16:57:50,627::sp::1553::Storage.StoragePool::(getInfo) VG
  3307f6fa-dd58-43db-ab23-b1fb299006c7's metadata size exceeded
   critical size: mdasize=134217728 mdafree=0
  
  Can you share the output of the command bellow?
  
  lvs -o
  
  uuid,name,attr,size,free,extent_size,extent_count,free_count,tags,vg_mda_size,vg_mda_free,lv_count,pv_count,pv_name
 
 Here's the output for both hosts.
 
 host1:
 [root@host1 ~]# lvs -o
 uuid,name,attr,size,vg_free,vg_extent_size,vg_extent_count,vg_free_count,tags,vg_mda_size,vg_mda_free,lv_count,pv_count
   LV UUIDLV
   Attr  LSize   VFree   Ext #Ext  Free  LV Tags
 
 VMdaSize  VMdaFree  #LV #PV
   jGEpVm-oPW8-XyxI-l2yi-YF4X-qteQ-dm8SqL
 3d362bf2-20f4-438d-9ba9-486bd2e8cedf -wi-ao---   2.00g 114.62g 128.00m
 1596   917
 IU_0227da98-34b2-4b0c-b083-d42e7b760036,MD_5,PU_f4231952-76c5-4764-9c8b-ac73492ac465
128.00m0   13   2

This looks wrong - your vg_mda_free is zero - as vdsm complains.

Zdenek, how can we debug this further?

Nir
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] help requested

2014-03-03 Thread Nir Soffer
- Original Message -
 From: aditya mamidwar aditya.mamid...@gmail.com
 To: users@ovirt.org
 Sent: Sunday, March 2, 2014 6:39:41 AM
 Subject: [Users] help requested
 
 i want to study how ovirt implements the ISCSI protocol for disk access in
 SANs, i want to study the source code files.
 from where can i get them?

vdsm: git clone git://gerrit.ovirt.org/vdsm
ovirt-engine: git clone git://gerrit.ovirt.org/ovirt-engine

See also http://www.ovirt.org/Develop

Nir
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] method glusterHostsList is not supported

2014-03-03 Thread Itamar Heim

On 03/03/2014 07:26 PM, René Koch wrote:

Hi list,

My hosted engine is running again, so I want to start a new thread for
another issue with my setup.

I have a GlusterFS storage domain, which can be mounted from CLI without
problems. oVirt is 3.4 from ovirt-3.4.0-prerelease repository running on
CentOS 6.5 with latest updates (both OS and oVirt).

Both hosts, which act as hypervisors and GlusterFS nodes are in state
Non Operational in oVirt because Gluster command [Non interactive
user] failed on server ovirt-host02.dmz.linuxland.at.

In engine.log I see the entry glusterHostList is not supported
(attached are the log entries when activating one of the hosts):

2014-03-03 18:17:11,764 ERROR
[org.ovirt.engine.core.vdsbroker.gluster.GlusterServersListVDSCommand]
(org.ovirt.thread.pool-6-thread-21) [6eee3cbd] Command
GlusterServersListVDSCommand(HostName = ovirt-host02.dmz.linuxland.at,
HostId = dd399eeb-f623-457a-9986-a7efc69010b2) execution failed.
Exception: VDSNetworkException: org.apache.xmlrpc.XmlRpcException: type
'exceptions.Exception':method glusterHostsList is not supported

Can you give me a hint what this means and how I can activate my hosts
and storage again?
Thanks a lot!




___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users



sahina ?
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] method glusterHostsList is not supported

2014-03-03 Thread Sahina Bose


On 03/04/2014 01:59 AM, Itamar Heim wrote:

On 03/03/2014 07:26 PM, René Koch wrote:

Hi list,

My hosted engine is running again, so I want to start a new thread for
another issue with my setup.

I have a GlusterFS storage domain, which can be mounted from CLI without
problems. oVirt is 3.4 from ovirt-3.4.0-prerelease repository running on
CentOS 6.5 with latest updates (both OS and oVirt).

Both hosts, which act as hypervisors and GlusterFS nodes are in state
Non Operational in oVirt because Gluster command [Non interactive
user] failed on server ovirt-host02.dmz.linuxland.at.

In engine.log I see the entry glusterHostList is not supported
(attached are the log entries when activating one of the hosts):

2014-03-03 18:17:11,764 ERROR
[org.ovirt.engine.core.vdsbroker.gluster.GlusterServersListVDSCommand]
(org.ovirt.thread.pool-6-thread-21) [6eee3cbd] Command
GlusterServersListVDSCommand(HostName = ovirt-host02.dmz.linuxland.at,
HostId = dd399eeb-f623-457a-9986-a7efc69010b2) execution failed.
Exception: VDSNetworkException: org.apache.xmlrpc.XmlRpcException: type
'exceptions.Exception':method glusterHostsList is not supported

Can you give me a hint what this means and how I can activate my hosts
and storage again?
Thanks a lot!




___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users



sahina ?


Do you have vdsm-gluster on the node?
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Creating Logical Network issue - API

2014-03-03 Thread Tejesh M
Thanks alot.


On Mon, Mar 3, 2014 at 8:14 PM, Moti Asayag masa...@redhat.com wrote:



 - Original Message -
  From: Tejesh M tejes...@gmail.com
  To: Moti Asayag masa...@redhat.com
  Cc: users@oVirt.org users@ovirt.org
  Sent: Monday, March 3, 2014 4:36:32 PM
  Subject: Re: [Users] Creating Logical Network issue - API
 
  Ok got it..
  I just observed that my setup network is not getting saved, after
 attaching
  my logical network to host nic.
 

 Let me refer you to yet another post [1]:

 You should add the following at the end of your setup-networks action:

 api.getHosts().get(your-host).commitnetconfig(new Action());

 [1]
 https://motiasayag.wordpress.com/2013/04/08/it-is-not-over-till-moti-sings/


 
  On Mon, Mar 3, 2014 at 7:34 PM, Moti Asayag masa...@redhat.com wrote:
 
  
  
   - Original Message -
From: Tejesh M tejes...@gmail.com
To: Moti Asayag masa...@redhat.com
Cc: users@oVirt.org users@ovirt.org
Sent: Monday, March 3, 2014 3:46:14 PM
Subject: Re: [Users] Creating Logical Network issue - API
   
Thanks, I'm able to create logical network  attached the same to
 host.
   
Now I tried to change the network for a VM nic from rhevm to
 VLAN1189,
   but
it is not working. any suggestion?
   
   
   
  
 api.getVMs().get(vmName).getNics().get(nic1).setNetwork(api.getNetworks().get(VLAN1189));
  api.getVMs().get(vmName).getNics().get(nic1).update();
   
  
   This snippet is wrong: You attempt to modify a newly fetched
   vnic than the one that was just modified in the first line.
  
   I'd try:
VMNIC vnic = api.getVMs().get(vmName).getNics().get(nic1);
vnic.setNetwork(api.getNetworks().get(VLAN1189));
vnic.update();
  
   If this doesn't work - keep reading :-)
  
   There has been a recent bug in this regards [1].
  
   You can by pass it by nullifying the vnic-profile value until getting
 the
   next stable version (or using the 3.4 rc build).
  
   You can read more about the vnic profile and see python examples here
 [2]
  
   [1] https://bugzilla.redhat.com/show_bug.cgi?id=1047887
   Bug 1047887 - Update vnic_profile fails for VM vnic
  
   [2] https://motiasayag.wordpress.com/2014/02/02/vnic-profiles/
  
   
   
   
On Mon, Feb 24, 2014 at 5:23 PM, Moti Asayag masa...@redhat.com
 wrote:
   


 - Original Message -
  From: Tejesh M tejes...@gmail.com
  To: Moti Asayag masa...@redhat.com
  Cc: users@oVirt.org users@ovirt.org
  Sent: Monday, February 24, 2014 1:18:53 PM
  Subject: Re: [Users] Creating Logical Network issue - API
 
  The example updates the existing Network (i.e. if the Logical
   Network is
  already mapped to eth1). But what i'm looking for is how to map
   Logical
  Network ApiNetWork to eth1, please refer screenshot.
 

 Please check the last example named AddNetworkToNic from


  
 https://motiasayag.wordpress.com/2014/02/24/network-configuration-using-ovirt-engine-java-sdk/

 It should achieve what you're aiming for.

 
  On Mon, Feb 24, 2014 at 4:11 PM, Moti Asayag masa...@redhat.com
 
   wrote:
 
   - Original Message -
From: Tejesh M tejes...@gmail.com
To: Moti Asayag masa...@redhat.com
Cc: users@oVirt.org users@ovirt.org
Sent: Monday, February 24, 2014 11:59:42 AM
Subject: Re: [Users] Creating Logical Network issue - API
   
While setting Logical Network, it fails with below error:
code  : 400
reason: Bad Request
detail: Previous network name is required.
  
   See an example in the following post:
  
  
  

  
 https://motiasayag.wordpress.com/2014/02/24/network-configuration-using-ovirt-engine-java-sdk/
  
   
Code:
  String nw_name=ApiNetWork;
  org.ovirt.engine.sdk.decorators.Host hst =
api.getHosts().get(rhevhost);
   
   

  
 hst.getHostNics().get(eth1).setNetwork(api.getNetworks().get(nw_name));
   
   //hst.getHostNics().get(eth1).setCheckConnectivity(true);
   
 //hst.getHostNics().get(eth1).setOverrideConfiguration(true);
  hst.getHostNics().get(eth1).update();
   
   
   
On Mon, Feb 24, 2014 at 2:30 PM, Tejesh M 
 tejes...@gmail.com
 wrote:
   
 Can you tel me how do i assign Logical Network(s) to one
 of the
   Physical
 Nic on the Host.


 On Fri, Feb 21, 2014 at 1:37 PM, Moti Asayag 
   masa...@redhat.com
   wrote:

 h

 - Original Message -
  From: Tejesh M tejes...@gmail.com
  To: users@oVirt.org users@ovirt.org
  Sent: Thursday, February 20, 2014 11:48:56 AM
  Subject: [Users] Creating Logical Network issue - API
 
  Hi ,
 
  I'm trying to create Logical Network and assign it to
   cluster