1. Resource issue – it’s not you it’s me … probably

Resource issue – it’s not you it’s me … probably

Home Forums FABRIC General Questions and Discussion Resource issue – it’s not you it’s me … probably

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #4997
    Bruce Hartpence
    Participant

      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();

      #4998
      Ilya Baldin
      Participant

        Remove 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.

        #4999
        Bruce Hartpence
        Participant

          Thanks Ilya – that looks like it worked. My only question would be about the example from which the host command was derived.

          #5000
          Ilya Baldin
          Participant

            Can you please post the pointer, we will take a look.

            #5001
            Bruce Hartpence
            Participant

              Found 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()

              #5002
              Ilya Baldin
              Participant

                Right, 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.

                #5029
                Ilya Baldin
                Participant

                  Future versions of this notebook will be more explicit about what host parameter is for and how to use it.

                Viewing 7 posts - 1 through 7 (of 7 total)
                • You must be logged in to reply to this topic.