Re: Kickstart hangs on at the end of postinstall

Noam Davida <[email protected]> Fri, 30 Sep 2016 14:26:44 +0000
Newsgroups gmane.linux.redhat.kickstart.general
Message-ID <[email protected]>
--===============1555523064261543366==
Content-Language: en-US
Content-Type: multipart/alternative;
	boundary="_000_1AFBD1E0D76C481998F1F077EDDA2910mellanoxcom_"

--_000_1AFBD1E0D76C481998F1F077EDDA2910mellanoxcom_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Can you use "ps" to see what process is stuck? Strace it and see why it is =
stuck exactly?
What happens if you run the rpm command after install at first boot?
I love using bash -i at post stage and debug my script... Try running the c=
ommand and see what is the output, whats getting in your way.
Also as a workaround, if you can hunt down the nutty pid that, you can kill=
 it in post stage, and hopefully anaconda will finish.

Thanks,
Noam


Sent from my iPhone

On 30 ????? 2016, at 15:47, Jacquet Romain <[email protected]<m=
ailto:[email protected]>> wrote:

Hi Andrew,
    Thank you very much for answer. Yes, I'm logging the post-install with =
"%post --logfile /var/log/ks-post.log". When the installer is stuck I can s=
ee 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 w=
orkaround 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 hav=
e another idea? Is it possible to have a more detailed log of anaconda?

  Best regards.



De : Andrew Simpson [mailto:[email protected]]
Envoy? : jeudi 29 septembre 2016 15:27
? : 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 yo=
u'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 the pos=
t 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 <romain.jacquet@telespazio.=
com<mailto:[email protected]>> wrote:
Hello everybody,
    I'm struggling 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 dae=
mon. 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 stop =
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. D=
o 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 information =
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 a=
re 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 f=
orbidden. Thank you in advance for your cooperation.

Please consider the environment before printing this email.

_______________________________________________
Kickstart-list mailing list
[email protected]<mailto:[email protected]>
https://www.redhat.com/mailman/listinfo/kickstart-list

_______________________________________________
Kickstart-list mailing list
[email protected]<mailto:[email protected]>
https://www.redhat.com/mailman/listinfo/kickstart-list

--_000_1AFBD1E0D76C481998F1F077EDDA2910mellanoxcom_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
</head>
<body dir=3D"auto">
<div>Can you use &quot;ps&quot; to see what process is stuck? Strace it and=
 see why it is stuck exactly?</div>
<div id=3D"AppleMailSignature">What happens if you run the rpm command afte=
r install at first boot?</div>
<div id=3D"AppleMailSignature">I love using bash -i at post stage and debug=
 my script... Try running the command and see what is the output, whats get=
ting in your way.</div>
<div id=3D"AppleMailSignature">Also as a workaround, if you can hunt down t=
he nutty pid that, you can kill it in post stage, and hopefully anaconda wi=
ll finish.</div>
<div id=3D"AppleMailSignature"><br>
</div>
<div id=3D"AppleMailSignature">Thanks,</div>
<div id=3D"AppleMailSignature">Noam</div>
<div id=3D"AppleMailSignature"><br>
<br>
Sent from my iPhone</div>
<div><br>
On 30 &#1489;&#1505;&#1508;&#1496;&#1523; 2016, at 15:47, Jacquet Romain &l=
t;<a href=3D"mailto:[email protected]">romain.jacquet@telespazi=
o.com</a>&gt; wrote:<br>
<br>
</div>
<blockquote type=3D"cite">
<div>
<meta name=3D"Generator" content=3D"Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
	{font-family:Batang;
	panose-1:2 3 6 0 0 1 1 1 1 1;}
