[snip]
In every case the upgrade to 4.0 is requiring that all your cluster and all your data center should be at 3.6 compatibility level before the upgrade.From the error you got, it seams that you still have something at 3.5.