Trying to deploy nexran with dms_cli

30 views
Skip to first unread message

Joshua Moore

unread,
Apr 20, 2023, 5:38:28 PM4/20/23
to Powder Users
I am at the last part of deploying the xapp, but am having an error. I have attached a screenshot. It seems that it does not recognize the positional argument for some reason? 
Screenshot 2023-04-20 at 4.36.47 PM.png

David M. Johnson

unread,
Apr 20, 2023, 6:32:04 PM4/20/23
to powder...@googlegroups.com
Hi Joshua. On my deployment of the current O-RAN profile in POWDER (I
am using the less-tested `g-release` option), the dms_cli docs suggest
you want to simply use positional params, but in my testing, they are
happy with named (`/local/setup/oran/dms_cli install
--xapp_chart_name=nexran --version=0.1.0 --namespace=ricxapp`) or
positional (`/local/setup/oran/dms_cli install nexran 0.1.0 ricxapp`).
I'm not sure which dms_cli you're using.

David

Joshua Moore

unread,
May 8, 2023, 9:29:26 AM5/8/23
to Powder Users
I am using the dms_cli tool from here https://docs.o-ran-sc.org/projects/o-ran-sc-ric-plt-ric-dep/en/latest/installation-guides.html. Is there a different version i should be using?

David M. Johnson

unread,
May 8, 2023, 3:48:11 PM5/8/23
to powder...@googlegroups.com
On 5/8/23 07:29, Joshua Moore wrote:
> I am using the dms_cli tool from here
> https://docs.o-ran-sc.org/projects/o-ran-sc-ric-plt-ric-dep/en/latest/installation-guides.html.
> Is there a different version i should be using?

We are similarly using the latest version. See
https://gitlab.flux.utah.edu/powder-profiles/oran/-/blob/master/setup-oran.sh#L210
for how we configure it in the O-RAN profile.

David
> --
> 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
> <mailto:powder-users...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/powder-users/f62bf7ec-d2ef-433a-ab17-d6146fce3095n%40googlegroups.com <https://groups.google.com/d/msgid/powder-users/f62bf7ec-d2ef-433a-ab17-d6146fce3095n%40googlegroups.com?utm_medium=email&utm_source=footer>.

Joshua Moore

unread,
May 9, 2023, 2:08:57 PM5/9/23
to Powder Users
Still having the same issue. I can successfully deploy the xapp with the DAWN and lower instructions however the xapp does not function properly. Every time i deploy with the dms_cli tool i have the issue in my first post even trying it the same way you did it in the link above. I would love to get this working if possible. Do you have the link to the f release recipe you are using so i can try that?

David M. Johnson

unread,
May 9, 2023, 4:42:26 PM5/9/23
to powder...@googlegroups.com
On 5/9/23 12:08, Joshua Moore wrote:
> Still having the same issue. I can successfully deploy the xapp with the
> DAWN and lower instructions however the xapp does not function properly.
> Every time i deploy with the dms_cli tool i have the issue in my first post
> even trying it the same way you did it in the link above. I would love to
> get this working if possible. Do you have the link to the f release recipe
> you are using so i can try that?

We assemble the recipe in the same file I mentioned before:
https://gitlab.flux.utah.edu/powder-profiles/oran/-/blob/master/setup-oran.sh
. You could instantiate the O-RAN profile using the `f-release` option
and grab the generated recipe overrides file.

David
> https://docs.o-ran-sc.org/projects/o-ran-sc-ric-plt-ric-dep/en/latest/installation-guides.html <https://docs.o-ran-sc.org/projects/o-ran-sc-ric-plt-ric-dep/en/latest/installation-guides.html>.
> > Is there a different version i should be using?
>
> We are similarly using the latest version. See
> https://gitlab.flux.utah.edu/powder-profiles/oran/-/blob/master/setup-oran.sh#L210 <https://gitlab.flux.utah.edu/powder-profiles/oran/-/blob/master/setup-oran.sh#L210>
> for how we configure it in the O-RAN profile.
>
> David
>
> > On Thursday, April 20, 2023 at 5:32:04 PM UTC-5
> john...@flux.utah.edu wrote:
> >
> >> On 4/20/23 15:38, Joshua Moore wrote:
> >>> I am at the last part of deploying the xapp, but am having an
> error. I
> >> have
> >>> attached a screenshot. It seems that it does not recognize the
> positional
> >>> argument for some reason?
> >>
> >> Hi Joshua. On my deployment of the current O-RAN profile in
> POWDER (I
> >> am using the less-tested `g-release` option), the dms_cli docs
> suggest
> >> you want to simply use positional params, but in my testing,
> they are
> >> happy with named (`/local/setup/oran/dms_cli install
> >> --xapp_chart_name=nexran --version=0.1.0 --namespace=ricxapp`) or
> >> positional (`/local/setup/oran/dms_cli install nexran 0.1.0
> ricxapp`).
> >> I'm not sure which dms_cli you're using.
> >>
> >> David
> >>
> >
> >
> > I am using the dms_cli tool from here
> >
> https://docs.o-ran-sc.org/projects/o-ran-sc-ric-plt-ric-dep/en/latest/installation-guides.html <https://docs.o-ran-sc.org/projects/o-ran-sc-ric-plt-ric-dep/en/latest/installation-guides.html>. Is there a different version i should be using?
> https://groups.google.com/d/msgid/powder-users/f62bf7ec-d2ef-433a-ab17-d6146fce3095n%40googlegroups.com <https://groups.google.com/d/msgid/powder-users/f62bf7ec-d2ef-433a-ab17-d6146fce3095n%40googlegroups.com> <https://groups.google.com/d/msgid/powder-users/f62bf7ec-d2ef-433a-ab17-d6146fce3095n%40googlegroups.com?utm_medium=email&utm_source=footer <https://groups.google.com/d/msgid/powder-users/f62bf7ec-d2ef-433a-ab17-d6146fce3095n%40googlegroups.com?utm_medium=email&utm_source=footer>>.
>
> --
> 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
> <mailto:powder-users...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/powder-users/47f93a07-5398-4e93-a65d-0da8bb5f7a30n%40googlegroups.com <https://groups.google.com/d/msgid/powder-users/47f93a07-5398-4e93-a65d-0da8bb5f7a30n%40googlegroups.com?utm_medium=email&utm_source=footer>.

