Home › Forums › FABRIC General Questions and Discussion › Resource issue – it’s not you it’s me … probably
- This topic has 6 replies, 2 voices, and was last updated 2 years, 2 months ago by
Ilya Baldin.
-
AuthorPosts
-
August 11, 2023 at 5:40 pm #4997
OK, trying to set up a base topology using the notebook but keeping getting a resource issue:
Insufficient Resources: N1.fabric-testbed.net cannot serve the requested sliver#
All three of my nodes get this error but the aggregate seems to have enough resources. I have tried this on MASS, WASH and STAR. Everything runs but they all die on resources. Here is my notebook:
slice_name = ‘new_slice_8_11_23′
#Create Slice
slice = fablib.new_slice(slice_name)
desired_site=’STAR’
desired_image=’default_ubuntu_22′# Add node – repeated for three nodes
N1 = slice.add_node(name=’N1′,
site=desired_site,
host=’N1.fabric-testbed.net’,
cores=2,
ram=8,
disk=10,
image=desired_image)iface1 = N1.add_component(model=’NIC_Basic’, name=’nic1′).get_interfaces()[0]
# Networks
net1 = slice.add_l3network(name=network1_name, type=’IPv4′)# Node1 (repeated for N2 and N3)
net1.add_interface(iface1)
N1.add_route(subnet=fablib.FABNETV4_SUBNET, next_hop=net1.get_gateway())#Submit Slice Request
slice.submit();August 11, 2023 at 5:59 pm #4998Remove the host parameter. I think you’re thinking it’s the hostname of your VM but it’s actually the name of the worker node you’re telling it to land on and it doesn’t exist. The name of the VM is the name of the node I think combined with its sliver id.
August 11, 2023 at 6:19 pm #4999Thanks Ilya – that looks like it worked. My only question would be about the example from which the host command was derived.
August 11, 2023 at 6:25 pm #5000Can you please post the pointer, we will take a look.
August 11, 2023 at 7:15 pm #5001Found it – it is under the “start_here” –> “Customizing nodes”
Code snip:
slice_name = ‘MySlice1′
#Create Slice
slice = fablib.new_slice(slice_name)# Add node
node = slice.add_node(name=’Node1′,
site=’MAX’,
host=’max-w1.fabric-testbed.net’,
cores=4,
ram=16,
disk=100,
image=’default_ubuntu_20′)#Submit Slice Request
slice.submit()August 11, 2023 at 8:02 pm #5002Right, we need to do a better job explaining it. Max-w1 is a valid worker node name, they are all named <site>-w<index>.fabric-testbed.net
But also you do not need this I don’t think. Experimenters only in rare cases need to place their VM on specific workers. Most of the time you want the placement algorithm do it for you so don’t specify host.
August 15, 2023 at 11:14 am #5029Future versions of this notebook will be more explicit about what
hostparameter is for and how to use it. -
AuthorPosts
- You must be logged in to reply to this topic.