@font-face
	{font-family:Batang;
	panose-1:2 3 6 0 0 1 1 1 1 1;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
	{font-family:"\@Batang";
	panose-1:2 3 6 0 0 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal-reply;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-family:"Calibri","sans-serif";
	mso-fareast-language:EN-US;}
@page WordSection1
	{size:612.0pt 792.0pt;
	margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
<div class=3D"WordSection1">
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:11.0pt;font-=
family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Hi Andrew,=
<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:11.0pt;font-=
family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">&nbsp;&nbs=
p;&nbsp; Thank you very much for answer. Yes, I&#8217;m logging the post-in=
stall with &#8220;%post --logfile /var/log/ks-post.log&#8221;. When the ins=
taller is stuck
 I can see the ouput in /mnt/sysimage/var/log/ks-post.log. The extract look=
s like:<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D">&nbsp;&nbsp;&nbsp; [&#823=
0;] // very long stuff<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:11.0pt;font-=
family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">&nbsp;&nbs=
p;&nbsp;&nbsp; rpm &#8211;Uv my-daemon-ftp.rpm // faulty RPM<o:p></o:p></sp=
an></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:11.0pt;font-=
family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">&nbsp;&nbs=
p;&nbsp;&nbsp; [&#8230;] // very long stuff again<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D">&nbsp;&nbsp;&nbsp; End of=
 postinstallation // echo at the end the installation</span>
<o:p></o:p></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span><=
/p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:11.0pt;font-=
family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">&nbsp; So =
the daemon installation does not stop the post-installation. Another workar=
ound 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 yo=
u have another idea? Is it possible to have a more detailed log of anaconda=
?<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:11.0pt;font-=
family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp=
;</o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:11.0pt;font-=
family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">&nbsp; Bes=
t regards.<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:11.0pt;font-=
family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp=
;</o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:11.0pt;font-=
family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp=
;</o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:11.0pt;font-=
family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp=
;</o:p></span></p>
<p class=3D"MsoNormal"><b><span style=3D"font-size:10.0pt;font-family:&quot=
;Tahoma&quot;,&quot;sans-serif&quot;">De&nbsp;:</span></b><span style=3D"fo=
nt-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> Andr=
ew Simpson [<a href=3D"mailto:[email protected]">mailto:simpsonar77@gma=
il.com</a>]
<br>
<b>Envoy&eacute;&nbsp;:</b> jeudi 29 septembre 2016 15:27<br>
<b>&Agrave;&nbsp;:</b> Discussion list about Kickstart<br>
<b>Objet&nbsp;:</b> Re: Kickstart hangs on at the end of postinstall<o:p></=
o:p></span></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<p class=3D"MsoNormal">are you logging the post section that you're install=
ing it in?&nbsp; Assuming you're seeing the logs/output and this is the las=
t message, it's probably not hanging on that RPM.&nbsp; It's probably hangi=
ng on the next command in the post section,
 which hasn't been printed out yet. &nbsp;comment out the RPM install &nbsp=
;portion and see what's hanging.&nbsp; If it is indeed hanging on the rpm, =
then there's probably an issue with one of the scriptlets in the rpm spec f=
ile.&nbsp; The were likely be a log of that somewhere
 under /tmp or /var/log/anaconda/<o:p></o:p></p>
</div>
<div>
<p class=3D"MsoNormal"><br clear=3D"all">
<o:p></o:p></p>
<div>
<div>
<div>
<p class=3D"MsoNormal">Andrew Simpson<o:p></o:p></p>
</div>
</div>
</div>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<p class=3D"MsoNormal">On Thu, Sep 29, 2016 at 5:03 AM, Jacquet Romain &lt;=
<a href=3D"mailto:[email protected]" target=3D"_blank">romain.j=
[email protected]</a>&gt; wrote:<o:p></o:p></p>
<div>
<div>
<p class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-a=
lt:auto"><span lang=3D"EN-US">Hello everybody,</span><o:p></o:p></p>
<p class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-a=
lt:auto"><span lang=3D"EN-US">&nbsp;&nbsp;&nbsp; I&#8217;m struggling to fi=
nd a bug caused by a RPM update in the postinstall section. The line looks =
like: &#8220;rpm &#8211;Uvh my-daemon-package&#8221; and update a daemon. I=
&#8217;m
 using a CentOS 6.6 and its anaconda 13.21.229.</span><o:p></o:p></p>
<p class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-a=
lt:auto"><span lang=3D"EN-US">With this line in the kickstart, anaconda nev=
er ends. The only way to stop anaconda is to use the shell in the virtual t=
erminal (Alt&#43;Ctrl&#43;F2) and kill the daemon.
 It is like anaconda is waiting for something to be released. Do you know w=
hat could prevent anaconda from rebooting?</span><o:p></o:p></p>
<p class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-a=
lt:auto"><span lang=3D"EN-US">&nbsp;</span><o:p></o:p></p>
<p class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-a=
lt:auto"><span lang=3D"EN-US">&nbsp;&nbsp; Best regards.</span><o:p></o:p><=
/p>
<p class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-a=
lt:auto"><span lang=3D"EN-US">&nbsp;</span><o:p></o:p></p>
<p class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-a=
lt:auto"><span lang=3D"EN-US">&nbsp;</span><o:p></o:p></p>
<p class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-a=
lt:auto">-- Romain JACQUET --<o:p></o:p></p>
<p class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-a=
lt:auto">IT Infrastructure manager<o:p></o:p></p>
<p class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-a=
lt:auto">Phone : 05 34 35 21 46<o:p></o:p></p>
<p class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-a=
lt:auto">Telespazio France<o:p></o:p></p>
<p class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-a=
lt:auto">26 Avenue JF Champollion
<o:p></o:p></p>
<p class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-a=
lt:auto">B.P.52309<o:p></o:p></p>
<p class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-a=
lt:auto">31023 TOULOUSE Cedex 1 &#8211; France<o:p></o:p></p>
<p class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-a=
lt:auto">&nbsp;<o:p></o:p></p>
</div>
<p class=3D"MsoNormal"><br>
<br>
WARNING: This message contains confidential and/or proprietary information =
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 a=
re 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 fo=
r your cooperation.
<br>
<br>
Please consider the environment before printing this email.<o:p></o:p></p>
</div>
<p class=3D"MsoNormal"><br>
_______________________________________________<br>
Kickstart-list mailing list<br>
<a href=3D"mailto:[email protected]">[email protected]</a><=
br>
<a href=3D"https://www.redhat.com/mailman/listinfo/kickstart-list" target=
=3D"_blank">https://www.redhat.com/mailman/listinfo/kickstart-list</a><o:p>=
</o:p></p>
</div>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</div>
</div>
</blockquote>
<blockquote type=3D"cite">
<div><span>_______________________________________________</span><br>
<span>Kickstart-list mailing list</span><br>
<span><a href=3D"mailto:[email protected]">[email protected]=
m</a></span><br>
<span><a href=3D"https://www.redhat.com/mailman/listinfo/kickstart-list">ht=
tps://www.redhat.com/mailman/listinfo/kickstart-list</a></span></div>
</blockquote>
</body>
</html>

--_000_1AFBD1E0D76C481998F1F077EDDA2910mellanoxcom_--


--===============1555523064261543366==
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
--===============1555523064261543366==--