From fxb7-ox9n at dea.spamcon.org Sun Apr 10 18:50:11 2016 From: fxb7-ox9n at dea.spamcon.org (therbur) Date: Sun, 10 Apr 2016 11:50:11 -0700 Subject: Kickstart hangs at dracut-initqueue (CentOS 7.2) Message-ID: <1m7lgbd8ekcnns92tb0q5vkmunfckoe6fo@4ax.com> I have a Cobbler setup that loads a CentOS 5.7 OK. I am trying to add a CentOS 7.2 load. It stops just after the line that shows: ... dracut-initqueue ... Dload Upload Total Spent Left Speed Actually, it doesn't stop, it just pauses a long time, then says dozens of messages like: ... warning: dracut-initqueue timeout - starting timeout scripts Then it comes to a "dracut>" prompt. Doing "journalctl" as it suggests, I don't see anything obvious that would tell me the actual problem. Also tried "cat /proc/cmdline" and it worked, didn't see anything unusual. What is it looking for when it gets to the dracut-initqueue line? What are some possible causes/solutions? From phracek at redhat.com Mon Apr 11 08:35:59 2016 From: phracek at redhat.com (Petr Hracek) Date: Mon, 11 Apr 2016 10:35:59 +0200 Subject: Update %package section Message-ID: <570B61EF.7030008@redhat.com> Hi folks, I would like to ask you on one thing. With pykickstart I read anaconda-ks.cfg file. And I would like to modify %package section from Python script. I would like to delete some of the groups and some of then add it. Can you advice me how to do it? My code snippet looks like: ~~~ from pykickstart.parser import * .... ks = KickstartParser(makeVersion()) ks.readKickstart(system_ks_path) ks.handler.packages.add(packages) ~~~ How can I do it? Greetings -- Petr Hracek Software Engineer Developer Experience Red Hat, Inc Mob: +420777056169 email: phracek at redhat.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From clumens at redhat.com Mon Apr 11 15:14:59 2016 From: clumens at redhat.com (Chris Lumens) Date: Mon, 11 Apr 2016 11:14:59 -0400 Subject: Update %package section In-Reply-To: <570B61EF.7030008@redhat.com> References: <570B61EF.7030008@redhat.com> Message-ID: <20160411151458.GH14884@exeter.usersys.redhat.com> > I would like to ask you on one thing. > With pykickstart I read anaconda-ks.cfg file. > And I would like to modify %package section from Python script. > I would like to delete some of the groups and some of then add it. > > Can you advice me how to do it? > > My code snippet looks like: > > ~~~ > from pykickstart.parser import * > .... > ks = KickstartParser(makeVersion()) > ks.readKickstart(system_ks_path) > ks.handler.packages.add(packages) > ~~~ add just takes a list of strings, right from a kickstart file. You can call that to easily add stuff to the list. For removing, here's what you need to know: * ks.handler.packages.environment holds just a single variable, and it's a string. You can put whatever you want in there. * ks.handler.packages.packageList and .excludedList are just lists of strings. You can put whatever you want in those too. You could also remove something from .packageList by using all the standard python list operations. If you want to simulate the behavior of having "-package" in a kickstart file, you should also add it to .excludedList. This is what add will do if you pass it ["-package"]. * ks.handler.packages.groupList and excludedGrouplist are lists of Group objects. A Group object supports all the usual __lt__, __eq__, __ne__, etc. operations. If you want to remove a group, you should be able to do something like this: x = Group(name="GroupIDontLike") ks.handler.packages.groupList.remove(x) Hope that helps. - Chris From fxb7-ox9n at dea.spamcon.org Thu Apr 14 19:20:26 2016 From: fxb7-ox9n at dea.spamcon.org (therbur) Date: Thu, 14 Apr 2016 12:20:26 -0700 Subject: Kickstart hangs at dracut-initqueue (CentOS 7.2) References: <1m7lgbd8ekcnns92tb0q5vkmunfckoe6fo@4ax.com> Message-ID: therbur wrote: >I have a Cobbler setup that loads a CentOS 5.7 OK. I am trying to add a >CentOS 7.2 load. > >It stops just after the line that shows: > >... dracut-initqueue ... Dload Upload Total Spent Left Speed > >Actually, it doesn't stop, it just pauses a long time, then says dozens of >messages like: > >... warning: dracut-initqueue timeout - starting timeout scripts > >Then it comes to a "dracut>" prompt. Doing "journalctl" as it suggests, I >don't see anything obvious that would tell me the actual problem. Also >tried "cat /proc/cmdline" and it worked, didn't see anything unusual. > >What is it looking for when it gets to the dracut-initqueue line? What >are some possible causes/solutions? No ideas? In case it's helpful, here's the dracut rdsosreport.txt for the problem: http://pastebin.com/uyx8p9bA From f.krecmer at gmail.com Thu Apr 14 19:46:03 2016 From: f.krecmer at gmail.com (Frantisek Krecmer) Date: Thu, 14 Apr 2016 21:46:03 +0200 Subject: Kickstart hangs at dracut-initqueue (CentOS 7.2) In-Reply-To: References: <1m7lgbd8ekcnns92tb0q5vkmunfckoe6fo@4ax.com> Message-ID: Hello, I had similar problem with RHEL7 recently and it was caused by network. I configured wrong NIC during installation and it dropped to dracut shell. Regards, FK On Thu, Apr 14, 2016 at 9:20 PM, therbur wrote: > therbur wrote: > > >I have a Cobbler setup that loads a CentOS 5.7 OK. I am trying to add a > >CentOS 7.2 load. > > > >It stops just after the line that shows: > > > >... dracut-initqueue ... Dload Upload Total Spent Left Speed > > > >Actually, it doesn't stop, it just pauses a long time, then says dozens of > >messages like: > > > >... warning: dracut-initqueue timeout - starting timeout scripts > > > >Then it comes to a "dracut>" prompt. Doing "journalctl" as it suggests, I > >don't see anything obvious that would tell me the actual problem. Also > >tried "cat /proc/cmdline" and it worked, didn't see anything unusual. > > > >What is it looking for when it gets to the dracut-initqueue line? What > >are some possible causes/solutions? > > No ideas? In case it's helpful, here's the dracut rdsosreport.txt for the > problem: > > http://pastebin.com/uyx8p9bA > > > _______________________________________________ > Kickstart-list mailing list > Kickstart-list at redhat.com > https://www.redhat.com/mailman/listinfo/kickstart-list > -------------- next part -------------- An HTML attachment was scrubbed... URL: From fxb7-ox9n at dea.spamcon.org Fri Apr 15 06:43:40 2016 From: fxb7-ox9n at dea.spamcon.org (therbur) Date: Thu, 14 Apr 2016 23:43:40 -0700 Subject: Kickstart hangs at dracut-initqueue (CentOS 7.2) References: <1m7lgbd8ekcnns92tb0q5vkmunfckoe6fo@4ax.com> Message-ID: <1331hbllhp8l98a752ph034qi516mco5rf@4ax.com> Frantisek Krecmer wrote: >Hello, > >I had similar problem with RHEL7 recently and it was caused by network. I >configured wrong NIC during installation and it dropped to dracut shell. > >Regards, >FK Thanks for the response. I don't think it's the NIC - I don't specify anything; there's only one Ethernet port connected, and with CentOS 5.7 it works fine, I think kickstart defaults to whatever link it is using to PXE boot, which is what is needed; I don't know why this aspect would be any different between the distros. At one point I did try the second of the two Ethernet ports on the unit being loaded, and it did not get any further. > >On Thu, Apr 14, 2016 at 9:20 PM, therbur wrote: > >> therbur wrote: >> >> >I have a Cobbler setup that loads a CentOS 5.7 OK. I am trying to add a >> >CentOS 7.2 load. >> > >> >It stops just after the line that shows: >> > >> >... dracut-initqueue ... Dload Upload Total Spent Left Speed >> > >> >Actually, it doesn't stop, it just pauses a long time, then says dozens of >> >messages like: >> > >> >... warning: dracut-initqueue timeout - starting timeout scripts >> > >> >Then it comes to a "dracut>" prompt. Doing "journalctl" as it suggests, I >> >don't see anything obvious that would tell me the actual problem. Also >> >tried "cat /proc/cmdline" and it worked, didn't see anything unusual. >> > >> >What is it looking for when it gets to the dracut-initqueue line? What >> >are some possible causes/solutions? >> >> No ideas? In case it's helpful, here's the dracut rdsosreport.txt for the >> problem: >> >> http://pastebin.com/uyx8p9bA >> >> >> _______________________________________________ >> Kickstart-list mailing list >> Kickstart-list at redhat.com >> https://www.redhat.com/mailman/listinfo/kickstart-list >> From oliver at redhat.com Fri Apr 15 07:14:39 2016 From: oliver at redhat.com (Oliver Haessler) Date: Fri, 15 Apr 2016 03:14:39 -0400 (EDT) Subject: Kickstart hangs at dracut-initqueue (CentOS 7.2) In-Reply-To: <1331hbllhp8l98a752ph034qi516mco5rf@4ax.com> References: <1m7lgbd8ekcnns92tb0q5vkmunfckoe6fo@4ax.com> <1331hbllhp8l98a752ph034qi516mco5rf@4ax.com> Message-ID: <26798147.12287.1460704473789.JavaMail.ohaessle@ohaessle.muc.csb> Is there a way to have a look at the kickstart file? It might be easier than guessing :D ----- Original Message ----- > From: "therbur" > To: Kickstart-list at redhat.com > Sent: Friday, April 15, 2016 8:43:40 AM > Subject: Re: Kickstart hangs at dracut-initqueue (CentOS 7.2) > > Frantisek Krecmer wrote: > > >Hello, > > > >I had similar problem with RHEL7 recently and it was caused by > >network. I > >configured wrong NIC during installation and it dropped to dracut > >shell. > > > >Regards, > >FK > > Thanks for the response. > > I don't think it's the NIC - I don't specify anything; there's only > one > Ethernet port connected, and with CentOS 5.7 it works fine, I think > kickstart defaults to whatever link it is using to PXE boot, which is > what > is needed; I don't know why this aspect would be any different > between the > distros. At one point I did try the second of the two Ethernet ports > on > the unit being loaded, and it did not get any further. > > > > >On Thu, Apr 14, 2016 at 9:20 PM, therbur > >wrote: > > > >> therbur wrote: > >> > >> >I have a Cobbler setup that loads a CentOS 5.7 OK. I am trying > >> >to add a > >> >CentOS 7.2 load. > >> > > >> >It stops just after the line that shows: > >> > > >> >... dracut-initqueue ... Dload Upload Total Spent Left Speed > >> > > >> >Actually, it doesn't stop, it just pauses a long time, then says > >> >dozens of > >> >messages like: > >> > > >> >... warning: dracut-initqueue timeout - starting timeout scripts > >> > > >> >Then it comes to a "dracut>" prompt. Doing "journalctl" as it > >> >suggests, I > >> >don't see anything obvious that would tell me the actual problem. > >> > Also > >> >tried "cat /proc/cmdline" and it worked, didn't see anything > >> >unusual. > >> > > >> >What is it looking for when it gets to the dracut-initqueue line? > >> > What > >> >are some possible causes/solutions? > >> > >> No ideas? In case it's helpful, here's the dracut rdsosreport.txt > >> for the > >> problem: > >> > >> http://pastebin.com/uyx8p9bA > >> > >> > >> _______________________________________________ > >> Kickstart-list mailing list > >> Kickstart-list at redhat.com > >> https://www.redhat.com/mailman/listinfo/kickstart-list > >> > > > _______________________________________________ > Kickstart-list mailing list > Kickstart-list at redhat.com > https://www.redhat.com/mailman/listinfo/kickstart-list > From mmatsuya at redhat.com Fri Apr 15 08:18:48 2016 From: mmatsuya at redhat.com (Masahiro Matsuya) Date: Fri, 15 Apr 2016 17:18:48 +0900 Subject: Kickstart hangs at dracut-initqueue (CentOS 7.2) In-Reply-To: <26798147.12287.1460704473789.JavaMail.ohaessle@ohaessle.muc.csb> References: <1m7lgbd8ekcnns92tb0q5vkmunfckoe6fo@4ax.com> <1331hbllhp8l98a752ph034qi516mco5rf@4ax.com> <26798147.12287.1460704473789.JavaMail.ohaessle@ohaessle.muc.csb> Message-ID: Or, sosreport.txt collected with rd.debug boot option will provide a valuable information to know the root cause. On Fri, Apr 15, 2016 at 4:14 PM, Oliver Haessler wrote: > Is there a way to have a look at the kickstart file? It might be easier > than guessing :D > > ----- Original Message ----- > > From: "therbur" > > To: Kickstart-list at redhat.com > > Sent: Friday, April 15, 2016 8:43:40 AM > > Subject: Re: Kickstart hangs at dracut-initqueue (CentOS 7.2) > > > > Frantisek Krecmer wrote: > > > > >Hello, > > > > > >I had similar problem with RHEL7 recently and it was caused by > > >network. I > > >configured wrong NIC during installation and it dropped to dracut > > >shell. > > > > > >Regards, > > >FK > > > > Thanks for the response. > > > > I don't think it's the NIC - I don't specify anything; there's only > > one > > Ethernet port connected, and with CentOS 5.7 it works fine, I think > > kickstart defaults to whatever link it is using to PXE boot, which is > > what > > is needed; I don't know why this aspect would be any different > > between the > > distros. At one point I did try the second of the two Ethernet ports > > on > > the unit being loaded, and it did not get any further. > > > > > > > >On Thu, Apr 14, 2016 at 9:20 PM, therbur > > >wrote: > > > > > >> therbur wrote: > > >> > > >> >I have a Cobbler setup that loads a CentOS 5.7 OK. I am trying > > >> >to add a > > >> >CentOS 7.2 load. > > >> > > > >> >It stops just after the line that shows: > > >> > > > >> >... dracut-initqueue ... Dload Upload Total Spent Left Speed > > >> > > > >> >Actually, it doesn't stop, it just pauses a long time, then says > > >> >dozens of > > >> >messages like: > > >> > > > >> >... warning: dracut-initqueue timeout - starting timeout scripts > > >> > > > >> >Then it comes to a "dracut>" prompt. Doing "journalctl" as it > > >> >suggests, I > > >> >don't see anything obvious that would tell me the actual problem. > > >> > Also > > >> >tried "cat /proc/cmdline" and it worked, didn't see anything > > >> >unusual. > > >> > > > >> >What is it looking for when it gets to the dracut-initqueue line? > > >> > What > > >> >are some possible causes/solutions? > > >> > > >> No ideas? In case it's helpful, here's the dracut rdsosreport.txt > > >> for the > > >> problem: > > >> > > >> http://pastebin.com/uyx8p9bA > > >> > > >> > > >> _______________________________________________ > > >> Kickstart-list mailing list > > >> Kickstart-list at redhat.com > > >> https://www.redhat.com/mailman/listinfo/kickstart-list > > >> > > > > > > _______________________________________________ > > Kickstart-list mailing list > > Kickstart-list at redhat.com > > https://www.redhat.com/mailman/listinfo/kickstart-list > > > > _______________________________________________ > Kickstart-list mailing list > Kickstart-list at redhat.com > https://www.redhat.com/mailman/listinfo/kickstart-list > -------------- next part -------------- An HTML attachment was scrubbed... URL: From fxb7-ox9n at dea.spamcon.org Sat Apr 16 07:39:04 2016 From: fxb7-ox9n at dea.spamcon.org (therbur) Date: Sat, 16 Apr 2016 00:39:04 -0700 Subject: Kickstart hangs at dracut-initqueue (CentOS 7.2) References: <1m7lgbd8ekcnns92tb0q5vkmunfckoe6fo@4ax.com> <1331hbllhp8l98a752ph034qi516mco5rf@4ax.com> <26798147.12287.1460704473789.JavaMail.ohaessle@ohaessle.muc.csb> Message-ID: Oliver Haessler wrote: >Is there a way to have a look at the kickstart file? It might be easier than guessing :D Yep. PEBKAC. Kickstart was bad. I know I checked it at some point, but didn't check it after updating some snippets. Fixed - "cobbler profile getks" shows a good kickstart file instead of error output, and now I can PXE-load the unit just fine. > >----- Original Message ----- >> From: "therbur" >> To: Kickstart-list at redhat.com >> Sent: Friday, April 15, 2016 8:43:40 AM >> Subject: Re: Kickstart hangs at dracut-initqueue (CentOS 7.2) >> >> Frantisek Krecmer wrote: >> >> >Hello, >> > >> >I had similar problem with RHEL7 recently and it was caused by >> >network. I >> >configured wrong NIC during installation and it dropped to dracut >> >shell. >> > >> >Regards, >> >FK >> >> Thanks for the response. >> >> I don't think it's the NIC - I don't specify anything; there's only >> one >> Ethernet port connected, and with CentOS 5.7 it works fine, I think >> kickstart defaults to whatever link it is using to PXE boot, which is >> what >> is needed; I don't know why this aspect would be any different >> between the >> distros. At one point I did try the second of the two Ethernet ports >> on >> the unit being loaded, and it did not get any further. >> >> > >> >On Thu, Apr 14, 2016 at 9:20 PM, therbur >> >wrote: >> > >> >> therbur wrote: >> >> >> >> >I have a Cobbler setup that loads a CentOS 5.7 OK. I am trying >> >> >to add a >> >> >CentOS 7.2 load. >> >> > >> >> >It stops just after the line that shows: >> >> > >> >> >... dracut-initqueue ... Dload Upload Total Spent Left Speed >> >> > >> >> >Actually, it doesn't stop, it just pauses a long time, then says >> >> >dozens of >> >> >messages like: >> >> > >> >> >... warning: dracut-initqueue timeout - starting timeout scripts >> >> > >> >> >Then it comes to a "dracut>" prompt. Doing "journalctl" as it >> >> >suggests, I >> >> >don't see anything obvious that would tell me the actual problem. >> >> > Also >> >> >tried "cat /proc/cmdline" and it worked, didn't see anything >> >> >unusual. >> >> > >> >> >What is it looking for when it gets to the dracut-initqueue line? >> >> > What >> >> >are some possible causes/solutions? >> >> >> >> No ideas? In case it's helpful, here's the dracut rdsosreport.txt >> >> for the >> >> problem: >> >> >> >> http://pastebin.com/uyx8p9bA >> >> >> >> >> >> _______________________________________________ >> >> Kickstart-list mailing list >> >> Kickstart-list at redhat.com >> >> https://www.redhat.com/mailman/listinfo/kickstart-list >> >> >> >> >> _______________________________________________ >> Kickstart-list mailing list >> Kickstart-list at redhat.com >> https://www.redhat.com/mailman/listinfo/kickstart-list >> From fxb7-ox9n at dea.spamcon.org Sat Apr 16 07:40:49 2016 From: fxb7-ox9n at dea.spamcon.org (therbur) Date: Sat, 16 Apr 2016 00:40:49 -0700 Subject: Kickstart hangs at dracut-initqueue (CentOS 7.2) References: <1m7lgbd8ekcnns92tb0q5vkmunfckoe6fo@4ax.com> <1331hbllhp8l98a752ph034qi516mco5rf@4ax.com> <26798147.12287.1460704473789.JavaMail.ohaessle@ohaessle.muc.csb> Message-ID: <11r3hb5tdk5penan7vhm2cjs38nevhaov3@4ax.com> Masahiro Matsuya wrote: >Or, sosreport.txt collected with rd.debug boot option will provide a >valuable information to know the root cause. Thanks - reviewing that voluminous output gave me the clue that maybe my kickstart was bad, since it didn't seem to know where the repo was - after fixing my Cobbler snippets so the kickstart is good, it works fine. > >On Fri, Apr 15, 2016 at 4:14 PM, Oliver Haessler wrote: > >> Is there a way to have a look at the kickstart file? It might be easier >> than guessing :D >> >> ----- Original Message ----- >> > From: "therbur" >> > To: Kickstart-list at redhat.com >> > Sent: Friday, April 15, 2016 8:43:40 AM >> > Subject: Re: Kickstart hangs at dracut-initqueue (CentOS 7.2) >> > >> > Frantisek Krecmer wrote: >> > >> > >Hello, >> > > >> > >I had similar problem with RHEL7 recently and it was caused by >> > >network. I >> > >configured wrong NIC during installation and it dropped to dracut >> > >shell. >> > > >> > >Regards, >> > >FK >> > >> > Thanks for the response. >> > >> > I don't think it's the NIC - I don't specify anything; there's only >> > one >> > Ethernet port connected, and with CentOS 5.7 it works fine, I think >> > kickstart defaults to whatever link it is using to PXE boot, which is >> > what >> > is needed; I don't know why this aspect would be any different >> > between the >> > distros. At one point I did try the second of the two Ethernet ports >> > on >> > the unit being loaded, and it did not get any further. >> > >> > > >> > >On Thu, Apr 14, 2016 at 9:20 PM, therbur >> > >wrote: >> > > >> > >> therbur wrote: >> > >> >> > >> >I have a Cobbler setup that loads a CentOS 5.7 OK. I am trying >> > >> >to add a >> > >> >CentOS 7.2 load. >> > >> > >> > >> >It stops just after the line that shows: >> > >> > >> > >> >... dracut-initqueue ... Dload Upload Total Spent Left Speed >> > >> > >> > >> >Actually, it doesn't stop, it just pauses a long time, then says >> > >> >dozens of >> > >> >messages like: >> > >> > >> > >> >... warning: dracut-initqueue timeout - starting timeout scripts >> > >> > >> > >> >Then it comes to a "dracut>" prompt. Doing "journalctl" as it >> > >> >suggests, I >> > >> >don't see anything obvious that would tell me the actual problem. >> > >> > Also >> > >> >tried "cat /proc/cmdline" and it worked, didn't see anything >> > >> >unusual. >> > >> > >> > >> >What is it looking for when it gets to the dracut-initqueue line? >> > >> > What >> > >> >are some possible causes/solutions? >> > >> >> > >> No ideas? In case it's helpful, here's the dracut rdsosreport.txt >> > >> for the >> > >> problem: >> > >> >> > >> http://pastebin.com/uyx8p9bA >> > >> >> > >> >> > >> _______________________________________________ >> > >> Kickstart-list mailing list >> > >> Kickstart-list at redhat.com >> > >> https://www.redhat.com/mailman/listinfo/kickstart-list >> > >> >> > >> > >> > _______________________________________________ >> > Kickstart-list mailing list >> > Kickstart-list at redhat.com >> > https://www.redhat.com/mailman/listinfo/kickstart-list >> > >> >> _______________________________________________ >> Kickstart-list mailing list >> Kickstart-list at redhat.com >> https://www.redhat.com/mailman/listinfo/kickstart-list >>