Skip to content

Instantly share code, notes, and snippets.

@TheAshwanik
Created September 8, 2021 15:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TheAshwanik/75bfcc539ed628f2bd8fc3410ab572a8 to your computer and use it in GitHub Desktop.
Save TheAshwanik/75bfcc539ed628f2bd8fc3410ab572a8 to your computer and use it in GitHub Desktop.
OSM Package translation to SOL006
https://opensourcemano.slack.com/archives/CA2TLA48Y/p1631033761066000?thread_ts=1631033639.065400&cid=CA2TLA48Y
A lot of people is trying to use old OSM packages with OSM Rel 9.
It's not possible since the previous information model has been deprecated in favor of SOL006.
Because of that, when you onboard the VNF package with osm vnfd-create, osm vnfpkg-create, or similar commadns, it fails with an error.
Rel Nine was launched without a translator from the old information model to the new information model based on SOL006.
In order to translate the old packages to the new format, you can do the following:
Update OSM client and IM to use the ones from the git repo
# Ubuntu 18.04 pre-requirements
sudo apt-get install python3-pip libcurl4-openssl-dev libssl-dev
# Centos pre-requirements
# sudo yum install python3-pip libcurl-devel gnutls-devel
sudo -H python3 -m pip install python-magic pyangbind verboselogs
# Install OSM Information model
sudo -H python3 -m pip install git+https://osm.etsi.org/gerrit/osm/IM --upgrade
# Clone the osmclient repo and install OSM client from the git repo.
git clone https://osm.etsi.org/gerrit/osm/osmclient
cd osmclient
python3 -m pip install --user -e .
# logout and login so that PATH can be updated. Executable osm will be found in /home/ubuntu/.local/bin
Make sure that you have a folder with the unzipped/untarred package
Translate the package with osm package-translate
In this presentation, you have more details about the tool:
https://docs.google.com/presentation/d/1lf4TiCAxNug187tBPdhsDWE8IosqZr3r/edit
In this video, you have a demo of the tool:
https://asciinema.org/a/fmA8NOKGA9rewOZCQlaua53WW
There are also some examples of SOL006 descriptors in the osm-packages repo.
If you want to use them with Rel NINE, do the following:
git clone https://osm.etsi.org/gitlab/vnf-onboarding/osm-packages.git
cd osm-packages
git checkout v9.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment