Bug 1086318
| Summary: | Domain name under vm not visible in REST | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Virtualization Manager | Reporter: | Artyom <alukiano> |
| Component: | ovirt-engine-webadmin-portal | Assignee: | Shahar Havivi <shavivi> |
| Status: | CLOSED DUPLICATE | QA Contact: | Pavel Stehlik <pstehlik> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 3.4.0 | CC: | acathrow, alukiano, bazulay, ecohen, gklein, iheim, juan.hernandez, michal.skrivanek, ofrenkel, oramraz, Rhev-m-bugs, shavivi, yeylon |
| Target Milestone: | --- | ||
| Target Release: | 3.4.0 | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | virt | ||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-04-29 11:09:59 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Artyom
2014-04-10 15:23:59 UTC
If I add domain via REST <vm> <domain>qa.lab.tlv.redhat.com</domain> </vm> Domain is visible under REST Apparently what happens here is that when a VM is updated from the UI the domain isn't sent, and thus isn't stored in the database, thus the RESTAPI can't get it. Michal, can you assign someone in your team to take a look at the UI issue? The initialization parameters are there always, regardless of the operating system. The RESTAPI only renders then when the backend populates them with a value other than null. Shahar, can we somehow make sure that the backend will return null for these parameter so that the RESTPI won't include them? The "really strange thing" that you see is the OVF description of the VM, it will be always included for PUT/POST operations, and included for GET operations only if the All-Content header value is true. sounds more like 3.5 to me at this point... so when using UI di the new Windows VM join that domain? IOW - is the sysprep working? I sealed windows vm, and started it via run once with domain and attached floppy, how I see sysprep works fine, and it choose correct domain, but domain is still not visible via REST <vm href= "/api/vms/a53d4c69-7db2-4c07-8db7-d21c060d4b41" id="a53d4c69-7db2-4c07-8db7-d21c060d4b41"> <actions> <link href= "/api/vms/a53d4c69-7db2-4c07-8db7-d21c060d4b41/undo_snapshot" rel="undo_snapshot"/> <link href= "/api/vms/a53d4c69-7db2-4c07-8db7-d21c060d4b41/commit_snapshot" rel="commit_snapshot"/> <link href= "/api/vms/a53d4c69-7db2-4c07-8db7-d21c060d4b41/preview_snapshot" rel="preview_snapshot"/> <link href= "/api/vms/a53d4c69-7db2-4c07-8db7-d21c060d4b41/cancelmigration" rel="cancelmigration"/> <link href= "/api/vms/a53d4c69-7db2-4c07-8db7-d21c060d4b41/ticket" rel="ticket"/> <link href= "/api/vms/a53d4c69-7db2-4c07-8db7-d21c060d4b41/migrate" rel="migrate"/> <link href= "/api/vms/a53d4c69-7db2-4c07-8db7-d21c060d4b41/reboot" rel="reboot"/> <link href= "/api/vms/a53d4c69-7db2-4c07-8db7-d21c060d4b41/move" rel="move"/> <link href= "/api/vms/a53d4c69-7db2-4c07-8db7-d21c060d4b41/detach" rel="detach"/> <link href= "/api/vms/a53d4c69-7db2-4c07-8db7-d21c060d4b41/export" rel="export"/> <link href= "/api/vms/a53d4c69-7db2-4c07-8db7-d21c060d4b41/shutdown" rel="shutdown"/> <link href= "/api/vms/a53d4c69-7db2-4c07-8db7-d21c060d4b41/start" rel="start"/> <link href= "/api/vms/a53d4c69-7db2-4c07-8db7-d21c060d4b41/stop" rel="stop"/> <link href= "/api/vms/a53d4c69-7db2-4c07-8db7-d21c060d4b41/suspend" rel="suspend"/> </actions> <name>windows_vm</name> <link href= "/api/vms/a53d4c69-7db2-4c07-8db7-d21c060d4b41/applications" rel="applications"/> <link href= "/api/vms/a53d4c69-7db2-4c07-8db7-d21c060d4b41/disks" rel="disks"/> <link href= "/api/vms/a53d4c69-7db2-4c07-8db7-d21c060d4b41/nics" rel="nics"/> <link href= "/api/vms/a53d4c69-7db2-4c07-8db7-d21c060d4b41/cdroms" rel="cdroms"/> <link href= "/api/vms/a53d4c69-7db2-4c07-8db7-d21c060d4b41/snapshots" rel="snapshots"/> <link href= "/api/vms/a53d4c69-7db2-4c07-8db7-d21c060d4b41/tags" rel="tags"/> <link href= "/api/vms/a53d4c69-7db2-4c07-8db7-d21c060d4b41/permissions" rel="permissions"/> <link href= "/api/vms/a53d4c69-7db2-4c07-8db7-d21c060d4b41/statistics" rel="statistics"/> <link href= "/api/vms/a53d4c69-7db2-4c07-8db7-d21c060d4b41/reporteddevices" rel="reporteddevices"/> <link href= "/api/vms/a53d4c69-7db2-4c07-8db7-d21c060d4b41/watchdogs" rel="watchdogs"/> <type>server</type> <status> <state>up</state> </status> <memory>4294967296</memory> <cpu> <topology sockets="4" cores="1"/> <architecture>X86_64</architecture> </cpu> <cpu_shares>0</cpu_shares> <os type="windows_7x64"> <boot dev="hd"/> <boot dev="network"/> </os> <high_availability> <enabled>false</enabled> <priority>1</priority> </high_availability> <display> <type>spice</type> <address>brown-vdsc.qa.lab.tlv.redhat.com</address> <port>5900</port> <secure_port>5901</secure_port> <monitors>1</monitors> <single_qxl_pci>false</single_qxl_pci> <allow_override>true</allow_override> <certificate> <subject>O=Test,CN=brown-vdsc.qa.lab.tlv.redhat.com</subject> </certificate> <smartcard_enabled>false</smartcard_enabled> </display> <host href= "/api/hosts/e6e2a5cf-ccd3-4cdf-a61b-d86e25ebfb8c" id="e6e2a5cf-ccd3-4cdf-a61b-d86e25ebfb8c"/> <cluster href= "/api/clusters/197f2366-9c70-447a-8866-7de4444b94eb" id="197f2366-9c70-447a-8866-7de4444b94eb"/> <template href= "/api/templates/00000000-0000-0000-0000-000000000000" id="00000000-0000-0000-0000-000000000000"/> <start_time>2014-04-27T11:34:53.548+03:00</start_time> <stop_time>2014-04-27T11:33:50.756+03:00</stop_time> <creation_time>2014-04-27T11:10:06.815+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"/> <payloads> <payload type="floppy"> <files> <file> <name>sysprep.inf</name> <content> <?xml version="1.0" encoding="UTF-8"?> <unattend xmlns="urn:schemas-microsoft-com:unattend"> <settings pass="windowsPE"> <component name="Microsoft-Windows-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <UserData> <ProductKey> <Key></Key> </ProductKey> <AcceptEula>true</AcceptEula> <FullName>"user"</FullName> <Organization>Test</Organization> </UserData> <ImageInstall> <OSImage> <InstallToAvailablePartition>true</InstallToAvailablePartition> </OSImage> </ImageInstall> </component> <component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <SetupUILanguage> <UILanguage>en-US</UILanguage> </SetupUILanguage> <InputLocale>en-US</InputLocale> <UILanguage>en-US</UILanguage> <SystemLocale>en-US</SystemLocale> <UserLocale>en-US</UserLocale> </component> </settings> <settings pass="specialize"> <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Display> <ColorDepth>32</ColorDepth> <DPI>96</DPI> <HorizontalResolution>1024</HorizontalResolution> <RefreshRate>75</RefreshRate> <VerticalResolution>768</VerticalResolution> </Display> <ComputerName>windows_vm</ComputerName> <TimeZone>GMT Standard Time</TimeZone> </component> <component name="Microsoft-Windows-International-Core" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <InputLocale>en-US</InputLocale> <UserLocale>en-US</UserLocale> <SystemLocale>en-US</SystemLocale> <UILanguage>en-US</UILanguage> </component> <component name="Microsoft-Windows-UnattendedJoin" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Identification> <Credentials> <Domain>qa.lab.tlv.redhat.com</Domain> <Password>123456</Password> <Username>alukiano.TLV.REDHAT.COM</Username> </Credentials> <JoinDomain>qa.lab.tlv.redhat.com</JoinDomain> </Identification> </component> </settings> <settings pass="oobeSystem"> <component name="Microsoft-Windows-International-Core" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <InputLocale>en-US</InputLocale> <UserLocale>en-US</UserLocale> <SystemLocale>en-US</SystemLocale> <UILanguage>en-US</UILanguage> </component> <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="ne utral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <OOBE> <ProtectYourPC>2</ProtectYourPC> <NetworkLocation>Work</NetworkLocation> <HideEULAPage>true</HideEULAPage> </OOBE> <UserAccounts> <AdministratorPassword> <Value>123456</Value> <PlainText>true</PlainText> </AdministratorPassword> <LocalAccounts> <LocalAccount wcm:action="add"> <Password> <Value>123456</Value> <PlainText>true</PlainText> </Password> <Group>administrators</Group> <Name>user</Name> <DisplayName>user</DisplayName> </LocalAccount> </LocalAccounts> </UserAccounts> </component> </settings> <cpi:offlineImage cpi:source="wim:d:/sources/install.wim#Windows 7 ENTERPRISE" xmlns:cpi="urn:schemas-microsoft-com:cpi"/> </unattend> </content> </file> </files> </payload> </payloads> <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><File ovf:href="4b5d731a-a139-4d87-be29-eff2ddafcef1/04169bb4-65c6-4119-bc65-67a7fa39948d" ovf:id="04169bb4-65c6-4119-bc65-67a7fa39948d" ovf:size="32212254720" ovf:description="Active VM"/><Nic ovf:id="54d21172-005c-417f-bbee-96b05f2788cb"/></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="04169bb4-65c6-4119-bc65-67a7fa39948d" ovf:size="30" ovf:actual_size="7" ovf:vm_snapshot_id="e230e9e8-5e8e-4b2b-9156-2f6df19c5e5c" ovf:parentRef="" ovf:fileRef="4b5d731a-a139-4d87-be29-eff2ddafcef1/04169bb4-65c6-4119-bc65-67a7fa39948d" ovf:format="http://www.vmware.com/specifications/vmdk.html#sparse" ovf:volume-format="RAW" ovf:volume-type="Sparse" ovf:disk-interface="IDE" ovf:boot="true" ovf:disk-alias="windows_vm_Disk1" ovf:wipe-after-delete="false"/></Section><Content ovf:id="out" xsi:type="ovf:VirtualSystem_Type"><Description></Description><CreationDate>2014/04/27 08:10:06</CreationDate><ExportDate>2014/04/27 08:44:00</ExportDate><DeleteProtected>false</DeleteProtected><SsoMethod>guest_agent</SsoMethod><IsSmartcardEnabled>false</IsSmartcardEnabled><TimeZone></TimeZone><default_boot_sequence>0</default_boot_sequence><Generation>3</Generation><VmType>1</VmType><MinAllocatedMem>4096</MinAllocatedMem><IsStateless>false</IsStateless><IsRunAndPause>false</IsRunAndPause><AutoStartup>false</AutoStartup><Priority>1</Priority><CreatedByUserId>fdfc627c-d875-11e0-90f0-83df133b58cc</CreatedByUserId><Name>windows_vm</Name><TemplateId>00000000-0000-0000-0000-000000000000</TemplateId><TemplateName>Blank</TemplateName><IsInitilized>true</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="a53d4c69-7db2-4c07-8db7-d21c060d4b41" ovf:required="false" xsi:type="ovf:OperatingSystemSection_Type"><Info>Guest Operating System</Info><Description>windows_7x64</Description></Section><Section xsi:type="ovf:VirtualHardwareSection_Type"><Info>4 CPU, 4096 Memeory</Info><System><vssd:VirtualSystemType>ENGINE 3.4.0.0</vssd:VirtualSystemType></System><Item><rasd:Caption>4 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>4</rasd:num_of_sockets><rasd:cpu_per_socket>1</rasd:cpu_per_socket></Item><Item><rasd:Caption>4096 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>4096</rasd:VirtualQuantity></Item><Item><rasd:Caption>windows_vm_Disk1</rasd:Caption><rasd:InstanceId>04169bb4-65c6-4119-bc65-67a7fa39948d</rasd:InstanceId><rasd:ResourceType>17</rasd:ResourceType><rasd:HostResource>4b5d731a-a139-4d87-be29-eff2ddafcef1/04169bb4-65c6-4119-bc65-67a7fa39948d</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:StorageId>fef1c052-9f6c-4b9c-9fad-0adbe1f41fdb</rasd:StorageId><rasd:StoragePoolId>8d660085-356b-41ed-b1df-fd303d387ef5</rasd:StoragePoolId><rasd:CreationDate>2014/04/27 08:10:22</rasd:CreationDate><rasd:LastModified>2014/04/27 08:10:22</rasd:LastModified><rasd:last_modified_date>2014/04/27 08:44:00</rasd:last_modified_date></Item><Item><ras d:Caption>Ethernet adapter on rhevm</rasd:Caption><rasd:InstanceId>54d21172-005c-417f-bbee-96b05f2788cb</rasd:InstanceId><rasd:ResourceType>10</rasd:ResourceType><rasd:OtherResourceType>rhevm</rasd:OtherResourceType><rasd:ResourceSubType>1</rasd:ResourceSubType><rasd:Connection>rhevm</rasd:Connection><rasd:Linked>true</rasd:Linked><rasd:Name>nic1</rasd:Name><rasd:MACAddress>00:1a:4a:f3:e9:e1</rasd:MACAddress><rasd:speed>100</rasd:speed></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>4294967296</guaranteed> <ballooning>true</ballooning> </memory_policy> <usb> <enabled>false</enabled> </usb> <migration_downtime>-1</migration_downtime> <virtio_scsi enabled="true"/> </vm> bz 1072414 fix this issue, Closing for duplication. *** This bug has been marked as a duplicate of bug 1072414 *** |