I managed to solved the issue. The thing was our DHCP gateway which is a Fortigate is seen by clearpass sending requests, this is on the same network as clearpass is. Clearpass was denying the Fortigate IP when I checked on the event logs. I just added the IP to the devices tab and then it worked.