Celtic survived a storming second-half comeback from Astana to reach the group stages of the Champions League despite a 4-3 defeat in Kazakhstan on Tuesday.
Brendan Rodgers' side had needed a stoppage-time penalty from Moussa Dembele to defeat the same opponents in the third qualifying round last year, but a repeat of such a nervy finish seemed unlikely this time around thanks to a 5-0 first-leg advantage.
Following Kristoffer Ajer's own goal, the third of the tie after Astana twice put through their own net at Celtic Park, any hope of an unlikely comeback from the hosts was seemingly extinguished when Scott Sinclair brilliantly levelled.
However, Astana had their visitors firmly on the back foot with two quickfire strikes through Serikzhan Muzhikov and Patrick Twumasi to open the second period.
Twumasi then took advantage of some awful defending to leave Astana needing three more in just over 20 minutes but they failed to take the numerous opportunities that fell their way and Olivier Ntcham and Leigh Griffiths calmed Celtic fears in the final 10 minutes to secure an 8-4 aggregate win.
One outstanding positive for Rodgers' men was Sinclair's sumptuous curling effort, which took his tally in qualifying to five and his early-season form has helped to ensure the absence of Dembele - out with a hamstring injury - has hardly been felt.
Dembele scored 32 times last season and is a target of Marseille, who confirmed their interest in the striker earlier on Tuesday.
Despite their commanding advantage, Celtic made just two changes from the first leg and, far from resting on their laurels, were the first to threaten in the 16th minute, as Callum McGregor played in Sinclair, whose effort was charged down by Evgeny Postnikov.
McGregor stung the palms of Nenad Eric with a rasping drive soon afterwards, but it was Astana who opened the scoring against the run of play in the 26th minute.
Dmitri Shomko was allowed to advance into space on the left before unleashing a shot that was flying wide until Ajer stuck out a leg and diverted it beyond the wrong-footed Craig Gordon.
Celtic were only briefly behind, however, and it was Sinclair who proved Astana's scourge once more, cutting in on his right foot and curling a fabulous effort beyond Eric into the far corner.
Gordon's fine fingertip save from Marin Anicic's header preserved parity on the night shortly before half-time and Astana came out with renewed vigour following the break, scoring twice within four minutes.
Scott Brown's inadvertent flick-on fell perfectly for Muzhikov to poke home and almost immediately Twumasi was left all alone to nod in Shomko's left-wing cross.
Celtic appeared to have weathered that storm but, after Griffiths blazed over an excellent chance, Astana moved upfield and Twumasi was allowed to run unchallenged into the box and squeeze his effort past Gordon at the near post.
Astana were suddenly rampant again and Gordon had to save from Twumasi, Muzhikov and Ivan Maevski in the space of a minute before Twumasi rifled a gilt-edged opportunity over.
And he would be left to rue that miss as Ntcham and Griffiths finally ended Astana's lingering hopes to confirm Celtic's place in Thursday's draw.
90 - GAL FOR CELTIC! [4-3] pic.twitter.com/Sm2KtTezj1— Celtic Football Club (@celticfc) August 22, 2017
|Messi contract saga not swaying Barcelona boss Valverde|
|Spartak Moscow 1 Maribor 1: Stoppage-time equaliser gives Russians everything to do at Anfield|
|Besiktas 1 Porto 1: Talisca leveller sends hosts through|
|Mkhitaryan questions leave Mourinho riled|
|Jones out of Basel, Brighton games but Mourinho hopeful on Bailly|
|Conte unhappy with Chelsea´s fixture congestion|
|Pepe tells Ronaldo: Come to Besiktas!|
|Clement expects Abraham to shake off back injury for Bournemouth clash|
|Oddo replaces sacked Del Neri at Udinese|
|Bartomeu hints at January Barcelona signings|
|Emery defends ´responsible´ Neymar from lifestyle criticism|
|Del Neri sacked by Udinese|
|Everton striker Niasse facing two-match ban after FA diving charge|
|Lampard excited by English clubs in Champions League|
|Thiago and Coman back for Bayern´s trip to Anderlecht|
|Dybala hails Messi as ´our Maradona´, wants to play with Neymar|
|Sherwood talks up Spurs as potential Champions League winners|
|Borussia Dortmund on the brink as Real Madrid eye progress - Champions League in Opta numbers|
|Hughton hopeful on video assistance after Brighton denied penalty|
|Klopp staying calm over Salah form|
|Griezmann: I don´t regret staying at Atletico|
|Guardiola dismisses Champions League favourites tag|
|Brighton and Hove Albion 2 Stoke City 2: Gross, Izquierdo extend home unbeaten run|
|Rose in contention to face Dortmund as Pochettino denies ´issue´ with defender|
|Benzema knows he can give more – Zidane|
|I´ve fulfilled my dreams already – Klopp has no plans to coach Barcelona|
|Aubameyang will face Tottenham, Bosz confirms|
|Klopp expects Matip to face Chelsea, Lallana return getting ´nearer´|
|Berizzo looking to former Red Aspas to provide lessons for Sevilla|
|Mangala ready to pounce, but realistic on Man City playing time|
|Mendy injury means Aguero or Jesus for Guardiola|
|Guardiola sends ´big hug´ to ´amazing, so gentle´ Pulis|
|Tavecchio quits as head of FIGC, claims board have refused to resign|
|Benedetto facing Argentina World Cup KO with cruciate injury|
|Shape up! Heynckes reveals demand to Bayern star Vidal|
|Ramos sits out Madrid trip to APOEL|
|West Brom sack Pulis after wretched run|
|Lloris wants Spurs to forget title and focus on top four|
|Pogba no Gerrard yet, says Benitez|
|Guardiola will ´kill´ City stars if they get complacent|
|Ibrahimovic: My injury was worse than people know|
|Icardi like a ´raptor pouncing on its prey´, says Spalletti|
|City style suits me and thrills neutrals, says De Bruyne|
|Guardiola ready to risk Kompany for Man City after Stones´ injury|
|Stones can bounce back stronger - Kompany|
|In-form Chelsea have regained hunger - Conte|
|Inter 2 Atalanta 0: Icardi brace sends Spalletti´s side second|
|Giampaolo promises more from ´extraordinary´ Sampdoria|
|Record-breaking Valencia tee up blockbuster Barcelona clash|
|Poor West Ham performance at Watford was to be expected - Moyes|
|We will see what happens in the future - Silva non-committal on Everton rumours|
|Stones can bounce back stronger - Kompany|
|Football needs to do more to combat racism - Boateng|
|Watford 2 West Ham 0: Misery for Moyes on Hammers bow|
|Unlucky 13: Benevento suffer record-breaking defeat|
|Juventus lost composure amid Sampdoria onslaught - Allegri|
|Sampdoria 3 Juventus 2: Champions slip further off the pace after thriller|
|Coleman confirmed as Sunderland boss|
|I was just injured - Belgium´s Nainggolan blasts ´stupid´ claims of feigned ailment|
|Leeds United 2 Middlesbrough 1: Losing streak snapped to ease pressure on Christiansen|
|Hughes backs Giggs for Wales job|
|Madrid confirm Ramos´ broken nose after derby clash|
|Kane wants to retire with Tottenham|
|Mourinho: Man United lacked balance with attacking line-up|
|Pastore not considering PSG exit to help World Cup chances|
|Wenger, Ozil & Sanchez uncertainty affecting Arsenal, says Seaman|
|Silva not surprised by Chelsea, Spurs interest in Richarlison|
|Ancelotti, Conte, Allegri on shortlist to replace Ventura|
|Perth Glory 0 Melbourne Victory 2: Visitors claim first A-League win of season|
|Marcelo unaware of Ramos-Ronaldo rift at Real Madrid|
|Neymar will take PSG´s next penalty - Cavani|
|Ranieri would consider coaching Italy|
|Postecoglou set for decision on Socceroos future|
|Championship Review: Millwall deny sloppy Sunderland, Wolves back on top|
|Simeone rallies around under-fire Griezmann|
|It´s a growth process - Montella optimistic despite Napoli loss|
|Spalletti happy at Inter, tips Ancelotti for Italy job|
|Sarri defends sacked Ventura over Insigne´s Italy snub|