From co55-sy1t at dea.spamcon.org Fri Mar 4 08:27:53 2011 From: co55-sy1t at dea.spamcon.org (whitivery) Date: Fri, 04 Mar 2011 00:27:53 -0800 Subject: Cannot %include in CentOS 5.5 kickstart Message-ID: I've previously used includes in CentOS 4.4 and they worked fine. But in CentOS 5.5, trying to specify a driver disk via an include does not work. If I instead specify it directly, it loads fine. When it fails (because it can't see the disk drive - needs the driver disk to see the hard disk), in Console 2 I can see that /tmp/drvdisk exists and has the line I wrote to it. I see nothing that looks wrong in any log or kickstart file/fragment in /tmp. Any ideas? Here's my complete kickstart to show/test this: # Minimal Kickstart test for CentOS 5.5 to show %include problem url --url=http://10.0.4.157/cblr/links/CentOS5.5-i386 text lang en_US.UTF-8 keyboard us timezone --utc America/New_York install bootloader --location=mbr clearpart --all --initlabel network --device eth0 --bootproto dhcp firewall --disabled selinux --disabled rootpw --iscrypted \$1\$x6z.qvwE\$7Zg9g1rCEgvOBoA7Oo/HF1 zerombr authconfig --useshadow --enablemd5 part /boot --fstype ext3 --size 100 --asprimary part / --fstype ext3 --size 1 --grow --asprimary part /var --fstype ext3 --size 10000 part swap --recommended # This does not work %include /tmp/drvdisk # This works #driverdisk --source=nfs:10.0.4.157:/srv/cobbler/RHEL5.5_x86_402_409_410_DD.img %packages @base @core %pre --erroronfail echo "driverdisk --source=nfs:10.0.4.157:/srv/cobbler/RHEL5.5_x86_402_409_410_DD.img" > /tmp/drvdisk (end of kickstart file) From Matthew.Richards at contentkeeper.com Thu Mar 17 06:41:44 2011 From: Matthew.Richards at contentkeeper.com (Matthew Richards) Date: Thu, 17 Mar 2011 17:41:44 +1100 Subject: Is it possible to set the installation display mode with the use of an %include and %pre? Message-ID: Is it possible to set the installation display mode with the use of an %include command and accompanying commands in the %pre section? I would like to choose to perform the install in either 'text' or 'graphical' mode depending upon the system hardware. My attempts to do this so far have failed and it appears that the installation display mode, which defaults to graphical as you'd know, cannot be set in the manner that I have described. I have the following %include at the top of my kickstart file: %include /tmp/ks-display-mode ....and in my %pre section I have: %pre #--- If the system arch is x86_64 and it contains a Silicon Motion, Inc. SM712 LynxEM+ video adapter then set the install mode to text, otherwise set it to graphical. echo "graphical" > /tmp/ks-display-mode if [ "$(uname -i)" = "x86_64" ] ; then if $(lspci | grep -q "VGA compatible controller: Silicon Motion, Inc. SM712 LynxEM+") ; then echo "text" > /tmp/ks-display-mode fi fi A quick check of the /tmp/ks-display-mode file during installation shows that the word 'text' is being written to the file. Any suggestions? From clumens at redhat.com Thu Mar 17 13:47:26 2011 From: clumens at redhat.com (Chris Lumens) Date: Thu, 17 Mar 2011 09:47:26 -0400 Subject: Is it possible to set the installation display mode with the use of an %include and %pre? In-Reply-To: References: Message-ID: <20110317134726.GU1890@exeter.usersys.redhat.com> > Is it possible to set the installation display mode with the use of an %include > command and accompanying commands in the %pre section? > > I would like to choose to perform the install in either 'text' or 'graphical' > mode depending upon the system hardware. > > My attempts to do this so far have failed and it appears that the installation > display mode, which defaults to graphical as you'd know, cannot be set in the > manner that I have described. It will be possible to do this in F15, but not in any previous release. The reason for this is that the text/graphical/cmdline commands (along with a bunch of others) get processed by the initial text stage of anaconda known as the loader. This is written in C and had a completely different kickstart file parser, one that did not understand %include. For F15, I have switched to embedding pykickstart into the loader so any command should be able to be used in an %include. - Chris From Matthew.Richards at contentkeeper.com Fri Mar 18 00:04:14 2011 From: Matthew.Richards at contentkeeper.com (Matthew Richards) Date: Fri, 18 Mar 2011 11:04:14 +1100 Subject: Is it possible to set the installation display mode with the use of an %include and %pre? Message-ID: Ok, thanks for the explanation Chris. From co55-sy1t at dea.spamcon.org Fri Mar 18 06:41:53 2011 From: co55-sy1t at dea.spamcon.org (whitivery) Date: Thu, 17 Mar 2011 23:41:53 -0700 Subject: Cannot %include in CentOS 5.5 kickstart References: Message-ID: <7su5o69kbhatoa60nuh0gmsf8lusaqu23g@4ax.com> whitivery wrote: >I've previously used includes in CentOS 4.4 and they worked fine. > >But in CentOS 5.5, trying to specify a driver disk via an include >does not work. > >If I instead specify it directly, it loads fine. > >When it fails (because it can't see the disk drive - needs the >driver disk to see the hard disk), in Console 2 I can see that >/tmp/drvdisk exists and has the line I wrote to it. I see >nothing that looks wrong in any log or kickstart file/fragment in >/tmp. > >Any ideas? Here's my complete kickstart to show/test this: > > ># Minimal Kickstart test for CentOS 5.5 to show %include problem > >url --url=http://10.0.4.157/cblr/links/CentOS5.5-i386 >text >lang en_US.UTF-8 >keyboard us > >timezone --utc America/New_York >install >bootloader --location=mbr >clearpart --all --initlabel >network --device eth0 --bootproto dhcp >firewall --disabled >selinux --disabled > >rootpw --iscrypted \$1\$x6z.qvwE\$7Zg9g1rCEgvOBoA7Oo/HF1 >zerombr >authconfig --useshadow --enablemd5 > >part /boot --fstype ext3 --size 100 --asprimary >part / --fstype ext3 --size 1 --grow --asprimary >part /var --fstype ext3 --size 10000 >part swap --recommended > > ># This does not work >%include /tmp/drvdisk > ># This works >#driverdisk >--source=nfs:10.0.4.157:/srv/cobbler/RHEL5.5_x86_402_409_410_DD.img > > >%packages >@base >@core > >%pre --erroronfail > >echo "driverdisk >--source=nfs:10.0.4.157:/srv/cobbler/RHEL5.5_x86_402_409_410_DD.img" > >/tmp/drvdisk > >(end of kickstart file) Follow-up: I can %include other kickstart bits just fine, such as the partitioning commands. I also tried using HTTP instead of NFS, with the same results. I cannot think of anything else to try. Anaconda/kickstart seems to be broken here. I did a web search and didn't run across anything indicating that this is a known bug. From turbo2007 at gmail.com Fri Mar 18 07:13:11 2011 From: turbo2007 at gmail.com (Mike Partain) Date: Fri, 18 Mar 2011 08:13:11 +0100 Subject: New to Kickstart, trying to add custom packages to DVD Repo. Message-ID: <78578CB7-2814-4C58-85EB-25FC6BAFBE15@gmail.com> Hello all and thanks for taking the time to read my question/post. I am wondering if it is possible to add a custom made RPM to the DVD repository and install it through the %packages portion on RHEL Server 5.4. I have tried simply copying the files from the CD during the post and had some trouble. In looking at the packages section it seemed that it would be easier to add it to the Server folder and run createrepo /media/cdrom/Server. Thanks for any assistance! Mike Partain From Pablo.Iranzo at redhat.com Fri Mar 18 07:22:52 2011 From: Pablo.Iranzo at redhat.com (=?utf-8?Q?Pablo_Iranzo_G=C3=B3mez?=) Date: Fri, 18 Mar 2011 03:22:52 -0400 (EDT) Subject: New to Kickstart, trying to add custom packages to DVD Repo. In-Reply-To: <78578CB7-2814-4C58-85EB-25FC6BAFBE15@gmail.com> Message-ID: <25424381.6321.1300432980859.JavaMail.iranzo@iranzo.usersys.redhat.com> Hi ----- Mensaje original ----- > De: "Mike Partain" > Para: kickstart-list at redhat.com > Enviados: Viernes, 18 de Marzo 2011 8:13:11 > Asunto: New to Kickstart, trying to add custom packages to DVD Repo. > Hello all and thanks for taking the time to read my question/post. > > I am wondering if it is possible to add a custom made RPM to the DVD > repository and install it through the %packages portion on RHEL Server > 5.4. I have tried simply copying the files from the CD during the post > and had some trouble. In looking at the packages section it seemed > that it would be easier to add it to the Server folder and run > createrepo /media/cdrom/Server. What I do is to put them in another folder just to make it clear what are DVD packages and custom ones (easier to do maintenance). And yes, putting packages in server is just createrepo, but that must be executed on a system running rhel 5.x. cd /media/crom/Server createrepo --update -g repodata/comps-rhel5-server-core.xml Regards Pablo -- Pablo Iranzo G?mez (Pablo.Iranzo at redhat.com) Senior Global Profesional Services Consultant (RHCA, RHCSS, RHCDS, RHCVA, RHCE, RHCSP) #804006196923216 Phone: +34 645 01 01 49 (CET/CEST) GnuPG KeyID: 0xFAD3CF0D From turbo2007 at gmail.com Fri Mar 18 10:03:08 2011 From: turbo2007 at gmail.com (Mike Partain) Date: Fri, 18 Mar 2011 11:03:08 +0100 Subject: New to Kickstart, trying to add custom packages to DVD Repo. In-Reply-To: <25424381.6321.1300432980859.JavaMail.iranzo@iranzo.usersys.redhat.com> References: <25424381.6321.1300432980859.JavaMail.iranzo@iranzo.usersys.redhat.com> Message-ID: Excellent Tip! This worked for me! My setup i am using MAC OSX and VMWare Fusion for testing purposes. I have my custom kickstart on the CD and I have modified the isolinux.cfg to append "ks=cdrom:/ks.cfg" to the default linux and disabled the prompt. This kicks off the custom install with my ks.cfg file. I did a install of RHEL Server to a VM and mounted the RHEL Server ISO. Once mounted i copied the contents of the DVD to /media/rhel. Once copied i created an addons directory inside the Server folder (/media/rhel/Server/addons). I copied isomaster and the supporting xdg-utils rpm to the addons folder. At this point o ran the command you provided: > createrepo --update -g repodata/comps-rhel5-server-core.xml . This generated new files in the repodata folder. I copied these files and the addons folder to the ISO (using MagicISO on Windows) and saved the ISO. Back to the VM, i created a new VM and configured it to boot the new custom ISO and once installation is completed i logged in and isomaster is installed. thank you very much for the excellent support and assistance. On Mar 18, 2011, at 8:22 AM, Pablo Iranzo G?mez wrote: > Hi > > ----- Mensaje original ----- >> De: "Mike Partain" >> Para: kickstart-list at redhat.com >> Enviados: Viernes, 18 de Marzo 2011 8:13:11 >> Asunto: New to Kickstart, trying to add custom packages to DVD Repo. >> Hello all and thanks for taking the time to read my question/post. >> >> I am wondering if it is possible to add a custom made RPM to the DVD >> repository and install it through the %packages portion on RHEL Server >> 5.4. I have tried simply copying the files from the CD during the post >> and had some trouble. In looking at the packages section it seemed >> that it would be easier to add it to the Server folder and run >> createrepo /media/cdrom/Server. > > What I do is to put them in another folder just to make it clear what are DVD packages and custom ones (easier to do maintenance). > > And yes, putting packages in server is just createrepo, but that must be executed on a system running rhel 5.x. > > cd /media/crom/Server > createrepo --update -g repodata/comps-rhel5-server-core.xml > > > Regards > Pablo > -- > > Pablo Iranzo G?mez (Pablo.Iranzo at redhat.com) > Senior Global Profesional Services Consultant (RHCA, RHCSS, RHCDS, RHCVA, RHCE, RHCSP) #804006196923216 > Phone: +34 645 01 01 49 (CET/CEST) > GnuPG KeyID: 0xFAD3CF0D > > > _______________________________________________ > Kickstart-list mailing list > Kickstart-list at redhat.com > https://www.redhat.com/mailman/listinfo/kickstart-list From clumens at redhat.com Fri Mar 18 13:49:01 2011 From: clumens at redhat.com (Chris Lumens) Date: Fri, 18 Mar 2011 09:49:01 -0400 Subject: Cannot %include in CentOS 5.5 kickstart In-Reply-To: <7su5o69kbhatoa60nuh0gmsf8lusaqu23g@4ax.com> References: <7su5o69kbhatoa60nuh0gmsf8lusaqu23g@4ax.com> Message-ID: <20110318134901.GX1890@exeter.usersys.redhat.com> > ># This does not work > >%include /tmp/drvdisk > > > ># This works > >#driverdisk > >--source=nfs:10.0.4.157:/srv/cobbler/RHEL5.5_x86_402_409_410_DD.img My explanation about the graphical/text commands applies to driverdisk as well. It's processed by loader, and loader does not understand %include. The good news is this is fixed in F15 (therefore, RHEL7 - yow!), the bad news is I'm not going to be able to backport this fix to RHEL5 or RHEL6. It's just too invasive. - Chris From co55-sy1t at dea.spamcon.org Sat Mar 19 04:44:58 2011 From: co55-sy1t at dea.spamcon.org (whitivery) Date: Fri, 18 Mar 2011 21:44:58 -0700 Subject: Cannot %include in CentOS 5.5 kickstart References: <7su5o69kbhatoa60nuh0gmsf8lusaqu23g@4ax.com> <20110318134901.GX1890@exeter.usersys.redhat.com> Message-ID: Chris Lumens wrote: >> ># This does not work >> >%include /tmp/drvdisk >> > >> ># This works >> >#driverdisk >> >--source=nfs:10.0.4.157:/srv/cobbler/RHEL5.5_x86_402_409_410_DD.img > >My explanation about the graphical/text commands applies to driverdisk >as well. It's processed by loader, and loader does not understand >%include. The good news is this is fixed in F15 (therefore, RHEL7 - >yow!), the bad news is I'm not going to be able to backport this fix to >RHEL5 or RHEL6. It's just too invasive. It's good that it will be fixed, and I wouldn't expect a backport. But it would have saved me a few days if this had been documented somewhere - it's not mentioned under either driverdisk or %include in http://fedoraproject.org/wiki/Anaconda/Kickstart#Chapter_2._Kickstart_Options From michael at mayer.cx Tue Mar 22 18:37:18 2011 From: michael at mayer.cx (Michael Mayer) Date: Tue, 22 Mar 2011 19:37:18 +0100 Subject: RHEL5.5 kickstart procedure unable to download RPMs Message-ID: <4D88EC5E.7060309@mayer.cx> Hi all, i have a weird issue with RHEL5.5 and kickstart. My current setup is: All RHEL5.5 RPMs(i.e. the whole tree) and two additional repositories are in a subversion repo. The repo is accessible via http to the client to be installed. The client is a virtual machine hosted on an ESX server. I have modified boot.iso as well to contain the kickstart file which points to the subversion repo via the "url" and "repo" commands. The boot.iso (about 10 MB in size) is attached to the virtual machine as a virtual CD-ROM. If the virtual server boots up, it reads the kickstart file and then proceeds to download the second-stage installer from the repository. It sets up networking, formats the disk as wanted, browses through the RPM repos for dependency resolution. Once that is finished, the screen appears where RPMs are going to be installed. So far so good. Now things are going odd: anaconda complains about packages being corrupt, broken or missing. This cannot be true here because I have checked md5sum of the rpm both in the repo and after downloaded via wget. In the SVN server access logs the respective RPM is downloaded 10 times, each time with return code 200 which for me indicates successful download. If I am looking on the kickstarting server, there are no RPMs to be seen anywhere. If I run a wget on that kickstarted server with the same URL the RPM is downloaded correctly. Depending on which repos I am using in the kickstart file, a different RPM is thought to be corrupt. The subversion server has got RHEL 5.3 installed. If it was a networking issue, the second stage image and the repodata could not have been downloaded/read. Anyone having suggestions as to why this is happening ? I have been looking in the RHEL5 manuals dealing with troubleshooting of anaconda and kickstart but I have not found anything there which could help. Any suggestion highly appreciated. Many thanks, Michael. From hbrown at divms.uiowa.edu Tue Mar 22 18:57:25 2011 From: hbrown at divms.uiowa.edu (Hugh Brown) Date: Tue, 22 Mar 2011 13:57:25 -0500 Subject: RHEL5.5 kickstart procedure unable to download RPMs In-Reply-To: <4D88EC5E.7060309@mayer.cx> References: <4D88EC5E.7060309@mayer.cx> Message-ID: <4D88F115.3050401@divms.uiowa.edu> On 03/22/2011 01:37 PM, Michael Mayer wrote: > Hi all, > > i have a weird issue with RHEL5.5 and kickstart. > > My current setup is: > > All RHEL5.5 RPMs(i.e. the whole tree) and two additional repositories > are in a subversion repo. The repo is accessible via http to the client > to be installed. > The client is a virtual machine hosted on an ESX server. I have modified > boot.iso as well to contain the kickstart file which points to the > subversion repo via the "url" and "repo" commands. The boot.iso (about > 10 MB in size) is attached to the virtual machine as a virtual CD-ROM. > > If the virtual server boots up, it reads the kickstart file and then > proceeds to download the second-stage installer from the repository. It > sets up networking, formats the disk as wanted, browses through the RPM > repos for dependency resolution. Once that is finished, the screen > appears where RPMs are going to be installed. > > So far so good. > > Now things are going odd: anaconda complains about packages being > corrupt, broken or missing. This cannot be true here because I have > checked md5sum of the rpm both in the repo and after downloaded via > wget. In the SVN server access logs the respective RPM is downloaded 10 > times, each time with return code 200 which for me indicates successful > download. If I am looking on the kickstarting server, there are no RPMs > to be seen anywhere. If I run a wget on that kickstarted server with the > same URL the RPM is downloaded correctly. Depending on which repos I am > using in the kickstart file, a different RPM is thought to be corrupt. > This is most likely a problem with the filelists.xml.gz file in your yum repository. Each package gets stored with a pkgid that is hash of the package (the hash depends on the checksum employed by createrepo). If it is complaining about a package in one of your additional repositories, then I'd start by making sure that a createrepo --update /path/to/repo has been done recently (needs to be done after any new packages are added). If the repodata is current, then I've seen issues like this where the ram was going bad. Hugh From michael at mayer.cx Wed Mar 23 10:08:45 2011 From: michael at mayer.cx (michael at mayer.cx) Date: Wed, 23 Mar 2011 10:08:45 +0000 (GMT) Subject: RHEL5.5 kickstart procedure unable to download RPMs In-Reply-To: <4D88F115.3050401@divms.uiowa.edu> References: <4D88EC5E.7060309@mayer.cx> <4D88F115.3050401@divms.uiowa.edu> Message-ID: <1339192750.86998.1300874925741.JavaMail.open-xchange@oxltgw02.schlund.de> ? ? On 22 March 2011 at 18:57 Hugh Brown wrote: > On 03/22/2011 01:37 PM, Michael Mayer wrote: > > Hi all, > > > > i have a weird issue with RHEL5.5 and kickstart. > > > > My current setup is: > > > > All RHEL5.5 RPMs(i.e. the whole tree) and two additional repositories > > are in a subversion repo. The repo is accessible via http to the client > > to be installed. > > The client is a virtual machine hosted on an ESX server. I have modified > > boot.iso as well to contain the kickstart file which points to the > > subversion repo via the "url" and "repo" commands. The boot.iso (about > > 10 MB in size) is attached to the virtual machine as a virtual CD-ROM. > > > > If the virtual server boots up, it reads the kickstart file and then > > proceeds to download the second-stage installer from the repository. It > > sets up networking, formats the disk as wanted, browses through the RPM > > repos for dependency resolution. Once that is finished, the screen > > appears where RPMs are going to be installed. > > > > So far so good. > > > > Now things are going odd: anaconda complains about packages being > > corrupt, broken or missing. This cannot be true here because I have > > checked md5sum of the rpm both in the repo and after downloaded via > > wget. In the SVN server access logs the respective RPM is downloaded 10 > > times, each time with return code 200 which for me indicates successful > > download. If I am looking on the kickstarting server, there are no RPMs > > to be seen anywhere. If I run a wget on that kickstarted server with the > > same URL the RPM is downloaded correctly. Depending on which repos I am > > using in the kickstart file, a different RPM is thought to be corrupt. > > > > > This is most likely a problem with the filelists.xml.gz file in your yum > repository.? Each package gets stored with a pkgid that is hash of the > package (the hash depends on the checksum employed by createrepo).? If > it is complaining about a package in one of your additional > repositories, then I'd start by making sure that a > > createrepo --update /path/to/repo > > has been done recently (needs to be done after any new packages are added). > > If the repodata is current, then I've seen issues like this where the > ram was going bad. >Done that, even recreated the repodata for the RHEL Server stuff as well >(Server, VT, ...) keeping the group information But the situation is still >pretty much the same. ? Michael. -------------- next part -------------- An HTML attachment was scrubbed... URL: From huruomu at gmail.com Fri Mar 25 06:58:12 2011 From: huruomu at gmail.com (Romu) Date: Fri, 25 Mar 2011 14:58:12 +0800 Subject: 'RHEL6_NetworkData' object has no attribute 'activate' Message-ID: Hi, I wrote a simple script to try to use pykickstart: #!/usr/bin/python from pykickstart.parser import * from pykickstart.version import makeVersion text=True source='http://test.123.com/abc/123' ksp = KickstartParser(makeVersion('RHEL6')) h = ksp.handler # test or graphical? if text: h.displaymode.displayMode = DISPLAY_MODE_TEXT # source if source[:6] == 'nfs://': server, dir = source[6:].split('/', 1) dir = '/' + dir h.method(method='nfs', server=server, dir=dir) elif source[:6] == 'ftp://' or source[:7] == 'http://': h.method(method='url', url=source) else: print 'Error!' # lang keyboard rootpw h.lang(lang='en_US.UTF-8') h.keyboard(keyboard='us') h.rootpw(isCrypted=False,password='test') # network eth = h.NetworkData(device='eth0', bootproto='static', ip='210.179.60.212', netmask='255.255.252.0',hostname='ca-ostest212.us.oracle.com', onboot='yes') h.network.dataList().append(eth) # bootloader h.bootloader.location='mbr' # firewall & selinux h.firewall.enabled = False h.selinux(selinux=SELINUX_DISABLED) # reboot h.reboot(action=KS_REBOOT) # packages h.packages.packageList.append('*') #print dir(h.bootloader) outfile = open("out.cfg", 'w') outfile.write(h.__str__()) outfile.close() When I run this script, I get: Traceback (most recent call last): File "./kstest.py", line 44, in outfile.write(h.__str__()) File "/home/simon/oltest/pykickstart/base.py", line 284, in __str__ retval += obj.__str__() File "/home/simon/oltest/pykickstart/commands/network.py", line 204, in __str__ retval += nic.__str__() File "/home/simon/oltest/pykickstart/commands/network.py", line 89, in __str__ retval += "network %s\n" % self._getArgsAsStr() File "/home/simon/oltest/pykickstart/commands/network.py", line 180, in _getArgsAsStr if self.activate: AttributeError: 'RHEL6_NetworkData' object has no attribute 'activate' Any idea? Thanks, rmu From clumens at redhat.com Fri Mar 25 17:39:00 2011 From: clumens at redhat.com (Chris Lumens) Date: Fri, 25 Mar 2011 13:39:00 -0400 Subject: 'RHEL6_NetworkData' object has no attribute 'activate' In-Reply-To: References: Message-ID: <20110325173900.GH1890@exeter.usersys.redhat.com> > Traceback (most recent call last): > File "./kstest.py", line 44, in > outfile.write(h.__str__()) > File "/home/simon/oltest/pykickstart/base.py", line 284, in __str__ > retval += obj.__str__() > File "/home/simon/oltest/pykickstart/commands/network.py", line 204, > in __str__ > retval += nic.__str__() > File "/home/simon/oltest/pykickstart/commands/network.py", line 89, in __str__ > retval += "network %s\n" % self._getArgsAsStr() > File "/home/simon/oltest/pykickstart/commands/network.py", line 180, > in _getArgsAsStr > if self.activate: > AttributeError: 'RHEL6_NetworkData' object has no attribute 'activate' Which version of pykickstart are you using? I just fixed this problem in rawhide and am doing a build (pykickstart-1.83), so it should be fixed there. - Chris From huruomu at gmail.com Mon Mar 28 07:38:25 2011 From: huruomu at gmail.com (Romu) Date: Mon, 28 Mar 2011 15:38:25 +0800 Subject: 'RHEL6_NetworkData' object has no attribute 'activate' In-Reply-To: <20110325173900.GH1890@exeter.usersys.redhat.com> References: <20110325173900.GH1890@exeter.usersys.redhat.com> Message-ID: Hi, 2011/3/26 Chris Lumens : >> Traceback (most recent call last): >> ? File "./kstest.py", line 44, in >> ? ? outfile.write(h.__str__()) >> ? File "/home/simon/oltest/pykickstart/base.py", line 284, in __str__ >> ? ? retval += obj.__str__() >> ? File "/home/simon/oltest/pykickstart/commands/network.py", line 204, >> in __str__ >> ? ? retval += nic.__str__() >> ? File "/home/simon/oltest/pykickstart/commands/network.py", line 89, in __str__ >> ? ? retval += "network %s\n" % self._getArgsAsStr() >> ? File "/home/simon/oltest/pykickstart/commands/network.py", line 180, >> in _getArgsAsStr >> ? ? if self.activate: >> AttributeError: 'RHEL6_NetworkData' object has no attribute 'activate' > > Which version of pykickstart are you using? ?I just fixed this problem > in rawhide and am doing a build (pykickstart-1.83), so it should be > fixed there. > > - Chris The version I was using is: commit 31139f1d0b760c84dd1afa44ed9cb954f5f01b83 Author: Radek Vykydal Date: Mon Jan 31 22:16:04 2011 +0100 I updated it and now the problem is gone. Thanks. Regards, rmu From huruomu at gmail.com Tue Mar 29 13:48:27 2011 From: huruomu at gmail.com (Romu) Date: Tue, 29 Mar 2011 21:48:27 +0800 Subject: Minitoring anaconda installation Message-ID: Hi, I'm trying to implement monitoring of the anaconda installation on an remote server. The installation is fully unattended by using kickstart and pxeboot. I need to find out at least the following: whether the installation has started or not? whether the installation has succeeded or not? I've tried telling anaconda to foward syslog to a syslog daemon running on a remote host, but I cannot figure out how to find out the above from the log. Any idea? Thanks, rmu From Pablo.Iranzo at redhat.com Tue Mar 29 14:04:11 2011 From: Pablo.Iranzo at redhat.com (=?utf-8?Q?Pablo_Iranzo_G=C3=B3mez?=) Date: Tue, 29 Mar 2011 10:04:11 -0400 (EDT) Subject: Minitoring anaconda installation In-Reply-To: Message-ID: <15776929.1061.1301407465647.JavaMail.iranzo@iranzo.usersys.redhat.com> Hi ----- Mensaje original ----- > De: "Romu" > Para: kickstart-list at redhat.com > Enviados: Martes, 29 de Marzo 2011 15:48:27 > Asunto: Minitoring anaconda installation > Hi, > > I'm trying to implement monitoring of the anaconda installation on an > remote server. The installation is fully unattended by using > kickstart and pxeboot. I need to find out at least the following: > > whether the installation has started or not? > whether the installation has succeeded or not? > > I've tried telling anaconda to foward syslog to a syslog daemon > running on a remote host, but I cannot figure out how to find out the > above from the log. I've switched to anamon (included in cobbler) which provides logs for all the install process and from serveral scripts, and even uploads them after the system has been kickstarted Regards Pablo -- Pablo Iranzo G?mez (Pablo.Iranzo at redhat.com) Senior Global Profesional Services Consultant (RHCA, RHCSS, RHCDS, RHCVA, RHCE, RHCSP) #804006196923216 Phone: +34 645 01 01 49 (CET/CEST) GnuPG KeyID: 0xFAD3CF0D From s0nic0nslaught at gmail.com Wed Mar 30 18:25:34 2011 From: s0nic0nslaught at gmail.com (Jonathan M. Polom) Date: Wed, 30 Mar 2011 14:25:34 -0400 Subject: Enabling repositories for anaconda via kickstart Message-ID: Is it possible to enable a repository for Anaconda via kickstart? I'm not entirely sure how Anaconda finds the default repositories on a disk (is it automated by looking at folders in the root of the CD/DVD file system?) but I know you can manually enable a repo via a boot option. Is a similar thing feasible with kickstart? If Anaconda uses yum, I don't see why this wouldn't be possible. I guess my problem stems from lack of knowledge on how Anaconda works. Any insight into how Anaconda and kickstart work would help here. I've looked through the Anaconda wiki page but didn't find too much documentation explaining how it works. Thanks, Jon From tibbs at math.uh.edu Wed Mar 30 18:42:57 2011 From: tibbs at math.uh.edu (Jason L Tibbitts III) Date: Wed, 30 Mar 2011 13:42:57 -0500 Subject: Enabling repositories for anaconda via kickstart In-Reply-To: (Jonathan M. Polom's message of "Wed, 30 Mar 2011 14:25:34 -0400") References: Message-ID: >>>>> "JMP" == Jonathan M Polom writes: JMP> Is it possible to enable a repository for Anaconda via kickstart? You can use the repo command: repo --name=local --baseurl=http://.... Obviously fill in the URL to the repository you want to use. I do this to override some of the distribution packages and to make sure that freshly installed machines are fully updated. - J< From tibbs at math.uh.edu Wed Mar 30 18:44:00 2011 From: tibbs at math.uh.edu (Jason L Tibbitts III) Date: Wed, 30 Mar 2011 13:44:00 -0500 Subject: Enabling repositories for anaconda via kickstart In-Reply-To: (Jonathan M. Polom's message of "Wed, 30 Mar 2011 14:25:34 -0400") References: Message-ID: See also the documentation for the repo option at http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/96/html/Installation_Guide/s1-kickstart2-options.html - J< From s0nic0nslaught at gmail.com Wed Mar 30 21:45:48 2011 From: s0nic0nslaught at gmail.com (Jonathan M. Polom) Date: Wed, 30 Mar 2011 17:45:48 -0400 Subject: Enabling repositories for anaconda via kickstart In-Reply-To: References: Message-ID: Jason: thanks a lot! that was basically exactly what I was looking for. should have read the documentation on redhat's site to begin with. On Wed, Mar 30, 2011 at 2:42 PM, Jason L Tibbitts III wrote: >>>>>> "JMP" == Jonathan M Polom writes: > > JMP> Is it possible to enable a repository for Anaconda via kickstart? > > You can use the repo command: > ?repo --name=local --baseurl=http://.... > Obviously fill in the URL to the repository you want to use. ?I do this > to override some of the distribution packages and to make sure that > freshly installed machines are fully updated. > > ?- J< > > _______________________________________________ > Kickstart-list mailing list > Kickstart-list at redhat.com > https://www.redhat.com/mailman/listinfo/kickstart-list > -- Jon Polom