code used in openstack