'Returns all the storage groups for a particular volume.
:param array: the array serial number
:param device_id: the volume device id
:returns: storagegroup_list'

def get_storage_groups_from_volume(self, array, device_id):

    sg_list = []
    vol = self.get_volume(array, device_id)
    if (vol and vol.get('storageGroupId')):
        sg_list = vol['storageGroupId']
    num_storage_groups = len(sg_list)
    LOG.debug('There    are    %(num)d    storage    groups    associated    with    volume    %(deviceId)s.', {'num': num_storage_groups, 'deviceId': device_id})
    return sg_list
