Bug 949187 - [PythonSDK] [Scalability] oVirt API connection failure, [Errno -5] No address associated with hostname, during delete 400 VM's
Summary: [PythonSDK] [Scalability] oVirt API connection failure, [Errno -5] No address...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-sdk
Version: 3.2.0
Hardware: x86_64
OS: Linux
unspecified
urgent
Target Milestone: ---
: 3.2.0
Assignee: Michael Pasternak
QA Contact: vvyazmin@redhat.com
URL:
Whiteboard: infra
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-04-06 21:49 UTC by vvyazmin@redhat.com
Modified: 2016-02-10 19:12 UTC (History)
11 users (show)

Fixed In Version: sf14
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
oVirt Team: Infra
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
## Log (295.09 KB, application/x-gzip)
2013-04-06 21:49 UTC, vvyazmin@redhat.com
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 13894 0 None None None Never
oVirt gerrit 14025 0 None None None Never

Description vvyazmin@redhat.com 2013-04-06 21:49:15 UTC
Created attachment 732198 [details]
## Log

Description of problem: oVirt API connection failure, [Errno -5] No address associated with hostname, during delete 400 VM's

Version-Release number of selected component (if applicable):
RHEVM 3.2 - SF12 environment:

RHEVM: rhevm-3.2.0-10.17.master.el6ev.noarch
VDSM: vdsm-4.10.2-13.0.el6ev.x86_64
LIBVIRT: libvirt-0.10.2-18.el6_4.2.x86_64
QEMU & KVM: qemu-kvm-rhev-0.12.1.2-2.355.el6_4.2.x86_64
SANLOCK: sanlock-2.6-2.el6.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Delete 400 VM's 
  
Actual results:
Session disconnected and I get error oVirt API connection failure, [Errno -5] No address associated with hostname
This happens during mass (more then 100) delete on VM's, mass creating a new VM's

Expected results:
Session continue till end running script

Additional info:

Traceback (most recent call last):
  File "scale-sprint-2.py", line 437, in <module>
    vmListObjectsContainer.append(API.vms.get(vmsList[m]))
  File "/usr/lib/python2.6/site-packages/ovirtsdk/infrastructure/brokers.py", line 8854, in get
    headers={}).get_vm()
  File "/usr/lib/python2.6/site-packages/ovirtsdk/infrastructure/proxy.py", line 109, in get
    return self.request(method='GET', url=url, headers=headers)
  File "/usr/lib/python2.6/site-packages/ovirtsdk/infrastructure/proxy.py", line 129, in request
    last=last)
  File "/usr/lib/python2.6/site-packages/ovirtsdk/infrastructure/proxy.py", line 174, in __doRequest
    raise ConnectionError, str(e)
ovirtsdk.infrastructure.errors.ConnectionError: [ERROR]::oVirt API connection failure, [Errno -5] No address associated with hostname

/var/log/ovirt-engine/engine.log

/var/log/vdsm/vdsm.log

Comment 2 Michael Pasternak 2013-04-07 08:48:21 UTC
i see few problems:

1. each call has own JSESSIONID (what sdk (version) you're using?)
2. "[Errno -5] No address associated with hostname" happens only when
there is no route to the host at runtime, - this could be due to a race in
your multithreaded test and execution environment, please make sure
the environment that you use not get cleaned before you finish your test
(backgrounds threads can run, but your testing environment can be not aware
of them and start cleanup when main function is over) 

to isolate this possibility, please run vm.start() requests sequentially,
and since you've mentioned that the issues happens after 100vms being triggered,
this will be easy to reproduce.

Comment 6 vvyazmin@redhat.com 2013-04-10 18:20:11 UTC
After I upgrade my Python-SDK package to latest one (rhevm-sdk-3.2.0.8-1.el6ev.noarch) on my laptop, I still get same error, during creating VMs from Template:

[vvyazmin@vvyazmin unittests]$ python scale-sprint-2.py
Traceback (most recent call last):
  File "scale-sprint-2.py", line 387, in <module>
    runMultithreadingOperations(createVm, MAX_RANGE, MAX_PARALLEL, {"vmName": allVMsList[z], "templateName": namesTempplate_DC04}, memory=0.25 * GB, cluster = namesCluster[3], storage=namesSDs[3])
  File "/home/vvyazmin/ART/art/tests/scale/unittests/function_scale.py", line 36, in inner
    result = func(*args, **kwargs)
  File "/home/vvyazmin/ART/art/tests/scale/unittests/function_scale.py", line 689, in runMultithreadingOperations
    raise ex
ovirtsdk.infrastructure.errors.ConnectionError: [ERROR]::oVirt API connection failure, [Errno -5] No address associated with hostname

PS.
This error appeared after creating 120 VMs

Comment 9 vvyazmin@redhat.com 2013-05-08 08:55:20 UTC
No issues are found

Verified on RHEVM 3.2 - SF15 environment:

RHEVM: rhevm-3.2.0-10.21.master.el6ev.noarch
VDSM: vdsm-4.10.2-17.0.el6ev.x86_64
LIBVIRT: libvirt-0.10.2-18.el6_4.4.x86_64
QEMU & KVM: qemu-kvm-rhev-0.12.1.2-2.355.el6_4.3.x86_64
SANLOCK: sanlock-2.6-2.el6.x86_64


Tested on environment with 400 VM's run on 4 hosts
Tested with delete and create VM's

Comment 10 Itamar Heim 2013-06-11 08:58:50 UTC
3.2 has been released

Comment 11 Itamar Heim 2013-06-11 08:58:56 UTC
3.2 has been released

Comment 12 Itamar Heim 2013-06-11 08:58:56 UTC
3.2 has been released

Comment 13 Itamar Heim 2013-06-11 09:00:33 UTC
3.2 has been released

Comment 14 Itamar Heim 2013-06-11 09:30:02 UTC
3.2 has been released


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