* Re: [Autotest] Autotest: Unattended_install testcase always fail with rhel3.9-32 guest [not found] <-1719040579288086063@unknownmsgid> @ 2010-04-14 14:01 ` Lucas Meneghel Rodrigues 2010-04-14 14:02 ` Lucas Meneghel Rodrigues 2010-04-16 14:03 ` David S. Ahern 0 siblings, 2 replies; 10+ messages in thread From: Lucas Meneghel Rodrigues @ 2010-04-14 14:01 UTC (permalink / raw) To: Amos Kong; +Cc: autotest, kvm On Wed, Apr 14, 2010 at 10:26 AM, Amos Kong <akong@redhat.com> wrote: > Hi Lucas, > > When I execute unattended_install testcases on RHEL-5.5, it always fail when using rhel3.9-32 guest. > I found it blocked after packages installation. Is it related that rhel39-32 guest don't support acpi ? I've hit this problem before, it is what I believe to be an anaconda bug on that particular RHEL version. I tried a *lot* to work around the problem, spent a lot of time with it, but in the end I just gave up. The problem happens because it's simply not possible to bring the network up at post install stage so the install can communicate with the host to respond that its installation finished. If anyone can help to work around the problem that'd be great... > > Regards, > Amos > _______________________________________________ > Autotest mailing list > Autotest@test.kernel.org > http://test.kernel.org/cgi-bin/mailman/listinfo/autotest > -- Lucas ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Autotest] Autotest: Unattended_install testcase always fail with rhel3.9-32 guest 2010-04-14 14:01 ` [Autotest] Autotest: Unattended_install testcase always fail with rhel3.9-32 guest Lucas Meneghel Rodrigues @ 2010-04-14 14:02 ` Lucas Meneghel Rodrigues 2010-04-16 14:03 ` David S. Ahern 1 sibling, 0 replies; 10+ messages in thread From: Lucas Meneghel Rodrigues @ 2010-04-14 14:02 UTC (permalink / raw) To: Amos Kong; +Cc: autotest, kvm On Wed, Apr 14, 2010 at 11:01 AM, Lucas Meneghel Rodrigues <lmr@redhat.com> wrote: > On Wed, Apr 14, 2010 at 10:26 AM, Amos Kong <akong@redhat.com> wrote: >> Hi Lucas, >> >> When I execute unattended_install testcases on RHEL-5.5, it always fail when using rhel3.9-32 guest. >> I found it blocked after packages installation. Is it related that rhel39-32 guest don't support acpi ? > > I've hit this problem before, it is what I believe to be an anaconda > bug on that particular RHEL version. I tried a *lot* to work around > the problem, spent a lot of time with it, but in the end I just gave > up. > > The problem happens because it's simply not possible to bring the > network up at post install stage so the install can communicate with > the host to respond that its installation finished. If anyone can help > to work around the problem that'd be great... For people reading this thread without a lot of context, just for the record, rhel39-64 bit works just fine. >> >> Regards, >> Amos >> _______________________________________________ >> Autotest mailing list >> Autotest@test.kernel.org >> http://test.kernel.org/cgi-bin/mailman/listinfo/autotest >> > > > > -- > Lucas > -- Lucas ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Autotest] Autotest: Unattended_install testcase always fail with rhel3.9-32 guest 2010-04-14 14:01 ` [Autotest] Autotest: Unattended_install testcase always fail with rhel3.9-32 guest Lucas Meneghel Rodrigues 2010-04-14 14:02 ` Lucas Meneghel Rodrigues @ 2010-04-16 14:03 ` David S. Ahern 2010-04-16 15:36 ` Lucas Meneghel Rodrigues ` (2 more replies) 1 sibling, 3 replies; 10+ messages in thread From: David S. Ahern @ 2010-04-16 14:03 UTC (permalink / raw) To: Lucas Meneghel Rodrigues; +Cc: Amos Kong, autotest, kvm On 04/14/2010 08:01 AM, Lucas Meneghel Rodrigues wrote: > On Wed, Apr 14, 2010 at 10:26 AM, Amos Kong <akong@redhat.com> wrote: >> Hi Lucas, >> >> When I execute unattended_install testcases on RHEL-5.5, it always fail when using rhel3.9-32 guest. >> I found it blocked after packages installation. Is it related that rhel39-32 guest don't support acpi ? > > I've hit this problem before, it is what I believe to be an anaconda > bug on that particular RHEL version. I tried a *lot* to work around > the problem, spent a lot of time with it, but in the end I just gave > up. > > The problem happens because it's simply not possible to bring the > network up at post install stage so the install can communicate with > the host to respond that its installation finished. If anyone can help > to work around the problem that'd be great... What commands are you running to configure the network and what command is stalling? I've done unattended installs with RHEL3.8, 32-bit guests with networking enabled. David > >> >> Regards, >> Amos >> _______________________________________________ >> Autotest mailing list >> Autotest@test.kernel.org >> http://test.kernel.org/cgi-bin/mailman/listinfo/autotest >> > > > ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Autotest: Unattended_install testcase always fail with rhel3.9-32 guest 2010-04-16 14:03 ` David S. Ahern @ 2010-04-16 15:36 ` Lucas Meneghel Rodrigues 2010-04-16 19:08 ` [Autotest] " David S. Ahern 2010-04-18 4:09 ` Amos Kong [not found] ` <20100418035704.GA2688@akong@redhat.com> 2 siblings, 1 reply; 10+ messages in thread From: Lucas Meneghel Rodrigues @ 2010-04-16 15:36 UTC (permalink / raw) To: David S. Ahern; +Cc: autotest, kvm On Fri, 2010-04-16 at 08:03 -0600, David S. Ahern wrote: > > On 04/14/2010 08:01 AM, Lucas Meneghel Rodrigues wrote: > > On Wed, Apr 14, 2010 at 10:26 AM, Amos Kong <akong@redhat.com> wrote: > >> Hi Lucas, > >> > >> When I execute unattended_install testcases on RHEL-5.5, it always fail when using rhel3.9-32 guest. > >> I found it blocked after packages installation. Is it related that rhel39-32 guest don't support acpi ? > > > > I've hit this problem before, it is what I believe to be an anaconda > > bug on that particular RHEL version. I tried a *lot* to work around > > the problem, spent a lot of time with it, but in the end I just gave > > up. > > > > The problem happens because it's simply not possible to bring the > > network up at post install stage so the install can communicate with > > the host to respond that its installation finished. If anyone can help > > to work around the problem that'd be great... > > What commands are you running to configure the network and what command > is stalling? I've done unattended installs with RHEL3.8, 32-bit guests > with networking enabled. To add some background to the discussion, RHEL3.9 64 bit works just fine. The kickstart file that installs pretty much all RH based systems tries to configure the network by calling 'dhclient eth0'. In order to work, some networking kernel modules need to be loaded. While debugging the problem, I discovered that it wasn't possible to load some of the iptables kernel modules (I don't remember exactly which ones). So I tried many strategies, loading the modules specifying paths, etc... nothing worked. It seems like those essential networking modules in the install kernel for 32 bit are missing due to some build problem. Sure, once the install finished the system will boot on a functional kernel, but the kernel used by the install system just can't load the modules, rendering our unattended install system useless, since the host need to be able to verify whether the guest finished the install through socket communication. > David > > > > > >> > >> Regards, > >> Amos > >> _______________________________________________ > >> Autotest mailing list > >> Autotest@test.kernel.org > >> http://test.kernel.org/cgi-bin/mailman/listinfo/autotest > >> > > > > > > > -- > To unsubscribe from this list: send the line "unsubscribe kvm" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Autotest] Autotest: Unattended_install testcase always fail with rhel3.9-32 guest 2010-04-16 15:36 ` Lucas Meneghel Rodrigues @ 2010-04-16 19:08 ` David S. Ahern 0 siblings, 0 replies; 10+ messages in thread From: David S. Ahern @ 2010-04-16 19:08 UTC (permalink / raw) To: Lucas Meneghel Rodrigues; +Cc: Amos Kong, autotest, kvm On 04/16/2010 09:36 AM, Lucas Meneghel Rodrigues wrote: > On Fri, 2010-04-16 at 08:03 -0600, David S. Ahern wrote: >> >> On 04/14/2010 08:01 AM, Lucas Meneghel Rodrigues wrote: >>> On Wed, Apr 14, 2010 at 10:26 AM, Amos Kong <akong@redhat.com> wrote: >>>> Hi Lucas, >>>> >>>> When I execute unattended_install testcases on RHEL-5.5, it always fail when using rhel3.9-32 guest. >>>> I found it blocked after packages installation. Is it related that rhel39-32 guest don't support acpi ? >>> >>> I've hit this problem before, it is what I believe to be an anaconda >>> bug on that particular RHEL version. I tried a *lot* to work around >>> the problem, spent a lot of time with it, but in the end I just gave >>> up. >>> >>> The problem happens because it's simply not possible to bring the >>> network up at post install stage so the install can communicate with >>> the host to respond that its installation finished. If anyone can help >>> to work around the problem that'd be great... >> >> What commands are you running to configure the network and what command >> is stalling? I've done unattended installs with RHEL3.8, 32-bit guests >> with networking enabled. > > To add some background to the discussion, RHEL3.9 64 bit works just > fine. The kickstart file that installs pretty much all RH based systems > tries to configure the network by calling 'dhclient eth0'. In order to > work, some networking kernel modules need to be loaded. > > While debugging the problem, I discovered that it wasn't possible to > load some of the iptables kernel modules (I don't remember exactly which > ones). So I tried many strategies, loading the modules specifying paths, > etc... nothing worked. It seems like those essential networking modules > in the install kernel for 32 bit are missing due to some build problem. Ok, so it's firewall related. RHEL3 uses a BOOT kernel and only a subset of the kernel modules are included in the modules.cgz. It should contain all of the drivers for the NICs, so networking alone should be fine. Why are the iptables rules needed to tell the host that the install has completed? David > > Sure, once the install finished the system will boot on a functional > kernel, but the kernel used by the install system just can't load the > modules, rendering our unattended install system useless, since the host > need to be able to verify whether the guest finished the install through > socket communication. > >> David >> >> >>> >>>> >>>> Regards, >>>> Amos >>>> _______________________________________________ >>>> Autotest mailing list >>>> Autotest@test.kernel.org >>>> http://test.kernel.org/cgi-bin/mailman/listinfo/autotest >>>> >>> >>> >>> >> -- >> To unsubscribe from this list: send the line "unsubscribe kvm" in >> the body of a message to majordomo@vger.kernel.org >> More majordomo info at http://vger.kernel.org/majordomo-info.html > > ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Autotest: Unattended_install testcase always fail with rhel3.9-32 guest 2010-04-16 14:03 ` David S. Ahern 2010-04-16 15:36 ` Lucas Meneghel Rodrigues @ 2010-04-18 4:09 ` Amos Kong [not found] ` <20100418035704.GA2688@akong@redhat.com> 2 siblings, 0 replies; 10+ messages in thread From: Amos Kong @ 2010-04-18 4:09 UTC (permalink / raw) To: David S. Ahern; +Cc: autotest, kvm On Fri, Apr 16, 2010 at 08:03:06AM -0600, David S. Ahern wrote: > > > On 04/14/2010 08:01 AM, Lucas Meneghel Rodrigues wrote: > > On Wed, Apr 14, 2010 at 10:26 AM, Amos Kong <akong@redhat.com> wrote: > >> Hi Lucas, > >> > >> When I execute unattended_install testcases on RHEL-5.5, it always fail when using rhel3.9-32 guest. > >> I found it blocked after packages installation. Is it related that rhel39-32 guest don't support acpi ? > > > > I've hit this problem before, it is what I believe to be an anaconda > > bug on that particular RHEL version. I tried a *lot* to work around > > the problem, spent a lot of time with it, but in the end I just gave > > up. > > > > The problem happens because it's simply not possible to bring the > > network up at post install stage so the install can communicate with > > the host to respond that its installation finished. If anyone can help > > to work around the problem that'd be great... > > What commands are you running to configure the network and what command > is stalling? I've done unattended installs with RHEL3.8, 32-bit guests > with networking enabled. Qemu Command Line: # /root/autotest/client/tests/kvm/qemu -name 'vm1' -monitor tcp:0:6001,server,nowait -drive file=/root/autotest/client/tests/kvm/images/RHEL-3.9-32.raw,if=ide,cache=writethrough,boot=on -net nic,vlan=0,model=e1000,macaddr=00:11:22:33:50:01 -net user,vlan=0 -m 33792 -smp 12 -drive file=/root/autotest/client/tests/kvm/isos/linux/RHEL3.9-i386-DVD.iso,index=2,media=cdrom -soundhw ac97 -fda /root/autotest/client/tests/kvm/images/floppy.img -tftp /root/autotest/client/tests/kvm/images/tftpboot -usbdevice tablet -rtc-td-hack -no-hpet -cpu qemu64,+sse2 -no-kvm-pit-reinjection -bootp /pxelinux.0 -boot n -redir tcp:5000::22 -redir tcp:5001::12323 -vnc :0 ---------------------- # cat RHEL-3-series.ks install cdrom text reboot lang en_US.UTF-8 langsupport --default=en_US.UTF-8 en_US.UTF-9 keyboard us network --bootproto dhcp r-ootpw 123456 firewall --enabled --ssh timezone America/New_York firstboot --disable bootloader --location=mbr clearpart --all --initlabel autopart reboot mouse generic3ps/2 skipx %packages --resolvedeps @ base @ development-libs @ development-tools %post --interpreter /usr/bin/python import socket, os os.system('dhclient') os.system('chkconfig sshd on') os.system('iptables -F') os.system('echo 0 > /selinux/enforce') server = socket.socket(socket.AF_INET, socket.SOCK_STREAM) server.bind(('', 12323)) server.listen(1) (client, addr) = server.accept() client.send("done") client.close() > > David ^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <20100418035704.GA2688@akong@redhat.com>]
* Re: [Autotest] Autotest: Unattended_install testcase always fail with rhel3.9-32 guest [not found] ` <20100418035704.GA2688@akong@redhat.com> @ 2010-04-18 4:55 ` David S. Ahern 2010-04-18 18:26 ` Lucas Meneghel Rodrigues 0 siblings, 1 reply; 10+ messages in thread From: David S. Ahern @ 2010-04-18 4:55 UTC (permalink / raw) To: Amos Kong; +Cc: Lucas Meneghel Rodrigues, kvm On 04/17/2010 10:09 PM, Amos Kong wrote: > %post --interpreter /usr/bin/python > import socket, os > os.system('dhclient') > os.system('chkconfig sshd on') > os.system('iptables -F') > os.system('echo 0 > /selinux/enforce') > server = socket.socket(socket.AF_INET, socket.SOCK_STREAM) > server.bind(('', 12323)) > server.listen(1) > (client, addr) = server.accept() > client.send("done") > client.close() So, effectively after the install completes use dhclient to configure a network address, start a server on a known port and when a client connects send the message "done". I would expect that to work just fine. What part is not working? Have you used anaconda's root shell (alt-f2) to confirm each step and if so which one is not setup as expected? David ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Autotest] Autotest: Unattended_install testcase always fail with rhel3.9-32 guest 2010-04-18 4:55 ` [Autotest] " David S. Ahern @ 2010-04-18 18:26 ` Lucas Meneghel Rodrigues 2010-04-19 3:32 ` David S. Ahern 0 siblings, 1 reply; 10+ messages in thread From: Lucas Meneghel Rodrigues @ 2010-04-18 18:26 UTC (permalink / raw) To: David S. Ahern; +Cc: Amos Kong, kvm On Sat, 2010-04-17 at 22:55 -0600, David S. Ahern wrote: > > On 04/17/2010 10:09 PM, Amos Kong wrote: > > %post --interpreter /usr/bin/python > > import socket, os > > os.system('dhclient') > > os.system('chkconfig sshd on') > > os.system('iptables -F') > > os.system('echo 0 > /selinux/enforce') > > server = socket.socket(socket.AF_INET, socket.SOCK_STREAM) > > server.bind(('', 12323)) > > server.listen(1) > > (client, addr) = server.accept() > > client.send("done") > > client.close() > > So, effectively after the install completes use dhclient to configure a > network address, start a server on a known port and when a client > connects send the message "done". I would expect that to work just fine. Me too, it has been working for RHEL 4.X, 5.X 32/64 bit and 3.X 64 bit. The problem has been effectively 3.9 32 bit. > What part is not working? Have you used anaconda's root shell (alt-f2) > to confirm each step and if so which one is not setup as expected? dhclient. It fails saying "module IP_... could not be loaded. > David > -- > To unsubscribe from this list: send the line "unsubscribe kvm" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Autotest] Autotest: Unattended_install testcase always fail with rhel3.9-32 guest 2010-04-18 18:26 ` Lucas Meneghel Rodrigues @ 2010-04-19 3:32 ` David S. Ahern 2010-04-19 18:56 ` Lucas Meneghel Rodrigues 0 siblings, 1 reply; 10+ messages in thread From: David S. Ahern @ 2010-04-19 3:32 UTC (permalink / raw) To: Lucas Meneghel Rodrigues, Amos Kong; +Cc: kvm On 04/18/2010 12:26 PM, Lucas Meneghel Rodrigues wrote: > On Sat, 2010-04-17 at 22:55 -0600, David S. Ahern wrote: >> >> On 04/17/2010 10:09 PM, Amos Kong wrote: >>> %post --interpreter /usr/bin/python >>> import socket, os >>> os.system('dhclient') >>> os.system('chkconfig sshd on') >>> os.system('iptables -F') >>> os.system('echo 0 > /selinux/enforce') >>> server = socket.socket(socket.AF_INET, socket.SOCK_STREAM) >>> server.bind(('', 12323)) >>> server.listen(1) >>> (client, addr) = server.accept() >>> client.send("done") >>> client.close() >> >> So, effectively after the install completes use dhclient to configure a >> network address, start a server on a known port and when a client >> connects send the message "done". I would expect that to work just fine. > > Me too, it has been working for RHEL 4.X, 5.X 32/64 bit and 3.X 64 bit. > The problem has been effectively 3.9 32 bit. I fired up a 3.9 guest with your ks.cfg. The problem is due to the limited functionality in the RHEL3 BOOT kernel for i386. Specifically, dhclient is failing at: setsockopt(6, SOL_SOCKET, SO_ATTACH_FILTER, "\v\0\6\10\240Y\n\10", 8) = -1 ENOPROTOOPT So dhclient client is out. But you can still configure and use networking via ifconfig if static addressing is an option for you. I was able to use that command to configure eth0 and push an strace output file for dhclient. Also, a couple of comments on this use case: - SELinux is not applicable - 32 GB of RAM is way beyond what the RHEL3 i386 can detect and use - 12 vcpus seems high as well. David > >> What part is not working? Have you used anaconda's root shell (alt-f2) >> to confirm each step and if so which one is not setup as expected? > > dhclient. It fails saying "module IP_... could not be loaded. > >> David >> -- >> To unsubscribe from this list: send the line "unsubscribe kvm" in >> the body of a message to majordomo@vger.kernel.org >> More majordomo info at http://vger.kernel.org/majordomo-info.html > > ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Autotest] Autotest: Unattended_install testcase always fail with rhel3.9-32 guest 2010-04-19 3:32 ` David S. Ahern @ 2010-04-19 18:56 ` Lucas Meneghel Rodrigues 0 siblings, 0 replies; 10+ messages in thread From: Lucas Meneghel Rodrigues @ 2010-04-19 18:56 UTC (permalink / raw) To: David S. Ahern; +Cc: Amos Kong, kvm On Sun, 2010-04-18 at 21:32 -0600, David S. Ahern wrote: > On 04/18/2010 12:26 PM, Lucas Meneghel Rodrigues wrote: > > On Sat, 2010-04-17 at 22:55 -0600, David S. Ahern wrote: > >> > >> On 04/17/2010 10:09 PM, Amos Kong wrote: > >>> %post --interpreter /usr/bin/python > >>> import socket, os > >>> os.system('dhclient') > >>> os.system('chkconfig sshd on') > >>> os.system('iptables -F') > >>> os.system('echo 0 > /selinux/enforce') > >>> server = socket.socket(socket.AF_INET, socket.SOCK_STREAM) > >>> server.bind(('', 12323)) > >>> server.listen(1) > >>> (client, addr) = server.accept() > >>> client.send("done") > >>> client.close() > >> > >> So, effectively after the install completes use dhclient to configure a > >> network address, start a server on a known port and when a client > >> connects send the message "done". I would expect that to work just fine. > > > > Me too, it has been working for RHEL 4.X, 5.X 32/64 bit and 3.X 64 bit. > > The problem has been effectively 3.9 32 bit. > > I fired up a 3.9 guest with your ks.cfg. The problem is due to the > limited functionality in the RHEL3 BOOT kernel for i386. Specifically, > dhclient is failing at: > > setsockopt(6, SOL_SOCKET, SO_ATTACH_FILTER, "\v\0\6\10\240Y\n\10", 8) = > -1 ENOPROTOOPT > > So dhclient client is out. But you can still configure and use > networking via ifconfig if static addressing is an option for you. I was > able to use that command to configure eth0 and push an strace output > file for dhclient. > > Also, a couple of comments on this use case: > - SELinux is not applicable > - 32 GB of RAM is way beyond what the RHEL3 i386 can detect and use > - 12 vcpus seems high as well. Problem resolved :) Yay! http://autotest.kernel.org/changeset/4432 Thank you very much David, ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2010-04-19 18:56 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <-1719040579288086063@unknownmsgid>
2010-04-14 14:01 ` [Autotest] Autotest: Unattended_install testcase always fail with rhel3.9-32 guest Lucas Meneghel Rodrigues
2010-04-14 14:02 ` Lucas Meneghel Rodrigues
2010-04-16 14:03 ` David S. Ahern
2010-04-16 15:36 ` Lucas Meneghel Rodrigues
2010-04-16 19:08 ` [Autotest] " David S. Ahern
2010-04-18 4:09 ` Amos Kong
[not found] ` <20100418035704.GA2688@akong@redhat.com>
2010-04-18 4:55 ` [Autotest] " David S. Ahern
2010-04-18 18:26 ` Lucas Meneghel Rodrigues
2010-04-19 3:32 ` David S. Ahern
2010-04-19 18:56 ` Lucas Meneghel Rodrigues
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox