Skip to content
Snippets Groups Projects
Commit 67638ffb authored by Jan David Mol's avatar Jan David Mol
Browse files

generate cdb

parent bd66b24b
No related branches found
No related tags found
1 merge request!1081L2SS-2212 L2SS-2296: Fix FPGA addresses in CDB files, add deployment mechanism
Pipeline #114762 failed
Pipeline: tango

#114763

    ...@@ -61,9 +61,33 @@ run_shellcheck: ...@@ -61,9 +61,33 @@ run_shellcheck:
    STATIONS: cs001 cs032 rs307 STATIONS: cs001 cs032 rs307
    COMPONENTS: mesh-gateway monitoring logging tango object-storage object-replication sdptr device-server dsconfig ec-sim jupyter snmp-exporter landing-page rpc-server COMPONENTS: mesh-gateway monitoring logging tango object-storage object-replication sdptr device-server dsconfig ec-sim jupyter snmp-exporter landing-page rpc-server
    # Generate TangoDB configuration files for each station, serving as a default configuration
    # if none exists yet.
    generate_CDB:
    extends: .components
    stage: render
    needs:
    - trigger_prepare
    when: manual
    script:
    - |
    mkdir generate-cdb
    for STATION in ${STATIONS}; do
    echo "Generating CDB for station $STATION"
    LCU_IP=1.2.3.4 # hack, get this from NetBox
    python $CI_PROJECT_DIR/tangostationcontrol/toolkit/generate_cdb_from_lofar1.py -s ${STATION} -C -l ${LCU_IP} > generate-cdb/${STATION}.json
    done
    artifacts:
    expire_in: 4 weeks
    expose_as: 'generated cdb files'
    name: generated-cdb-files
    paths:
    - generate-cdb/
    # Collect TangoDB configuration files for each station, to be fed to dsconfig to populate # Collect TangoDB configuration files for each station, to be fed to dsconfig to populate
    # the Tango devices and their station-specific properties. # the Tango devices and their station-specific properties.
    render_CDB: collect_CDB:
    extends: .components extends: .components
    stage: render stage: render
    needs: [] needs: []
    ...@@ -163,7 +187,7 @@ render_levant: ...@@ -163,7 +187,7 @@ render_levant:
    test_CDB_correctness: test_CDB_correctness:
    needs: needs:
    - render_CDB - collect_CDB
    stage: test stage: test
    script: script:
    - | - |
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment