nova-network not working with python-lockfile version 0.9.1

Bug #764718 reported by Christian Berendt
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Invalid
Undecided
Unassigned

Bug Description

I tried using the latest version of python-lockfile (0.9.1), but there's a problem in nova/utils.py...

---snip---
2011-04-18 16:46:11,715 AUDIT nova [-] Starting network node (version 2011.3-workspace:tarmac-20110415103614-4o0b4a7y19tghcrf)
2011-04-18 16:46:11,730 DEBUG nova.utils [-] Attempting to grab semaphore "iptables" for method "apply"... from (pid=26289) inner /usr/lib64/python2.6/site-packages/nova/utils.py:594
2011-04-18 16:46:11,730 DEBUG nova.utils [-] Attempting to grab file lock "iptables" for method "apply"... from (pid=26289) inner /usr/lib64/python2.6/site-packages/nova/utils.py:599
2011-04-18 16:46:11,731 CRITICAL nova [-] unsupported operand type(s) for &: 'NoneType' and 'int'
(nova): TRACE: Traceback (most recent call last):
(nova): TRACE: File "/usr/bin/nova-network", line 48, in <module>
(nova): TRACE: service.serve()
(nova): TRACE: File "/usr/lib64/python2.6/site-packages/nova/service.py", line 290, in serve
(nova): TRACE: x.start()
(nova): TRACE: File "/usr/lib64/python2.6/site-packages/nova/service.py", line 84, in start
(nova): TRACE: self.manager.init_host()
(nova): TRACE: File "/usr/lib64/python2.6/site-packages/nova/network/manager.py", line 442, in init_host
(nova): TRACE: super(FlatDHCPManager, self).init_host()
(nova): TRACE: File "/usr/lib64/python2.6/site-packages/nova/network/manager.py", line 128, in init_host
(nova): TRACE: self.driver.init_host()
(nova): TRACE: File "/usr/lib64/python2.6/site-packages/nova/network/linux_net.py", line 378, in init_host
(nova): TRACE: iptables_manager.apply()
(nova): TRACE: File "/usr/lib64/python2.6/site-packages/nova/utils.py", line 602, in inner
(nova): TRACE: lock = lockfile.FileLock(lock_file_path)
(nova): TRACE: File "/usr/lib64/python2.6/site-packages/lockfile/__init__.py", line 171, in __init__
(nova): TRACE: self.tname = "-%x" % (ident & 0xffffffff)
(nova): TRACE: TypeError: unsupported operand type(s) for &: 'NoneType' and 'int'
(nova): TRACE:
---snap---

Revision history for this message
Ken Pepple (ken-pepple) wrote :

yes, this is a bug in python-lockfile (see http://code.google.com/p/pylockfile/issues/detail?id=8#c6) but we specify using version 0.8 in the tools/pip-requires file so it's not our problem (AFAIK).

Revision history for this message
Thierry Carrez (ttx) wrote :

Looks like we could help upstream in reproducing that issue...

Changed in nova:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.