Re: [Users] Adding disk via rest api
Hi Kuba, Sorry for your trouble; we had a bug passing storage-domain on disk creation. The solution was merged upstream about a week ago (on June 19). Contact me if you need anything else. Have a good day, Ori. - Original Message - From: Rami Vaknin rvak...@redhat.com To: Michael Pasternak mpast...@redhat.com Cc: users@ovirt.org Sent: Wednesday, June 27, 2012 8:57:34 AM Subject: Re: [Users] Adding disk via rest api On 06/26/2012 01:58 PM, Rami Vaknin wrote: On 06/26/2012 01:01 PM, Jakub Libosvar wrote: On 06/26/2012 11:57 AM, Rami Vaknin wrote: On 06/25/2012 06:47 PM, Jakub Libosvar wrote: Hi guys, I'm struggling with creating disk via api. I tried to POST this body disk namemy_cool_disk/name provisioned_size1073741824/provisioned_size storage_domains storage_domain namemaster_sd/name /storage_domain /storage_domains size1073741824/size interfacevirtio/interface formatcow/format /disk Try this format: url:/api/vms/{vmid}/disks I want the created disk to be attached to no VM. I suppose this will create the disk attached to vm {vmid}, won't it? Yeah, I see that creation of disk that not attached to vm fails for no visible reason and with wrong error message. In addition, in python sdk I can't access the /api/disks. Michael, can you help with that? Michael, forgot to cc you, could you please take a look? Kuba body: disk storage_domains storage_domain href=/api/storagedomains/{storageid} id={storageid} namestorageDomainName/name link href=/api/storagedomains/{storageid}/permissions rel=permissions/ typedata/type mastertrue/master storage typenfs/type addressshtut.myshtutcompany.com/address path/path/to/shtut/path /storage available915901775872/available used424128020480/used committed2147483648/committed storage_formatv1/storage_format /storage_domain /storage_domains size2147483648/size interfaceide/interface formatcow/format sparsetrue/sparse /disk -- ovirt-engine-sdk: api.vms.get('my_vm_name').disks.add( params.Disk(storage_domains=params.StorageDomains(storage_domain=[api.storagedomains.get('my_iscsi_storage_name')]), size=10, type_='system', status=None, interface='virtio', format='cow', sparse=True, bootable=True) ) but getting error from CanDoAction: 2012-06-25 17:37:14,497 WARN [org.ovirt.engine.core.bll.AddDiskCommand] (ajp--0.0.0.0-8009-11) [26a7e908] CanDoAction of action AddDisk failed. Reasons:VAR__ACTION__ADD,VAR__TYPE__VM_DISK,ACTION_TYPE_FAILED_STORAGE_DOMAIN_NOT_EXIST 2012-06-25 17:37:14,502 ERROR [org.ovirt.engine.api.restapi.resource.AbstractBackendResource] (ajp--0.0.0.0-8009-11) Operation Failed: [Cannot add Virtual Machine Disk. Storage Domain doesn't exist.] The storage domain 'master_sd' is operational and I can create a disk from webadmin. According rsdl the provisioned_size is not child of disk element parameter required=true type=xs:int nameprovisioned_size/name /parameter parameter required=true type=xs:string namedisk.interface/name /parameter parameter required=true type=xs:string namedisk.format/name /parameter but in api/disks it is. Any ideas what am I doing wrong? Thanks, Kuba ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users -- Thanks, Rami Vaknin, QE @ Red Hat, TLV, IL. ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [Users] Ovirt and gluster storage (two servers in a cluster)
The problem still persists. How do I solve it? From: users-boun...@ovirt.org [mailto:users-boun...@ovirt.org] On Behalf Of ?? Sent: Tuesday, June 26, 2012 2:38 PM To: 'Robert Middleswarth' Cc: users@ovirt.org Subject: Re: [Users] Ovirt and gluster storage (two servers in a cluster) I checked the manual work gluster from two hosts. Mounting is working correctly. However, in a pair of hosts refuse to work (connection error storage). Individually, each of their hosts working correctly, and connects with gluster storage. I have to manually mount gluster storage? In which folder? You can write that how-to add a server to an existing cluster of gluster? From: users-boun...@ovirt.org [mailto:users-boun...@ovirt.org] On Behalf Of Robert Middleswarth Sent: Monday, June 25, 2012 11:49 PM To: users@ovirt.org Subject: Re: [Users] Ovirt and gluster storage (two servers in a cluster) On 06/25/2012 09:54 AM, ?? wrote: Hi. I use ovirt 3.1 and gluster storage. I added the two servers in a cluster. And faced with the problem of their joint work with gluster storage. Storage not initialized, although on one server working successfully with gluster storage. Vdsm log an attachment (vdsm-6.log - node -1) (vdsm-7.log - node -2) You have to tweak you ipstates table to allow glusterd to talk to the other box glusterd and you have to manually peer the systems together. ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users Thanks Robert ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
[Users] Addition of nodes to oVirt-engine
Good evening to all, I have added two nodes of Fedora 17 with vdsm 4.10 installed to oVirt 3.1 engine. I was having problems with SSL, so I have disabled it. When I added the nodes there was no attempt of installation as it was the case with oVirt 3.0, but the nodes get activated, provided that ovirtmgmt bridge is present. I have been told that there is a configuration in the database that make this happen. I just recreated the database via the script /dbscripts/create_db_devel.sh and run engine-setup, after removing all packages from oVirt 3.0 and jboss and installing ovirt 3.1 basic packages. My question is: What would be the 'standard' procedure to get oVirt 3.1 running? Regards, Jose Garcia ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
[Users] How can I create a snapshot for virtual disks only?
Hi, I am testing oVirt engine 3.1 beta release 06-07. I tried snapshots--create button for a VM and it looked like that the snapshot to be created was for both the running state of the system and the virtual disks.I am wondering if there is any way to create the snapshot only for the virtual disks of the VM in engine? -- Shu Ming shum...@linux.vnet.ibm.com IBM China Systems and Technology Laboratory ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
[Users] oVirt Weekly Meeting Minutes -- 2012-06-27
Minutes:http://ovirt.org/meetings/ovirt/2012/ovirt.2012-06-27-14.00.html Minutes (text): http://ovirt.org/meetings/ovirt/2012/ovirt.2012-06-27-14.00.txt Log: http://ovirt.org/meetings/ovirt/2012/ovirt.2012-06-27-14.00.log.html = #ovirt: oVirt Weekly Sync = Meeting started by oschreib at 14:00:19 UTC. The full logs are available at http://ovirt.org/meetings/ovirt/2012/ovirt.2012-06-27-14.00.log.html . Meeting summary --- * agenda and roll call (oschreib, 14:00:29) * LINK: https://bugzilla.redhat.com/show_bug.cgi?id=822145 (oschreib, 14:12:20) * Status of next release (oschreib, 14:12:41) * GA date is July 9th (oschreib, 14:12:53) * 11 blocker currently in the 3.1 tracker (oschreib, 14:13:12) * LINK: https://bugzilla.redhat.com/show_bug.cgi?id=822145 (oschreib, 14:13:32) * Sanlock locking failed for readonly devices (component: libvirt, status: ASSIGNED) (oschreib, 14:16:17) * LINK: https://bugzilla.redhat.com/show_bug.cgi?id=828633 (oschreib, 14:16:32) * IDEA: the feature owner can put the wiki page in a different category e.g. [[Category:Feature complete]] (quaid, 14:16:56) * patch waiting for a review (oschreib, 14:18:12) * It's impossible to create bond with setupNetworks (component: vdsm, status: ASSIGNED) (oschreib, 14:19:13) * LINK: https://bugzilla.redhat.com/show_bug.cgi?id=831998 (oschreib, 14:19:23) * merged upstream, waiting for the Fedora backport (oschreib, 14:23:01) * vdsmd init script times out due to lengthy semanage operation (component: vdsm, status: POST) (oschreib, 14:23:48) * LINK: https://bugzilla.redhat.com/show_bug.cgi?id=832199 (oschreib, 14:23:57) * patch in review (oschreib, 14:26:55) * 3.1: sshd daemon is not starting correctly after complete the installation of oVirt Node (component: node, status: MODIFIED) (oschreib, 14:27:26) * LINK: https://bugzilla.redhat.com/show_bug.cgi?id=832517 (oschreib, 14:27:35) * LINK: https://bugzilla.redhat.com/show_bug.cgi?id=832199 (danken, 14:29:05) * bug fixed, new node build today if possible (oschreib, 14:30:01) * ACTION: mburns to build and upload new node version (oschreib, 14:30:14) * 3.1: iptables blocking communication between node and engine (component: node, status: MODIFIED) (oschreib, 14:31:30) * LINK: https://bugzilla.redhat.com/show_bug.cgi?id=832539 (oschreib, 14:31:36) * should be in next build (oschreib, 14:33:07) * ovirt-node can't be approved due to missing /rhev/data-center (component: vdsm, status: ON_QA) (oschreib, 14:33:45) * LINK: https://bugzilla.redhat.com/show_bug.cgi?id=832577 (oschreib, 14:33:51) * waiting for a verification (oschreib, 14:35:29) * 3.1 Allow to create VLANed network on top of existing bond (component: vdsm, status: POST) (oschreib, 14:36:05) * LINK: https://bugzilla.redhat.com/show_bug.cgi?id=833119 (oschreib, 14:36:20) * pushed upstream, should be backported tomorrow to Fedora (oschreib, 14:40:56) * Failed to add host - does not accept vdsm 4.10 (component: vdsm, status: ON_QA) (oschreib, 14:41:24) * LINK: https://bugzilla.redhat.com/show_bug.cgi?id=833201 (oschreib, 14:41:33) * waiting for a verification (oschreib, 14:43:51) * [vdsm][bridgeless] BOOTPROTO/IPADDR/NETMASK options are not set on interface (component: vdsm, status: NEW) (oschreib, 14:44:18) * LINK: https://bugzilla.redhat.com/show_bug.cgi?id=834281 (oschreib, 14:44:26) * not a 3.1 blocker (oschreib, 14:51:06) * Leak of keystore file descriptors in ovirt-engine (component: engine, status: MODIFIED) (oschreib, 14:52:00) * LINK: https://bugzilla.redhat.com/show_bug.cgi?id=834399 (oschreib, 14:52:08) * pushed and backported, waiting for a build (oschreib, 14:52:22) * Sub-project reports (oschreib, 14:55:08) * status covered in BZ overview (oschreib, 14:57:17) * Upcoming workshops (oschreib, 14:57:29) * no updates about upcoming workshops (oschreib, 14:59:25) * Release notes (oschreib, 14:59:56) * 3.1 release notes should be given to sgordon by mail (oschreib, 15:04:51) * ACTION: oschreib to nag maintainers about RN (oschreib, 15:06:04) Meeting ended at 15:08:51 UTC. Action Items * mburns to build and upload new node version * oschreib to nag maintainers about RN Action Items, by person --- * mburns * mburns to build and upload new node version * oschreib * oschreib to nag maintainers about RN * **UNASSIGNED** * (none) People Present (lines said) --- * oschreib (119) * sgordon (24) * danken (18) * RobertM (10) * ilvovsky (8) * quaid (6) * fabiand (6) * mburns (4) * ofrenkel (3) * READ10 (2) * ovirtbot (2) * Guest1297 (1) * crobinso (1) * dustins (1) Generated by `MeetBot`_ 0.1.4 .. _`MeetBot`: http://wiki.debian.org/MeetBot
Re: [Users] How can I create a snapshot for virtual disks only?
Hi, no. the snapshot is for the entire vm and it's disks. On 06/27/2012 05:31 PM, Shu Ming wrote: Hi, I am testing oVirt engine 3.1 beta release 06-07. I tried snapshots--create button for a VM and it looked like that the snapshot to be created was for both the running state of the system and the virtual disks.I am wondering if there is any way to create the snapshot only for the virtual disks of the VM in engine? -- Dafna Ron ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [Users] How can I create a snapshot for virtual disks only?
On 2012-6-27 23:19, Dafna Ron wrote: Hi, no. the snapshot is for the entire vm and it's disks. On 06/27/2012 05:31 PM, Shu Ming wrote: Hi, I am testing oVirt engine 3.1 beta release 06-07. I tried snapshots--create button for a VM and it looked like that the snapshot to be created was for both the running state of the system and the virtual disks.I am wondering if there is any way to create the snapshot only for the virtual disks of the VM in engine? Do we have future plan to make snapshot for it's disks? -- Shu Ming shum...@linux.vnet.ibm.com IBM China Systems and Technology Laboratory ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [Users] How can I create a snapshot for virtual disks only?
On 2012-6-27 23:30, Michal Skrivanek wrote: That would make sense only when you are powered off, wouldn't it? Otherwise what's the point of disk snapshot with open transactions, buffers in mem, etc, without saving the state of the VM too? I understand syncing virtual disk state with the OS cache is a quite challenge to a snapshot tool developers. However, it is a handy feature for the users just want to back up their data in the disks without stopping VM. As other virtualization solution support this feature, we should narrow the gap to attract more users to oVirt. Thanks, michal On 27 Jun 2012, at 17:26, Shu Ming shum...@linux.vnet.ibm.com wrote: On 2012-6-27 23:19, Dafna Ron wrote: Hi, no. the snapshot is for the entire vm and it's disks. On 06/27/2012 05:31 PM, Shu Ming wrote: Hi, I am testing oVirt engine 3.1 beta release 06-07. I tried snapshots--create button for a VM and it looked like that the snapshot to be created was for both the running state of the system and the virtual disks.I am wondering if there is any way to create the snapshot only for the virtual disks of the VM in engine? Do we have future plan to make snapshot for it's disks? -- Shu Ming shum...@linux.vnet.ibm.com IBM China Systems and Technology Laboratory ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users -- Shu Ming shum...@linux.vnet.ibm.com IBM China Systems and Technology Laboratory ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [Users] How can I create a snapshot for virtual disks only?
On 06/27/2012 08:57 PM, Shu Ming wrote: On 2012-6-27 23:30, Michal Skrivanek wrote: That would make sense only when you are powered off, wouldn't it? Otherwise what's the point of disk snapshot with open transactions, buffers in mem, etc, without saving the state of the VM too? I understand syncing virtual disk state with the OS cache is a quite challenge to a snapshot tool developers. However, it is a handy feature for the users just want to back up their data in the disks without stopping VM. As other virtualization solution support this feature, we should narrow the gap to attract more users to oVirt. actually, live snapshot today is only supported for disks, without the RAM. Thanks, michal On 27 Jun 2012, at 17:26, Shu Ming shum...@linux.vnet.ibm.com wrote: On 2012-6-27 23:19, Dafna Ron wrote: Hi, no. the snapshot is for the entire vm and it's disks. On 06/27/2012 05:31 PM, Shu Ming wrote: Hi, I am testing oVirt engine 3.1 beta release 06-07. I tried snapshots--create button for a VM and it looked like that the snapshot to be created was for both the running state of the system and the virtual disks. I am wondering if there is any way to create the snapshot only for the virtual disks of the VM in engine? Do we have future plan to make snapshot for it's disks? -- Shu Ming shum...@linux.vnet.ibm.com IBM China Systems and Technology Laboratory ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [Users] How can I create a snapshot for virtual disks only?
On 2012-6-28 9:20, Itamar Heim wrote: On 06/27/2012 08:57 PM, Shu Ming wrote: On 2012-6-27 23:30, Michal Skrivanek wrote: That would make sense only when you are powered off, wouldn't it? Otherwise what's the point of disk snapshot with open transactions, buffers in mem, etc, without saving the state of the VM too? I understand syncing virtual disk state with the OS cache is a quite challenge to a snapshot tool developers. However, it is a handy feature for the users just want to back up their data in the disks without stopping VM. As other virtualization solution support this feature, we should narrow the gap to attract more users to oVirt. actually, live snapshot today is only supported for disks, without the RAM. I can not find the button to create a snapshot for disk only in engine 3.1 beta release. Are you talking about a undergoing project? Thanks, michal On 27 Jun 2012, at 17:26, Shu Ming shum...@linux.vnet.ibm.com wrote: On 2012-6-27 23:19, Dafna Ron wrote: Hi, no. the snapshot is for the entire vm and it's disks. On 06/27/2012 05:31 PM, Shu Ming wrote: Hi, I am testing oVirt engine 3.1 beta release 06-07. I tried snapshots--create button for a VM and it looked like that the snapshot to be created was for both the running state of the system and the virtual disks. I am wondering if there is any way to create the snapshot only for the virtual disks of the VM in engine? Do we have future plan to make snapshot for it's disks? -- Shu Ming shum...@linux.vnet.ibm.com IBM China Systems and Technology Laboratory ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users -- Shu Ming shum...@linux.vnet.ibm.com IBM China Systems and Technology Laboratory ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [Users] Addition of nodes to oVirt-engine
On 06/27/2012 09:15 AM, jose garcia wrote: Good evening to all, I have added two nodes of Fedora 17 with vdsm 4.10 installed to oVirt 3.1 engine. I was having problems with SSL, so I have disabled it. When I added the nodes there was no attempt of installation as it was the case with oVirt 3.0, but the nodes get activated, provided that ovirtmgmt bridge is present. I have been told that there is a configuration in the database that make this happen. I just recreated the database via the script /dbscripts/create_db_devel.sh and run engine-setup, after removing all packages from oVirt 3.0 and jboss and installing ovirt 3.1 basic packages. My question is: What would be the 'standard' procedure to get oVirt 3.1 running? the standard procedure would be to install the rpm and engine-setup and add the host from UI so they will be configured with certificates and ssl ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [Users] How can I create a snapshot for virtual disks only?
On 06/27/2012 09:38 PM, Shu Ming wrote: On 2012-6-28 9:20, Itamar Heim wrote: On 06/27/2012 08:57 PM, Shu Ming wrote: On 2012-6-27 23:30, Michal Skrivanek wrote: That would make sense only when you are powered off, wouldn't it? Otherwise what's the point of disk snapshot with open transactions, buffers in mem, etc, without saving the state of the VM too? I understand syncing virtual disk state with the OS cache is a quite challenge to a snapshot tool developers. However, it is a handy feature for the users just want to back up their data in the disks without stopping VM. As other virtualization solution support this feature, we should narrow the gap to attract more users to oVirt. actually, live snapshot today is only supported for disks, without the RAM. I can not find the button to create a snapshot for disk only in engine 3.1 beta release. Are you talking about a undergoing project? live snapshot is for disks only, not for RAM. so the live snapshot button only snapshots the disks already. Thanks, michal On 27 Jun 2012, at 17:26, Shu Ming shum...@linux.vnet.ibm.com wrote: On 2012-6-27 23:19, Dafna Ron wrote: Hi, no. the snapshot is for the entire vm and it's disks. On 06/27/2012 05:31 PM, Shu Ming wrote: Hi, I am testing oVirt engine 3.1 beta release 06-07. I tried snapshots--create button for a VM and it looked like that the snapshot to be created was for both the running state of the system and the virtual disks. I am wondering if there is any way to create the snapshot only for the virtual disks of the VM in engine? Do we have future plan to make snapshot for it's disks? -- Shu Ming shum...@linux.vnet.ibm.com IBM China Systems and Technology Laboratory ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [Users] How can I create a snapshot for virtual disks only?
On 2012-6-28 10:38, Itamar Heim wrote: On 06/27/2012 10:29 PM, Shu Ming wrote: Sorry for confusion here. I attached the snapshot created. I don't think it is a standalone snapshot for disks(all eight) only. And the usage of the disk image snapshot should be bound with OS memory snapshot. The there is currently no OS memory snapshot Enhh, interesting. So it is not live snapshot? The VM must be paused to do the snapshot in my engine. Also, I hit a bug to resume the VM after the snapshot was done. The VM was always in pause state after I clicked the resume button after the snapshot was done. I looked into the VM by VNC and VNC console showed that the VM was in frozen state. Has anyone seen these or has it been fixed in the upstream? other problem is the VM must be paused when the snapshot is undergoing. On 2012-6-28 10:16, Itamar Heim wrote: On 06/27/2012 09:54 PM, Rami Vaknin wrote: On 06/28/2012 04:51 AM, Itamar Heim wrote: On 06/27/2012 09:38 PM, Shu Ming wrote: On 2012-6-28 9:20, Itamar Heim wrote: On 06/27/2012 08:57 PM, Shu Ming wrote: On 2012-6-27 23:30, Michal Skrivanek wrote: That would make sense only when you are powered off, wouldn't it? Otherwise what's the point of disk snapshot with open transactions, buffers in mem, etc, without saving the state of the VM too? I understand syncing virtual disk state with the OS cache is a quite challenge to a snapshot tool developers. However, it is a handy feature for the users just want to back up their data in the disks without stopping VM. As other virtualization solution support this feature, we should narrow the gap to attract more users to oVirt. actually, live snapshot today is only supported for disks, without the RAM. I can not find the button to create a snapshot for disk only in engine 3.1 beta release. Are you talking about a undergoing project? The is no option to save a single disk in webadmin. live snapshot is for disks only, not for RAM. so the live snapshot button only snapshots the disks already. there is a mix of two things here: 1. taking snapshot of a subset of the disks. 2. taking snapshot of disks + ram Thanks, michal On 27 Jun 2012, at 17:26, Shu Ming shum...@linux.vnet.ibm.com wrote: On 2012-6-27 23:19, Dafna Ron wrote: Hi, no. the snapshot is for the entire vm and it's disks. On 06/27/2012 05:31 PM, Shu Ming wrote: Hi, I am testing oVirt engine 3.1 beta release 06-07. I tried snapshots--create button for a VM and it looked like that the snapshot to be created was for both the running state of the system and the virtual disks. I am wondering if there is any way to create the snapshot only for the virtual disks of the VM in engine? Do we have future plan to make snapshot for it's disks? -- Shu Ming shum...@linux.vnet.ibm.com IBM China Systems and Technology Laboratory ___ 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 -- Shu Ming shum...@linux.vnet.ibm.com IBM China Systems and Technology Laboratory ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [Users] (split) Live Snapshots RAM state
actually, live snapshot today is only supported for disks, without the RAM. I can not find the button to create a snapshot for disk only in engine 3.1 beta release. Are you talking about a undergoing project? live snapshot is for disks only, not for RAM. so the live snapshot button only snapshots the disks already. How does this compare to other virtualization solutions?To me it seems like live snapshot is the wrong term to use if it doesn't include the RAM state. Specifically thinking of VirtualBox or VMWare Workstation... if I take a snapshot of a running system the disk and RAM states are preserved in that snapshot. If the VM is shut down, then only a snapshot of the disks is taken. Being that 3.1 is really close and this likely can't change (if such a change were to be made), can we at least have this noted somewhere in the documentation and/or interface that that is how live snapshots works at the current time? disk state only, no RAM state. If it's already there then I shall go to the quiet corner and RTFM. - Nick ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users