1. Slice stall on “Configuring” for MAX site via Python API

Slice stall on “Configuring” for MAX site via Python API

Home Forums FABRIC General Questions and Discussion Slice stall on “Configuring” for MAX site via Python API

Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1238
    ADAM GRIFFITH
    Participant

      Hi,

      Over the last several days all attempts at creating a slice on the MAX site through the Python API have resulted in slices stalling at “Configuring”. Is this a known issue?

      Cheers,
      -Adam

      #1239
      Mert Cevik
      Moderator

        Hi Adam,

        I checked FABRIC-MAX, however I could not repeat the problem. It will make it easier for us if you can share information about the slice (eg. topology information as a list/description, quick drawing,  request python code etc).

        Mert

        #1240
        ADAM GRIFFITH
        Participant

          Hi Mert,

          Apologies. Here is the Python I can use to reproduce the stall at “Configuring”:

          `
          from fabrictestbed.slice_editor import ComponentModelType

          slice_name = ‘KubernetesSlice13-adam’
          site = ‘MAX’
          node1_name = ‘Node1’
          node2_name = ‘Node2′
          network_service_name=’bridge1’
          nic1_name = ‘node1-nic1’
          nic2_name = ‘node2-nic1’
          username = ‘centos’
          image = ‘default_centos_8’
          image_type = ‘qcow2′
          cores = 4
          ram = 20
          disk = 100

          nvme_name=’nvme1’
          nvme_model_type = ComponentModelType.NVME_P4510
          `

          `
          from fabrictestbed.slice_editor import ExperimentTopology, Capacities, ComponentType, ComponentModelType, ServiceType
          # Create topology
          t = ExperimentTopology()

          # Add node
          n1 = t.add_node(name=node1_name, site=site)

          # Set capacities
          cap = Capacities()
          cap.set_fields(core=cores, ram=ram, disk=disk)

          # Set Properties
          n1.set_properties(capacities=cap, image_type=image_type, image_ref=image)

          # Add node
          n2 = t.add_node(name=node2_name, site=site)

          # Set properties
          n2.set_properties(capacities=cap, image_type=image_type, image_ref=image)

          # Shared Cards
          n1.add_component(model_type=ComponentModelType.SharedNIC_ConnectX_6, name=nic1_name)
          n2.add_component(model_type=ComponentModelType.SharedNIC_ConnectX_6, name=nic2_name)

          # Add the PCI NVMe device
          n2.add_component(model_type=nvme_model_type, name=nvme_name)

          # L2Bridge Service
          t.add_network_service(name=network_service_name, nstype=ServiceType.L2Bridge, interfaces=t.interface_list)

          # Generate Slice Graph
          slice_graph = t.serialize()

          # Request slice from Orchestrator
          return_status, slice_reservations = slice_manager.create(slice_name=slice_name,
          slice_graph=slice_graph,
          ssh_key=ssh_key_pub)

          if return_status == Status.OK:
          slice_id = slice_reservations[0].get_slice_id()
          print(“Submitted slice creation request. Slice ID: {}”.format(slice_id))
          else:
          print(f”Failure: {slice_reservations}”)
          `

          Cheers,
          -Adam

          #1242
          Paul Ruth
          Keymaster

            Adam,

            I think this problem has been resolved.  Please retry your experiment.

            Paul

            #1243
            Paul Ruth
            Keymaster

              Adam,

              I think this problem has been resolved.  Please retry your experiment.

              Paul

              #1244
              ADAM GRIFFITH
              Participant

                Hi Paul,

                I was able to successfully lease a slice.

                Thank you!
                -Adam

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