Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Finding error with slice relative allocation

2 views
Skip to first unread message

Devagopal A.M

unread,
Nov 1, 2024, 11:27:25 PM11/1/24
to powder...@googlegroups.com

Hello

I am using the O-RAN profile for my lab assignment. When I attempted to use the PUT command to reallocate a new size for one of the slices, I received a "Method Not Allowed" error. Here is the command I used to edit the slice:

curl -i -X PUT -H "Content-type: application/json" -d '{"name":"slow","allocation_policy":{"type":"proportional","share":512}}' http://${NEXRAN_XAPP}:8000/v1/slices ; echo ; echo

I also tried with sudo but its showing the same error. Any help would be appreciated

Regards

Deva

David M Johnson

unread,
Nov 1, 2024, 11:32:13 PM11/1/24
to powder...@googlegroups.com
On 11/1/24 21:27, Devagopal A.M wrote:
> Hello
>
> I am using the O-RAN profile for my lab assignment. When I attempted to
> use the PUT command to reallocate a new size for one of the slices, I
> received a "Method Not Allowed" error. Here is the command I used to
> edit the slice:
>
> curl -i -X PUT -H "Content-type: application/json" -d
> '{"name":"slow","allocation_policy":{"type":"proportional","share":512}}' http://${NEXRAN_XAPP}:8000/v1/slices ; echo ; echo

Hi. In this case you need to use a POST; you are creating a slice, not
editing one; and the `PUT /v1/slices` endpoint is not valid. For
instance, look at this line in one of the profile's demo scripts:
https://gitlab.flux.utah.edu/powder-profiles/oran/-/blob/master/demo/run-nexran-slicing.sh?ref_type=heads#L50
.

> Deva

David

Devagopal A.M

unread,
Nov 1, 2024, 11:37:34 PM11/1/24
to powder...@googlegroups.com
I already created a "slow" slice using the post command with 128 size, now i want to edit that particular slice to sizes to 256,512 and 1024 inorder to observe how the throughput changes

Thanks

--
You received this message because you are subscribed to the Google Groups "Powder Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to powder-users...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/powder-users/76cf83de-bd44-4865-9ded-bff4ec6f0389%40flux.utah.edu.

Devagopal A.M

unread,
Nov 1, 2024, 11:41:48 PM11/1/24
to powder...@googlegroups.com
Yes I checked at the document and it worked thanks
Regards
Deva
Reply all
Reply to author
Forward
0 new messages