Re: [ovirt-users] cloud-init root password?
your mileage may vary! For example we use python api with cloud-init and template to reset root password (you can use for example command like this: openssl rand -hex 10) and to configure network / configuration files and freeipa... Michal, are you working with plain password or with salted hashed ones? I had some experiment on hosted-engine with strange results on that. try to use python api by passing: users=params.Users(user=[params.User(user_name=root, password=SPASSWORD)]) have a look at python example on http://www.ovirt.org/Features/Cloud-Init_Integration Best regards Amedeo Date: Tue, 7 Apr 2015 13:34:24 +0200 From: Michal Skrivanek michal.skriva...@redhat.com To: Sven Kieske s.kie...@mittwald.de Cc: users@ovirt.org Subject: Re: [ovirt-users] cloud-init root password? Message-ID: 02d7fe6f-5638-459c-865e-064652cf6...@redhat.com Content-Type: text/plain; charset=iso-8859-1 On Apr 7, 2015, at 12:21 , Sven Kieske s.kie...@mittwald.de wrote: On 07/04/15 11:31, Michal Skrivanek wrote: Hi Jorick, This was 3.5 enhancement to support also non-root users you use username root and set a password:-) well the enhancement should not break existing workflows. if no user is supplied you should set root as a default. well, yeah, it could be pre-filled with root I'd consider this as a regression, if I understand the change correct? it works like that only with REST API:) changes in UI dialogs are common. Thanks, michal ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [ovirt-users] cloud-init root password?
Interesting feature! :D @Jorick Can this also be done with the REST-api? I see a users section in the example on http://www.ovirt.org/Features/Cloud-Init_Integration yes, you can use rest-api too, but I prefer python-sdk... best regards Amedeo Da Simone Tiraboschi stira...@redhat.com A Amedeo Salvati ame...@oscert.net Cc users@ovirt.org Data Tue, 7 Apr 2015 09:09:08 -0400 (EDT) Oggetto Re: [ovirt-users] cloud-init root password? - Original Message - From: Amedeo Salvati ame...@oscert.net To: users@ovirt.org Sent: Tuesday, April 7, 2015 2:26:08 PM Subject: Re: [ovirt-users] cloud-init root password? your mileage may vary! For example we use python api with cloud-init and template to reset root password (you can use for example command like this: openssl rand -hex 10) and to configure network / configuration files and freeipa... Michal, are you working with plain password or with salted hashed ones? I had some experiment on hosted-engine with strange results on that. try to use python api by passing: users=params.Users(user=[params.User(user_name=root, password=SPASSWORD)]) have a look at python example on http://www.ovirt.org/Features/Cloud-Init_Integration Sorry, I was talking about a new feature for hosted-engine on 3.6 where you will be able to lunch a pre-built appliance for the engine VM configuring it via cloud-init. In that case we still have not API cause the engine is still not running. Best regards Amedeo Date: Tue, 7 Apr 2015 13:34:24 +0200 From: Michal Skrivanek michal.skriva...@redhat.com To: Sven Kieske s.kie...@mittwald.de Cc: users@ovirt.org Subject: Re: [ovirt-users] cloud-init root password? Message-ID: 02d7fe6f-5638-459c-865e-064652cf6...@redhat.com Content-Type: text/plain; charset=iso-8859-1 On Apr 7, 2015, at 12:21 , Sven Kieske s.kie...@mittwald.de wrote: On 07/04/15 11:31, Michal Skrivanek wrote: Hi Jorick, This was 3.5 enhancement to support also non-root users you use username root and set a password:-) well the enhancement should not break existing workflows. if no user is supplied you should set root as a default. well, yeah, it could be pre-filled with root I'd consider this as a regression, if I understand the change correct? it works like that only with REST API:) changes in UI dialogs are common. Thanks, michal ___ 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: [ovirt-users] How to create a vm cloned independent from python sdk
thanks! Best regards Amedeo Salvati Da Juan Hernández jhern...@redhat.com A Amedeo Salvati ame...@oscert.net, users@ovirt.org Cc Data Wed, 10 Dec 2014 19:12:31 +0100 Oggetto Re: [ovirt-users] How to create a vm cloned independent from python sdk On 12/10/2014 05:11 PM, Amedeo Salvati wrote: Hello all, I'm trying to create a new VM using python sdk with it's disks cloned/independent and not on thin provisioning, when I create vm I use template (that has a preallocated disks), and I use this code to create a vm: api.vms.add(params.VM(name=VMNAME, memory=MEM*GB, cluster=api.clusters.get(CLUSTER), template=api.templates.get(templatename), description='PROVA' )) if I use web portal I'm able to preallocate/clone disks under resource allocation tab (New VM - resource allocation), instead I can't found same operations on python sdk... someone can let me know what params I should pass to api.vms.add to clone disks? Best regards Amedeo Salvati To specify that you want to clone the disks (the default is to not clone them) you need an additional disks parameter with the clone=True attribute: api.vms.add( params.VM( vmname=VMNAME, memory=MEM*GB, cluster=..., template=..., description=..., disks=params.Disks( clone=True ) ) ) -- Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta 3ºD, 28016 Madrid, Spain Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941 - Red Hat S.L. ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
[ovirt-users] how to rename disk alias on python sdk
Hello all, I want to rename a disk alias using python sdk, but I cannot find an update method for object returned from api.disks.get (like cdrom, vm, datacenter objects). Simplified code is: d1 = api.disks.get(id=7408f728-97e5-4b10-beb7-d9a70083797e) d1.get_alias() 'FSBOVRHEL66TMP-1412_Disk1' -- OLD alias d1.set_alias('PIPPO_Disk1') d1.get_alias() 'PIPPO_Disk1' -- NEW alias but after that I cannot find a method like d1.update() to commit changes of disk object, what I miss? Best regards Amedeo Salvati ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [ovirt-users] how to rename disk alias on python sdk
Ondra, Juan, Karli and all thanks! Best Regards Amedeo Salvati Da Karli Sjöberg karli.sjob...@slu.se A Amedeo Salvati ame...@oscert.net Cc users@ovirt.org users@ovirt.org Data Thu, 11 Dec 2014 11:47:57 + Oggetto Re: [ovirt-users] how to rename disk alias on python sdk On Thu, 2014-12-11 at 11:29 +0100, Amedeo Salvati wrote: Hello all, I want to rename a disk alias using python sdk, but I cannot find an update method for object returned from api.disks.get (like cdrom, vm, datacenter objects). Simplified code is: d1 = api.disks.get(id=7408f728-97e5-4b10-beb7-d9a70083797e) d1.get_alias() 'FSBOVRHEL66TMP-1412_Disk1' -- OLD alias d1.set_alias('PIPPO_Disk1') d1.get_alias() 'PIPPO_Disk1' -- NEW alias but after that I cannot find a method like d1.update() to commit changes of disk object, what I miss? Best regards Amedeo Salvati plain text document attachment (ATT1) ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users This is how we do it: DISK_NAME = '%s_Disk1' % (VM_NAME) try: vm = api.vms.get(VM_NAME) vmdisk = vm.disks.list()[0] vmdisk.alias = '%s' % (DISK_NAME) vmdisk.update() except Exception as e: raise(e) -- Med Vänliga Hälsningar --- Karli Sjöberg Swedish University of Agricultural Sciences Box 7079 (Visiting Address Kronåsvägen 8) S-750 07 Uppsala, Sweden Phone: +46-(0)18-67 15 66 karli.sjob...@slu.se ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
[ovirt-users] How to create a vm cloned independent from python sdk
Hello all, I'm trying to create a new VM using python sdk with it's disks cloned/independent and not on thin provisioning, when I create vm I use template (that has a preallocated disks), and I use this code to create a vm: api.vms.add(params.VM(name=VMNAME, memory=MEM*GB, cluster=api.clusters.get(CLUSTER), template=api.templates.get(templatename), description='PROVA' )) if I use web portal I'm able to preallocate/clone disks under resource allocation tab (New VM - resource allocation), instead I can't found same operations on python sdk... someone can let me know what params I should pass to api.vms.add to clone disks? Best regards Amedeo Salvati ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [ovirt-users] ovirt italian translation and jenkins
thanks Best Regards Amedeo Date: Thu, 27 Nov 2014 11:07:32 +0100 From: Sandro Bonazzola sbona...@redhat.com To: Gianluca Cecchi gianluca.cec...@gmail.com, users users@ovirt.org, Einav Cohen eco...@redhat.com, Giorgio Bersano giorgio.bers...@gmail.com Subject: Re: [ovirt-users] ovirt italian translation and jenkins Il 26/11/2014 15:03, Gianluca Cecchi ha scritto: Hello, Amedeo Salvati has begun working on it (we are now at 40% on master). Is it possible to include him in destination list for these e-mails? Added in jenkins job: http://jenkins.ovirt.org/job/ovirt-engine_master_create-rpms_merged_italian_translation/ Address amedeo.salv...@gmail.com mailto:amedeo.salv...@gmail.com is ok BTW: is there any way to concentrate and work only master and then quickly dump to 3.5 eventually? Thanks in advance, Gianluca ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
[ovirt-users] Possible python api bug on api.clusters.list
Hello, before opening a new bug, I'm asking here if somebody could let me know if this is a bug or there are other ways to obtain clusters list... on python script I retrieve cluster list by using: clulist = api.clusters.list( datacenter= + PROD ) but this query on python script will be *automatically* expandend on something like evething datacenter containg word PROD - *PROD*, and on our env there are either NO_PROD datacenter and PROD datacenter, and this cause that clulist object contains every clusters on both datacenter. Instead ovirt-shell works fine and returns only clusters filtered by datacenter-identifier parameter. To better understand this is snippet of python code: clulist = api.clusters.list( datacenter= + PROD ) for clu in clulist: ... print Found cluster + clu.get_name() ... Found cluster NO_PROD THIS CLUSTER IS ON NO_PROD DATACENTER Found cluster PROD ovirt-shell snippet that works fine: [oVirt shell (connected)]# list clusters --datacenter-identifier PROD id : 168c0d5e-8f12-4377-aabf-604adfd36b2b name : PROD [oVirt shell (connected)]# list clusters --datacenter-identifier NO_PROD id : a092c9fc-0f5f-471e-8bca-b3828255aa5a name : NO_PROD [oVirt shell (connected)]# Is this a bug? Can I open a new bug on bugzilla? Best regards Amedeo Salvati ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [ovirt-users] Italian translation
@Gianluca, Giorgio, let me know if you want to help you... Best Regards Amedeo Salvati Da: users-boun...@ovirt.org A: users@ovirt.org Cc: Date: Thu, 13 Nov 2014 09:24:55 +0100 From: Gianluca Cecchi gianluca.cec...@gmail.com To: Sandro Bonazzola sbona...@redhat.com Cc: Users@ovirt.org Users@ovirt.org Subject: Re: [ovirt-users] Italian translation Message-ID: cag2knczozky-4f-vd4wobfd9wvhcbibbmtjvah-t-sth-0j...@mail.gmail.com Content-Type: text/plain; charset=utf-8 On Thu, Nov 13, 2014 at 8:47 AM, Sandro Bonazzola sbona...@redhat.com wrote: Hi Giorgio and Gianluca, how is it going with Italian translation? Community, any other Italian who wants to join the effort [1]? [1] https://translate.zanata.org/zanata/iteration/view/ovirt/master/languages/it -- Sandro Bonazzola Better technology. Faster innovation. Powered by community collaboration. See how it works at redhat.com In my case I had somehow stopped due to other priorities and lack of time. And it will be so at least up to the end of November. I'm planning to give a push during December so that we can arrive at least at 60-65% I'll update when starting again... Gianluca ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [ovirt-users] Italian translation
thanks Gianluca, I've created amedeos account on zanata... so this evening or tomorrow I'll find a couple of hours to start... ciao a Da: Gianluca Cecchi gianluca.cec...@gmail.com A: Amedeo Salvati ame...@oscert.net Cc: users users@ovirt.org Data: Thu, 13 Nov 2014 13:35:35 +0100 Oggetto: Re: [ovirt-users] Italian translation Il 13/nov/2014 13:06 Amedeo Salvati [1]ame...@oscert.net ha scritto: @Gianluca, Giorgio, let me know if you want to help you... Best Regards Amedeo Salvati I would say that you are more than welcome ;-) Your Surname is a guarantee for us... Save us !!! Let me know if you need help to setup The zanata account. Gianluca ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [ovirt-users] Balloon driver unavailable
you receive this error because on your cluster configurations you have checked Enable Memory Balloon Optimization, and on some of your VMs there aren't balloon driver available; if you don't want anymore this warning messages you can uncheck this under Clusters - (select your cluster) edit - Optimization - uncheck Enable Memory Balloon Optimization Best Regards Amedeo Salvati Date: Wed, 12 Nov 2014 07:59:33 + From: Karli Sj?berg karli.sjob...@slu.se To: tdeme...@itsmart.hu tdeme...@itsmart.hu Cc: users@ovirt.org users@ovirt.org Subject: Re: [ovirt-users] Balloon driver unavailable Message-ID: 5F9E965F5A80BC468BE5F40576769F099DF97243@exchange2-1 Content-Type: text/plain; charset=utf-8 On Wed, 2014-11-12 at 08:35 +0100, Demeter Tibor wrote: Hi, I have a lot of centos 6 based vms and I have install ovirt guest agent for those vms. But two vm always say The balloon driver on xxxvm on hostX is requested but unavailable I did check the virtio_balloon module are loaded on vms. Anybody can me help? Thanks in advance Tibor I see that too, but only on Windows 2008 R2 guests... No one else ever said anything about it, so I thought it was just me:) ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
[ovirt-users] using ovirt-scheduler-proxy
hello guys, I'm triyng to use ovirt-scheduler-proxy, and for this, now, I'm starting with examples available on: https://github.com/oVirt/ovirt-scheduler-proxy/tree/master/doc/plugin_samples so, on ovirt 3.5 fresh installation I've installed ovirt-scheduler-proxy package (by yum), then I've downloaded from above link host_memory_balance.py file under /usr/share/ovirt-scheduler-proxy/plugins directory, I've changed the connection string due to reflect my ovirt engine hostname/port/user/password, and finally I've started the service: service ovirt-scheduler-proxy start on log ovirt-scheduler-proxy.log I got: [root@engine ovirt-scheduler-proxy]# cat /var/log/ovirt-scheduler-proxy/ovirt-scheduler-proxy.log Tue, 04 Nov 2014 16:01:17 INFO [process:MainProcess, thread:MainThread] Setting up server Tue, 04 Nov 2014 16:01:17 INFO [process:MainProcess, thread:MainThread] Loading modules from /usr/share/ovirt-scheduler-proxy/plugins Tue, 04 Nov 2014 16:01:17 INFO [process:MainProcess, thread:MainThread] Loading analyzer from /usr/lib/python2.6/site-packages/ovirtscheduler Tue, 04 Nov 2014 16:01:17 INFO [process:MainProcess, thread:MainThread] [Request:Main][Method:loadModules] - Trying to load the following files: ['host_memory_balance'] Tue, 04 Nov 2014 16:01:17 DEBUG[process:MainProcess, thread:Thread-1] [Request:Main][Method:PythonMethodRunner] - running ['python', '-c', import loader; loader.loader().analyze('/usr/share/ovirt-scheduler-proxy/plugins', 'host_memory_balance')] in /usr/lib/python2.6/site-packages/ovirtscheduler Tue, 04 Nov 2014 16:01:18 DEBUG[process:MainProcess, thread:MainThread] [Request:Main][Method:loadModules] - script: ['python', '-c', import loader; loader.loader().analyze('/usr/share/ovirt-scheduler-proxy/plugins', 'host_memory_balance')] Tue, 04 Nov 2014 16:01:18 INFO [process:MainProcess, thread:MainThread] [Request:Main][Method:loadModules] - registering: ('host_memory_balance', ('host_memory_balance', 'do_balance', 'selects a vm from the most over utilized vm to migrate.\nif safe_selection is true selects the smallest vm from the host\nif safe_selection is false try and take a vm larger then the amount of memory the host is missing', 'minimum_host_memoryMB=[0-9]*;safe_selection=True|False')) Tue, 04 Nov 2014 16:01:18 INFO [process:MainProcess, thread:MainThread] [Request:Main][Method:loadModules] - registering::loaded- filters:{} scores:{}balancers:{'host_memory_balance': ('selects a vm from the most over utilized vm to migrate.\nif safe_selection is true selects the smallest vm from the host\nif safe_selection is false try and take a vm larger then the amount of memory the host is missing', 'minimum_host_memoryMB=[0-9]*;safe_selection=True|False')} Tue, 04 Nov 2014 16:01:18 INFO [process:MainProcess, thread:MainThread] Publishing API [root@engine ovirt-scheduler-proxy]# but after that on web ui I can't see any change under cluster policy and under Configure - Cluster Policies (host_memory_balance balancers is not displayed) what did I miss? Best regards Amedeo Salvati ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [ovirt-users] Simple script to split VMs on different host - No affinity group
yea, if I have the time I will integrate on a new scheduler best regards a Il 31/10/2014 12:51, Itamar Heim ha scritto: On 10/30/2014 09:23 PM, Amedeo Salvati wrote: hello guys, if you are interested, I wrote a simple python script to balance VMs on different host/hypervisor, logic is simple and will search for same couple of vm name and number suffix, odd and even, and it will try to migrate even VM, if it resides on same host where resides the odd VM. For example if VMPROJ1PROD01 and VMPROJ1PROD02 resides on same host, then, the script will migrate only VMPROJ1PROD02. url of script and rpms are on github: http://github.com/amedeos/ovirt-BalanceVMOnDifferentHost and feel free to suggest new patch, enhancement, create a fork... p.s. I haven't use affinity groups, because maintenance of them will become a struggle, and I want *only* to run same project/application VMs with same name on different hypervisor. Best regards Amedeo Salvati ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users just a thought - you can implement this in a more integrated mannger as part of the pluggable scheduler? ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [ovirt-users] Users Digest, Vol 37, Issue 201
Hi Jim, I use ovirt template and freeipa for authentication, and on template i put a simple script setup-freeipa-client.sh to run on first boot, specifically for first boot I use cloud-init functions on ovirt, via web UI or via python sdk, and with cloud-init you can pass **evethings** you need - new hostname, new ssh keys, new network configurations, new root password, new content on configuration files, or simply executing a new script. If you are interested on cloud-init functions on python sdk have a look on a simple script that i wrote for our disaster recovery automation where on function buildYamlFile(line 124-137) by using cloud-init execution program/script, I change our freeipa server (lines 132-136) avoiding sssd timeout on contacting first two production freeipa server. https://github.com/amedeos/ovirt-scripts-dr/blob/master/StartAllVM.py HTH Amedeo Salvati Il 31/10/2014 20:01, users-requ...@ovirt.org ha scritto: Date: Fri, 31 Oct 2014 14:55:46 -0400 From: Jim Kinneyjim.kin...@gmail.com To:users@ovirt.org users@ovirt.org Subject: [ovirt-users] templates and freeipa Message-ID: CAEo=5PwfhT=cvvahcuj4gsxkufd-ufunbsn0q5mi9ee76eg...@mail.gmail.com Content-Type: text/plain; charset=utf-8 Ovirt 3.5 is running well for me and I have freeIPA controlling access to the user portal. I would like to provide templates of various linux setups that all have freeipa for user authentication in the VM for my developers to be able to create a new VM from and then log in using their freeIPA access and sudo control. I'm wanting to group developers by project and use freeIPA to set sudo commands as needed (group A get oracle, group B get postgresql, etc). Wanting to maximize developer ability while minimizing my clean up time:-) They will be able to delete VMs they create. It's possible to do a kickstart deploy with freeIPA registration but a template from that will be a problem as it will have the same keys for all VMs. Is there a post-creation scripting process I can attach to in ovirt or should I look at a default root user and script that personalizes the new VM? ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [ovirt-users] Add multiple files to a VM via cloud-init
Hi Juan, this means that example of python code on http://www.ovirt.org/Features/Cloud-Init_Integration that I wrote some months ago against v3.4 could be changed by encoding the content on base64? at this time of this writing I haven't v3.5 to test the script / new code best regards Amedeo Salvati Il 01/11/2014 00:00, users-requ...@ovirt.org ha scritto: The custom_script element doesn't work in combination with cloud-init and run once. To make it work you have to use cloud-init and a file element containing your custom script. Here you have an example: #!/usr/bin/python import base64 import re from ovirtsdk.api import API from ovirtsdk.xml import params # A simple function to encode using base64 and now new lines: def encode(s): return re.sub(\s+, , base64.encodestring(s)) # Connect to the server: api = API( url=https://engine35.example.com/ovirt-engine/api;, username=admin@internal, password=redhat123, insecure=True, debug=True ) # Find the virtual machine: myvm = api.vms.get(name=myvm) # Prepare the cloud-init custom script to write files: myscript = \ write_files: # Append one file: myscript += \ - encoding: b64 content: %s owner: root:root path: /etc/firstfile.txt permissions: '0644' % encode(The content of the first file) # Append another file: myscript += \ - encoding: b64 content: %s owner: root:root path: /etc/secondfile.txt permissions: '0644' % encode(The content of the second file) # Prepare the action to trigger initialization using cloud-init: action = params.Action( vm=params.VM( initialization=params.Initialization( cloud_init=params.CloudInit( files=params.Files( file=[ params.File( name=myscript, type_=plaintext, content=myscript ) ] ) ) ) ) ) # Start the virtual machine: myvm.start(action) # Disconnect from the server: api.disconnect() Regarding the problem with the root password we have a bug in 3.5 that makes this fail. See here: https://bugzilla.redhat.com/1156155 The problem is that we are not passing the user name to cloud-init, and as a result it is changing the default cloud-init user password, not the root pssword. To workaround the issue you can edit the /etc/cloud/cloud.cfg file of the VM and change the default user name: system_info: distro: ... default_user: name: root -- Change this from fedora or cloud-init to root ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
[ovirt-users] Simple script to split VMs on different host - No affinity group
hello guys, if you are interested, I wrote a simple python script to balance VMs on different host/hypervisor, logic is simple and will search for same couple of vm name and number suffix, odd and even, and it will try to migrate even VM, if it resides on same host where resides the odd VM. For example if VMPROJ1PROD01 and VMPROJ1PROD02 resides on same host, then, the script will migrate only VMPROJ1PROD02. url of script and rpms are on github: http://github.com/amedeos/ovirt-BalanceVMOnDifferentHost and feel free to suggest new patch, enhancement, create a fork... p.s. I haven't use affinity groups, because maintenance of them will become a struggle, and I want *only* to run same project/application VMs with same name on different hypervisor. Best regards Amedeo Salvati ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
[ovirt-users] Documentation of cloud-init
Hy guys, after some headache I was able to use cloud-init via python-sdk (thanks to Juan), and I hope no one will fight anymore with them :D, so if you want I think it's better to document with a simple example it's use on web page available at: http://www.ovirt.org/Features/Cloud-Init_Integration below simple change that you can integrate on web page: - fix api design example of usage for files xml, on the web page you can find: ... files file name/tmp/testFile1.txt/name contenttemp content/content typePLAINTEXT/type /file /files ... but on params.File there aren't any type parameter only type_ so you can change xml with: ... files file name/tmp/testFile1.txt/name contenttemp content/content type_PLAINTEXT/type_ /file /files ... - insert an example of using cloud-init via python-sdk (I hope java-sdk haven't big differences). for this you can insert on web page an example of setting via cloud-init: hostname, reset root password and write a simple text file, and finally simple python code is: ... scontent = write_files:\n- content: |\n #simple file\n PIPPO=\ciao\\n path: /etc/pippo.txt action = params.Action( vm=params.VM( initialization=params.Initialization( cloud_init=params.CloudInit( host=params.Host(address=rheltest029), users=params.Users( user=[params.User(user_name=root, password=pippolo)] ), files=params.Files( file=[params.File(name=/etc/pippo.txt, content=scontent, type_=PLAINTEXT)] ) ) ) ) ) vm.start( action ) ... HTH Amedeo Salvati___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [ovirt-users] cloud-init options under python-sdk
hello Juan|guys, I still have problems with cloud-init options on python-sdk... now I'm trying to reset root password and according to xml available at http://www.ovirt.org/Features/Cloud-Init_Integration and specifically for user/pw: ... users user user_nameroot/user_name passwordmyPass/password /user /users ... I've changed action object with this example: action = params.Action( vm=params.VM( initialization=params.Initialization( cloud_init=params.CloudInit( host=params.Host(address=rheltest025), users=params.Users( user=params.User(user_name=root, password=pippo) ) ) ) ) ) but when i try to start a vm I got this error: TypeError: 'User' object is not iterable somebody has some hints for resetting root password? Best regards Amedeo Salvati Da: Amedeo Salvati ame...@oscert.net A: jhern...@redhat.com Cc: users@ovirt.org Data: Tue, 22 Jul 2014 15:50:58 +0200 Oggetto: Re: [ovirt-users] cloud-init options under python-sdk many thanks Juan it works! best regards a Da: Juan Hernandez jhern...@redhat.com A: Amedeo Salvati ame...@oscert.net, users@ovirt.org Cc: Data: Tue, 22 Jul 2014 15:32:45 +0200 Oggetto: Re: [ovirt-users] cloud-init options under python-sdk On 07/22/2014 02:55 PM, Amedeo Salvati wrote: hi Juan|guys, thanks for hints! but unfortunatly it seems wont works, because I've launched vm with this simple code: action = params.Action(vm=params.VM(initialization=params.Initialization(cloud_init=params.CloudInit(host=params.Host(name=rheltest014) vm.start( action ) but after boot the VM, cloud-init service hasn't set hostname and on cloud-init.log and cloud-init-output.log I cannot find any entry for setting hostname, instead if I use web ui it work's fine... there are any ways to debug cloud-init jobs? the params params.Host is right for CloudInit host or is intended for host / hypervisor? Best regards Amedeo Salvati To change the hostname you have to use the address property of the Host class: host=params.Host( address=myhostname.example.com ) The Host class is used for many things, including CloudInit and hypervisors. But in this context it is just a container for the host name. To debug cloud-init start the VM (with the GUI or with the RESTAPI), then go to the hypervisor where it is actually running, and look for the corresponding qemu-kvm process: # ps -ef | grep qemu-kvm | grep myvm The qemu-kvm command line will have a parameter indicating the file that contains the cloud-init data: -drive file=/var/run/vdsm/payload/...img Copy that file somewhere, then mount it and inspect the content: # cp /var/run/vdsm/payload/...img /tmp/my.img # mount -o loop,ro /tmp/my.img /mnt # find /mnt ... # umount /mnt Da: Juan Hernandez jhern...@redhat.com A: Amedeo Salvati ame...@oscert.net, users@ovirt.org Cc: Data: Tue, 22 Jul 2014 12:21:01 +0200 Oggetto: Re: [ovirt-users] cloud-init options under python-sdk On 07/22/2014 11:48 AM, Amedeo Salvati wrote: hello guys! I'm writing some python code to start VMs, and based on operating system (at this moment centos6 nad centos7), I would like to use cloud-init options (available on web ui at run-once) to start them and resetting root password, change hostname and write some configuration files by using yaml semantics, but at this moment I was unable to find a way to do it... somebody know a way (or could send me some hints) using python-sdk to start A VM and pass to it cloud-init options? e.g. the portion of code I would like to change is vm.start() under rhel6|7: try: osVersion = vm.get_os().get_type() if (osVersion == rhel_6x64 or osVersion == rhel_6 or osVersion == rhel_7x64) and CLOUDINIT == yes: print Starting VM: + vm.name + with cloud-init options vm.start() -- else: print Starting VM + vm.name vm.start() while vmstat != 'down': sleep(1) vmstat = vm.get_status().state except Exception, err: print Error on starting VM print err Best regards Amedeo Salvati It should be something like this: from ovirtsdk.xml import params action = params.Action( vm=params.VM( initialization=params.Initialization( cloud_init=params.CloudInit( host=params.Host( name=myvm ), users=..., files=..., ... ) ) ) ) vm.start(action) -- Dirección Comercial: C/Jose Bardasano Baos
Re: [ovirt-users] cloud-init options under python-sdk
thanks! best regards a Da: Juan Hernandez jhern...@redhat.com A: Amedeo Salvati ame...@oscert.net, users@ovirt.org Cc: Data: Wed, 23 Jul 2014 14:44:57 +0200 Oggetto: Re: [ovirt-users] cloud-init options under python-sdk On 07/23/2014 02:39 PM, Amedeo Salvati wrote: hello Juan|guys, I still have problems with cloud-init options on python-sdk... now I'm trying to reset root password and according to xml available at http://www.ovirt.org/Features/Cloud-Init_Integration and specifically for user/pw: ... root myPass ... I've changed action object with this example: action = params.Action( vm=params.VM( initialization=params.Initialization( cloud_init=params.CloudInit( host=params.Host(address=rheltest025), users=params.Users( user=params.User(user_name=root, password=pippo) Try to use a list here: user=[parms.User(...)] ) ) ) ) ) but when i try to start a vm I got this error: TypeError: 'User' object is not iterable somebody has some hints for resetting root password? Best regards Amedeo Salvati Da: Amedeo Salvati ame...@oscert.net A: jhern...@redhat.com Cc: users@ovirt.org Data: Tue, 22 Jul 2014 15:50:58 +0200 Oggetto: Re: [ovirt-users] cloud-init options under python-sdk many thanks Juan it works! best regards a Da: Juan Hernandez jhern...@redhat.com A: Amedeo Salvati ame...@oscert.net, users@ovirt.org Cc: Data: Tue, 22 Jul 2014 15:32:45 +0200 Oggetto: Re: [ovirt-users] cloud-init options under python-sdk On 07/22/2014 02:55 PM, Amedeo Salvati wrote: hi Juan|guys, thanks for hints! but unfortunatly it seems wont works, because I've launched vm with this simple code: action = params.Action(vm=params.VM(initialization=params.Initialization(cloud_init=params.CloudInit(host=params.Host(name=rheltest014) vm.start( action ) but after boot the VM, cloud-init service hasn't set hostname and on cloud-init.log and cloud-init-output.log I cannot find any entry for setting hostname, instead if I use web ui it work's fine... there are any ways to debug cloud-init jobs? the params params.Host is right for CloudInit host or is intended for host / hypervisor? Best regards Amedeo Salvati To change the hostname you have to use the address property of the Host class: host=params.Host( address=myhostname.example.com ) The Host class is used for many things, including CloudInit and hypervisors. But in this context it is just a container for the host name. To debug cloud-init start the VM (with the GUI or with the RESTAPI), then go to the hypervisor where it is actually running, and look for the corresponding qemu-kvm process: # ps -ef | grep qemu-kvm | grep myvm The qemu-kvm command line will have a parameter indicating the file that contains the cloud-init data: -drive file=/var/run/vdsm/payload/...img Copy that file somewhere, then mount it and inspect the content: # cp /var/run/vdsm/payload/...img /tmp/my.img # mount -o loop,ro /tmp/my.img /mnt # find /mnt ... # umount /mnt Da: Juan Hernandez jhern...@redhat.com A: Amedeo Salvati ame...@oscert.net, users@ovirt.org Cc: Data: Tue, 22 Jul 2014 12:21:01 +0200 Oggetto: Re: [ovirt-users] cloud-init options under python-sdk On 07/22/2014 11:48 AM, Amedeo Salvati wrote: hello guys! I'm writing some python code to start VMs, and based on operating system (at this moment centos6 nad centos7), I would like to use cloud-init options (available on web ui at run-once) to start them and resetting root password, change hostname and write some configuration files by using yaml semantics, but at this moment I was unable to find a way to do it... somebody know a way (or could send me some hints) using python-sdk to start A VM and pass to it cloud-init options? e.g. the portion of code I would like to change is vm.start() under rhel6|7: try: osVersion = vm.get_os().get_type() if (osVersion == rhel_6x64 or osVersion == rhel_6 or osVersion == rhel_7x64) and CLOUDINIT == yes: print Starting VM: + vm.name + with cloud-init options vm.start() -- else: print Starting VM + vm.name vm.start() while vmstat != 'down': sleep(1) vmstat = vm.get_status().state except Exception, err: print Error on starting VM
[ovirt-users] cloud-init options under python-sdk
hello guys! I'm writing some python code to start VMs, and based on operating system (at this moment centos6 nad centos7), I would like to use cloud-init options (available on web ui at run-once) to start them and resetting root password, change hostname and write some configuration files by using yaml semantics, but at this moment I was unable to find a way to do it... somebody know a way (or could send me some hints) using python-sdk to start A VM and pass to it cloud-init options? e.g. the portion of code I would like to change is vm.start() under rhel6|7: try: osVersion = vm.get_os().get_type() if (osVersion == rhel_6x64 or osVersion == rhel_6 or osVersion == rhel_7x64) and CLOUDINIT == yes: print Starting VM: + vm.name + with cloud-init options vm.start() -- else: print Starting VM + vm.name vm.start() while vmstat != 'down': sleep(1) vmstat = vm.get_status().state except Exception, err: print Error on starting VM print err Best regards Amedeo Salvati___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [ovirt-users] cloud-init options under python-sdk
hi Juan|guys, thanks for hints! but unfortunatly it seems wont works, because I've launched vm with this simple code: action = params.Action(vm=params.VM(initialization=params.Initialization(cloud_init=params.CloudInit(host=params.Host(name=rheltest014) vm.start( action ) but after boot the VM, cloud-init service hasn't set hostname and on cloud-init.log and cloud-init-output.log I cannot find any entry for setting hostname, instead if I use web ui it work's fine... there are any ways to debug cloud-init jobs? the params params.Host is right for CloudInit host or is intended for host / hypervisor? Best regards Amedeo Salvati Da: Juan Hernandez jhern...@redhat.com A: Amedeo Salvati ame...@oscert.net, users@ovirt.org Cc: Data: Tue, 22 Jul 2014 12:21:01 +0200 Oggetto: Re: [ovirt-users] cloud-init options under python-sdk On 07/22/2014 11:48 AM, Amedeo Salvati wrote: hello guys! I'm writing some python code to start VMs, and based on operating system (at this moment centos6 nad centos7), I would like to use cloud-init options (available on web ui at run-once) to start them and resetting root password, change hostname and write some configuration files by using yaml semantics, but at this moment I was unable to find a way to do it... somebody know a way (or could send me some hints) using python-sdk to start A VM and pass to it cloud-init options? e.g. the portion of code I would like to change is vm.start() under rhel6|7: try: osVersion = vm.get_os().get_type() if (osVersion == rhel_6x64 or osVersion == rhel_6 or osVersion == rhel_7x64) and CLOUDINIT == yes: print Starting VM: + vm.name + with cloud-init options vm.start() -- else: print Starting VM + vm.name vm.start() while vmstat != 'down': sleep(1) vmstat = vm.get_status().state except Exception, err: print Error on starting VM print err Best regards Amedeo Salvati It should be something like this: from ovirtsdk.xml import params action = params.Action( vm=params.VM( initialization=params.Initialization( cloud_init=params.CloudInit( host=params.Host( name=myvm ), users=..., files=..., ... ) ) ) ) vm.start(action) -- Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta 3ºD, 28016 Madrid, Spain Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941 - Red Hat S.L.___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [ovirt-users] cloud-init options under python-sdk
many thanks Juan it works! best regards a Da: Juan Hernandez jhern...@redhat.com A: Amedeo Salvati ame...@oscert.net, users@ovirt.org Cc: Data: Tue, 22 Jul 2014 15:32:45 +0200 Oggetto: Re: [ovirt-users] cloud-init options under python-sdk On 07/22/2014 02:55 PM, Amedeo Salvati wrote: hi Juan|guys, thanks for hints! but unfortunatly it seems wont works, because I've launched vm with this simple code: action = params.Action(vm=params.VM(initialization=params.Initialization(cloud_init=params.CloudInit(host=params.Host(name=rheltest014) vm.start( action ) but after boot the VM, cloud-init service hasn't set hostname and on cloud-init.log and cloud-init-output.log I cannot find any entry for setting hostname, instead if I use web ui it work's fine... there are any ways to debug cloud-init jobs? the params params.Host is right for CloudInit host or is intended for host / hypervisor? Best regards Amedeo Salvati To change the hostname you have to use the address property of the Host class: host=params.Host( address=myhostname.example.com ) The Host class is used for many things, including CloudInit and hypervisors. But in this context it is just a container for the host name. To debug cloud-init start the VM (with the GUI or with the RESTAPI), then go to the hypervisor where it is actually running, and look for the corresponding qemu-kvm process: # ps -ef | grep qemu-kvm | grep myvm The qemu-kvm command line will have a parameter indicating the file that contains the cloud-init data: -drive file=/var/run/vdsm/payload/...img Copy that file somewhere, then mount it and inspect the content: # cp /var/run/vdsm/payload/...img /tmp/my.img # mount -o loop,ro /tmp/my.img /mnt # find /mnt ... # umount /mnt Da: Juan Hernandez jhern...@redhat.com A: Amedeo Salvati ame...@oscert.net, users@ovirt.org Cc: Data: Tue, 22 Jul 2014 12:21:01 +0200 Oggetto: Re: [ovirt-users] cloud-init options under python-sdk On 07/22/2014 11:48 AM, Amedeo Salvati wrote: hello guys! I'm writing some python code to start VMs, and based on operating system (at this moment centos6 nad centos7), I would like to use cloud-init options (available on web ui at run-once) to start them and resetting root password, change hostname and write some configuration files by using yaml semantics, but at this moment I was unable to find a way to do it... somebody know a way (or could send me some hints) using python-sdk to start A VM and pass to it cloud-init options? e.g. the portion of code I would like to change is vm.start() under rhel6|7: try: osVersion = vm.get_os().get_type() if (osVersion == rhel_6x64 or osVersion == rhel_6 or osVersion == rhel_7x64) and CLOUDINIT == yes: print Starting VM: + vm.name + with cloud-init options vm.start() -- else: print Starting VM + vm.name vm.start() while vmstat != 'down': sleep(1) vmstat = vm.get_status().state except Exception, err: print Error on starting VM print err Best regards Amedeo Salvati It should be something like this: from ovirtsdk.xml import params action = params.Action( vm=params.VM( initialization=params.Initialization( cloud_init=params.CloudInit( host=params.Host( name=myvm ), users=..., files=..., ... ) ) ) ) vm.start(action) -- Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta 3ºD, 28016 Madrid, Spain Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941 - Red Hat S.L. -- Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta 3ºD, 28016 Madrid, Spain Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941 - Red Hat S.L.___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
[ovirt-users] qemu-kvm-rhev for el6
hello, does anyone know if there are an existent bugzilla to track the release of qemu-kvm-rhev rpms under el (like centos)? Because I've looked at bugzilla and google docs oVirt Planning Tracking with no luck best regards a ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
[ovirt-users] List disk images residing on specific lun
Hello, does anyone know if it's possible, using ovirt-shell or api, to list every disk image residing on specific FC LUN? best regards Amedeo Salvati ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [ovirt-users] List disk images residing on specific lun
Il 13/04/2014 12:37, Meital Bourvine ha scritto: Hi Amedeo, I don't think that it's possible. But if your storage domain contains only 1 FC lun, then listing the disks on this storage domain will provide you the info. - Original Message - From: Amedeo Salvati ame...@oscert.net To: users@ovirt.org Sent: Sunday, April 13, 2014 1:23:13 PM Subject: [ovirt-users] List disk images residing on specific lun Hello, does anyone know if it's possible, using ovirt-shell or api, to list every disk image residing on specific FC LUN? best regards Amedeo Salvati ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users Hi Meital and all, unfortunately we have several luns, but we've lost one of them (and it's not possible to recover it from the box), so we're looking to know what images are residing on that lun due to remove those images from db/engine gui... using lvm command on hypervisor node it's possible to match lv name still alive, with some id present on engine db or by ovirt-shell cmd like list disk --show-all ? thanks in advance a ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [ovirt-users] List disk images residing on specific lun
Il 13/04/2014 14:15, Gadi Ickowicz ha scritto: Hi Amedeo, Was the LUN that was lost a separate storage domain? if it was, you can list all the disks in the system and then filter the list for disks on that storage domain. for example, in python sdk: disks = api.disks.list() [disk for disk in disks if disk.get_storage_domains().get_storage_domain().get_id() == fc_storage_domain_id] Thanks, Gadi Ickowicz - Original Message - From: Amedeo Salvati ame...@oscert.net To: Meital Bourvine mbour...@redhat.com Cc: users@ovirt.org Sent: Sunday, April 13, 2014 3:05:37 PM Subject: Re: [ovirt-users] List disk images residing on specific lun Il 13/04/2014 12:37, Meital Bourvine ha scritto: Hi Amedeo, I don't think that it's possible. But if your storage domain contains only 1 FC lun, then listing the disks on this storage domain will provide you the info. - Original Message - From: Amedeo Salvati ame...@oscert.net To: users@ovirt.org Sent: Sunday, April 13, 2014 1:23:13 PM Subject: [ovirt-users] List disk images residing on specific lun Hello, does anyone know if it's possible, using ovirt-shell or api, to list every disk image residing on specific FC LUN? best regards Amedeo Salvati ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users Hi Meital and all, unfortunately we have several luns, but we've lost one of them (and it's not possible to recover it from the box), so we're looking to know what images are residing on that lun due to remove those images from db/engine gui... using lvm command on hypervisor node it's possible to match lv name still alive, with some id present on engine db or by ovirt-shell cmd like list disk --show-all ? thanks in advance a ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users Hi Gadi, no on that DC we have two storagedomains, each one of them has 2 LUNs, (total 4 LUNs on two SD), and we have lost only one of them, so we have one SD consistent and one SD broken without one lun. To better understand what was happened, the lost LUN was effectively not lost, but was inadvertently overwrite during new hypervisor instalation, so it was not lost, and is still visible to hypervisor, but it's content was wiped out / overwritten. do you think that it's possible to match, by lvm command on hypervisor, lv name still alive, with some id present on engine db or by ovirt-shell cmd? thanks in advance a ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [Users] [Ann] oVirt 3.4 GA Releases
+1 I'll try soon and migrate our 3.3.x to 3.4! best regards a Da: announce-boun...@ovirt.org A: users users@ovirt.org, annou...@ovirt.org Cc: Data: Thu, 27 Mar 2014 05:52:21 -0400 (EDT) Oggetto: [Users] [Ann] oVirt 3.4 GA Releases The oVirt Project is pleased to announce the general availability of its fifth formal release, oVirt 3.4, as of March 27, 2014. oVirt is an open source alternative to VMware vSphere, and provides an excellent KVM management interface for multi-node virtualization. oVirt is available now for Fedora 19, Red Hat Enterprise Linux 6.5, and CentOS 6.5 (or similar). New features include: oVirt 3.4 Release Notes * Hosted Engine: oVirt 3.4 features hosted engine, which enables oVirt engine to be run as a virtual machine (VM) on the host it manages. Hosted engine solves the chicken-and-the egg problem for users: the basic challenge of deploying and running an oVirt engine inside a VM. This clustered solution enables users to configure multiple hosts to run the hosted engine, ensuring the engine still runs in the event of any one host failure. * Enhanced Gluster Support: Gluster Volume Asynchronous Tasks Management enables users to re-balance volumes and remove bricks in Gluster operations/rebalance and remove bricks in Gluster volumes. * Preview: PPC64: Engine Support for PPC64 will add PPC64 architecture awareness to the ovirt-engine code, which currently makes various assumptions based on the x86 architecture. When specifying virtual machine devices, for example, what is suitable for x86 architecture may not be for POWER (or may not be available yet). VDSM Support for PPC64 introduces the capability of managing KVM on IBM POWER processors via oVirt. Administrators will be able to perform management functionalities such as adding or activating KVM, creating clusters of KVM and performing VM lifecycle management on any IBM POWER host. Migration is still a work in progress for KVM on IBM POWER processor. * Preview: Hot-plug CPUs: oVirt 3.4 adds a preview of a Hot-plug CPU feature that enables administrators to ensure customer's service-level agreements are being met, the full utilization of spare hardware, and the capability to dynamically to scale vertically, down or up, a system's hardware according to application needs without restarting the virtual machine. This release of oVirt also includes numerous bug fixes. See the release notes [1] for a complete list of the new features and bugs fixed. The existing repository ovirt-stable has been updated for delivering this release without the need of enabling any other repository. A new oVirt Node build is also available [2]. [1] http://www.ovirt.org/OVirt_3.4_Release_Notes [2] http://resources.ovirt.org/releases/3.4/iso/ovirt-node-iso-3.0.4-1.0.201401291204.vdsm34.el6.iso -- Brian Proffitt - oVirt Community Manager IRC: bkp @ #ovirt OFTC ___ Announce mailing list annou...@ovirt.org http://lists.ovirt.org/mailman/listinfo/announce___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [Users] Making v2v easier?
Il 19/01/2014 06:55, Blaster ha scritto: On Jan 18, 2014, at 2:25 AM, Amedeo Salvati ame...@oscert.net wrote: regarding virtio drivers, on linux, and if your kernel support them, you can recreate / regenerate initram f.s., and then you can boot your vm linux coming from vmware with virtio drivers... same process when doing p2v or v2p Do you have a good tutorial on this? I was wondering if this would be a needed step when doing a P2V. It would be nice if the virtio drivers were included by default. no I haven't any tutorial... but it's not so complicated; if your physical host has recent kernel they have support for virtio drivers (I don't remember from which exactly rhel version virtio was included, but probably was rhel5.4, and on ubuntu 10.04 also was included) the only things to pay attention is to regenerate initramfs for the new virtual env, because when you installed a physical machine, it detected what drivers they could use to boot (for example on hp DL|BL it could be cciss driver, and so initram f.s. on those hosts has cciss.ko module to properly access to hp smart array disks) so you can check your current initramfs of physical host, if has virtio drivers by simply decompress it: mkdir /tmp/initram cp -p /boot/initramfs-2.6.32-431.el6.x86_64.img /tmp/initram/ --- use your current kernel version cd /tmp/initram/ mv initramfs-2.6.32-431.el6.x86_64.img initramfs-2.6.32-431.el6.x86_64.img.gz gunzip initramfs-2.6.32-431.el6.x86_64.img.gz cpio -idv ./initramfs-2.6.32-431.el6.x86_64.img now you can check if there are virtio drivers by: find /tmp/initram/lib/modules/2.6.32-431.el6.x86_64 -name '*virtio*' /tmp/initram/lib/modules/2.6.32-431.el6.x86_64/kernel/drivers/virtio /tmp/initram/lib/modules/2.6.32-431.el6.x86_64/kernel/drivers/virtio/virtio.ko /tmp/initram/lib/modules/2.6.32-431.el6.x86_64/kernel/drivers/virtio/virtio_ring.ko /tmp/initram/lib/modules/2.6.32-431.el6.x86_64/kernel/drivers/virtio/virtio_pci.ko /tmp/initram/lib/modules/2.6.32-431.el6.x86_64/kernel/drivers/scsi/virtio_scsi.ko /tmp/initram/lib/modules/2.6.32-431.el6.x86_64/kernel/drivers/block/virtio_blk.ko if there aren't you must regenerate it by using: dracut on rhel6 mkinitramfs on debian/ubuntu mkinitrd on rhel5, suse and gentoo HTH p.s. if I remember I've rebuilded initram f.s. only on rhel4|5 on p2v and v2p, and obviously for virtio drivers and cciss driver (v2p) -- Amedeo Salvati RHC{DS,E,VA} - LPIC-3 - UCP - NCLA 11 email: ame...@oscert.net email: ame...@linux.com http://plugcomputing.it/redhatcert.php http://plugcomputing.it/lpicert.php ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [Users] Making v2v easier?
Il 17/01/2014 17:25, users-requ...@ovirt.org ha scritto: Date: Fri, 17 Jan 2014 17:06:13 +0100 From: Sander Grendelman san...@grendelman.com To: Itamar Heim ih...@redhat.com Cc: users users@ovirt.org users@ovirt.org Subject: Re: [Users] Making v2v easier? Message-ID: CAHa6cRQzkMiZUM1615BddPsaZM=np0odnwdnyug4rpg65bw...@mail.gmail.com Content-Type: text/plain; charset=ISO-8859-1 On Fri, Jan 17, 2014 at 4:19 PM, Itamar Heim ih...@redhat.com wrote: I see a lot of threads about v2v pains (mostly from ESX?) I'm interested to see if we can make this simpler/easier. hear hear! if you have experience with this, please describe the steps you are using (also the source platform), Sources: - Existing KVM (virt-manager/libvirt) platform - ESX - ova/ovf templates from several sources Methods: - KVM: virt-v2v with libvirtxml option, works reasonably well, most issues are with windows guests where virt-v2v needs libguestfs-winsupport and virtio-win (RHEL only) - ESX: virt-v2v which works reasonably well_if_ the right packages (libguestfs-winsupport virtio-win) are installed. virt-v2v can be used directly from ESX/ESX host (configure .netrc first) but this is quite slow another option is to export the VM as an OVA and then import it with virt-v2v - ova/ovf templates: hit and miss with virt-v2v, especially if they contain something that is not a regular windows/linux guest. Another option is to do a direct copy of the disks on a pre-created VM, clumsy. and how you would like to see this make simpler (I'm assuming that would start from somewhere in the webadmin probably). Webadmin would be nice, but better behaviour from existing tools would be a nice start too. For example: the flow with virt-v2v is 1) Analyze source, look for disks 2) Convert/copy disks to ovirt export domain 3) Try to add virtio stuff to the copied disks on the export domain If step 3 fails ( which happens a LOT), the copied disks are removed. This is very frustrating if you just waited a couple of hours for a large VM (e.g. 200GB) to be copied:( Some kind of graceful abort/resume would be VERY welcome. Another issue with virt-v2v is that it_always_ tries to add virtio drivers. I have a virtual appliance that contains some kind of proprietary embedded OS: adding drivers will always fail, give me some option to override that and configure simple ide / e1000 hardware for the VM regarding virtio drivers, on linux, and if your kernel support them, you can recreate / regenerate initram f.s., and then you can boot your vm linux coming from vmware with virtio drivers... same process when doing p2v or v2p -- Amedeo Salvati RHC{DS,E,VA} - LPIC-3 - UCP - NCLA 11 email: ame...@oscert.net email: ame...@linux.com http://plugcomputing.it/redhatcert.php http://plugcomputing.it/lpicert.php ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [Users] Attach NFS storage to multiple datacenter
Il 16/01/2014 18:00, users-requ...@ovirt.org ha scritto: From: Tobias Fiebigm...@wybt.net To: Elad Ben Aharonebena...@redhat.com Cc:Users@ovirt.org List Users@ovirt.org Sent: Thursday, January 16, 2014 6:37:24 PM Subject: Re: [Users] Attach NFS storage to multiple datacenter Heho, On Thu, 2014-01-16 at 11:10 -0500, Elad Ben Aharon wrote: You don't have to attach/detach the domain for every VM export. Sorry for not being clear. You can export all your VMs to the export domain at once and then detach the export domain and attach it to the second DC. May have miscommunicated that... I can not do this because this kind of means that the vms will be down during the whole movement process. I'd like to reduce the per-vm downtime as much as possible. With best Regards, Tobias you can decrease the downtime by: - live snapshot VM1; - clone VM1 from snapshot to VM1-NEW (during this process VM1 is uprunning); - export VM1-NEW to export domain (VM1 uprunning); - detach export domain from old DC; - attach export domain to new DC; - import VM1-NEW (VM1 still uprunning); - start VM1-NEW on single mode and configure; - stop apps from VM1 (downtime); - optionally sync app data from VM1 to VM1-NEW (downtime); - start apps on VM1-NEW (apps uprunning on new DC). - stop VM1 on old DC. HTH a -- Amedeo Salvati RHC{DS,E,VA} - LPIC-3 - UCP - NCLA 11 email: ame...@oscert.net email: ame...@linux.com http://plugcomputing.it/redhatcert.php http://plugcomputing.it/lpicert.php ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
[Users] ovirt-shell limited to first 100 elements
Does anyone know if there are a possibility to increment list elements on ovirt-shell? Because I'm trying to list disk on one storagedomain but it list me only first 100 elements. e.g.:list disks storagedomains-identifier STORNAME | egrep '^name' /root/disks-name-on-STORNAME.txt p.s I faund on http://comments.gmane.org/gmane.comp.emulators.ovirt.infra/3050 that for python api there is an option to pass to list function: api.vms.list(max=200) but I cannot find equivalent for ovirt-shell Best regards a ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [Users] ovirt-shell limited to first 100 elements
Date: Wed, 15 Jan 2014 14:09:19 +0100 From: Joop jvdw...@xs4all.nl To: users@ovirt.org Subject: Re: [Users] ovirt-shell limited to first 100 elements Message-ID: b0dc271d-09a3-40cc-b9f3-722dd7c05...@email.android.com Content-Type: text/plain; charset=UTF-8 Amedeo Salvati ame...@oscert.net wrote: Does anyone know if there are a possibility to increment list elements on ovirt-shell? I think ovirt-shell has a paginate option, try --help Joop was the first search... so I resolved setting autopage = False on .ovirtshellrc file regards a -- Amedeo Salvati RHC{DS,E,VA} - LPIC-3 - UCP - NCLA 11 email: ame...@oscert.net email: ame...@linux.com http://plugcomputing.it/redhatcert.php http://plugcomputing.it/lpicert.php ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
[Users] rpms signed - why not?
I was setting up our spacewalk repo for ovirt due to auto provisioning engine and node based on centos distro, but I was surprised that you can't sign with gpg key your rpms, instead gluster rpms is signed with key id 89ccae8b available on her site Why you don't sign your rpms? e.g: $ wget http://resources.ovirt.org/releases/3.3.2/rpm/EL/6/noarch/ovirt-engine-3.3.2-1.el6.noarch.rpm $ rpm -K -v ovirt-engine-3.3.2-1.el6.noarch.rpm ovirt-engine-3.3.2-1.el6.noarch.rpm: Digest SHA1 header: OK (f8cf0a7592ae3d8d298813cf61ec8b4e2ad6b6f6) MD5 digest: OK (bc4b66e0791b3ef5dd8e9b49828ad7d8) instead gluster rpms: $ wget http://download.gluster.org/pub/gluster/glusterfs/LATEST/EPEL.repo/epel-6/x86_64/glusterfs-3.4.2-1.el6.x86_64.rpm $ rpm -K -v glusterfs-3.4.2-1.el6.x86_64.rpm glusterfs-3.4.2-1.el6.x86_64.rpm: Header V4 RSA/SHA1 Signature, key ID 89ccae8b: NOKEY Header SHA1 digest: OK (e71040f320da087e6e9012102e0e59f134259d2a) V4 RSA/SHA1 Signature, key ID 89ccae8b: NOKEY MD5 digest: OK (01e72fe3ed97ba849327cafe43ca5d45) best regards a -- Amedeo Salvati RHC{DS,E,VA} - LPIC-3 - UCP - NCLA 11 email: ame...@oscert.net email: ame...@linux.com http://plugcomputing.it/redhatcert.php http://plugcomputing.it/lpicert.php ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [Users] SSD Caching
you can use flashcache under centos6, it's stable and give you a boost for read/write, but I never user with gluster:https://github.com/facebook/flashcache/under fedora you have more choice: flashcache, bcache, dm-cacheregardsaDate: Wed, 8 Jan 2014 21:44:35 -0600From: Darrell Budic darrell.bu...@zenfire.comTo: Russell Purinton r...@sonicbx.comCc: users@ovirt.org users@ovirt.orgSubject: Re: [Users] SSD CachingMessage-ID: a45059d4-b00d-4573-81e7-f00b2b9fa...@zenfire.comContent-Type: text/plain; charset=windows-1252Stick your bricks on ZFS and let it do it for you. Works well, although I haven?t done much benchmarking of it. My test setup is described in the thread under [Users] Creation of preallocated disk with Gluster replication. I?ve seen some blog posts here and there about gluster on ZFS for this reason too. -DarrellOn Jan 7, 2014, at 9:56 PM, Russell Purinton r...@sonicbx.com wrote: [20:42] sonicrose is anybody out there using a good RAM+SSD caching system ahead of gluster storage? [20:42] sonicrose sorry if that came through twice [20:44] sonicrose im thinking about making the SSD one giant swap file then creating a very large ramdisk in virtual memory and using that as a block level cache for parts and pieces of virtual machine disk images [20:44] sonicrose then i think the memory managers would inherently play the role of storage tiering ie: keeping the hottest data in memory and the coldest data on swap [20:45] sonicrose everything i have seen today has been setup as consumer === network SSD cache real disks [20:45] sonicrose but i'd like to actually do consumer === RAM+SSD cache === network === real disks [20:46] sonicrose i realize doing a virtual memory disk means the cache will be cleared on every reboot, and I'm ok with that [20:47] sonicrose i know this can be done with NFS and cachefilesd(fscache), but how could something be integrated into the native gluster clients? [20:47] sonicrose i'd prefer not to have to access gluster via NFS [20:49] sonicrose any feedback from this room is greatly appreciated, getting someone started to build managed HA cloud hosting Da: users-boun...@ovirt.org A: users@ovirt.org Cc: Data: Thu, 09 Jan 2014 02:34:48 -0500 Oggetto: Users Digest, Vol 28, Issue 61 Send Users mailing list submissions to users@ovirt.org To subscribe or unsubscribe via the World Wide Web, visit http://lists.ovirt.org/mailman/listinfo/users or, via email, send a message with subject or body 'help' to users-requ...@ovirt.org You can reach the person managing the list at users-ow...@ovirt.org When replying, please edit your Subject line so it is more specific than Re: Contents of Users digest... Today's Topics: 1. Re: SSD Caching (Darrell Budic) 2. Re: Ovirt DR setup (Hans Emmanuel) 3. Re: Experience with low cost NFS-Storage as VM-Storage? (Markus Stockhausen) 4. Re: Experience with low cost NFS-Storage as VM-Storage? (Karli Sj?berg) 5. Re: Experience with low cost NFS-Storage as VM-Storage? (squadra) -- Message: 1 Date: Wed, 8 Jan 2014 21:44:35 -0600 From: Darrell Budic To: Russell Purinton Cc: users@ovirt.org Subject: Re: [Users] SSD Caching Message-ID: Content-Type: text/plain; charset=windows-1252 Stick your bricks on ZFS and let it do it for you. Works well, although I haven?t done much benchmarking of it. My test setup is described in the thread under [Users] Creation of preallocated disk with Gluster replication. I?ve seen some blog posts here and there about gluster on ZFS for this reason too. -Darrell On Jan 7, 2014, at 9:56 PM, Russell Purinton wrote: [20:42] is anybody out there using a good RAM+SSD caching system ahead of gluster storage? [20:42] sorry if that came through twice [20:44] im thinking about making the SSD one giant swap file then creating a very large ramdisk in virtual memory and using that as a block level cache for parts and pieces of virtual machine disk images [20:44] then i think the memory managers would inherently play the role of storage tiering ie: keeping the hottest data in memory and the coldest data on swap [20:45] everything i have seen today has been setup as consumer === network SSD cache real disks [20:45] but i'd like to actually do consumer === RAM+SSD cache === network === real disks [20:46] i realize doing a virtual memory disk means the cache will be cleared on every reboot, and I'm ok with that [20:47] i know this can be done with NFS and cachefilesd(fscache), but how could something be integrated into the native gluster clients? [20:47] i'd prefer not to have to access gluster via NFS [20:49] any feedback from this room is greatly appreciated, getting someone started to build managed HA cloud hosting
[Users] cluster.min-free-disk option on gluster 3.4 Was: Re: how to temporarily solve low disk space problem
Il 07/01/2014 18:00, users-requ...@ovirt.org ha scritto: Date: Tue, 7 Jan 2014 16:21:37 +0100 From: Gianluca Cecchigianluca.cec...@gmail.com To: Gadi Ickowiczgicko...@redhat.com Cc: usersusers@ovirt.org Subject: Re: [Users] how to temporarily solve low disk space problem preventing start of VM Message-ID: CAG2kNCxw54+dANqGX79j1HzjLYgPbxujxkb83GwVzZMfj=j...@mail.gmail.com Content-Type: text/plain; charset=UTF-8 On Tue, Jan 7, 2014 at 4:08 PM, Gadi Ickowicz wrote: Hi, The low disk space is controlled by a parameter in the engine called FreeSpaceCriticalLowInGB, and can be configured using the cli tool engine-config. you should be able to set it to something like 4 GB or maybe 3GB so you can start your vms with the following command: engine-config -s FreeSpaceCriticalLowInGB=3 After doing this you have to restart the engine service (service ovirt-engine restart) for the changes to take effect. If you want to see what the current value is use engine-config -g FreeSpaceCriticalLowInGB. To see a list of all configurable values you can use engine-config --list Thanks, Gadi Ickowicz It did the trick, thanks! Could this parameter impact in general only start of new VMs or in any way also already running VMs? Gianluca added gluster-users as they can responde to us questions. Gianluca, as you are using glusterfs, and as I can see on your df output: /dev/mapper/fedora-DATA_GLUSTER 30G 23G 7.8G 75% /gluster/DATA_GLUSTER node01.mydomain:gvdata 30G 26G 4.6G 85% /rhev/data-center/mnt/glusterSD/node01.mydomain:gvdata be careful to gluster cluster.min-free-disk option, that on gluster 3.1 and 3.2 it's default option is 0% (good for you!) http://gluster.org/community/documentation//index.php/Gluster_3.2:_Setting_Volume_Options#cluster.min-free-disk but I can't find the same documentation for gluster 3.4, that I suppose you're using this gluster version on ovirt; otherwise on red hat storage documentation cluster.min-free-disk default option is 10% (bad for you): https://access.redhat.com/site/documentation/en-US/Red_Hat_Storage/2.1/html/Administration_Guide/chap-User_Guide-Managing_Volumes.html so you fill your gvdata volume up to 90% and let we know if it's stop I/O (or only write) or we can wait for a clarification from gluster guy :-) best regards a -- Amedeo Salvati RHC{DS,E,VA} - LPIC-3 - UCP - NCLA 11 email: ame...@oscert.net email: ame...@linux.com http://plugcomputing.it/redhatcert.php http://plugcomputing.it/lpicert.php ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
[Users] R: tuned profile for Centos hosts -- new Bugzilla orRegression
Hi Ted, I'm interested to on this tuned rhs-virtualization profile... where I can find it? And what macro differences has against virtual-host profile? Best regards a Date: Mon, 6 Jan 2014 22:09:44 + From: Ted Miller tmil...@hcjb.org To: oVirt Mailing List users@ovirt.org Subject: [Users] tuned profile for Centos hosts -- new Bugzilla or Regression Message-ID: a584ee1c0d4e40a2ae295cf231116...@dm2pr05mb320.namprd05.prod.outlook.com Content-Type: text/plain; charset=us-ascii I posted a script (a while back) to get oVirt running on Centos hosts. One of the items in it has to do with what tuned profile to use. At the time I first ran into it, this was a fatal error. It is now just a warning, so it does not prevent installing a host. But, as a warning, a lot of people are probably missing it. When using Centos 6 as the host OS, the script tries to install a rhs-virtualization profile. That profile is not included in Centos. I substituted the virtual-host profile. I believe that this may be a regression as a result of Bugzilla 987293https://bugzilla.redhat.com/show_bug.cgi?id=987293;, where rhs-virtualization was substituted for virtual-host for RHEV + RHS. I am guessing that whatever is used as a switch to determine RHEV + RHS is also shoving Centos into that same path, which is not appropriate. My suggestion would be to write the script so that it uses rhs-virtualization when present, and if it is not present, then it falls back to virtual-host. (I don't know what (if any) differences there are between the two profiles.) Should I open a new bug, make a comment on 987293, or take some other path? Ted Miller Inviato da Tablet Samsung___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [Users] R: tuned profile for Centos hosts -- new Bugzilla orRegression
hi Doron, I can confirm you that tuned is present on centos6.x:[root@centos6 ~]# rpm -qa |grep centos-releasecentos-release-6-5.el6.centos.11.2.x86_64[root@centos6 ~]# service tuned statustuned (pid 2126) is running...[root@centos6 ~]# tuned-adm listAvailable profiles:- latency-performance- spindown-disk- sap- desktop-powersave- throughput-performance- virtual-host- virtual-guest- enterprise-storage- server-powersave- laptop-battery-powersave- laptop-ac-powersave- defaultCurrent active profile: virtual-host[root@centos6 ~]# rpm -qa | grep tuned | xargs rpm -q --infoName : tuned Relocations: (not relocatable)Version : 0.2.19 Vendor: CentOSRelease : 13.el6 Build Date: ven 22 nov 2013 13:33:51 CETInstall Date: lun 06 gen 2014 13:03:52 CET Build Host: c6b8.bsys.dev.centos.orgGroup : System Environment/Daemons Source RPM: tuned-0.2.19-13.el6.src.rpmSize : 227505 License: GPLv2+Signature : RSA/SHA1, dom 24 nov 2013 20:30:33 CET, Key ID 0946fca2c105b9dePackager : CentOS BuildSystem http://bugs.centos.orgURL : https://fedorahosted.org/tuned/Summary : A dynamic adaptive system tuning daemonDescription :The tuned package contains a daemon that tunes system settings dynamically.It does so by monitoring the usage of several system components periodically.Based on that information components will then be put into lower or higherpower saving modes to adapt to the current usage. Currently only ethernetnetwork and ATA harddisk devices are implemented.[root@centos6 ~]# cat /sys/block/sda/queue/scheduler noop anticipatory [deadline] cfq [root@centos6 ~]#can you share rhs-virtualization profile with us? best regardsa Da: Doron Fediuck dfedi...@redhat.com A: Amedeo Salvati ame...@oscert.net, users@ovirt.org, tmil...@hcjb.org Cc: Jiri Moskovcak jmosk...@redhat.com Data: Wed, 8 Jan 2014 01:35:38 -0500 (EST) Oggetto: Re: [Users] R: tuned profile for Centos hosts -- new Bugzilla orRegression Hi guys, As far as I know, tuned is not available in centos. So we first need to verify tuned exists. Once available, we'll be able to handle the relevant profiles for hypervisors. Can anyone confirm tuned availability on centos? הודעה מקורית מאת: Amedeo Salvati תאריך:08/01/2014 00:32 (GMT+02:00) אל: users@ovirt.org,tmil...@hcjb.org נושא: [Users] R: tuned profile for Centos hosts -- new Bugzilla orRegression Hi Ted, I'm interested to on this tuned rhs-virtualization profile... where I can find it? And what macro differences has against virtual-host profile? Best regards a Date: Mon, 6 Jan 2014 22:09:44 + From: Ted Miller tmil...@hcjb.org To: oVirt Mailing List users@ovirt.org Subject: [Users] tuned profile for Centos hosts -- new Bugzilla or Regression Message-ID: a584ee1c0d4e40a2ae295cf231116...@dm2pr05mb320.namprd05.prod.outlook.com Content-Type: text/plain; charset=us-ascii I posted a script (a while back) to get oVirt running on Centos hosts. One of the items in it has to do with what tuned profile to use. At the time I first ran into it, this was a fatal error. It is now just a warning, so it does not prevent installing a host. But, as a warning, a lot of people are probably missing it. When using Centos 6 as the host OS, the script tries to install a rhs-virtualization profile. That profile is not included in Centos. I substituted the virtual-host profile. I believe that this may be a regression as a result of Bugzilla 987293https://bugzilla.redhat.com/show_bug.cgi?id=987293;, where rhs-virtualization was substituted for virtual-host for RHEV + RHS. I am guessing that whatever is used as a switch to determine RHEV + RHS is also shoving Centos into that same path, which is not appropriate. My suggestion would be to write the script so that it uses rhs-virtualization when present, and if it is not present, then it falls back to virtual-host. (I don't know what (if any) differences there are between the two profiles.) Should I open a new bug, make a comment on 987293, or take some other path? Ted Miller Inviato da Tablet Samsung ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [Users] Stopping glusterfsd service shut down data center
Il 06/01/2014 10:44, Vijay Bellur ha scritto: Adding gluster-users. On 01/06/2014 12:25 AM, Amedeo Salvati wrote: Hi all, I'm testing ovirt+glusterfs with only two node for all (engine, glusterfs, hypervisors), on centos 6.5 hosts following guide at: http://community.redhat.com/blog/2013/09/up-and-running-with-ovirt-3-3/ http://www.gluster.org/2013/09/ovirt-3-3-glusterized/ but with some change like setting on glusterfs, parameter cluster.server-quorum-ratio to 50% (due to prevent glusterfs to go down if one node goes done) and option on /etc/glusterfs/glusterd.vol option base-port 50152 (due to libvirt port conflict). So, with the above parameter I was able to stop/reboot node not used to directly mount glusterfs (eg lovhm002), but when I stop/reboot node, that is used to mount glusterfs (eg node lovhm001), all data center goes done, especially when I stop service glusterfsd (not glusterd service!!!), but the glusterfs still alive and is reachable on node lovhm002 that survives but ovirt/libvirt marks DC/storage in error. Do you have any ideas to configure DC/Cluster on ovirt that remains aware if node used to mount glusterfs goes down? This seems to be due to client quorum in glusterfs. It can be observed that client quorum is on since option cluster.quorum-type has been set to value auto. client quorum gets enabled by default as part of Optimize for Virt action in oVirt or by enabling volume set group virt in gluster CLI. client quorum gets enabled by default to provide additional protection against split-brains. In case of a gluster volume with replica count 2, client quorum returns an error if writes/updates fail in more than 50% of the bricks. However, when the replica count happens to be 2, updates are failed if the first server/glusterfsd is not online. If the chances of a network partition and a split brain is not significant in your setup, you can turn off client quorum by setting option cluster.quorum-type to value none. yea! setting quorum-type to none has solved the issue... now I'm able to have a two node ovirt/gluster DC aware of faulting one node, except for engine portal that at this moment resides on only one node (sigh :-( ) I'm waiting for self hosted engine) thanks1k a Regards, Vijay -- Amedeo Salvati RHC{DS,E,VA} - LPIC-3 - UCP - NCLA 11 email: ame...@oscert.net email: ame...@linux.com http://plugcomputing.it/redhatcert.php http://plugcomputing.it/lpicert.php ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
[Users] Stopping glusterfsd service shut down data center
::(_onLibvirtLifecycleEvent) vmId=`88997598-1db3-478a-bbe2-a7d234cfdc77`::event Suspended detail 2 opaque None Thread-28::DEBUG::2014-01-05 19:12:40,996::fileSD::239::Storage.Misc.excCmd::(getReadDelay) '/bin/dd iflag=direct if=/rhev/data-center/mnt/lovhm001.fabber.it:_var_lib_exports_iso/6a9b4fa6-f393-4036-bd4e-0bc9dccb1594/dom_md/metadata bs=4096 count=1' (cwd None) Thread-28::DEBUG::2014-01-05 19:12:41,001::fileSD::239::Storage.Misc.excCmd::(getReadDelay) SUCCESS: err = '0+1 records in\n0+1 records out\n361 bytes (361 B) copied, 0.00017524 s, 2.1 MB/s\n'; rc = 0 Thread-298::DEBUG::2014-01-05 19:12:41,088::BindingXMLRPC::974::vds::(wrapper) client [5.39.66.85]::call volumesList with () {} Thread-298::DEBUG::2014-01-05 19:12:41,097::BindingXMLRPC::981::vds::(wrapper) return volumesList with {'status': {'message': 'Done', 'code': 0}, 'volumes': {'vmdata': {'transportType': ['TCP'], 'uuid': 'e9b05f7a-f392-44f3-9d44-04761c36437d', 'bricks': ['lovhm001.fabber.it:/vmdata', 'lovhm002.fabber.it:/vmdata'], 'volumeName': 'vmdata', 'volumeType': 'REPLICATE', 'replicaCount': '2', 'brickCount': '2', 'distCount': '2', 'volumeStatus': 'ONLINE', 'stripeCount': '1', 'options': {'cluster.server-quorum-type': 'server', 'cluster.eager-lock': 'enable', 'performance.stat-prefetch': 'off', 'auth.allow': '*', 'cluster.quorum-type': 'auto', 'performance.quick-read': 'off', 'network.remote-dio': 'enable', 'nfs.disable': 'on', 'performance.io-cache': 'off', 'server.allow-insecure': 'on', 'storage.owner-uid': '36', 'user.cifs': 'disable', 'performance.read-ahead': 'off', 'storage.owner-gid': '36', 'cluster.server-quorum-ratio': '50%' Thread-300::DEBUG::2014-01-05 19:12:41,345::task::579::TaskManager.Task::(_updateState) Task=`d049a71c-70a4-4dc2-9d69-99f1561ab405`::moving from state init - state preparing Thread-300::INFO::2014-01-05 19:12:41,345::logUtils::44::dispatcher::(wrapper) Run and protect: repoStats(options=None) Thread-300::INFO::2014-01-05 19:12:41,345::logUtils::47::dispatcher::(wrapper) Run and protect: repoStats, Return response: {'85ad5f7d-3b67-4618-a871-f9ec886020a4': {'delay': '0.000370968', 'lastCheck': '8.9', 'code': 0, 'valid': True, 'version': 3}, '6a9b4fa6-f393-4036-bd4e-0bc9dccb1594': {'delay': '0.00017524', 'lastCheck': '0.3', 'code': 0, 'valid': True, 'version': 0}} Thread-300::DEBUG::2014-01-05 19:12:41,346::task::1168::TaskManager.Task::(prepare) Task=`d049a71c-70a4-4dc2-9d69-99f1561ab405`::finished: {'85ad5f7d-3b67-4618-a871-f9ec886020a4': {'delay': '0.000370968', 'lastCheck': '8.9', 'code': 0, 'valid': True, 'version': 3}, '6a9b4fa6-f393-4036-bd4e-0bc9dccb1594': {'delay': '0.00017524', 'lastCheck': '0.3', 'code': 0, 'valid': True, 'version': 0}} Thread-300::DEBUG::2014-01-05 19:12:41,346::task::579::TaskManager.Task::(_updateState) Task=`d049a71c-70a4-4dc2-9d69-99f1561ab405`::moving from state preparing - state finished Thread-300::DEBUG::2014-01-05 19:12:41,346::resourceManager::939::ResourceManager.Owner::(releaseAll) Owner.releaseAll requests {} resources {} Thread-300::DEBUG::2014-01-05 19:12:41,346::resourceManager::976::ResourceManager.Owner::(cancelAll) Owner.cancelAll requests {} Thread-300::DEBUG::2014-01-05 19:12:41,346::task::974::TaskManager.Task::(_decref) Task=`d049a71c-70a4-4dc2-9d69-99f1561ab405`::ref 0 aborting False Thread-27::DEBUG::2014-01-05 19:12:42,459::fileSD::239::Storage.Misc.excCmd::(getReadDelay) '/bin/dd iflag=direct if=/rhev/data-center/mnt/glusterSD/lovhm001:_vmdata/85ad5f7d-3b67-4618-a871-f9ec886020a4/dom_md/metadata bs=4096 count=1' (cwd None) Thread-27::DEBUG::2014-01-05 19:12:42,464::fileSD::239::Storage.Misc.excCmd::(getReadDelay) SUCCESS: err = '0+1 records in\n0+1 records out\n495 bytes (495 B) copied, 0.000345681 s, 1.4 MB/s\n'; rc = 0 Thread-302::DEBUG::2014-01-05 19:12:42,484::BindingXMLRPC::177::vds::(wrapper) client [5.39.66.85] Thread-302::DEBUG::2014-01-05 19:12:42,485::task::579::TaskManager.Task::(_updateState) Task=`acd727ae-dcbf-4662-bd97-fbdbadf6968a`::moving from state init - state preparing Thread-302::INFO::2014-01-05 19:12:42,485::logUtils::44::dispatcher::(wrapper) Run and protect: getSpmStatus(spUUID='2eceb484-73e0-464a-965b-69f067918080', options=None) Thread-302::INFO::2014-01-05 19:12:42,485::logUtils::47::dispatcher::(wrapper) Run and protect: getSpmStatus, Return response: {'spm_st': {'spmId': 2, 'spmStatus': 'SPM', 'spmLver': 3}} thanks in advance a -- Amedeo Salvati RHC{DS,E,VA} - LPIC-3 - UCP - NCLA 11 m. +39 333 1264484 email: ame...@oscert.net email: ame...@linux.com http://plugcomputing.it/redhatcert.php http://plugcomputing.it/lpicert.php ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
[Users] Stopping glusterfsd service shut down data center
::(_onLibvirtLifecycleEvent) vmId=`88997598-1db3-478a-bbe2-a7d234cfdc77`::event Suspended detail 2 opaque None Thread-28::DEBUG::2014-01-05 19:12:40,996::fileSD::239::Storage.Misc.excCmd::(getReadDelay) '/bin/dd iflag=direct if=/rhev/data-center/mnt/lovhm001.fabber.it:_var_lib_exports_iso/6a9b4fa6-f393-4036-bd4e-0bc9dccb1594/dom_md/metadata bs=4096 count=1' (cwd None) Thread-28::DEBUG::2014-01-05 19:12:41,001::fileSD::239::Storage.Misc.excCmd::(getReadDelay) SUCCESS: err = '0+1 records in\n0+1 records out\n361 bytes (361 B) copied, 0.00017524 s, 2.1 MB/s\n'; rc = 0 Thread-298::DEBUG::2014-01-05 19:12:41,088::BindingXMLRPC::974::vds::(wrapper) client [5.39.66.85]::call volumesList with () {} Thread-298::DEBUG::2014-01-05 19:12:41,097::BindingXMLRPC::981::vds::(wrapper) return volumesList with {'status': {'message': 'Done', 'code': 0}, 'volumes': {'vmdata': {'transportType': ['TCP'], 'uuid': 'e9b05f7a-f392-44f3-9d44-04761c36437d', 'bricks': ['lovhm001.fabber.it:/vmdata', 'lovhm002.fabber.it:/vmdata'], 'volumeName': 'vmdata', 'volumeType': 'REPLICATE', 'replicaCount': '2', 'brickCount': '2', 'distCount': '2', 'volumeStatus': 'ONLINE', 'stripeCount': '1', 'options': {'cluster.server-quorum-type': 'server', 'cluster.eager-lock': 'enable', 'performance.stat-prefetch': 'off', 'auth.allow': '*', 'cluster.quorum-type': 'auto', 'performance.quick-read': 'off', 'network.remote-dio': 'enable', 'nfs.disable': 'on', 'performance.io-cache': 'off', 'server.allow-insecure': 'on', 'storage.owner-uid': '36', 'user.cifs': 'disable', 'performance.read-ahead': 'off', 'storage.owner-gid': '36', 'cluster.server-quorum-ratio': '50%' Thread-300::DEBUG::2014-01-05 19:12:41,345::task::579::TaskManager.Task::(_updateState) Task=`d049a71c-70a4-4dc2-9d69-99f1561ab405`::moving from state init - state preparing Thread-300::INFO::2014-01-05 19:12:41,345::logUtils::44::dispatcher::(wrapper) Run and protect: repoStats(options=None) Thread-300::INFO::2014-01-05 19:12:41,345::logUtils::47::dispatcher::(wrapper) Run and protect: repoStats, Return response: {'85ad5f7d-3b67-4618-a871-f9ec886020a4': {'delay': '0.000370968', 'lastCheck': '8.9', 'code': 0, 'valid': True, 'version': 3}, '6a9b4fa6-f393-4036-bd4e-0bc9dccb1594': {'delay': '0.00017524', 'lastCheck': '0.3', 'code': 0, 'valid': True, 'version': 0}} Thread-300::DEBUG::2014-01-05 19:12:41,346::task::1168::TaskManager.Task::(prepare) Task=`d049a71c-70a4-4dc2-9d69-99f1561ab405`::finished: {'85ad5f7d-3b67-4618-a871-f9ec886020a4': {'delay': '0.000370968', 'lastCheck': '8.9', 'code': 0, 'valid': True, 'version': 3}, '6a9b4fa6-f393-4036-bd4e-0bc9dccb1594': {'delay': '0.00017524', 'lastCheck': '0.3', 'code': 0, 'valid': True, 'version': 0}} Thread-300::DEBUG::2014-01-05 19:12:41,346::task::579::TaskManager.Task::(_updateState) Task=`d049a71c-70a4-4dc2-9d69-99f1561ab405`::moving from state preparing - state finished Thread-300::DEBUG::2014-01-05 19:12:41,346::resourceManager::939::ResourceManager.Owner::(releaseAll) Owner.releaseAll requests {} resources {} Thread-300::DEBUG::2014-01-05 19:12:41,346::resourceManager::976::ResourceManager.Owner::(cancelAll) Owner.cancelAll requests {} Thread-300::DEBUG::2014-01-05 19:12:41,346::task::974::TaskManager.Task::(_decref) Task=`d049a71c-70a4-4dc2-9d69-99f1561ab405`::ref 0 aborting False Thread-27::DEBUG::2014-01-05 19:12:42,459::fileSD::239::Storage.Misc.excCmd::(getReadDelay) '/bin/dd iflag=direct if=/rhev/data-center/mnt/glusterSD/lovhm001:_vmdata/85ad5f7d-3b67-4618-a871-f9ec886020a4/dom_md/metadata bs=4096 count=1' (cwd None) Thread-27::DEBUG::2014-01-05 19:12:42,464::fileSD::239::Storage.Misc.excCmd::(getReadDelay) SUCCESS: err = '0+1 records in\n0+1 records out\n495 bytes (495 B) copied, 0.000345681 s, 1.4 MB/s\n'; rc = 0 Thread-302::DEBUG::2014-01-05 19:12:42,484::BindingXMLRPC::177::vds::(wrapper) client [5.39.66.85] Thread-302::DEBUG::2014-01-05 19:12:42,485::task::579::TaskManager.Task::(_updateState) Task=`acd727ae-dcbf-4662-bd97-fbdbadf6968a`::moving from state init - state preparing Thread-302::INFO::2014-01-05 19:12:42,485::logUtils::44::dispatcher::(wrapper) Run and protect: getSpmStatus(spUUID='2eceb484-73e0-464a-965b-69f067918080', options=None) Thread-302::INFO::2014-01-05 19:12:42,485::logUtils::47::dispatcher::(wrapper) Run and protect: getSpmStatus, Return response: {'spm_st': {'spmId': 2, 'spmStatus': 'SPM', 'spmLver': 3}} thanks in advance a -- Amedeo Salvati RHC{DS,E,VA} - LPIC-3 - UCP - NCLA 11 m. +39 333 1264484 email: ame...@oscert.net email: ame...@linux.com http://plugcomputing.it/redhatcert.php http://plugcomputing.it/lpicert.php ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users