Please, add "ejecutando" on if statement:
function consolidate_domain() {
local domain_name=$1
local _ret=
local backing_file=
local command_output=
local parent_backing_file=
local dom_state=
dom_state=$($VIRSH domstate "$domain_name" 2>&1)
if **[ "$dom_state" != "running" ] && [ "$dom_state" != "ejecutando" ];** then
print_v e "Error: Consolidation requires '$domain_name' to be running"
return 1
fi