← Back to team overview

openstack team mailing list archive

[solved] Re: Error starting nova-network

 

Hi Alex.

> 2012-03-31 19:34:40 TRACE nova File
> "/usr/lib64/python2.6/site-packages/nova/utils.py", line 939, in inner
> 2012-03-31 19:34:40 TRACE nova     lock = GreenLockFile(lock_file_path)
> 2012-03-31 19:34:40 TRACE nova   File
> "/usr/lib64/python2.6/site-packages/nova/utils.py", line 861, in __init__
> 2012-03-31 19:34:40 TRACE nova     self.tname = "-%x-%x" % (ident &
> 0xffffffff, gident & 0xffffffff)
> 2012-03-31 19:34:40 TRACE nova TypeError: unsupported operand type(s)
> for &: 'NoneType' and 'int'

> Any ideas?

The exception is sponsored by of one of the issues in the python
interpreter delivered by SUSE for SLES11 SP2. I will send you patched
packages by private mail.

The line 859 in nova/utils.py (ident = getattr(t, "ident", hash(t)))
will fail on SLES11 SP2 at the moment.

You can reproduce the bug this way to test if your python interpreter
has the issue.

---snip---
import threading
t = threading.current_thread()
ident = t.ident
if ident == None:
    print "ERROR: ident of current thread is None, ident of threads is
NOT working"
else:
    print ident
---snap---

If you have problems using our packages provided on the Open Build
Service of OpenSUSE you can directly contact us using the address
openstack@xxxxxxxxxxxxx.

Bye, Christian.

-- 
Christian Berendt
Solution Architect
Mail: berendt@xxxxxxxxxxxxx

B1 Systems GmbH
Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de
GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537


References