> On Jun 10, 2024, at 6:50 AM, CALEB FONYUY-ASHERI S <
fony...@gmail.com> wrote:
>
> I found the following lines in the portal log. Seems like the issue could be linked to the networking.
Ah, a long forgotten bug in the “stitcher” module. That will not get fixed
in the near future, so here is a minor reorg of your code. The goal is to
move the creation of the LAN till after the nodes. This is a little cumbersome
of course, but the easiest path to getting your experiment going.
Leigh
# Always need this when using parameters
params = pc.bindParameters()
# The NFS server.
nfsServer = request.RawPC("snode")
nfsServer.disk_image = params.osImage
nfsServer.hardware_type = params.serverType
# Attach server to lan.
iface0 = nfsServer.addInterface('interface-0', pg.IPv4Address('192.168.6.2','255.255.255.0'))
#nfsLan.addInterface(iface0)
# Storage file system goes into a local (ephemeral) blockstore.
nfsBS = nfsServer.Blockstore("nfsBS", nfsDirectory)
nfsBS.size = params.nfsSize
# Initialization script for the server
nfsServer.addService(pg.Execute(shell="sh", command="sudo /bin/bash /local/repository/nfs-server.sh"))
# The NFS client, also attached to the NFS lan.
nfsClient = request.RawPC("tnode")
nfsClient.disk_image = params.osImage
nfsClient.hardware_type = params.clientType
iface2 = nfsClient.addInterface('interface-1', pg.IPv4Address('192.168.6.3','255.255.255.0'))
#nfsLan.addInterface(iface2)
# Initialization script for the clients
nfsClient.addService(pg.Execute(shell="sh", command="sudo /bin/bash /local/repository/nfs-client.sh"))
# The NFS network. All these options are required.
nfsLan = request.LAN(nfsLanName)
# Must provide a bandwidth. BW is in Kbps
nfsLan.bandwidth = 100000
nfsLan.best_effort = True
nfsLan.vlan_tagging = True
nfsLan.link_multiplexing = True
nfsLan.addInterface(iface0)
nfsLan.addInterface(iface2)