Skip to content

Install Requirements script needs to be updated for libyang installation

Reporters

  • Pantelis Malekas (UBITECH)
  • Lluis Gifre (CTTC)

Description

Libyang is Python library that needs to be installed according to the install_requirements.sh script. In the develop branch that I'm using, the script fails with the error: 'ERROR: Could not build wheels for libyang, which is required to install pyproject.toml-based projects'. I also attach the full log here: install_requirements.log

Now, the repo contains the fix of using the previous Libyang version of v2.1.148 (https://labs.etsi.org/rep/tfs/controller/-/blob/develop/install_requirements.sh#L35-36). However the git commands are executed outside of the cloned libyang folder. As a workaround, I locally added: 'cd libyang' before L35 and 'cd ..' after L36 so the rest of the script can proceed normally. There might be a cleaner fix.

It should be noted that the Dockerfile contains the folder change (https://labs.etsi.org/rep/tfs/controller/-/blob/develop/src/nbi/Dockerfile#L64-66), so nothings needs to be changed there. Only the install_requirements.sh script needs the said update.

Deployment environment

  • Ubuntu 22.04.4
  • MicroK8s 1.24/stable:
enabled:
    linkerd              # (community) Linkerd is a service mesh for Kubernetes and other frameworks
    community            # (core) The community addons repository
    dns                  # (core) CoreDNS
    ha-cluster           # (core) Configure high availability on the current node
    helm3                # (core) Helm 3 - Kubernetes package manager
    hostpath-storage     # (core) Storage class; allocates storage from host directory
    ingress              # (core) Ingress controller for external access
    metrics-server       # (core) K8s Metrics Server for API access to service metrics
    prometheus           # (core) Prometheus operator for monitoring and logging
    registry             # (core) Private image registry exposed on localhost:32000
    storage              # (core) Alias to hostpath-storage add-on, deprecated

TFS deployment settings

  • list of components deployed: context device pathcomp service slice nbi webui load_generator monitoring policy

Sequence of actions that resulted in the bug

  • See Description

Document the explicit error

  • See Description. Full log of ./install_requirements.sh is also provided.

Expected behaviour

  • install_requirements.sh should install libyang with the specified version

References