Hunter pets are bugged in spectral realm of Kalecgos. They attack the demon once and stop attacking even if you set them on aggressive. You have to keep pressing pet attack button for it to do any damage. They work fine on the dragon form though.
Other hunters having the same issue:
WoW Forums -> [BUG] Hunter pet attacks on Kalecgos