Skip to content
Snippets Groups Projects
  1. Mar 13, 2025
  2. Feb 20, 2025
  3. Jan 22, 2025
  4. Jan 17, 2025
  5. Nov 26, 2024
    • Jaroslava Fiedlerova's avatar
      CI: increase timeout for OC CN deployment · dbc8fd49
      Jaroslava Fiedlerova authored
      Occasionally, the CN deployment takes longer than 60 seconds to complete
      successfully. As a result, the CI reports failure, even when all other test
      stages pass (e.g., gNB attaches to the CN, UE connects, and iperf tests succeed).
      dbc8fd49
  6. Nov 25, 2024
    • Robert Schmidt's avatar
      CI: PullClusterImage(): harmonize code · 74317e80
      Robert Schmidt authored
      - reuse cls_containerize.Containerize.PullImage()
      - pass parameter directly instead of indirectly via class
      - always read node name and use this instead of "sometimes" looking it
        up from a class member. With "sometimes" I mean that if no node name
        is given, it will take it from self.eNBIPAddress, which is confusing
        at best if we can give the node name directly
      - consistently put the node name in the xml file
      74317e80
  7. Nov 22, 2024
  8. Oct 22, 2024
    • Robert Schmidt's avatar
      CI: remove unknown imports and uses of names · 670e1fb8
      Robert Schmidt authored
      pyflakes warns about various errors, addressed here. For cls_cluster.py,
      remove (unknown) sys.exit and replace through Exception, as sys.exit()
      has the unwanted effect that the CI script would stop.  Instead, raise
      an Exception that would show the problem in the HTML, and ensures that
      the script runs until the end.
      
      These are the warnings flagged by pyflakes.
      
          cls_cluster.py:297:4: undefined name 'sys'
      
          cls_containerize.py:39:1: 'subprocess' imported but unused
          cls_containerize.py:41:1: 'threading' imported but unused
          cls_containerize.py:43:1: 'multiprocessing.Process' imported but unused
          cls_containerize.py:43:1: 'multiprocessing.Lock' imported but unused
          cls_containerize.py:43:1: 'multiprocessing.SimpleQueue' imported but unused
          cls_containerize.py:49:1: 'cls_cluster as OC' imported but unused
          cls_containerize.py:50:1: redefinition of unused 'cls_cmd' from line 42
      
          cls_module.py:28:1: 'os' imported but unused
          cls_module...
      670e1fb8
  9. Sep 28, 2024
    • Robert Schmidt's avatar
      Reimplement DeployObject()/UndeployObject() · 5201a5c3
      Robert Schmidt authored
      This reimplements the CI deployment functions, and makes them a bit more
      robust.  Concretely:
      
      - Introduce a generic "deployment tag" option that can be used to
        override the tag to use for specific images. By default, it is the
        current "branch-commitID[0:8]" tag name (requires the change from
        function ImageTagToUse() to CreateTag(), impacting also pull/push
        image functions)
      - Avoid sed for image names, and use an .env file that docker-compose
        picks up automatically; the deployment analyzes a potentially existing
        .env file and updates instead of simply overriding. For instance, some
        pipelines might use -asan images for the gNB and "normal" (non-asan)
        images for UE, and a simple overwriting might make the -asan image
        name tag disappear for the gNB, resulting in deployment failures).
        Finally, undeployment removes the .env file, so that there are no
        modifications in the repository after undeployment.
      - Redo the previous behavior of autodetecting asan, and use that (the
        current function always uses asan, no matter what)
      - Remove deployKind/displayedNewTags globals, as they are not necessary
      - Make the usedImage output in HTML slimmer
      - On undeployment, print service names next to undeploy analysis, and
        return success/failure.
      - Make the functions generally less verbose and easier to read
      
      Note that as of and only in this commit, deployment does not work, as
      all the YAML files have not been updated to work with this updated
      version.  The next commit adds tests for the new deployment, and updates
      one YAML file (also being used in the tests). The follow-up commit then
      modifies all YAML files.
      5201a5c3
  10. Sep 04, 2024
    • Bipin Adhikari's avatar
      Seperated Create_Workspace as a seperate XML task · 44d0c888
      Bipin Adhikari authored and Raphael Defosseux's avatar Raphael Defosseux committed
      Create_Workspace is used used in XML files instead of directly being
      executed in DeployObject(). This can be problematic if we deploy
      multiple services on the same host, since a previous workspace will be
      deleted. Also, it removes futile git clones.
      
      There are other XML steps (CppCheckAnalysis, LicenceAndFormattingCheck,
      BuildImage, BuildProxy, BuildClusterImage) that implicitly called
      Create_Workspace. Those calls have been removed and care has been taken
      to insert the corresponding Create_Workspace steps in the XML.
      44d0c888
  11. Aug 30, 2024
    • Robert Schmidt's avatar
      OCRegistry: do not add / · 72f7d040
      Robert Schmidt authored
      In the past, it seemed that we had to add a trailing slash (/) after the
      OpenShift Registry URI. Now, at least on the CI machine matix, this
      makes it fail:
      
          INFO: oc whoami -t | docker login -u oaicicd --password-stdin default-route-openshift-image-registry.apps.oai.cs.eurecom.fr/
          INFO: docker pull default-route-openshift-image-registry.apps.oai.cs.eurecom.fr/oaicicd-ran/oai-gnb:develop-46a1d2a6
          WARNING: command "docker pull default-route-openshift-image-registry.apps.oai.cs.eurecom.fr/oaicicd-ran/oai-gnb:develop-46a1d2a6" returned non-zero returncode 1: output:
          Error response from daemon: Head "https://default-route-openshift-image-registry.apps.oai.cs.eurecom.fr/v2/oaicicd-ran/oai-gnb/manifests/develop-46a1d2a6": unauthorized: authentication required
      
      Remove the trailing slash makes it work, like so:
      
          INFO: oc whoami -t | docker login -u oaicicd --password-stdin default-route-openshift-image-registry.apps.oai.cs.eurecom.fr
          INFO: docker pull default-route-openshift-image-registry.apps.oai.cs.eurecom.fr/oaicicd-ran/oai-gnb:develop-46a1d2a6
      
      The docker pull succeeds.
      72f7d040
  12. Aug 05, 2024
    • Jaroslava Fiedlerova's avatar
      CI: Add path and namespace configuration for OC CNs · 3cdb0d79
      Jaroslava Fiedlerova authored
      - Modify CN deployment and termination functions to include namespace and path parameters.
      - Update `Module_UE` class with new attributes for namespace and CN path.
      - Integrate `cnID` for OC CN deployment and termination in `epc.py`.
      - Extract `cn_id` from XML configurations for CN operations.
      - Update XML files to include `cn_id` tag for 5G Core initialization and
        termination. (Used in OAIUE and AW2S pipeline, for OC CN deployment. This change
      will not affect other CN deployments.)
      3cdb0d79
  13. Jul 13, 2024
  14. Apr 26, 2024
    • Jaroslava Fiedlerova's avatar
      Create functions for OC CN deployment/undeployment · bb078e61
      Jaroslava Fiedlerova authored
      These functions enables (un)deployment of the OAI CN v2.0.1, increase
      reliability and speedup overall CN (un)deployment compared to current
      implementation.
      
      Use "--wait" helm option to wait for deployment/undeployment of the CN.
      Wait for pods to be in a ready state before marking the release as
      successful. If not deployed/undeployed before timeout, marked as
      unsuccessful.
      
      Hardcode path for OC CN5G deployment/undeployment
      bb078e61
  15. Feb 08, 2024
  16. Feb 05, 2024
  17. Sep 14, 2023
  18. Jul 03, 2023
  19. Jun 06, 2023
  20. Jun 05, 2023
  21. Jun 01, 2023
  22. May 21, 2023
  23. Apr 21, 2023
  24. Apr 20, 2023
    • Robert Schmidt's avatar
      Add clang build on OpenShift Cluster · 62a5c499
      Robert Schmidt authored
      Add Dockerfile, OpenShift build config, and OpenShift image stream, to
      compile OAI using clang, notably to get compiler warnings and keep it
      OAI compilable using clang.
      62a5c499
  25. Apr 19, 2023
  26. Feb 08, 2023
  27. Jan 11, 2023
  28. Dec 14, 2022
  29. Oct 26, 2022
  30. Oct 25, 2022
  31. Oct 24, 2022
Loading