RE: Kickstart hangs on at the end of postinstall
[email protected] Fri, 30 Sep 2016 14:28:24 +0100
| Newsgroups | gmane.linux.redhat.kickstart.general |
|---|---|
| Message-ID | <OF016F5B65.D0777D27-ON8025803E.004900DF-8025803E.004A02E8@pgl.net> |
This is a multipart message in MIME format. --===============4173222499223550496== Content-Type: multipart/alternative; boundary="=_alternative 004A02E68025803E_=" This is a multipart message in MIME format. --=_alternative 004A02E68025803E_= Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable Jacquet >From the limited info supplied - sounds like an rpm install is failing/hanging when being executed during kickstart process You have tried running this outside of kickstart and are you satisfied that in isolation this rpm install works These are some questions that i might ask myself in your situation ... hope it helps Have you tried using yum instead of rpm http://www.databook.bz/?page_id=3D201 Have other kickstart rpm installs worked or is this the one and only rpm = / rpm failure Have you confirmed that the repo is accessible on first boot - Could you have it local install by downloading it prior to build Is it being run at the correct point ie is this running before its prerequisites are up and running Does this rpm require both x86 and x64 versions to be installed together Does this rpm require addition rpms - see yum Does this rpm require addition rpms that need to be downgraded before it can be installed Have you got any more logging - can you execute via a script with logging Regards, Andrew Pitcairn-Hill PLEASE ENSURE ANY COMPANY LOGOS/ PICTURES ARE REMOVED ON YOUR REPLIES AS THESE EMAILS ARE BLOCKED BY OUR SYSTEMS P Please don't print this email unless you really need too From: Jacquet Romain <[email protected]> To: Discussion list about Kickstart <[email protected]> Date: 30/09/16 13:47 Subject: RE: Kickstart hangs on at the end of postinstall Sent by: <[email protected]> Hi Andrew, Thank you very much for answer. Yes, I?m logging the post-install wit= h ?%post --logfile /var/log/ks-post.log?. When the installer is stuck I can= see the ouput in /mnt/sysimage/var/log/ks-post.log. The extract looks like: [?] // very long stuff rpm ?Uv my-daemon-ftp.rpm // faulty RPM [?] // very long stuff again End of postinstallation // echo at the end the installation So the daemon installation does not stop the post-installation. Another= workaround is to stop the daemon just after the update in the kickstart file. So it is like anaconda cannot restart with the daemon running. Do you have another idea? Is it possible to have a more detailed log of anaconda? Best regards. De : Andrew Simpson [mailto:[email protected]] Envoy=E9 : jeudi 29 septembre 2016 15:27 =C0 : Discussion list about Kickstart Objet : Re: Kickstart hangs on at the end of postinstall are you logging the post section that you're installing it in? Assuming you're seeing the logs/output and this is the last message, it's probably= not hanging on that RPM. It's probably hanging on the next command in th= e post section, which hasn't been printed out yet. comment out the RPM install portion and see what's hanging. If it is indeed hanging on the rpm, then there's probably an issue with one of the scriptlets in the rpm= spec file. The were likely be a log of that somewhere under /tmp or /var/log/anaconda/ Andrew Simpson On Thu, Sep 29, 2016 at 5:03 AM, Jacquet Romain < [email protected]> wrote: Hello everybody, I?m struggling to find a bug caused by a RPM update in the postinstal= l section. The line looks like: ?rpm ?Uvh my-daemon-package? and update a daemon. I?m using a CentOS 6.6 and its anaconda 13.21.229. With this line in the kickstart, anaconda never ends. The only way to sto= p anaconda is to use the shell in the virtual terminal (Alt+Ctrl+F2) and kill the daemon. It is like anaconda is waiting for something to be released. Do you know what could prevent anaconda from rebooting? Best regards. -- Romain JACQUET -- IT Infrastructure manager Phone : 05 34 35 21 46 Telespazio France 26 Avenue JF Champollion B.P.52309 31023 TOULOUSE Cedex 1 ? France WARNING: This message contains confidential and/or proprietary informatio= n which may be subject to privilege or immunity and which is intended for the use of its addressee only. Should you receive this message in error, you are kindly requested to inform the sender and to definitively remove it from any paper or electronic format. Any other use of this e-mail is strictly forbidden. Thank you in advance for your cooperation. Please consider the environment before printing this email. _______________________________________________ Kickstart-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/kickstart-list _______________________________________________ Kickstart-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/kickstart-list Diligenta Limited (Company No. 5535029) is a subsidiary of Tata Consultan= cy Services Limited. Diligenta Limited is registered in England and Wale= s, has its registered office at Lynch Wood, Peterborough, PE2 6FY and is = authorised and regulated by the Financial Conduct Authority. The information in this e-mail is confidential and may be legally privile= ged. It is intended solely for the intended recipient and access to this = e-mail by anyone else is unauthorised. If you have received this message = in error, please notify us and remove it from your system. Although this = message and any attachments are believed to be free of any virus (or othe= r defect) that might affect any computer system into which it is received= and opened, it is the responsibility of the recipient to ensure that it = is virus free. No responsibility is accepted by Diligenta Limited or Tata= Consultancy Services Limited for any loss or damage in any way arising f= rom its use. Any views or opinions presented are solely those of the auth= or and do not necessarily represent those of Diligenta Limited. Replies t= o this e-mail may be monitored for operational or business reasons. --=_alternative 004A02E68025803E_= Content-Type: text/html; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable <font size=3D1 face=3D"sans-serif">Jacquet</font> <br> <br><font size=3D2 face=3D"sans-serif">From the limited info supplied - s= ounds like an rpm install is failing/hanging when being executed during kicksta= rt process </font> <br><font size=3D2 face=3D"sans-serif">You have tried running this outsid= e of kickstart and are you satisfied that in isolation this rpm install wor= ks</font> <br> <ul> <li><font size=3D2 face=3D"sans-serif">These are some questions that i mi= ght ask myself in your situation ... hope it helps</font></ul> <br><font size=3D2 face=3D"sans-serif">Have you tried using yum instead o= f rpm</font> <br><a href=3D"http://www.databook.bz/?page_id=3D201"><font size=3D2 face= =3D"sans-serif">http://www.databook.bz/?page_id=3D201</font></a> <br> <br><font size=3D2 face=3D"Verdana">Have other kickstart rpm installs wor= ked or is this the one and only rpm / rpm failure</font> <br> <br><font size=3D2 face=3D"Verdana">Have you confirmed that the repo is a= ccessible on first boot - Could you have it local install by downloading it prior to build</font> <br> <br><font size=3D2 face=3D"Verdana">Is it being run at the correct point = ie is this running before its prerequisites are up and running</font> <br> <br><font size=3D2 face=3D"Verdana">Does this rpm require both x86 and x6= 4 versions to be installed together</font> <br> <br><font size=3D2 face=3D"Verdana">Does this rpm require addition rpms -= see yum</font> <br> <br><font size=3D2 face=3D"Verdana">Does this rpm require addition rpms t= hat need to be downgraded before it can be installed</font> <br> <br><font size=3D2 face=3D"Verdana">Have you got any more logging - can y= ou execute via a script with logging</font> <br> <br> <br><font size=3D2 face=3D"Verdana">Regards,</font> <br> <br><font size=3D4 color=3Dblue face=3D"Verdana">Andrew Pitcairn-Hill</fo= nt><font size=3D2 color=3D#008000 face=3D"Verdana"> </font><font size=3D2 face=3D"Verdana"><b><br> </b></font> <br><font size=3D2 face=3D"Arial">PLEASE ENSURE ANY COMPANY LOGOS/ PICTUR= ES ARE REMOVED ON YOUR REPLIES AS THESE EMAILS ARE BLOCKED BY OUR SYSTEMS</f= ont> <br><font size=3D5 color=3D#008000 face=3D"Webdings">P</font><font size= =3D2 color=3D#008000 face=3D"Arial"> </font><font size=3D1 color=3D#= 008000 face=3D"Arial"> Please don't print this email unless you really need too</font> <br> <br> <br> <br> <br><font size=3D1 color=3D#5f5f5f face=3D"sans-serif">From:  = ; </font><font size=3D1 face=3D"sans-serif">Jacquet Romain <romain= [email protected]></font> <br><font size=3D1 color=3D#5f5f5f face=3D"sans-serif">To: = </font><font size=3D1 face=3D"sans-serif">Discussion list about Kickstart <[email protected]></font> <br><font size=3D1 color=3D#5f5f5f face=3D"sans-serif">Date:  = ; </font><font size=3D1 face=3D"sans-serif">30/09/16 13:47</font> <br><font size=3D1 color=3D#5f5f5f face=3D"sans-serif">Subject: &n= bsp; </font><font size=3D1 face=3D"sans-serif">RE: Kickstart hangs on at the end of postinstall</font> <br><font size=3D1 color=3D#5f5f5f face=3D"sans-serif">Sent by: &n= bsp; </font><font size=3D1 face=3D"sans-serif"><kickstart-list= [email protected]></font> <br> <hr noshade> <br> <br> <br><font size=3D2 color=3D#004080 face=3D"Calibri">Hi Andrew,</font> <br><font size=3D2 color=3D#004080 face=3D"Calibri"> Thank y= ou very much for answer. Yes, I’m logging the post-install with “%pos= t --logfile /var/log/ks-post.log”. When the installer is stuck I can see the ou= put in /mnt/sysimage/var/log/ks-post.log. The extract looks like:</font> <br><font size=3D2 color=3D#004080 face=3D"Calibri"> […= ;] // very long stuff</font> <br><font size=3D2 color=3D#004080 face=3D"Calibri"> r= pm –Uv my-daemon-ftp.rpm // faulty RPM</font> <br><font size=3D2 color=3D#004080 face=3D"Calibri"> [= …] // very long stuff again</font> <br><font size=3D2 color=3D#004080 face=3D"Calibri"> End of = postinstallation // echo at the end the installation</font><font size=3D3 face=3D"Times Ne= w Roman"> </font> <br><font size=3D2 color=3D#004080 face=3D"Calibri"> </font> <br><font size=3D2 color=3D#004080 face=3D"Calibri"> So the daemon = installation does not stop the post-installation. Another workaround is to stop the daemon just after the update in the kickstart file. So it is like anacond= a cannot restart with the daemon running. Do you have another idea? Is it possible to have a more detailed log of anaconda?</font> <br><font size=3D2 color=3D#004080 face=3D"Calibri"> </font> <br><font size=3D2 color=3D#004080 face=3D"Calibri"> Best regards.<= /font> <br><font size=3D2 color=3D#004080 face=3D"Calibri"> </font> <br><font size=3D2 color=3D#004080 face=3D"Calibri"> </font> <br><font size=3D2 color=3D#004080 face=3D"Calibri"> </font> <br><font size=3D2 face=3D"Tahoma"><b>De :</b> Andrew Simpson [</font><a = href=3Dmailto:[email protected]><font size=3D2 face=3D"Tahoma">mailto= :[email protected]</font></a><font size=3D2 face=3D"Tahoma">] <b><br> Envoy=E9 :</b> jeudi 29 septembre 2016 15:27<b><br> =C0 :</b> Discussion list about Kickstart<b><br> Objet :</b> Re: Kickstart hangs on at the end of postinstall</font> <br><font size=3D3 face=3D"Times New Roman"> </font> <br><font size=3D3 face=3D"Times New Roman">are you logging the post sect= ion that you're installing it in? Assuming you're seeing the logs/outpu= t and this is the last message, it's probably not hanging on that RPM. &nbs= p;It's probably hanging on the next command in the post section, which hasn't been printed out yet. comment out the RPM install portion and see what's hanging. If it is indeed hanging on the rpm, then there'= s probably an issue with one of the scriptlets in the rpm spec file. = The were likely be a log of that somewhere under /tmp or /var/log/anaconda/</= font> <br> <br><font size=3D3 face=3D"Times New Roman">Andrew Simpson</font> <br><font size=3D3 face=3D"Times New Roman"> </font> <br><font size=3D3 face=3D"Times New Roman">On Thu, Sep 29, 2016 at 5:03 = AM, Jacquet Romain <</font><a href=3Dmailto:[email protected] = target=3D_blank><font size=3D3 color=3Dblue face=3D"Times New Roman"><u>r= [email protected]</u></font></a><font size=3D3 face=3D"Times N= ew Roman">> wrote:</font> <br><font size=3D3 face=3D"Times New Roman">Hello everybody,</font> <br><font size=3D3 face=3D"Times New Roman"> I’m strug= gling to find a bug caused by a RPM update in the postinstall section. The line looks like: “rpm –Uvh my-daemon-package” and update a d= aemon. I’m using a CentOS 6.6 and its anaconda 13.21.229.</font> <br><font size=3D3 face=3D"Times New Roman">With this line in the kicksta= rt, anaconda never ends. The only way to stop anaconda is to use the shell in the virtual terminal (Alt+Ctrl+F2) and kill the daemon. It is like ana= conda is waiting for something to be released. Do you know what could prevent anaconda from rebooting?</font> <br><font size=3D3 face=3D"Times New Roman"> </font> <br><font size=3D3 face=3D"Times New Roman"> Best regards.</f= ont> <br><font size=3D3 face=3D"Times New Roman"> </font> <br><font size=3D3 face=3D"Times New Roman"> </font> <br><font size=3D3 face=3D"Times New Roman">-- Romain JACQUET --</font> <br><font size=3D3 face=3D"Times New Roman">IT Infrastructure manager</fo= nt> <br><font size=3D3 face=3D"Times New Roman">Phone : 05 34 35 21 46</font> <br><font size=3D3 face=3D"Times New Roman">Telespazio France</font> <br><font size=3D3 face=3D"Times New Roman">26 Avenue JF Champollion </fo= nt> <br><font size=3D3 face=3D"Times New Roman">B.P.52309</font> <br><font size=3D3 face=3D"Times New Roman">31023 TOULOUSE Cedex 1 –= ; France</font> <br><font size=3D3 face=3D"Times New Roman"> </font> <br><font size=3D3 face=3D"Times New Roman"><br> <br> WARNING: This message contains confidential and/or proprietary informatio= n which may be subject to privilege or immunity and which is intended for the use of its addressee only. Should you receive this message in error, you are kindly requested to inform the sender and to definitively remove it from any paper or electronic format. Any other use of this e-mail is strictly forbidden. Thank you in advance for your cooperation. <br> <br> Please consider the environment before printing this email.</font> <br><font size=3D3 face=3D"Times New Roman"><br> _______________________________________________<br> Kickstart-list mailing list</font><font size=3D3 color=3Dblue face=3D"Tim= es New Roman"><u><br> </u></font><a href=3D"mailto:[email protected]"><font size=3D3 co= lor=3Dblue face=3D"Times New Roman"><u>[email protected]</u></fon= t></a><font size=3D3 color=3Dblue face=3D"Times New Roman"><u><br> </u></font><a href=3D"https://www.redhat.com/mailman/listinfo/kickstart-l= ist" target=3D_blank><font size=3D3 color=3Dblue face=3D"Times New Roman"= ><u>https://www.redhat.com/mailman/listinfo/kickstart-list</u></font></a> <br><font size=3D3 face=3D"Times New Roman"> </font><tt><font size= =3D2>_______________________________________________<br> Kickstart-list mailing list<br> [email protected]<br> </font></tt><a href=3D"https://www.redhat.com/mailman/listinfo/kickstart-= list"><tt><font size=3D2>https://www.redhat.com/mailman/listinfo/kickstar= t-list</font></tt></a> <br> <table><tr><td bgcolor=3D#ffffff><font color=3D#000000><pre>Diligenta Lim= ited (Company No. 5535029) is a subsidiary of Tata Consultancy Services L= imited. Diligenta Limited is registered in England and Wales, has its re= gistered office at Lynch Wood, Peterborough, PE2 6FY and is authorised an= d regulated by the Financial Conduct Authority. The information in this e-mail is confidential and may be legally privile= ged. It is intended solely for the intended recipient and access to this = e-mail by anyone else is unauthorised. If you have received this message = in error, please notify us and remove it from your system. Although this = message and any attachments are believed to be free of any virus (or othe= r defect) that might affect any computer system into which it is received= and opened, it is the responsibility of the recipient to ensure that it = is virus free. No responsibility is accepted by Diligenta Limited or Tata= Consultancy Services Limited for any loss or damage in any way arising f= rom its use. Any views or opinions presented are solely those of the auth= or and do not necessarily represent those of Diligenta Limited. Replies t= o this e-mail may be monitored for operational or business reasons.</pre>= </font></td></tr></table> --=_alternative 004A02E68025803E_=-- --===============4173222499223550496== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Kickstart-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/kickstart-list --===============4173222499223550496==--