srsran / oran-sc-ric

Simplified ORAN SC RIC with improved usability and xApp examples
GNU Affero General Public License v3.0
32 stars 6 forks source link

Route Manager Simulator: no initialization of RMR library #8

Closed werefin closed 4 months ago

werefin commented 5 months ago

Hi @pgawlowicz.

Sorry to bother you again. However, I noticed that regarding the route manager simulator, rmr.init() is not called to initialize the RMR library provided to send/receive messages via the xApp, as you can see below.

image

Obviously this I don't think can be done at the xApp level, but I should do it directly from the docker-compose.yml file or from the rtmng.yaml.

Do you have any ideas on how to solve this issue? Would it be possible to start the RMR library for the route manager somehow from the docker files?

Thanks in advance.

Best regards, David

pgawlowicz commented 4 months ago

Do you know how to start it manually inside docker? Then, you can just add a RUN command here: https://github.com/srsran/oran-sc-ric/blob/main/ric/images/rtmgr_sim/Dockerfile

werefin commented 4 months ago

Hi @pgawlowicz, thanks for the answer.

Should I follow something like this? In which the rmr package is first taken from packagecloud.io and then run it?

Thanks in advance.

pgawlowicz commented 4 months ago

wait, do you want RMR in Routing Manager Simulator or do you want to use the real Routing Manager?

werefin commented 4 months ago

No, I want to use the Routing Manager Simulator and just activate the rmr library internally. I was thinking that I only need to copy/paste the lines below to solve the issue.

RUN apt update && apt install ca-certificates libgnutls30 -y
# Install rmr shared library
ARG RMRVERSION=4.9.4
RUN wget --content-disposition https://packagecloud.io/o-ran-sc/release/packages/debian/stretch/rmr_${RMRVERSION}_amd64.deb/download.deb && dpkg -i rmr_${RMRVERSION}_amd64.deb && rm -rf rmr_${RMRVERSION}_amd64.deb
# Install rmr development header files
RUN wget --content-disposition https://packagecloud.io/o-ran-sc/release/packages/debian/stretch/rmr-dev_${RMRVERSION}_amd64.deb/download.deb && dpkg -i rmr-dev_${RMRVERSION}_amd64.deb && rm -rf rmr-dev_${RMRVERSION}_amd64.deb

I'm sorry for the misunderstanding.

pgawlowicz commented 4 months ago

no problem, but why do you need RMR in the simulator?

pgawlowicz commented 4 months ago

I think you need L8-L13, L31,L33, L34, L60 from: https://github.com/srsran/oran-sc-ric/blob/main/ric/images/ric-plt-xapp-frame-py/Dockerfile

werefin commented 4 months ago

no problem, but why do you need RMR in the simulator?

The main reason is that I want to retrieve first the routing table using RMR library, and after that manipulate it to perform some tests.

I think you need L8-L13, L31,L33, L34, L60 from: https://github.com/srsran/oran-sc-ric/blob/main/ric/images/ric-plt-xapp-frame-py/Dockerfile

That seems that it is not activated properly, since there's no RMR [info] message displayed.

pgawlowicz commented 4 months ago

could you enter the docker container and try to run /opt/e2/rmr_probe ?

werefin commented 4 months ago

That's the result:

image

pgawlowicz commented 4 months ago

Did you copy the lines listed above and rebuild the docker image? could you check if there is rmr_probe inside this container?

pgawlowicz commented 4 months ago

hmm, the each docker container in this repo uses this route table https://github.com/srsran/oran-sc-ric/blob/main/ric/configs/routes.rtg, so you do not have to get it thought the RMR. Since this file is linked to each container it is enough to manipulate this file on your local machine as you initially tested. Or do you want to do sth more?

werefin commented 4 months ago

hmm, the each docker container in this repo uses this route table https://github.com/srsran/oran-sc-ric/blob/main/ric/configs/routes.rtg, so you do not have to get it thought the RMR. Since this file is linked to each container it is enough to manipulate this file on your local machine as you initially tested. Or do you want to do sth more?

Ok thanks a lot, I'll close the issue.