Bug 830512
Summary: | Ovirt SDK - Events search with specific from_event_id doesn't work properly | ||
---|---|---|---|
Product: | Red Hat Enterprise Virtualization Manager | Reporter: | Elena <edolinin> |
Component: | ovirt-engine-sdk | Assignee: | Michael Pasternak <mpastern> |
Status: | CLOSED NOTABUG | QA Contact: | Oded Ramraz <oramraz> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 3.1.0 | CC: | bazulay, dyasny, ecohen, iheim, Rhev-m-bugs, srevivo, yeylon, ykaul |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2012-06-10 10:53:29 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
Elena
2012-06-10 09:56:45 UTC
please enable debug mode and attach the output, thanks. p.s it should not be filtered by id number, it works like this: collection.list(query="..", from_event_id=N) event.id=N event.id=N+1 event.id=N+2 event.id=N+K (where N+K is the last event id) make sure you get sub-set of events retrieved by collection.list() search = collection.list(constraint, from_event_id=151464) Debug print: send: 'GET /api/events;case_sensitive=True?search=RestDataCenter1+type%3D950 HTTP/1.1\r\nHost: 10.35.113.33\r\nAccept-Encoding: identity\r\nPrefer: persistent-auth\r\nContent-type: application/xml\r\nAuthorization: Basic dmRjYWRtaW5AcWEubGFiLnRsdi5yZWRoYXQuY29tOjEyMzQ1Ng==\r\n\r\n' reply: 'HTTP/1.1 200 OK\r\n' header: Date: Sun, 10 Jun 2012 10:45:37 GMT header: Set-Cookie: JSESSIONID=cDJMGq4Q2hpJ-EGrQ-gQ-4yf.undefined; Path=/api header: Content-Type: application/xml header: Connection: close header: Transfer-Encoding: chunked send: 'GET /api/events;from=151464;case_sensitive=True?search=type%3D950 HTTP/1.1\r\nHost: 10.35.113.33\r\nAccept-Encoding: identity\r\ncookie: JSESSIONID=cDJMGq4Q2hpJ-EGrQ-gQ-4yf.undefined\r\nPrefer: persistent-auth\r\nContent-type: application/xml\r\nAuthorization: Basic dmRjYWRtaW5AcWEubGFiLnRsdi5yZWRoYXQuY29tOjEyMzQ1Ng==\r\n\r\n' reply: 'HTTP/1.1 200 OK\r\n' header: Date: Sun, 10 Jun 2012 10:45:38 GMT header: Content-Type: application/xml header: Connection: close header: Transfer-Encoding: chunked 2012-06-10 13:45:39,828 - MainThread - events - INFO - Searching for events with id > 151464, 2012-06-10 13:45:39,829 - MainThread - events - ERROR - Collection size is wrong, expected is: 2, actual is: 100 as you can see sdk produce right url - "/api/events;from=151464;" checked on server side and all works ok as well. |