kenmore gas range

My oven ignitor glows red, but the oven will not light. Could light before by bumping the safety valve. I have the ignitor out of the oven with no electric supplied to it. The ignitor test open. Is the ignitor or the safety valve bad. The safety valve test closed when disconnected.