Description of problem: This is a request for enhancement. The 3.3 REST api for snapshots provides the ovf descriptor data associated with the snapshots for all snapshots EXCEPT the Active VM. This request is to enhance the API to include the OVF data for the Active VM as well. Version-Release number of selected component (if applicable): 3.3 How reproducible: https://<server>/api/vms/39e003b7-cc49-45b2-97fd-be3119b02849/snapshots/acea3d48-155b-4e6b-9edb-ab9d5c148251 <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <snapshot href="/api/vms/39e003b7-cc49-45b2-97fd-be3119b02849/snapshots/acea3d48-155b-4e6b-9edb-ab9d5c148251" id="acea3d48-155b-4e6b-9edb-ab9d5c148251"> <actions> <link href="/api/vms/39e003b7-cc49-45b2-97fd-be3119b02849/snapshots/acea3d48-155b-4e6b-9edb-ab9d5c148251/undo" rel="undo"/> <link href="/api/vms/39e003b7-cc49-45b2-97fd-be3119b02849/snapshots/acea3d48-155b-4e6b-9edb-ab9d5c148251/preview" rel="preview"/> <link href="/api/vms/39e003b7-cc49-45b2-97fd-be3119b02849/snapshots/acea3d48-155b-4e6b-9edb-ab9d5c148251/commit" rel="commit"/> <link href="/api/vms/39e003b7-cc49-45b2-97fd-be3119b02849/snapshots/acea3d48-155b-4e6b-9edb-ab9d5c148251/restore" rel="restore"/> </actions> <description>Active VM</description> <type>active</type> <date>2013-12-26T09:34:46.074-08:00</date> <snapshot_status>ok</snapshot_status> <persist_memorystate>false</persist_memorystate> </snapshot> For regular snapshots, the OVF file is available in the response.
setting target release to current version for consideration and review. please do not push non-RFE bugs to an undefined target release to make sure bugs are reviewed for relevancy, fix, closure, etc.
Satya, can you elaborate on what you mean by the "ovf descriptor data"? Can you provide an example of the data that you see in a regular snapshot and not in the active VM?
This is to extend Liron's fix http://gerrit.ovirt.org/#/c/16176/ to include the Live VM.
Example: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <snapshot href="/api/vms/4bd7cf43-a249-4003-917a-24c081cc073f/snapshots/e8eab53a-8823-41d4-96f2-182d7c15d403" id="e8eab53a-8823-41d4-96f2-182d7c15d403"> <actions> <link href="/api/vms/4bd7cf43-a249-4003-917a-24c081cc073f/snapshots/e8eab53a-8823-41d4-96f2-182d7c15d403/preview" rel="preview"/> <link href="/api/vms/4bd7cf43-a249-4003-917a-24c081cc073f/snapshots/e8eab53a-8823-41d4-96f2-182d7c15d403/undo" rel="undo"/> <link href="/api/vms/4bd7cf43-a249-4003-917a-24c081cc073f/snapshots/e8eab53a-8823-41d4-96f2-182d7c15d403/restore" rel="restore"/> <link href="/api/vms/4bd7cf43-a249-4003-917a-24c081cc073f/snapshots/e8eab53a-8823-41d4-96f2-182d7c15d403/commit" rel="commit"/> </actions> <description>snap1</description> <type>regular</type> <initialization> <configuration> <type>ovf</type> <data><?xml version='1.0' encoding='UTF-8'?><ovf:Envelope xmlns:ovf="http://schemas.dmtf.org/ovf/envelope/1/" xmlns:rasd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData" xmlns:vssd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemSettingData" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ovf:version="3.3.0.0"><References><File ovf:href="da88e9da-7272-43b3-9645-40d11362343d/171aad00-c87f-4601-93c0-9dae0850f07b" ovf:id="171aad00-c87f-4601-93c0-9dae0850f07b" ovf:size="1073741824" ovf:description=""/><Nic ovf:id="c16d55e0-a1c1-4873-8bde-a0df1f031a44"/></References><Section xsi:type="ovf:NetworkSection_Type"><Info>List of networks</Info><Network ovf:name="Network 1"/></Section><Section xsi:type="ovf:DiskSection_Type"><Info>List of Virtual Disks</Info><Disk ovf:diskId="171aad00-c87f-4601-93c0-9dae0850f07b" ovf:size="1" ovf:actual_size="0" ovf:vm_snapshot_id="e8eab53a-8823-41d4-96f2-182d7c15d403" ovf:parentRef="" ovf:fileRef="da88e9da-7272-43b3-9645-40d11362343d/171aad00-c87f-4601-93c0-9dae0850f07b" ovf:format="http://www.vmware.com/specifications/vmdk.html#sparse" ovf:volume-format="RAW" ovf:volume-type="Sparse" ovf:disk-interface="VirtIO" ovf:boot="false" ovf:disk-alias="bcd_Disk2" ovf:disk-description="ss" ovf:wipe-after-delete="false"/></Section><Content ovf:id="out" xsi:type="ovf:VirtualSystem_Type"><Description>sdf</Description><Domain></Domain><CreationDate>2014/02/03 20:52:24</CreationDate><ExportDate>2014/02/03 21:06:37</ExportDate><DeleteProtected>false</DeleteProtected><IsSmartcardEnabled>false</IsSmartcardEnabled><TimeZone></TimeZone><default_boot_sequence>0</default_boot_sequence><Generation>3</Generation><VmType>1</VmType><MinAllocatedMem>1024</MinAllocatedMem><IsStateless>false</IsStateless><IsRunAndPause>false</IsRunAndPause><CreatedByUserId>fdfc627c-d875-11e0-90f0-83df133b58cc</CreatedByUserId><Name>bcd</Name><TemplateId>00000000-0000-0000-0000-000000000000</TemplateId><TemplateName>Blank</TemplateName><IsInitilized>false</IsInitilized><Origin>3</Origin><DefaultDisplayType>1</DefaultDisplayType><TrustedService>false</TrustedService><Section ovf:id="4bd7cf43-a249-4003-917a-24c081cc073f" ovf:required="false" xsi:type="ovf:OperatingSystemSection_Type"><Info>Guest Operating System</Info><Description>other</Description></Section><Section xsi:type="ovf:VirtualHardwareSection_Type"><Info>1 CPU, 1024 Memeory</Info><System><vssd:VirtualSystemType>ENGINE 3.3.0.0</vssd:VirtualSystemType></System><Item><rasd:Caption>1 virtual cpu</rasd:Caption><rasd:Description>Number of virtual CPU</rasd:Description><rasd:InstanceId>1</rasd:InstanceId><rasd:ResourceType>3</rasd:ResourceType><rasd:num_of_sockets>1</rasd:num_of_sockets><rasd:cpu_per_socket>1</rasd:cpu_per_socket></Item><Item><rasd:Caption>1024 MB of memory</rasd:Caption><rasd:Description>Memory Size</rasd:Description><rasd:InstanceId>2</rasd:InstanceId><rasd:ResourceType>4</rasd:ResourceType><rasd:AllocationUnits>MegaBytes</rasd:AllocationUnits><rasd:VirtualQuantity>1024</rasd:VirtualQuantity></Item><Item><rasd:Caption>bcd_Disk2</rasd:Caption><rasd:InstanceId>171aad00-c87f-4601-93c0-9dae0850f07b</rasd:InstanceId><rasd:ResourceType>17</rasd:ResourceType><rasd:HostResource>da88e9da-7272-43b3-9645-40d11362343d/171aad00-c87f-4601-93c0-9dae0850f07b</rasd:HostResource><rasd:Parent>00000000-0000-0000-0000-000000000000</rasd:Parent><rasd:Template>00000000-0000-0000-0000-000000000000</rasd:Template><rasd:ApplicationList></rasd:ApplicationList><rasd:StoragePoolId>5849b030-626e-47cb-ad90-3ce782d831b3</rasd:StoragePoolId><rasd:CreationDate>2014/02/03 20:56:04</rasd:CreationDate><rasd:LastModified>2014/02/03 20:56:04</rasd:LastModified><rasd:last_modified_date>2014/02/03 21:06:37</rasd:last_modified_date><Type>disk</Type><Device>disk</Device><rasd:Address></rasd:Address><BootOrder>0</BootOrder><IsPlugged>true</IsPlugged><IsReadOnly>false</IsReadOnly><Alias></Alias></Item><Item><rasd:Caption>Ethernet adapter on rhevm</rasd:Caption><rasd:InstanceId>c16d55e0-a1c1-4873-8bde-a0df1f031a44</rasd:InstanceId><rasd:ResourceType>10</rasd:ResourceType><rasd:OtherResourceType>rhevm</rasd:OtherResourceType><rasd:ResourceSubType>3</rasd:ResourceSubType><rasd:Connection>rhevm</rasd:Connection><rasd:Linked>true</rasd:Linked><rasd:Name>nic1</rasd:Name><rasd:MACAddress>00:14:22:01:23:45</rasd:MACAddress><rasd:speed>1000</rasd:speed><Type>interface</Type><Device>bridge</Device><rasd:Address></rasd:Address><BootOrder>0</BootOrder><IsPlugged>false</IsPlugged><IsReadOnly>false</IsReadOnly><Alias></Alias></Item><Item><rasd:Caption>USB Controller</rasd:Caption><rasd:InstanceId>3</rasd:InstanceId><rasd:ResourceType>23</rasd:ResourceType><rasd:UsbPolicy>DISABLED</rasd:UsbPolicy></Item><Item><rasd:Caption>Graphical Controller</rasd:Caption><rasd:InstanceId>28fd608d-4df8-46b0-b9ce-39db1fad525a</rasd:InstanceId><rasd:ResourceType>20</rasd:ResourceType><rasd:VirtualQuantity>1</rasd:VirtualQuantity><rasd:SinglePciQxl>false</rasd:SinglePciQxl><Type>video</Type><Device>qxl</Device><rasd:Address></rasd:Address><BootOrder>0</BootOrder><IsPlugged>true</IsPlugged><IsReadOnly>true</IsReadOnly><Alias></Alias><SpecParams><vram>32768</vram><heads>1</heads></SpecParams></Item><Item><rasd:Caption>CDROM</rasd:Caption><rasd:InstanceId>f6adb532-6c67-47d4-81b5-ee3a72908bdb</rasd:InstanceId><rasd:ResourceType>15</rasd:ResourceType><Type>disk</Type><Device>cdrom</Device><rasd:Address></rasd:Address><BootOrder>0</BootOrder><IsPlugged>true</IsPlugged><IsReadOnly>true</IsReadOnly><Alias></Alias><SpecParams><path></path></SpecParams></Item><Item><rasd:ResourceType>0</rasd:ResourceType><rasd:InstanceId>2f4808de-56f4-433a-bf17-70eb6f05a23b</rasd:InstanceId><Type>controller</Type><Device>virtio-scsi</Device><rasd:Address></rasd:Address><BootOrder>0</BootOrder><IsPlugged>true</IsPlugged><IsReadOnly>false</IsReadOnly><Alias></Alias></Item><Item><rasd:ResourceType>0</rasd:ResourceType><rasd:InstanceId>a2c32c20-614b-43f1-b0c6-9a4a5cfbbb3f</rasd:InstanceId><Type>balloon</Type><Device>memballoon</Device><rasd:Address></rasd:Address><BootOrder>0</BootOrder><IsPlugged>true</IsPlugged><IsReadOnly>true</IsReadOnly><Alias></Alias><SpecParams><model>virtio</model></SpecParams></Item></Section></Content></ovf:Envelope> </data> </configuration> </initialization> <vm id="4bd7cf43-a249-4003-917a-24c081cc073f"> <name>bcd</name> <description>sdf</description> <link href="/api/vms/4bd7cf43-a249-4003-917a-24c081cc073f/snapshots/e8eab53a-8823-41d4-96f2-182d7c15d403/cdroms" rel="cdroms"/> <link href="/api/vms/4bd7cf43-a249-4003-917a-24c081cc073f/snapshots/e8eab53a-8823-41d4-96f2-182d7c15d403/disks" rel="disks"/> <link href="/api/vms/4bd7cf43-a249-4003-917a-24c081cc073f/snapshots/e8eab53a-8823-41d4-96f2-182d7c15d403/nics" rel="nics"/> <type>server</type> <status> <state>down</state> </status> <memory>1073741824</memory> <cpu> <topology sockets="1" cores="1"/> </cpu> <cpu_shares>0</cpu_shares> <os type="other"> <boot dev="hd"/> </os> <high_availability> <enabled>false</enabled> <priority>0</priority> </high_availability> <display> <type>spice</type> <monitors>1</monitors> <single_qxl_pci>false</single_qxl_pci> <allow_override>false</allow_override> <smartcard_enabled>false</smartcard_enabled> </display> <cluster id="99408929-82cf-4dc7-a532-9d998063fa95"/> <template id="00000000-0000-0000-0000-000000000000"/> <creation_time>2014-02-03T12:52:24.000-08:00</creation_time> <origin>ovirt</origin> <stateless>false</stateless> <delete_protected>false</delete_protected> <timezone></timezone> <placement_policy> <affinity>migratable</affinity> </placement_policy> <memory_policy> <guaranteed>1073741824</guaranteed> </memory_policy> <usb> <enabled>false</enabled> </usb> </vm> <date>2014-02-03T13:06:37.185-08:00</date> <snapshot_status>ok</snapshot_status> <persist_memorystate>false</persist_memorystate> </snapshot>
This OVF information is presented by the RESTAPI if it is available in the database, the limitation is that for the active VM the database doesn't populate the vm_configuration column of the snapshots table. Once that column is populated the RESTAPI will automatically provide the information.
*** Bug 1063891 has been marked as a duplicate of this bug. ***
This bug is referenced in ovirt-engine-3.4.0-beta3 logs. Moving to ON_QA
Exactly the same as https://bugzilla.redhat.com/show_bug.cgi?id=1060575, which I verified yesterday on ovirt-3.4.0-beta3. See more verification details there.
this is an automated message: moving to Closed CURRENT RELEASE since oVirt 3.4.0 has been released