Bug 949189

Summary: [PythonSDK] [Scalability] get error DefaultCookiePolicy instance has no attribute '_now' , during delete 400 VM's
Product: Red Hat Enterprise Virtualization Manager Reporter: vvyazmin <vvyazmin>
Component: ovirt-engine-sdkAssignee: Michael Pasternak <mpastern>
Status: CLOSED CURRENTRELEASE QA Contact: vvyazmin <vvyazmin>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 3.2.0CC: acathrow, bazulay, dyasny, hateya, iheim, mpastern, oramraz, Rhev-m-bugs, yeylon, ykaul
Target Milestone: ---   
Target Release: 3.2.0   
Hardware: x86_64   
OS: Linux   
Whiteboard: infra
Fixed In Version: sf14 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
## Logs none

Description vvyazmin@redhat.com 2013-04-06 22:31:20 UTC
Created attachment 732209 [details]
## Logs

Description of problem: Get error DefaultCookiePolicy instance has no attribute '_now'
, 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 DefaultCookiePolicy instance has no attribute '_now'
 
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 450, in <module>
    runMultithreadingOperations(turboRemoveVM, len(vmListObjectsContainer), 50, {"vmObject": vmListObjectsContainer})
  File "/home/vvyazmin/ART/art/tests/scale/unittests/function_scale.py", line 32, in inner
    result = func(*args, **kwargs)
  File "/home/vvyazmin/ART/art/tests/scale/unittests/function_scale.py", line 670, in runMultithreadingOperations
    raise ex
AttributeError: DefaultCookiePolicy instance has no attribute '_now'

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

/var/log/vdsm/vdsm.log

Comment 3 Michael Pasternak 2013-04-07 09:33:14 UTC
looking at the code, i can't really see how DefaultCookiePolicy race
can be generated other than accessing SDK proxy instance before it got
initiated.

Comment 6 vvyazmin@redhat.com 2013-05-08 08:58:45 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 7 Itamar Heim 2013-06-11 09:20:47 UTC
3.2 has been released

Comment 8 Itamar Heim 2013-06-11 09:43:40 UTC
3.2 has been released