Dooku knew. Its in many books but he also kind of leaves hints to Obi in AotC.
If Dooku knew, then yeah, he must have felt more than a little betrayed when Palpatine told Anakin to kill him. Ouch.
Could you give me an example of those hints he gave to Obi-Wan?