changed the query for openstack