Hartley on the sidelines for qualifying, Gasly in doubt