Skip to content
Snippets Groups Projects
  1. 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
  2. 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
  3. 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
  4. 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
  5. Jul 13, 2024
  6. 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
  7. Feb 08, 2024
  8. Feb 05, 2024
  9. Sep 14, 2023
  10. Jul 03, 2023
  11. Jun 06, 2023
  12. Jun 05, 2023
  13. Jun 01, 2023
  14. May 21, 2023
  15. Apr 21, 2023
  16. 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
  17. Apr 19, 2023
  18. Feb 08, 2023
  19. Jan 11, 2023
  20. Dec 14, 2022
  21. Oct 26, 2022
  22. Oct 25, 2022
  23. Oct 24, 2022
  24. Oct 10, 2022
  25. Oct 07, 2022
  26. Sep 29, 2022
  27. Sep 18, 2022
  28. Sep 16, 2022
  29. Sep 06, 2022
Loading