the attribute 'volume_types' of Group model is incorrectly mapped

Bug #1756867 reported by Fabo Yi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Won't Fix
Undecided
Fabo Yi

Bug Description

Cinder version: stable/pike

In cinder/objects/group.py, the staticmethod Group._from_db_object will evaluate the 'volume_types' variable if the argument 'expected_attrs' contains it. But according to the definition for volume_types in the GroupVolumeTypeMapping model, the 'volume_types' attribute for Group will be mapped to GroupVolumeTypeMapping objects, I think it should be associated with VolumeTypes

On the other hand, the Group object from db api 'group_get' or 'group_get_all' has no attribute "volume_types", thus an exception may be thrown from _from_db_object

Fabo Yi (folkart)
Changed in cinder:
assignee: nobody → Fabo Yi (folkart)
Fabo Yi (folkart)
tags: added: group
tags: added: volumetypes
Changed in cinder:
status: New → In Progress
Fabo Yi (folkart)
summary: - Unable to fetch the attribute 'volume_types' of Group model
+ the attribute 'volume_types' of Group model is incorrectly mapped
Fabo Yi (folkart)
description: updated
Changed in cinder:
status: In Progress → Won't Fix
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on cinder (master)

Change abandoned by Sean McGinnis (<email address hidden>) on branch: master
Review: https://review.opendev.org/554229

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.