Hello everybody. First of all thank you for letting me be part of this
group.
Well I am writing this new post because of several doubts and
difficulties I have ran into trying to run IPOP. Most probably this
difficulties are due to me not knowing some important things of the
setup process. So I hope that the experts could give me a hand with
this.
Right now I have managed to run P2PNode.exe contained in the binary
release of IPOP (
http://www.grid-appliance.org/files/ipop/ipop.zip). I
used, as the guide recommended the Current-Free-to-Join-Brunet-
Overlays (
http://www.grid-appliance.org/wiki/index.php/
CurrentOverlays), and changed the content of the tag <BrunetNamespace>
to "ZyndariusTest" (I don't know if this is right but I read it was
suggested to avoid collisions). The port for the XmlRpcManager is
10000.
So my first step was running the following command on a Debian Squeeze
system:
mono P2PNode.exe --IpopConfig=ipop.config --
NodeConfig=node.config.icebear.P2PNode --Count=12 (about the number of
virtual nodes I am not sure if the option was necessary, since I am
trying to run the system using only to physical nodes I decided to run
the instance of P2PNode.exe with virtual nodes)
the output of the program was the following:
I am connected to ZyndariusTest as
brunet:node:P2C2PSMDRGGYXCOU27W2GBXIKWEKUHVM. Current time is
4/27/2010 11:44:55 AM.
I thing this meant that my first step was successful. Nonetheless I
have doubts if everything was alright. It is supposed that I created a
new namespace called "ZyndariusTest" in the overlay? was this the
right thing to do?
As second step I used the script bput.py to deploy the DhtDHCPServer
using the example configuration shown in the guide (
http://www.grid-
appliance.org/documentation/IpopNodeReadme.html) and changing the
content of the tag <Namespace> to "ZynIPOP1" for example. I deleted
all the whitespaces (leaving just one big line within the file) and
used it as the script's input.
The command I ran was:
python bput.py --ttl=3600 --input=dhcpconfig.xml
dhcp:ipop_namespace:ZynIPOP1 (I procured that this namespace match the
IpopNamespace contained within the ipop.config file used to run
P2PNode.exe)
Upon using the script sometimes it did not work but some others did
work saying as output "True". When it did not work it threw a very
ugly error that i beg you excuse me for posting it but one never knows
where important details could be:
Traceback (most recent call last):
File "bput.py", line 41, in <module>
print rpc.localproxy("DhtClient.Put", xmlrpclib.Binary(args[0]),
xmlrpclib.Binary(value), ttl)
File "/usr/lib/python2.5/xmlrpclib.py", line 1147, in __call__
return self.__send(self.__name, args)
File "/usr/lib/python2.5/xmlrpclib.py", line 1437, in __request
verbose=self.__verbose
File "/usr/lib/python2.5/xmlrpclib.py", line 1201, in request
return self._parse_response(h.getfile(), sock)
File "/usr/lib/python2.5/xmlrpclib.py", line 1340, in
_parse_response
return u.close()
File "/usr/lib/python2.5/xmlrpclib.py", line 787, in close
raise Fault(**self._stack[0])
xmlrpclib.Fault: <Fault 1: 'Server returned a fault exception: [0]
Brunet.AdrException: Operation failed Total/Positive/Negative:
8/0/4\n at Brunet.RpcResult.AssertNotException () [0x00000] \n at
Brunet.RpcResult.get_Result () [0x00000] \n at
Brunet.Rpc.XmlRpcManager.Proxy (ISender sender, Int32
maxResultsToWait, System.String method, System.Object[] args)
[0x00000] \nError Code: 0\nthrown by: Brunet.StructuredNode'>
As I was reading about running IPOP some FAQ said something about
running the script every 30 seconds until it returned true. So it lead
me to think that this was part of the "normal" behavior. But if
anybody can enlighten me about it I will be very thankful.
When the script returned true I went to my 3rd step which was running
DhtIpopNode.exe as root user for this I typed the following command:
mono DhtIpopNode.exe --NodeConfig=node.config.1 --
IpopConfig=ipop.config &> logs &
The only difference between node.config.1, used here, with node.config
used to start P2PNode.exe is the port of the XmlRpcManager that I had
to change to 10001 becuase if not the DhtIpopNode.exe won't start and
the logs contained an error saying the following: (I beg for excuses
again :s)
Starting IPOP: 4/27/2010 12:19:38 PM
Unhandled Exception: System.Net.Sockets.SocketException: Address
already in use
at System.Net.Sockets.Socket.Bind (System.Net.EndPoint local_end)
[0x00000]
at System.Runtime.Remoting.Channels.Http.RemotingHttpListener..ctor
(System.Net.IPAddress addr, Int32 port,
System.Runtime.Remoting.Channels.Http.HttpServerTransportSink sink)
[0x00000]
at
System.Runtime.Remoting.Channels.Http.HttpServerChannel.StartListening
(System.Object data) [0x00000]
[3]+ Exit 1 mono DhtIpopNode.exe --
NodeConfig=node.config.icebear.P2PNode --IpopConfig=ipop.config &>logs
Having the port changed in node.config.1 the logs just reported the
"Starting IPOP: 4/27/2010 12:19:38 PM" and IPOP started without
problem for the tap device turned alive (I procured to have the tun
module previously added to the kernel as instructed in the guide).
The main problem is that when reaching this stage the tap device does
not get IP Address when doing dhclient tapipop and in Wireshark, apart
from other packets sniffed, the device keeps sending DHCP Discover
messages but there is no response. What could be happening?, I have
revised the dhcpconfig.xml file used to run the bput.py script and
everything seems in order. I have also read about using the bget.py
script but I don't know what to use as valid arguments. Could anybody
guide me an give me a generic example of how to use it to see if the
DhtDHCPServer is working.
Thanks for your patience and time. =)
--
You received this message because you are subscribed to the Google Groups "acis.p2p" group.
To post to this group, send email to
aci...@googlegroups.com.
To unsubscribe from this group, send email to
acisp2p+u...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/acisp2p?hl=en.