probably retrieve attribute failed from driver layer when batch delete volumes

Bug #1626499 reported by TommyLike
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Incomplete
Undecided
Unassigned

Bug Description

When use rally (concurrency 5) to test volume's batch delete API will probably lead to error from the driver layer:

## the code line where error happened:/cinder/volume/drivers/huawei/huawei_utils.py:#93

metadata = volume.get('volume_admin_metadata',[])(this function try to retrive volume's attribute which is passed from cinder-volume)

## the direct error message:

DetachedInstanceError: Parent instance <volume at 07f3fda3d4f90> is not bound to a Session:lazy load operation of attribute 'volume_admin_metadata' cannot procced

detail message can be found in the attach files.

Revision history for this message
TommyLike (hu-husheng) wrote :
description: updated
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

Fix proposed to branch: master
Review: https://review.openstack.org/374801

Changed in cinder:
assignee: nobody → Michal Dulko (michal-dulko-f)
status: New → In Progress
Revision history for this message
Michal Dulko (michal-dulko-f) wrote :

Can you check out if solution provided by my patch solves the issue?

Revision history for this message
TommyLike (hu-husheng) wrote :

hi dulko,amazing speed,I will have a try as soon as I back to office

Revision history for this message
TommyLike (hu-husheng) wrote :

this is error after the modification this morning,it seems the same as before

Revision history for this message
Michal Dulko (michal-dulko-f) wrote :

It's not the same error. Now the traceback goes through initialize_connection. :)

Revision history for this message
Michal Dulko (michal-dulko-f) wrote :

Please check out newest patchset. This isn't a way of fixing it correctly, but I want to make sure this is the direction where the cause of the bug is located. Thanks!

Revision history for this message
TommyLike (hu-husheng) wrote :

@dulko, shame on me.I will check it tomorrow morning

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on cinder (master)

Change abandoned by Michal Dulko (<email address hidden>) on branch: master
Review: https://review.openstack.org/374801
Reason: According to rpodolyaka's post on openstack-dev, this is just a workaround an not a correct way to fix this bug. We need to find more generic solution, and I'll work on that through Ocata cycle.

[1] http://lists.openstack.org/pipermail/openstack-dev/2016-September/104857.html

Revision history for this message
Sean McGinnis (sean-mcginnis) wrote : Bug Assignee Expired

Unassigning due to no activity for > 6 months.

Changed in cinder:
assignee: Michal Dulko (michal-dulko-f) → nobody
Revision history for this message
Matt Riedemann (mriedem) wrote :

Bug 1640920 could be a similar issue.

Revision history for this message
Matt Riedemann (mriedem) wrote :

Marking as incomplete since I'm not sure if this is still an issue.

Changed in cinder:
status: In Progress → Incomplete
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.