def status_from_state(vm_state, task_state='default'):
    task_map = _STATE_MAP.get(vm_state, dict(default='UNKNOWN_STATE'))
    status = task_map.get(task_state, task_map['default'])
    LOG.debug("Generated %(status)s from vm_state=%(vm_state)s "
              "task_state=%(task_state)s." % locals())
    return status
Configures the pool and keeps the storage service
dataset/ETHPy150Open nii-cloud/dodai-compute/nova/api/openstack/common.py/status_from_state--crossover with--dataset/ETHPy150Open SmokinCaterpillar/pypet/pypet/environment.py/_configure_pool