Oil rose after Iranian officials were reportedly pessimistic over a deal before U.S. midterm elections.