'Create a volume object.'

@staticmethod
def _create_volume(display_name='test_volume', display_description='this    is    a    test    volume', status='available', size=1, project_id=fake.PROJECT_ID, attach_status=fields.VolumeAttachStatus.DETACHED):

    vol = {}
    vol['host'] = 'fake_host'
    vol['size'] = size
    vol['user_id'] = fake.USER_ID
    vol['project_id'] = project_id
    vol['status'] = status
    vol['display_name'] = display_name
    vol['display_description'] = display_description
    vol['attach_status'] = attach_status
    vol['availability_zone'] = 'fake_zone'
    return db.volume_create(context.get_admin_context(), vol)['id']
