← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1788833] Re: Error during ComputeManager.update_available_resource: AttributeError: '_TransactionContextManager' object has no attribute 'async_

 

** Changed in: nova
   Importance: Undecided => Medium

** Also affects: nova/rocky
   Importance: Undecided
       Status: New

** Changed in: nova/rocky
       Status: New => Triaged

** Changed in: nova/rocky
   Importance: Undecided => Medium

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1788833

Title:
  Error during ComputeManager.update_available_resource: AttributeError:
  '_TransactionContextManager' object has no attribute 'async_

Status in OpenStack Compute (nova):
  In Progress
Status in OpenStack Compute (nova) rocky series:
  Triaged

Bug description:
  Hi all,

  I have a rocky openstack cluster. I am using Mariadb galera cluster (3
  galera nodes Active/Active) behind haproxy.

  When i resize or migrate an instance, I am hitting with the following
  errors.

  2018-08-24 12:06:37.668 19857 ERROR oslo_service.periodic_task [req-67381a5e-24e2-4dd2-bfc6-693bd1fabb8d 290bb90f6cbc46548951cbcaee0c0a34 9804c6f8ffe148bc9fa7ed409d41cb16 - default default] Error during ComputeManager._heal_instance_info_cache: AttributeError: '_TransactionContextManager' object has no attribute 'async_'
  Traceback (most recent call last):

    File "/usr/lib/python2.7/dist-packages/nova/conductor/manager.py", line 126, in _object_dispatch
      return getattr(target, method)(*args, **kwargs)

    File "/usr/lib/python2.7/dist-packages/oslo_versionedobjects/base.py", line 184, in wrapper
      result = fn(cls, context, *args, **kwargs)

    File "/usr/lib/python2.7/dist-packages/nova/objects/instance.py", line 1351, in get_by_host
      use_slave=use_slave)

    File "/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/api.py", line 218, in wrapper
      reader_mode = get_context_manager(context).async_

  AttributeError: '_TransactionContextManager' object has no attribute 'async_'
  2018-08-24 12:06:37.668 19857 ERROR oslo_service.periodic_task Traceback (most recent call last):
  2018-08-24 12:06:37.668 19857 ERROR oslo_service.periodic_task   File "/usr/lib/python2.7/dist-packages/oslo_service/periodic_task.py", line 220, in run_periodic_tasks
  2018-08-24 12:06:37.668 19857 ERROR oslo_service.periodic_task     task(self, context)
  2018-08-24 12:06:37.668 19857 ERROR oslo_service.periodic_task   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 6632, in _heal_instance_info_cache
  2018-08-24 12:06:37.668 19857 ERROR oslo_service.periodic_task     context, self.host, expected_attrs=[], use_slave=True)
  2018-08-24 12:06:37.668 19857 ERROR oslo_service.periodic_task   File "/usr/lib/python2.7/dist-packages/oslo_versionedobjects/base.py", line 177, in wrapper
  2018-08-24 12:06:37.668 19857 ERROR oslo_service.periodic_task     args, kwargs)
  2018-08-24 12:06:37.668 19857 ERROR oslo_service.periodic_task   File "/usr/lib/python2.7/dist-packages/nova/conductor/rpcapi.py", line 241, in object_class_action_versions
  2018-08-24 12:06:37.668 19857 ERROR oslo_service.periodic_task     args=args, kwargs=kwargs)
  2018-08-24 12:06:37.668 19857 ERROR oslo_service.periodic_task   File "/usr/lib/python2.7/dist-packages/oslo_messaging/rpc/client.py", line 179, in call
  2018-08-24 12:06:37.668 19857 ERROR oslo_service.periodic_task     retry=self.retry)
  2018-08-24 12:06:37.668 19857 ERROR oslo_service.periodic_task   File "/usr/lib/python2.7/dist-packages/oslo_messaging/transport.py", line 133, in _send
  2018-08-24 12:06:37.668 19857 ERROR oslo_service.periodic_task     retry=retry)
  2018-08-24 12:06:37.668 19857 ERROR oslo_service.periodic_task   File "/usr/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py", line 584, in send
  2018-08-24 12:06:37.668 19857 ERROR oslo_service.periodic_task     call_monitor_timeout, retry=retry)
  2018-08-24 12:06:37.668 19857 ERROR oslo_service.periodic_task   File "/usr/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py", line 575, in _send
  2018-08-24 12:06:37.668 19857 ERROR oslo_service.periodic_task     raise result
  2018-08-24 12:06:37.668 19857 ERROR oslo_service.periodic_task AttributeError: '_TransactionContextManager' object has no attribute 'async_'
  2018-08-24 12:06:37.668 19857 ERROR oslo_service.periodic_task Traceback (most recent call last):
  2018-08-24 12:06:37.668 19857 ERROR oslo_service.periodic_task 
  2018-08-24 12:06:37.668 19857 ERROR oslo_service.periodic_task   File "/usr/lib/python2.7/dist-packages/nova/conductor/manager.py", line 126, in _object_dispatch
  2018-08-24 12:06:37.668 19857 ERROR oslo_service.periodic_task     return getattr(target, method)(*args, **kwargs)
  2018-08-24 12:06:37.668 19857 ERROR oslo_service.periodic_task 
  2018-08-24 12:06:37.668 19857 ERROR oslo_service.periodic_task   File "/usr/lib/python2.7/dist-packages/oslo_versionedobjects/base.py", line 184, in wrapper
  2018-08-24 12:06:37.668 19857 ERROR oslo_service.periodic_task     result = fn(cls, context, *args, **kwargs)
  2018-08-24 12:06:37.668 19857 ERROR oslo_service.periodic_task 
  2018-08-24 12:06:37.668 19857 ERROR oslo_service.periodic_task   File "/usr/lib/python2.7/dist-packages/nova/objects/instance.py", line 1351, in get_by_host
  2018-08-24 12:06:37.668 19857 ERROR oslo_service.periodic_task     use_slave=use_slave)
  2018-08-24 12:06:37.668 19857 ERROR oslo_service.periodic_task 
  2018-08-24 12:06:37.668 19857 ERROR oslo_service.periodic_task   File "/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/api.py", line 218, in wrapper
  2018-08-24 12:06:37.668 19857 ERROR oslo_service.periodic_task     reader_mode = get_context_manager(context).async_
  2018-08-24 12:06:37.668 19857 ERROR oslo_service.periodic_task 
  2018-08-24 12:06:37.668 19857 ERROR oslo_service.periodic_task AttributeError: '_TransactionContextManager' object has no attribute 'async_'
  2018-08-24 12:06:37.668 19857 ERROR oslo_service.periodic_task 
  2018-08-24 12:06:37.668 19857 ERROR oslo_service.periodic_task 
  2018-08-24 12:07:29.064 19857 INFO nova.compute.resource_tracker [req-67381a5e-24e2-4dd2-bfc6-693bd1fabb8d 290bb90f6cbc46548951cbcaee0c0a34 9804c6f8ffe148bc9fa7ed409d41cb16 - default default] Final resource view: name=kvm4 phys_ram=257618MB used_ram=512MB phys_disk=100816GB used_disk=0GB total_vcpus=40 used_vcpus=0 pci_stats=[]

  
  Full log file is at

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1788833/+subscriptions


References