detect error for openstack