Re: [ovirt-users] Cannot add host to cluster - install fails

2015-07-08 Thread Mitja Mihelič

On 06. 07. 2015 11:24, Yedidyah Bar David wrote:

- Original Message -

From: Mitja Mihelič ftp-ad...@arnes.si
To: Yedidyah Bar David d...@redhat.com
Cc: users@ovirt.org
Sent: Monday, July 6, 2015 11:49:28 AM
Subject: Re: [ovirt-users] Cannot add host to cluster - install fails

On 05/07/15 13:40, Yedidyah Bar David wrote:

- Original Message -

From: Mitja Miheličmitja.mihe...@arnes.si
To:users@ovirt.org
Sent: Friday, July 3, 2015 2:12:28 PM
Subject: [ovirt-users] Cannot add host to cluster - install fails

Dear all,

We are running the following setup:
ovirt-engine host:
- CentOS release 6.6
- ovirt-engine-3.5.3.1-1.el6.noarch

node:
- CentOS Linux release 7.1.1503
- vdsm-4.16.20-0.el7.centos.x86_64

While adding a new host to our cluster the package installations fail.

I have attached a piece of engine.log and a full ovirt-host-deploy* log
from the node.

Why is is happening? Help would be very much appreciated.

Perhaps an older ovirt-host-deploy package?

You seem to have 1.2.3, while engine 3.5.3 requires at least 1.3.0 -
not sure how this happened. Can you try to upgrade?

Thanks and best regards,

This is interesting. The ovirt-host-deploy package version on the engine
host is ovirt-host-deploy-1.3.1-1.el6.noarch.
I tried to install ovirt-host-deploy manually using yum on the cluster
node. It wanted to install ovirt-host-deploy-1.3.1-1.el7, which should
be OK.
When adding a node, the install process tries to push an older version
of the ovirt-host-deploy package and also for the wrong CentOS version
(el6 instead od el7).

Could this be a problem of the ovirt engine?

The engine caches the bundle (tarfile) used for host-deploy in
/var/cache/ovirt-engine/ovirt-host-deploy.tar .

You can try to remove/rename it so that the engine will re-create it.
It might have a too-new timestamp with older content for some reason.

Thanks! This worked for us.

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


[ovirt-users] GlusterFS host installation failed

2015-07-08 Thread Stefano Stagnaro
Hi,

host installation in a glusterfs cluster is failing due to dependecies errors:

Error: Package: glusterfs-server-3.7.2-3.el6.x86_64 (ovirt-3.5-glusterfs-epel)
   Requires: pyxattr
Error: Package: glusterfs-server-3.7.2-3.el6.x86_64 (ovirt-3.5-glusterfs-epel)
   Requires: liburcu-cds.so.1()(64bit)
Error: Package: glusterfs-server-3.7.2-3.el6.x86_64 (ovirt-3.5-glusterfs-epel)
   Requires: liburcu-bp.so.1()(64bit)

oVirt Engine Version: 3.5.3.1-1.el6 on CentOS 6.6

I've installed the following repo: 
http://resources.ovirt.org/pub/yum-repo/ovirt-release35.rpm

Thank you,
-- 
Stefano Stagnaro

Prisma Telecom Testing S.r.l.
Via Petrocchi, 4
20127 Milano – Italy

Tel. 02 26113507 int 339
e-mail: stefa...@prismatelecomtesting.com
skype: stefano.stagnaro

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


Re: [ovirt-users] Stuck removing DataCenter, Hosts and Volumes

2015-07-08 Thread m...@ohnewald.net

Anyone? :)

Am 07.07.15 um 11:54 schrieb m...@ohnewald.net:

Hello List,

I have a 2 node replica Gluster Cluster in a Datacenter which i want to
remove completely.

1.) I put both nodes in maintenance and removed the DataCenter and the
Storage unter the Storage Tab.


But now i am stuck removing the Cluster, Hosts and GlusterVolume.


a) When i try to remove the Cluster: Error while executing action:
Cannot remove Cluster. Host Cluster contains one or more Hosts.

b) When i try to remove the hosts:  node1: Cannot remove Host. Server
having Gluster volume.

c) When i try to remove my Volume i get: Error while executing action:
Cannot stop Gluster Volume. No up server found in Cluster_II.


Any idea how to solve this?

Thanks,
Mario

___
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


[ovirt-users] Live VM Backups

2015-07-08 Thread Chris Jones - BookIt . com Systems Administrator
From what I can tell, you can only backup a VM to an export domain if 
the VM is shut down. Is a live VM backup not possible through oVirt? If 
not, why not? Most other virtualization tools can handle this.


If it is possible, how do I do it through the backup API? 
api.vms.myvm.export requires it to be shutdown so what would the 
alternative be?


Thanks.