Joshua Moore

unread,
May 9, 2023, 5:08:43 PM5/9/23
to Powder Users
Okay, it successfully deployed now with dms_cli.Whenever i try to send a curl command it says connection refused though.

Anything i can troubleshoot with?
Screenshot from 2023-05-09 16-06-29.png

Joshua Moore

unread,
May 9, 2023, 5:32:25 PM5/9/23
to Powder Users
After checking the logs it appears the northbound interface never opens.

David M. Johnson

unread,
May 10, 2023, 12:00:09 PM5/10/23
to powder...@googlegroups.com
By default, we do not open the northbound admin interface until RMR
routes have been provisioned to the xApp (see
https://gitlab.flux.utah.edu/powderrenewpublic/nexran/-/blob/master/src/nexran.cc#L604).
This may be an issue with your rtmgr, or perhaps xApp registration via
the appmgr's interface
(https://gitlab.flux.utah.edu/powderrenewpublic/nexran/-/blob/master/src/nexran.cc#L681)
failed, and therefore the xApp is stuck waiting for RMR. (You can set
the `RMR_NOWAIT` env var to `1` when you deploy the app, by changing its
json config file before onboarding it, and that should give you a
working northbound interface, but it probably won't do any good.)

To troubleshoot your RMR config, you can look here:
https://docs.o-ran-sc.org/projects/o-ran-sc-ric-plt-rtmgr/en/latest/developer-guide.html#testing-and-troubleshooting
(esp see step 2: "Check the routes..."). You want to make sure that the
RMR routes between the xApp and the various RIC microservices are
present as described in the xApp's config descriptor.

David
> https://gitlab.flux.utah.edu/powder-profiles/oran/-/blob/master/setup-oran.sh <https://gitlab.flux.utah.edu/powder-profiles/oran/-/blob/master/setup-oran.sh>
> . You could instantiate the O-RAN profile using the `f-release`
> option
> and grab the generated recipe overrides file.
>
> David
>
> > On Monday, May 8, 2023 at 2:48:11 PM UTC-5
> john...@flux.utah.edu wrote:
> >
> >> On 5/8/23 07:29, Joshua Moore wrote:
> >>> I am using the dms_cli tool from here
> >>>
> >>
> https://docs.o-ran-sc.org/projects/o-ran-sc-ric-plt-ric-dep/en/latest/installation-guides.html <https://docs.o-ran-sc.org/projects/o-ran-sc-ric-plt-ric-dep/en/latest/installation-guides.html> <https://docs.o-ran-sc.org/projects/o-ran-sc-ric-plt-ric-dep/en/latest/installation-guides.html <https://docs.o-ran-sc.org/projects/o-ran-sc-ric-plt-ric-dep/en/latest/installation-guides.html>>.
> > > Is there a different version i should be using?
> >
> > We are similarly using the latest version. See
> >
> https://gitlab.flux.utah.edu/powder-profiles/oran/-/blob/master/setup-oran.sh#L210 <https://gitlab.flux.utah.edu/powder-profiles/oran/-/blob/master/setup-oran.sh#L210> <https://gitlab.flux.utah.edu/powder-profiles/oran/-/blob/master/setup-oran.sh#L210 <https://gitlab.flux.utah.edu/powder-profiles/oran/-/blob/master/setup-oran.sh#L210>>
> https://docs.o-ran-sc.org/projects/o-ran-sc-ric-plt-ric-dep/en/latest/installation-guides.html <https://docs.o-ran-sc.org/projects/o-ran-sc-ric-plt-ric-dep/en/latest/installation-guides.html> <https://docs.o-ran-sc.org/projects/o-ran-sc-ric-plt-ric-dep/en/latest/installation-guides.html <https://docs.o-ran-sc.org/projects/o-ran-sc-ric-plt-ric-dep/en/latest/installation-guides.html>>. Is there a different version i should be using?
> https://groups.google.com/d/msgid/powder-users/f62bf7ec-d2ef-433a-ab17-d6146fce3095n%40googlegroups.com <https://groups.google.com/d/msgid/powder-users/f62bf7ec-d2ef-433a-ab17-d6146fce3095n%40googlegroups.com> <https://groups.google.com/d/msgid/powder-users/f62bf7ec-d2ef-433a-ab17-d6146fce3095n%40googlegroups.com <https://groups.google.com/d/msgid/powder-users/f62bf7ec-d2ef-433a-ab17-d6146fce3095n%40googlegroups.com>> <https://groups.google.com/d/msgid/powder-users/f62bf7ec-d2ef-433a-ab17-d6146fce3095n%40googlegroups.com?utm_medium=email&utm_source=footer <https://groups.google.com/d/msgid/powder-users/f62bf7ec-d2ef-433a-ab17-d6146fce3095n%40googlegroups.com?utm_medium=email&utm_source=footer> <https://groups.google.com/d/msgid/powder-users/f62bf7ec-d2ef-433a-ab17-d6146fce3095n%40googlegroups.com?utm_medium=email&utm_source=footer <https://groups.google.com/d/msgid/powder-users/f62bf7ec-d2ef-433a-ab17-d6146fce3095n%40googlegroups.com?utm_medium=email&utm_source=footer>>>.
> >
> > --
> > 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
> > <mailto:powder-users...@googlegroups.com>.
> > To view this discussion on the web visit
> >
> https://groups.google.com/d/msgid/powder-users/47f93a07-5398-4e93-a65d-0da8bb5f7a30n%40googlegroups.com <https://groups.google.com/d/msgid/powder-users/47f93a07-5398-4e93-a65d-0da8bb5f7a30n%40googlegroups.com> <https://groups.google.com/d/msgid/powder-users/47f93a07-5398-4e93-a65d-0da8bb5f7a30n%40googlegroups.com?utm_medium=email&utm_source=footer <https://groups.google.com/d/msgid/powder-users/47f93a07-5398-4e93-a65d-0da8bb5f7a30n%40googlegroups.com?utm_medium=email&utm_source=footer>>.
>
> --
> 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
> <mailto:powder-users...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/powder-users/a3bc4b77-19df-4a23-ac98-e15574acf6e6n%40googlegroups.com <https://groups.google.com/d/msgid/powder-users/a3bc4b77-19df-4a23-ac98-e15574acf6e6n%40googlegroups.com?utm_medium=email&utm_source=footer>.

Joshua Moore

unread,
May 10, 2023, 3:00:18 PM5/10/23
to Powder Users
We managed to get the northbound interface running but have gotten an error due to an environment variable missing.

Here is the error:

{"ts":1683739030573,"crit":"ERROR","id":"nexran","mdc":{},"msg":"SERVICE_RICXAPP_NEXRAN_HTTP_SERVICE_HOST not set; cannot register"}

We've looked through the code you've provided, but we are unable to find where the environment variables were set. At the same time, we have compared our Nexran xApp with the POWDER platform and noticed we are missing two environment variables: SERVICE_RICXAPP_NEXRAN_HTTP_SERVICE_PORT and SERVICE_RICXAPP_NEXRAN_HTTP_SERVICE_HOST

So, we were wondering where can we find the code to where the environment variable is being set and is there a specific way to get the HTTP Service Host IP address

David M. Johnson

unread,
May 12, 2023, 1:10:08 PM5/12/23
to powder...@googlegroups.com
On 5/10/23 13:00, Joshua Moore wrote:
> We managed to get the northbound interface running but have gotten an error
> due to an environment variable missing.
>
> Here is the error:
>
> {"ts":1683739030573,"crit":"ERROR","id":"nexran","mdc":{},"msg":"SERVICE_RICXAPP_NEXRAN_HTTP_SERVICE_HOST
> not set; cannot register"}
>
> We've looked through the code you've provided, but we are unable to find
> where the environment variables were set. At the same time, we have
> compared our Nexran xApp with the POWDER platform and noticed we are
> missing two environment variables: SERVICE_RICXAPP_NEXRAN_HTTP_SERVICE_PORT
> and SERVICE_RICXAPP_NEXRAN_HTTP_SERVICE_HOST
>
> So, we were wondering where can we find the code to where the environment
> variable is being set and is there a specific way to get the HTTP Service
> Host IP address

All of these variables are set by the appmgr service when it
instantiates the xApp, and the xApp uses their values to register via
the appmgr's http endpoint. See the addtion of the App::register_xapp
function, etc, in commit 5438bebb
(https://gitlab.flux.utah.edu/powderrenewpublic/nexran/-/commit/5438bebba15b863e62301dfd0ec78b36bac56866).

Unfortunately, I don't track the appmgr closely, so I only know that
this works against the appmgr versions packaged with the f- and
g-releases from OSC. Perhaps you are using dawn or e-release version of
the appmgr?

David
Reply all
Reply to author
Forward
0 new messages