[Bug 1517763] Re: cinder-volume-usage-audit breaks when upgrading from Kilo to Liberty

Tobias Urdin 1517763 at bugs.launchpad.net
Thu May 6 07:14:39 UTC 2021


** Changed in: cloud-archive/kilo
       Status: Triaged => Invalid

** Changed in: cloud-archive/icehouse
       Status: Triaged => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to cinder in Ubuntu.
https://bugs.launchpad.net/bugs/1517763

Title:
  cinder-volume-usage-audit breaks when upgrading from Kilo to Liberty

Status in Cinder:
  Fix Released
Status in Ubuntu Cloud Archive:
  Invalid
Status in Ubuntu Cloud Archive icehouse series:
  Invalid
Status in Ubuntu Cloud Archive kilo series:
  Invalid
Status in cinder package in Ubuntu:
  Invalid
Status in trusty package in Ubuntu:
  Invalid

Bug description:
  The cinder-volume-usage-audit utility breaks when upgrading from Kilo to Liberty.
  I think it should be something that is changed in the database which causing this issue.

  This is the output from our test environment having two volumes which as you can see it fails on the
  iteration of both.

  No handlers could be found for logger "oslo_config.cfg"
  /usr/lib/python2.7/dist-packages/oslo_db/sqlalchemy/enginefacade.py:241: NotSupportedWarning: Configuration option(s) ['use_tpool'] not supported
    exception.NotSupportedWarning
  2015-11-19 08:50:31.946 23397 ERROR cinder [req-cd131e13-3266-485e-8158-4adcb329a1a3 - - - - -] Exists volume notification failed: Parent instance <Volume at 0x7f48daac13d0> is not bound to a Session; lazy load operation of attribute 'volume_metadata' cannot proceed
  2015-11-19 08:50:31.946 23397 ERROR cinder Traceback (most recent call last):
  2015-11-19 08:50:31.946 23397 ERROR cinder   File "/usr/lib/python2.7/dist-packages/cinder/cmd/volume_usage_audit.py", line 120, in main
  2015-11-19 08:50:31.946 23397 ERROR cinder     'exists', extra_usage_info=extra_info)
  2015-11-19 08:50:31.946 23397 ERROR cinder   File "/usr/lib/python2.7/dist-packages/cinder/volume/utils.py", line 125, in notify_about_volume_usage
  2015-11-19 08:50:31.946 23397 ERROR cinder     usage_info = _usage_from_volume(context, volume, **extra_usage_info)
  2015-11-19 08:50:31.946 23397 ERROR cinder   File "/usr/lib/python2.7/dist-packages/cinder/volume/utils.py", line 75, in _usage_from_volume
  2015-11-19 08:50:31.946 23397 ERROR cinder     metadata=volume_ref.get('volume_metadata'),)
  2015-11-19 08:50:31.946 23397 ERROR cinder   File "/usr/lib/python2.7/dist-packages/oslo_db/sqlalchemy/models.py", line 68, in get
  2015-11-19 08:50:31.946 23397 ERROR cinder     return getattr(self, key, default)
  2015-11-19 08:50:31.946 23397 ERROR cinder   File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/attributes.py", line 237, in __get__
  2015-11-19 08:50:31.946 23397 ERROR cinder     return self.impl.get(instance_state(instance), dict_)
  2015-11-19 08:50:31.946 23397 ERROR cinder   File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/attributes.py", line 578, in get
  2015-11-19 08:50:31.946 23397 ERROR cinder     value = self.callable_(state, passive)
  2015-11-19 08:50:31.946 23397 ERROR cinder   File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/strategies.py", line 502, in _load_for_state
  2015-11-19 08:50:31.946 23397 ERROR cinder     (orm_util.state_str(state), self.key)
  2015-11-19 08:50:31.946 23397 ERROR cinder DetachedInstanceError: Parent instance <Volume at 0x7f48daac13d0> is not bound to a Session; lazy load operation of attribute 'volume_metadata' cannot proceed
  2015-11-19 08:50:31.946 23397 ERROR cinder 
  2015-11-19 08:50:31.950 23397 ERROR cinder [req-cd131e13-3266-485e-8158-4adcb329a1a3 - - - - -] Exists volume notification failed: Parent instance <Volume at 0x7f48daac1450> is not bound to a Session; lazy load operation of attribute 'volume_metadata' cannot proceed
  2015-11-19 08:50:31.950 23397 ERROR cinder Traceback (most recent call last):
  2015-11-19 08:50:31.950 23397 ERROR cinder   File "/usr/lib/python2.7/dist-packages/cinder/cmd/volume_usage_audit.py", line 120, in main
  2015-11-19 08:50:31.950 23397 ERROR cinder     'exists', extra_usage_info=extra_info)
  2015-11-19 08:50:31.950 23397 ERROR cinder   File "/usr/lib/python2.7/dist-packages/cinder/volume/utils.py", line 125, in notify_about_volume_usage
  2015-11-19 08:50:31.950 23397 ERROR cinder     usage_info = _usage_from_volume(context, volume, **extra_usage_info)
  2015-11-19 08:50:31.950 23397 ERROR cinder   File "/usr/lib/python2.7/dist-packages/cinder/volume/utils.py", line 75, in _usage_from_volume
  2015-11-19 08:50:31.950 23397 ERROR cinder     metadata=volume_ref.get('volume_metadata'),)
  2015-11-19 08:50:31.950 23397 ERROR cinder   File "/usr/lib/python2.7/dist-packages/oslo_db/sqlalchemy/models.py", line 68, in get
  2015-11-19 08:50:31.950 23397 ERROR cinder     return getattr(self, key, default)
  2015-11-19 08:50:31.950 23397 ERROR cinder   File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/attributes.py", line 237, in __get__
  2015-11-19 08:50:31.950 23397 ERROR cinder     return self.impl.get(instance_state(instance), dict_)
  2015-11-19 08:50:31.950 23397 ERROR cinder   File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/attributes.py", line 578, in get
  2015-11-19 08:50:31.950 23397 ERROR cinder     value = self.callable_(state, passive)
  2015-11-19 08:50:31.950 23397 ERROR cinder   File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/strategies.py", line 502, in _load_for_state
  2015-11-19 08:50:31.950 23397 ERROR cinder     (orm_util.state_str(state), self.key)
  2015-11-19 08:50:31.950 23397 ERROR cinder DetachedInstanceError: Parent instance <Volume at 0x7f48daac1450> is not bound to a Session; lazy load operation of attribute 'volume_metadata' cannot proceed
  2015-11-19 08:50:31.950 23397 ERROR cinder

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



More information about the Ubuntu-openstack-bugs mailing list