From mboxrd@z Thu Jan 1 00:00:00 1970 From: "David S. Ahern" Subject: Re: [Autotest] Autotest: Unattended_install testcase always fail with rhel3.9-32 guest Date: Sat, 17 Apr 2010 22:55:26 -0600 Message-ID: <4BCA90BE.1060804@cisco.com> References: <-1719040579288086063@unknownmsgid> <4BC86E1A.2070505@cisco.com> <20100418035704.GA2688@akong@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: Lucas Meneghel Rodrigues , kvm@vger.kernel.org To: Amos Kong Return-path: Received: from sj-iport-6.cisco.com ([171.71.176.117]:23467 "EHLO sj-iport-6.cisco.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750978Ab0DREzW (ORCPT ); Sun, 18 Apr 2010 00:55:22 -0400 In-Reply-To: <20100418035704.GA2688@akong@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: 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