--
This email was Virus checked by UTM 9. For issues please contact the Windows 
Systems Admin.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] R: R: R: R: R: R: R: PXE boot of a VM on vdsm don't read DHCP offer

2015-07-08 Thread NUNIN Roberto


 -Messaggio originale-
 Da: Michael S. Tsirkin [mailto:m...@redhat.com]
 Inviato: mercoledì 8 luglio 2015 08:12
 A: Dan Kenigsberg
 Cc: NUNIN Roberto; users@ovirt.org; ibar...@redhat.com
 Oggetto: Re: R: R: R: R: R: [ovirt-users] R: PXE boot of a VM on vdsm don't 
 read
 DHCP offer

 On Tue, Jul 07, 2015 at 05:13:28PM +0100, Dan Kenigsberg wrote:
  On Tue, Jul 07, 2015 at 10:14:54AM +0200, NUNIN Roberto wrote:
   
On Mon, Jul 06, 2015 at 10:33:59AM +0200, NUNIN Roberto wrote:
 Hi Dan

 Sorry for question: what do you mean for interface vnet ?
 Currently our path is :
 eno1 - eno2   bond0 - bond.3500 (VLAN) -- bridge - vm.

 Which one of these ?
 Moreover, reading Fabian statements about bonding limits, today I
 can try
to switch to a config without bonding.
   
vm is a complicated term.
   
`brctl show` would not show you a vm connected to a bridge. When
 you
WOULD see is a vnet888 tap device. The other side of this device is
held by qemu, which implement the VM.
  
   Ok, understood and found it, vnet2
  
   
I'm asking if the dhcp offer has reached that tap device.
  
   No, the DHCP offer packet do not reach the vnet2 interface, I can see only
 DHCP DISCOVER.
 
  Ok, so it seems that we have a problem in the host bridging.
 
  Is it the latest kernel-3.10.0-229.7.2.el7.x86_64 ?
 
  Michael, a DHCP DISCOVER is sent out of a just-booted guest, and OFFER
  returns to the bridge, but is not propagated to the tap device.
  Can you suggest how to debug this further?

 Dump packets including the ethernet headers.

I have both tcpdump capture, on the bridge interface and on the vnet interface.

How I can upload output files ?
Sorry for probably obvious question, first time for me :)

Roberto Nunin
 Likely something interfered with them so the eth address is wrong.

 Since bonding does this sometimes, this is the most likely culprit.

 --
 MST

Questo messaggio e' indirizzato esclusivamente al destinatario indicato e 
potrebbe contenere informazioni confidenziali, riservate o proprietarie. 
Qualora la presente venisse ricevuta per errore, si prega di segnalarlo 
immediatamente al mittente, cancellando l'originale e ogni sua copia e 
distruggendo eventuali copie cartacee. Ogni altro uso e' strettamente proibito 
e potrebbe essere fonte di violazione di legge.

This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise private information. If you have received it in 
error, please notify the sender immediately, deleting the original and all 
copies and destroying any hard copies. Any other use is strictly prohibited and 
may be unlawful.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Live VM Backups

2015-07-08 Thread Soeren Malchow
Dear Chris,

It is not true, you can snapshot a machine, then clone the snapshot and
export it for backup purposes after that you can remove the snapshot, all
on the live VM.
However, you need newer versions of libvirt to do that, right now we are
using CentOS 7.1 and the libvirt that comes with it is capable of doing
live merge which is necessary to achieve this.

But i have to warn you, we are experiencing a problem when removing the
snapshots (the part is commented in the attached script) it sometimes
kills virtual machines in a way that makes it necessary to put the
hypervisor to maintenance and then restart vdsmd and libvirtd before you
can start that VM again.

There is a bug filed already and it is in progress

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

I also have to add that i newer version of libvirt (on Fedora 20 with the
libvirt preview repo) did not have that problem, so i am confident that
this will be solved soon.

Last but not least there is a plan to be able to export snapshots right
away for backup without having to clone them first, this is a huge step
forward for the backup procedure in terms of time that is needed and the
load on the storage and hypervisor systems.

I would really appreciate if you would help improving that script (we are
not python developers), i will see that i make this a github project or
something like that

Cheers
Soeren





On 08/07/15 17:13, users-boun...@ovirt.org on behalf of Chris Jones -
BookIt.com Systems Administrator users-boun...@ovirt.org on behalf of
chris.jo...@bookit.com wrote:

 From what I can tell, you can only backup a VM to an export domain if
the VM is shut down. Is a live VM backup not possible through oVirt? If
not, why not? Most other virtualization tools can handle this.

If it is possible, how do I do it through the backup API?
api.vms.myvm.export requires it to be shutdown so what would the
alternative be?

Thanks.

-- 
This email was Virus checked by UTM 9. For issues please contact the
Windows Systems Admin.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users

#!/usr/bin/python

import Queue
import threading
import time
from ovirtsdk.api import API
from ovirtsdk.xml import params
import sys
import datetime
import smtplib
from email.mime.text import MIMEText


global SNAPSHOT_NAME

VERSION = params.Version(major='3', minor='0')
ENGINE_SERVER   = ''
ENGINE_USER = ''
ENGINE_PASSWORD = ''
ENGINE_CERT = ''
NOW = datetime.datetime.now()
SNAPSHOT_NAME   = 'BACKUP_' + NOW.strftime(%Y-%m-%d-%H%M)
DAY_OF_WEEK = NOW.strftime(%w)
BACKUP  = FULL

exitFlag = 0

class myThread (threading.Thread):
def __init__(self, threadID, name, q):
threading.Thread.__init__(self)
self.threadID = threadID
self.name = name
self.q = q
self.api = api
global message
def run(self):
print Starting  + self.name
process_data(self.name, self.q)
print Exiting  + self.name

def process_data(threadName, q):
while not exitFlag:
queueLock.acquire()
if not workQueue.empty():
data = q.get()
queueLock.release()
print %s processing %s % (threadName, data.name)
vm = api.vms.get(name=data.name)
vmname = data.name +_
newvmname = vmname + SNAPSHOT_NAME
cluster = api.clusters.get(id=vm.cluster.id)
dc = api.datacenters.get(id=cluster.data_center.id)
export = None
for sd in dc.storagedomains.list():
if sd.type_ == export:
export = sd
if not export:
print(Export domain required, and none found, exitting...\n)
sys.exit(1)
if (data.name != 'HostedEngine' and cluster.name == 'CC-01'):
vm.snapshots.add(params.Snapshot(description=SNAPSHOT_NAME, vm=vm ))
snap = vm.snapshots.list(description=SNAPSHOT_NAME)[0]
while vm.snapshots.get(id=snap.id).snapshot_status == locked:
print(%s Waiting for snapshot of %s to finish) % (threadName, vm.name)
time.sleep(60)
print(%s Snapshotting %s is done) % (threadName,vm.name)
try:
snapshots = params.Snapshots(snapshot=[params.Snapshot(id=snap.id)])
api.vms.add(params.VM(name=newvmname, snapshots=snapshots, cluster=cluster, template=api.templates.get(name=Blank)))
while api.vms.get(name=newvmname).status.state == image_locked:
print(%s Waiting for clone of %s to finish) % (threadName, vm.name)
time.sleep(300)
print(%s Cloning of %s  done) % (threadName, vm.name)

Re: [ovirt-users] Live VM Backups

2015-07-08 Thread Jiří Sléžka

Hi Soeren,

thanks for sharing! I will look on this script right after upgrading to 
7.1. It looks really useful.


cheers, Jiri


On 07/08/2015 09:36 PM, Soeren Malchow wrote:

Dear Chris,

It is not true, you can snapshot a machine, then clone the snapshot and
export it for backup purposes after that you can remove the snapshot, all
on the live VM.
However, you need newer versions of libvirt to do that, right now we are
using CentOS 7.1 and the libvirt that comes with it is capable of doing
live merge which is necessary to achieve this.

But i have to warn you, we are experiencing a problem when removing the
snapshots (the part is commented in the attached script) it sometimes
kills virtual machines in a way that makes it necessary to put the
hypervisor to maintenance and then restart vdsmd and libvirtd before you
can start that VM again.

There is a bug filed already and it is in progress

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

I also have to add that i newer version of libvirt (on Fedora 20 with the
libvirt preview repo) did not have that problem, so i am confident that
this will be solved soon.

Last but not least there is a plan to be able to export snapshots right
away for backup without having to clone them first, this is a huge step
forward for the backup procedure in terms of time that is needed and the
load on the storage and hypervisor systems.

I would really appreciate if you would help improving that script (we are
not python developers), i will see that i make this a github project or
something like that

Cheers
Soeren





On 08/07/15 17:13, users-boun...@ovirt.org on behalf of Chris Jones -
BookIt.com Systems Administrator users-boun...@ovirt.org on behalf of
chris.jo...@bookit.com wrote:


 From what I can tell, you can only backup a VM to an export domain if
the VM is shut down. Is a live VM backup not possible through oVirt? If
not, why not? Most other virtualization tools can handle this.

If it is possible, how do I do it through the backup API?
api.vms.myvm.export requires it to be shutdown so what would the
alternative be?

Thanks.

--
This email was Virus checked by UTM 9. For issues please contact the
Windows Systems Admin.
___
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






smime.p7s
Description: S/MIME Cryptographic Signature
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] how to configure virtio-scsi as a default disk interface in userportal/webadmin?

2015-07-08 Thread David Jaša
Hi,

I was wondering about $SUBJ. Is it governed by interfaces order in
osinfo properties? Or somewhere else? I hope that virtio-blk isn't
hardcoded...

Best regards,

David Jaša

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