Ejemplo n.º 1
0
    def _cleanup_admin_resources(self):
        if not self.admin:
            return

        try:
            admin = osclients.Clients(self.admin)
            utils.delete_keystone_resources(admin.keystone())
        except Exception as e:
            LOG.debug(_("Not all resources were cleaned."), exc_info=sys.exc_info())
            LOG.warning(_("Unable to fully cleanup keystone service: %s") % (e.message))
Ejemplo n.º 2
0
    def _cleanup_admin_resources(self):
        if not self.admin:
            return

        try:
            admin = utils.create_openstack_clients(self.admin)
            utils.delete_keystone_resources(admin["keystone"])
        except Exception as e:
            LOG.debug(_("Not all resources were cleaned."),
                      exc_info=sys.exc_info())
            LOG.warning(_('Unable to fully cleanup keystone service: %s') %
                        (e.message))
Ejemplo n.º 3
0
 def _delete_keystone_resources(self):
     kclient = __admin_clients__["keystone"]
     for resource in ["users", "tenants", "services", "roles"]:
         utils.delete_keystone_resources(kclient, resource)