Home › Forums › FABRIC General Questions and Discussion › Slice stall on “Configuring” for MAX site via Python API
Tagged: python-api
- This topic has 5 replies, 3 voices, and was last updated 2 years, 11 months ago by ADAM GRIFFITH.
-
AuthorPosts
-
January 14, 2022 at 1:26 pm #1238
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,
-AdamJanuary 14, 2022 at 3:38 pm #1239Hi 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
January 17, 2022 at 2:11 pm #1240Hi Mert,
Apologies. Here is the Python I can use to reproduce the stall at “Configuring”:
`
from fabrictestbed.slice_editor import ComponentModelTypeslice_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 = 100nvme_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,
-AdamJanuary 18, 2022 at 4:57 pm #1242Adam,
I think this problem has been resolved. Please retry your experiment.
Paul
January 18, 2022 at 4:57 pm #1243Adam,
I think this problem has been resolved. Please retry your experiment.
Paul
January 18, 2022 at 5:15 pm #1244Hi Paul,
I was able to successfully lease a slice.
Thank you!
-Adam -
AuthorPosts
- You must be logged in to reply to this topic.