In general relativity the light is assumed to propagate in the vacuum along null geodesic in a pseudo-Riemannian manifold. Besides the geodesics principle there exists the Fermat's principle for stationary gravity fields that light rays follow the path of stationary length with respect to variations of the path. It gives the same results as principle of stationary integral of energy of the light particle that applies also to non-stationary gravity fields, in which motion of the light particle is free. The difference of solutions for Gödel space-time is counterexample to the identity of Fermat's and geodesics principles conjecture.