Description of problem: Add VM, with certain OS types, is defined with OS other instead It occurs for example for OS "windows_2008r2". Version-Release number of selected component (if applicable): av10 How reproducible: 100% VM create: 2014-06-22 16:26:11,894 - MainThread - vms - DEBUG - CREATE request content is -- url:https://jenkins-vm-25.scl.lab.tlv.redhat.com/api/vms body:<vm> <name>template_vm</name> <os type="windows_2008r2"/> <cluster href="/api/clusters/db1bb452-3703-4a22-827b-f70c012bb76c" id="db1bb452-3703-4a22-827b-f70c012bb76c"> <name>templates_Cluster</name> <link href="/api/clusters/db1bb452-3703-4a22-827b-f70c012bb76c/networks" rel="networks"/> <link href="/api/clusters/db1bb452-3703-4a22-827b-f70c012bb76c/permissions" rel="permissions"/> <link href="/api/clusters/db1bb452-3703-4a22-827b-f70c012bb76c/glustervolumes" rel="glustervolumes"/> <link href="/api/clusters/db1bb452-3703-4a22-827b-f70c012bb76c/glusterhooks" rel="glusterhooks"/> <link href="/api/clusters/db1bb452-3703-4a22-827b-f70c012bb76c/affinitygroups" rel="affinitygroups"/> <cpu id="Intel Westmere Family"> <architecture>X86_64</architecture> </cpu> <data_center href="/api/datacenters/bce668f2-5d3e-4177-9754-f3ab0dd90493" id="bce668f2-5d3e-4177-9754-f3ab0dd90493"/> <memory_policy> <overcommit percent="200"/> <transparent_hugepages> <enabled>true</enabled> </transparent_hugepages> </memory_policy> <scheduling_policy> <policy>none</policy> </scheduling_policy> <version major="3" minor="4"/> <error_handling> <on_error>migrate</on_error> </error_handling> <virt_service>true</virt_service> <gluster_service>false</gluster_service> <threads_as_cores>false</threads_as_cores> <tunnel_migration>false</tunnel_migration> <trusted_service>false</trusted_service> <ha_reservation>false</ha_reservation> <ballooning_enabled>false</ballooning_enabled> <ksm> <enabled>false</enabled> </ksm> </cluster> <template id="00000000-0000-0000-0000-000000000000"/> </vm> Response: 2014-06-22 16:26:12,376 - MainThread - vms - DEBUG - Response body for CREATE request is: <vm href="/api/vms/21f07877-1888-4905-89ea-eb091776d4f4" id="21f07877-1888-4905-89ea-eb091776d4f4"> <actions> <link href="/api/vms/21f07877-1888-4905-89ea-eb091776d4f4/ticket" rel="ticket"/> <link href="/api/vms/21f07877-1888-4905-89ea-eb091776d4f4/undo_snapshot" rel="undo_snapshot"/> <link href="/api/vms/21f07877-1888-4905-89ea-eb091776d4f4/reboot" rel="reboot"/> <link href="/api/vms/21f07877-1888-4905-89ea-eb091776d4f4/migrate" rel="migrate"/> <link href="/api/vms/21f07877-1888-4905-89ea-eb091776d4f4/commit_snapshot" rel="commit_snapshot"/> <link href="/api/vms/21f07877-1888-4905-89ea-eb091776d4f4/preview_snapshot" rel="preview_snapshot"/> <link href="/api/vms/21f07877-1888-4905-89ea-eb091776d4f4/cancelmigration" rel="cancelmigration"/> <link href="/api/vms/21f07877-1888-4905-89ea-eb091776d4f4/maintenance" rel="maintenance"/> <link href="/api/vms/21f07877-1888-4905-89ea-eb091776d4f4/detach" rel="detach"/> <link href="/api/vms/21f07877-1888-4905-89ea-eb091776d4f4/move" rel="move"/> <link href="/api/vms/21f07877-1888-4905-89ea-eb091776d4f4/export" rel="export"/> <link href="/api/vms/21f07877-1888-4905-89ea-eb091776d4f4/shutdown" rel="shutdown"/> <link href="/api/vms/21f07877-1888-4905-89ea-eb091776d4f4/start" rel="start"/> <link href="/api/vms/21f07877-1888-4905-89ea-eb091776d4f4/stop" rel="stop"/> <link href="/api/vms/21f07877-1888-4905-89ea-eb091776d4f4/suspend" rel="suspend"/> </actions> <name>template_vm</name> <link href="/api/vms/21f07877-1888-4905-89ea-eb091776d4f4/applications" rel="applications"/> <link href="/api/vms/21f07877-1888-4905-89ea-eb091776d4f4/disks" rel="disks"/> <link href="/api/vms/21f07877-1888-4905-89ea-eb091776d4f4/nics" rel="nics"/> <link href="/api/vms/21f07877-1888-4905-89ea-eb091776d4f4/cdroms" rel="cdroms"/> <link href="/api/vms/21f07877-1888-4905-89ea-eb091776d4f4/snapshots" rel="snapshots"/> <link href="/api/vms/21f07877-1888-4905-89ea-eb091776d4f4/tags" rel="tags"/> <link href="/api/vms/21f07877-1888-4905-89ea-eb091776d4f4/permissions" rel="permissions"/> <link href="/api/vms/21f07877-1888-4905-89ea-eb091776d4f4/statistics" rel="statistics"/> <link href="/api/vms/21f07877-1888-4905-89ea-eb091776d4f4/reporteddevices" rel="reporteddevices"/> <link href="/api/vms/21f07877-1888-4905-89ea-eb091776d4f4/watchdogs" rel="watchdogs"/> <type>desktop</type> <status> <state>down</state> </status> <memory>1073741824</memory> <cpu> <topology sockets="1" cores="1"/> <architecture>X86_64</architecture> </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 href="/api/clusters/db1bb452-3703-4a22-827b-f70c012bb76c" id="db1bb452-3703-4a22-827b-f70c012bb76c"/> <template href="/api/templates/00000000-0000-0000-0000-000000000000" id="00000000-0000-0000-0000-000000000000"/> <stop_time>2014-06-22T16:26:12.103+03:00</stop_time> <creation_time>2014-06-22T16:26:12.091+03:00</creation_time> <origin>ovirt</origin> <stateless>false</stateless> <delete_protected>false</delete_protected> <sso> <methods> <method id="GUEST_AGENT"/> </methods> </sso> <console enabled="false"/> <domain> <name></name> </domain> <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.4.0.0"><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></Section><Content ovf:id="out" xsi:type="ovf:VirtualSystem_Type"><Description></Description><CreationDate>2014/06/22 13:26:12</CreationDate><ExportDate>2014/06/22 13:26:12</ExportDate><DeleteProtected>false</DeleteProtected><SsoMethod>guest_agent</SsoMethod><IsSmartcardEnabled>false</IsSmartcardEnabled><TimeZone></TimeZone><default_boot_sequence>0</default_boot_sequence><Generation>1</Generation><VmType>0</VmType><MinAllocatedMem>1024</MinAllocatedMem><IsStateless>false</IsStateless><IsRunAndPause>false</IsRunAndPause><AutoStartup>false</AutoStartup><Priority>0</Priority><CreatedByUserId>fdfc627c-d875-11e0-90f0-83df133b58cc</CreatedByUserId><Name>template_vm</Name><TemplateId>00000000-0000-0000-0000-000000000000</TemplateId><TemplateName>Blank</TemplateName><IsInitilized>false</IsInitilized><Origin>3</Origin><DefaultDisplayType>1</DefaultDisplayType><TrustedService>false</TrustedService><OriginalTemplateId>00000000-0000-0000-0000-000000000000</OriginalTemplateId><OriginalTemplateName>Blank</OriginalTemplateName><UseLatestVersion>false</UseLatestVersion><Section ovf:id="21f07877-1888-4905-89ea-eb091776d4f4" 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.4.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>USB Controller</rasd:Caption><rasd:InstanceId>3</rasd:InstanceId><rasd:ResourceType>23</rasd:ResourceType><rasd:UsbPolicy>DISABLED</rasd:UsbPolicy></Item></Section></Content></ovf:Envelope></data> </configuration> </initialization> <placement_policy> <affinity>migratable</affinity> </placement_policy> <memory_policy> <guaranteed>1073741824</guaranteed> <ballooning>true</ballooning> </memory_policy> <usb> <enabled>false</enabled> </usb> <migration_downtime>-1</migration_downtime> <virtio_scsi enabled="true"/> </vm> 2014-06-22 16:26:12,376 - MainThread - vms - DEBUG - Response code is valid: [200, 201, 202] 2014-06-22 16:26:12,376 - MainThread - vms - INFO - New entity was added
Created attachment 914068 [details] logs
engine.log, do not imply of any problem: 2014-06-22 16:26:12,051 INFO [org.ovirt.engine.core.bll.AddVmFromScratchCommand] (ajp-/127.0.0.1:8702-3) [6c83be47-9064-4542_addVm_create] Lock Acquired to object EngineLock [exclusiveLocks= key: template_vm value: VM_NAME , sharedLocks= ] 2014-06-22 16:26:12,089 INFO [org.ovirt.engine.core.bll.AddVmFromScratchCommand] (ajp-/127.0.0.1:8702-3) [6c83be47-9064-4542_addVm_create] Running command: AddVmFromScratchCommand internal: false. Entities affected : ID: db1bb452-3703-4a22-827b-f70c012bb76c Type: VdsGroups 2014-06-22 16:26:12,220 INFO [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (ajp-/127.0.0.1:8702-3) [6c83be47-9064-4542_addVm_create] Correlation ID: 6c83be47-9064-4542_addVm_create, Job ID: a151d116-dbf6-4349-a7d5-b15040e50382, Call Stack: null, Custom Event ID: -1, Message: VM template_vm was created by admin. 2014-06-22 16:26:12,230 INFO [org.ovirt.engine.core.bll.AddVmFromScratchCommand] (ajp-/127.0.0.1:8702-3) [6c83be47-9064-4542_addVm_create] Lock freed to object EngineLock [exclusiveLocks= key: template_vm value: VM_NAME , sharedLocks= ]
Ilanit: the VM ends up with "other" as OS in case you enter incorrect value as the <os></os>. In your case os windows_2008r2 is incorrect since we only support the 64 bit version (windows_2008R2x64). You can see this that in webadmin you are only able to create win08r2x64 vms.
Martin, OS windows_2008r2 is chosen from REST os_types list (bellow). In case it is not supported any more, it should be removed from this list. <os_types> <os_type>windows_2008x64</os_type> <os_type>sles_11_ppc64</os_type> <os_type>unassigned</os_type> <os_type>other</os_type> <os_type>other_linux</os_type> <os_type>rhel_6_ppc64</os_type> <os_type>windows_2008r2</os_type> <os_type>ubuntu_12_04</os_type> <os_type>windows_2008</os_type> <os_type>other_ppc64</os_type> <os_type>windows_7x64</os_type> <os_type>windows_2003x64</os_type> <os_type>windows_8x64</os_type> <os_type>ubuntu_12_10</os_type> <os_type>windows_7</os_type> <os_type>rhel_6x64</os_type> <os_type>rhel_6</os_type> <os_type>rhel_5</os_type> <os_type>rhel_4x64</os_type> <os_type>rhel_4</os_type> <os_type>rhel_3</os_type> <os_type>windows_8</os_type> <os_type>windows_2012x64</os_type> <os_type>windows_2008R2x64</os_type> <os_type>windows_xp</os_type> <os_type>rhel_3x64</os_type> <os_type>windows_2003</os_type> <os_type>ubuntu_13_10</os_type> <os_type>other_linux_ppc64</os_type> <os_type>rhel_5x64</os_type> <os_type>sles_11</os_type> <os_type>ubuntu_13_04</os_type> <os_type>rhel_7x64</os_type> </os_types>
Yes You are right. This is already being addressed in #1109546 *** This bug has been marked as a duplicate of bug 1109546 ***
great, thanks!