public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: "David S. Ahern" <daahern@cisco.com>
To: Amos Kong <akong@redhat.com>
Cc: Lucas Meneghel Rodrigues <lmr@redhat.com>, kvm@vger.kernel.org
Subject: Re: [Autotest] Autotest: Unattended_install testcase always fail with 	rhel3.9-32 guest
Date: Sat, 17 Apr 2010 22:55:26 -0600	[thread overview]
Message-ID: <4BCA90BE.1060804@cisco.com> (raw)
In-Reply-To: <20100418035704.GA2688@akong@redhat.com>



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

  parent reply	other threads:[~2010-04-18  4:55 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [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       ` David S. Ahern [this message]
2010-04-18 18:26         ` [Autotest] " Lucas Meneghel Rodrigues
2010-04-19  3:32           ` David S. Ahern
2010-04-19 18:56             ` Lucas Meneghel Rodrigues

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4BCA90BE.1060804@cisco.com \
    --to=daahern@cisco.com \
    --cc=akong@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=lmr@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox