Bug 1434334 - [Java-SDK] VmsService.list doesn't provide collection of VMs
Summary: [Java-SDK] VmsService.list doesn't provide collection of VMs
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine-sdk-java
Classification: oVirt
Component: Core
Version: 4.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ovirt-4.1.1-1
: 4.1.3
Assignee: Ondra Machacek
QA Contact: Radim Hrazdil
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-03-21 10:04 UTC by Lukas Bednar
Modified: 2017-04-21 09:41 UTC (History)
7 users (show)

Fixed In Version: ovirt-engine-sdk-java-4.1.3
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-04-21 09:41:29 UTC
oVirt Team: Infra
Embargoed:
rule-engine: ovirt-4.1+
rule-engine: blocker+
omachace: devel_ack+
pstehlik: testing_ack+


Attachments (Terms of Use)
Program which reproduce problem (1.25 KB, text/plain)
2017-03-21 10:04 UTC, Lukas Bednar
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 74391 0 master MERGED Read links correctly 2017-03-21 12:57:20 UTC
oVirt gerrit 74394 0 metamodel_1.1 MERGED Read links correctly 2017-03-21 13:05:20 UTC
oVirt gerrit 74406 0 sdk_4.1 MERGED Update to metamodel 1.1.14 2017-03-21 14:00:04 UTC

Description Lukas Bednar 2017-03-21 10:04:06 UTC
Created attachment 1264996 [details]
Program which reproduce problem

Description of problem:

When trying to obtain collection of VMs via Java SDK,
VmsService.list returns collection which is not list of VMs,
but some collection of other elements ...

Version-Release number of selected component (if applicable):

Latest SKD from maven repository: sdk-4.1.2.jar
pom.xml snippet:
"""
  <dependencies>
    <dependency>
      <groupId>org.ovirt.engine.api</groupId>
      <artifactId>sdk</artifactId>
      <version>4.1.2</version>
    </dependency>
  </dependencies>
"""

Engine: rhv-release-4.1.1-6-001.noarch.rpm

How reproducible:

Install engine and create at least one vm.
See attached program (JavaSDK.java) which reproduce problem.

Steps to Reproduce:
1. Install engine
2. Run attached program
3. See output

Actual results:

It prints multiple results, however I have only one vm in engine (my_vm).

1e56459f-036a-4738-b5e2-dd736f114459: my_vm
null: null
null: null
null: null
null: null
null: null
null: null
null: null
null: null
null: null
null: null
null: null
null: null
null: null
null: null
null: null
null: null
null: null
null: null
null: null
null: null
null: null
null: null
null: null
9933671c-79af-4236-a5cf-3d1081c22025: null
null: null
null: null
null: null
null: null
null: null
null: null
b92c90e6-cee1-44b7-8256-03fa5c6dec24: null
null: null
null: null
null: null
null: Etc/GMT
null: null
null: null
57fce760-0018-0232-0270-000000000246: null
57fce773-0031-03d2-02a4-000000000353: null
58c16a21-00c9-029f-02c0-0000000000c1: null
null: null
null: null
null: null
null: null
null: null
null: null
null: null
601197ce-17cd-46af-b428-53fa796aa393: null
00000000-0000-0000-0000-000000000000: null
00000000-0000-0000-0000-000000000000: null



Expected results:

I would like to see only vms which are in my  engine (my_vm)

1e56459f-036a-4738-b5e2-dd736f114459: my_vm

Additional info:

Comment 1 Radim Hrazdil 2017-04-03 08:34:10 UTC
Verified that JavaSDK 4.1.3 only shows actual vms.
Tested on engine versions: 4.1.1.6-0.1.el7 and 4.1.1.3-0.1.el7


Note You need to log in before you can comment on or make changes to this bug.