AttributeError in VlanManager.periodic_tasks

Bug #653560 reported by Ewan Mellor
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
Ewan Mellor

Bug Description

When running nova-network, the periodic task execution fails with an AttributeError, because the wrong value has been passed into db.fixed_ip_disassociate_all_by_timeout:

2010-10-02 12:44:56+0100 [-] Unhandled Error
        Traceback (most recent call last):
          File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 944, in unwindGenerator
            return _inlineCallbacks(None, f(*args, **kwargs), Deferred())
          File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 823, in _inlineCallbacks
            result = g.send(result)
          File "/home/emellor/openstack/nova/xenapi/nova/service.py", line 149, in periodic_tasks
            yield self.manager.periodic_tasks(context)
          File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 944, in unwindGenerator
            return _inlineCallbacks(None, f(*args, **kwargs), Deferred())
        --- <exception caught here> ---
          File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 823, in _inlineCallbacks
            result = g.send(result)
          File "/home/emellor/openstack/nova/xenapi/nova/network/manager.py", line 235, in periodic_tasks
            time)
          File "/home/emellor/openstack/nova/xenapi/nova/db/api.py", line 209, in fixed_ip_disassociate_all_by_timeout
            return IMPL.fixed_ip_disassociate_all_by_timeout(context, host, time)
          File "/home/emellor/openstack/nova/xenapi/nova/db/sqlalchemy/api.py", line 90, in wrapper
            if not is_admin_context(args[0]):
          File "/home/emellor/openstack/nova/xenapi/nova/db/sqlalchemy/api.py", line 44, in is_admin_context
            return context.is_admin
        exceptions.AttributeError: 'VlanManager' object has no attribute 'is_admin'

Related branches

Ewan Mellor (ewanmellor)
Changed in nova:
assignee: nobody → Ewan Mellor (ewanmellor)
status: New → Fix Committed
Eric Day (eday)
Changed in nova:
status: Fix Committed → Fix Released
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.