[ovirt-devel] api.vms.get(VM0_NAME).snapshots.list() returned 404

Yaniv Kaul ykaul at redhat.com
Thu Aug 24 14:54:35 UTC 2017


On Thu, Aug 24, 2017 at 4:59 PM, Yedidyah Bar David <didi at redhat.com> wrote:

> Hi all,
>
> A jenkins job that ran as a check-patch for ovirt-system-tests failed
> [1] for me due to what seems to me like unrelated reason.
>
> It seems to have failed in [2]. This code does various actions with vm
> snapshots. At some point it failed with 'status: 404' [3].
> httpd's log also shows 404 [4] in the end, after a long list of
> successful actions with snapshots.
>

The 404's look to me as the initial step - on health check, or before the
engine is up, etc., as later the engine seems fine.


> engine.log [5] shows no relevant error AFAIU.
>

2017-08-24 12:48:22,359Z WARN
[org.ovirt.engine.core.bll.GetVmConfigurationBySnapshotQuery] (default
task-8) [ce23a02a-dccd-4f8d-bdf8-54063a4c39d2] Snapshot
'143017b0-36ef-4f4a-8112-abfe1dc6cccd' does not exist
2017-08-24 12:48:22,360Z ERROR
[org.ovirt.engine.api.restapi.resource.AbstractBackendResource] (default
task-8) [] Operation Failed: Entity not found: null


And indeed in Lago I'm seeing:
2017-08-24
12:48:22,362::testlib.py::assert_equals_within::224::ovirtlago.testlib::ERROR::
  * Unhandled exception in <function <lambda> at 0x3254f50>
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/ovirtlago/testlib.py", line 217,
in assert_equals_within
    res = func()
  File
"/home/jenkins/workspace/ovirt-system-tests_master_check-patch-el7-x86_64/ovirt-system-tests/image-ng-suite-4.1/test-scenarios/004_basic_sanity.py",
line 143, in <lambda>
    (len(api.vms.get(VM0_NAME).snapshots.list()) == 2) and
  File
"/usr/lib/python2.7/site-packages/ovirtsdk/infrastructure/brokers.py", line
34602, in list
    headers={"All-Content":all_content}
  File "/usr/lib/python2.7/site-packages/ovirtsdk/infrastructure/proxy.py",
line 46, in get
    return self.request(method='GET', url=url, headers=headers, cls=cls)
  File "/usr/lib/python2.7/site-packages/ovirtsdk/infrastructure/proxy.py",
line 122, in request
    persistent_auth=self.__persistent_auth
  File
"/usr/lib/python2.7/site-packages/ovirtsdk/infrastructure/connectionspool.py",
line 79, in do_request
    persistent_auth)
  File
"/usr/lib/python2.7/site-packages/ovirtsdk/infrastructure/connectionspool.py",
line 162, in __do_request
    raise errors.RequestError(response_code, response_reason, response_body)
RequestError:
status: 404
reason: Not Found
detail: Entity not found: null



> Is this reasonable? Expected?
>
> Not sure where the bug is, if at all.
>
> Best,
>
> [1] http://jenkins.ovirt.org/job/ovirt-system-tests_master_
> check-patch-el7-x86_64/1484/
> [2] https://gerrit.ovirt.org/gitweb?p=ovirt-system-tests.
> git;a=blob;f=image-ng-suite-4.1/test-scenarios/004_basic_sanity.py;h=
> 6b7bbf5c0efae532ab2e68a9c5810580a69e3018;hb=HEAD#l143
> [3] http://jenkins.ovirt.org/job/ovirt-system-tests_master_
> check-patch-el7-x86_64/1484/artifact/exported-artifacts/
> mock_logs/mocker-epel-7-x86_64.el7.check-patch.sh/check-patch.sh.log
> [4] http://jenkins.ovirt.org/job/ovirt-system-tests_master_
> check-patch-el7-x86_64/1484/artifact/exported-artifacts/
> image-ng-suite-4.1__logs/test_logs/image-ng-suite-4.1/post-
> 004_basic_sanity.py/lago-image-ng-suite-4-1-engine/_
> var_log/httpd/ssl_access_log/*view*/
> [5] http://jenkins.ovirt.org/job/ovirt-system-tests_master_
> check-patch-el7-x86_64/1484/artifact/exported-artifacts/
> image-ng-suite-4.1__logs/test_logs/image-ng-suite-4.1/post-
> 004_basic_sanity.py/lago-image-ng-suite-4-1-engine/_
> var_log/ovirt-engine/engine.log/*view*/
> --
> Didi
> _______________________________________________
> Devel mailing list
> Devel at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/devel/attachments/20170824/a0839794/attachment.html>


More information about the Devel mailing list