UPSC isn't interested in the ancestors credibility instead they are interested on the credibility of the student.
So if you can crack the exam then there will be no problem with your selection.
I hope my answer helps. All the very best for your future endeavors!
Regular exam updates, QnA, Predictors, College Applications & E-books now on your Mobile