Skip to content

Sample outputs

Pawel Plesniak edited this page Aug 14, 2024 · 9 revisions

The command outputs here are separated for the application shells and the drunc-unified-shell unless the output in both shells is the same. Also note that the output from drunc-unified-shell is likely to be the same as the output from drunc-controller-shell if it is connected to root-controller.

For setting up dunedaq work environment

[pplesnia@np04-srv-019 nightlyDev]$ source /cvmfs/dunedaq.opensciencegrid.org/setup_dunedaq.sh
[pplesnia@np04-srv-019 nightlyDev]$ setup_dbt latest
Added /cvmfs/dunedaq.opensciencegrid.org/tools/dbt/v8.3.0/bin -> PATH
Added /cvmfs/dunedaq.opensciencegrid.org/tools/dbt/v8.3.0/scripts -> PATH
DBT setuptools loaded
[pplesnia@np04-srv-019 nightlyDev]$ dbt-create -n NFD_DEV_240808_A9 240808
Setting up the Python subsystem.

This script is calling "spack load systems@NB_DEV_240808_A9"; it will print "Finished loading"
on successful completion.

If this is the first time the "spack load ..." command has been run in
a while on this node it may take ~15 minutes; this is because cvmfs is
populating its local cache. Please be patient; subsequent runs should
take less than a minute.

Finished loading

INFO [08/09/24 10:04:19]: creating virtual_env .venv by cloning
/cvmfs/dunedaq-development.opensciencegrid.org/nightly/NFD_DEV_240808_A9/.venv.
Depending on a variety of factors this can take from several seconds to several minutes...

Total time to run /cvmfs/dunedaq.opensciencegrid.org/tools/dbt/v8.3.0/bin/dbt-create: 30 seconds
Start time: Fri Aug 9 10:04:11 CEST 2024
End time:   Fri Aug 9 10:04:41 CEST 2024

See https://dune-daq-sw.readthedocs.io/en/latest/packages/daq-buildtools for build instructions

Script completed successfully
[pplesnia@np04-srv-019 sourcecode]$ cd 240808
[pplesnia@np04-srv-019 240808]$ . env.sh
Updated /cvmfs/dunedaq.opensciencegrid.org/tools/dbt/v8.3.0/bin -> PATH
Updated /cvmfs/dunedaq.opensciencegrid.org/tools/dbt/v8.3.0/scripts -> PATH
DBT setuptools loaded
Work area: '/nfs/home/pplesnia/nightlyDev/240808'

This script hasn't yet been sourced (successfully) in this shell; setting up the build environment


This script is calling "spack load fddaq@NFD_DEV_240808_A9"; it will print "Finished loading"
on successful completion.

If this is the first time the "spack load ..." command has been run in
a while on this node it may take ~15 minutes; this is because cvmfs is
populating its local cache. Please be patient; subsequent runs should
take less than a minute.

Finished loading

Now loading devtools for latest CMake, gcc, etc.

Found venv in the current workarea, activating it now...

Updating paths...
Added /nfs/home/pplesnia/nightlyDev/240808/install/druncschema/bin -> PATH
Added /nfs/home/pplesnia/nightlyDev/240808/install/druncschema/test/bin -> PATH
Added /nfs/home/pplesnia/nightlyDev/240808/install/druncschema/lib64/python -> PYTHONPATH
Added /nfs/home/pplesnia/nightlyDev/240808/install/druncschema/lib64 -> LD_LIBRARY_PATH
Added /nfs/home/pplesnia/nightlyDev/240808/install/druncschema/test/lib64 -> LD_LIBRARY_PATH
Added /nfs/home/pplesnia/nightlyDev/240808/install/druncschema/lib64 -> CET_PLUGIN_PATH
Added /nfs/home/pplesnia/nightlyDev/240808/install/druncschema/test/lib64 -> CET_PLUGIN_PATH
Added /nfs/home/pplesnia/nightlyDev/240808/install/druncschema/share -> DUNEDAQ_SHARE_PATH
Added /nfs/home/pplesnia/nightlyDev/240808/sourcecode/druncschema -> DUNEDAQ_DB_PATH
...done

This script has been sourced successfully

(dbt) [pplesnia@np04-srv-019 sourcecode]$ cd sourcecode
(dbt) [pplesnia@np04-srv-019 sourcecode]$ git clone [email protected]:DUNE-DAQ/drunc.git -b develop
Cloning into 'drunc'...
remote: Enumerating objects: 5952, done.
remote: Counting objects: 100% (1535/1535), done.
remote: Compressing objects: 100% (428/428), done.
remote: Total 5952 (delta 1022), reused 1340 (delta 946), pack-reused 4417
Receiving objects: 100% (5952/5952), 1.51 MiB | 3.12 MiB/s, done.
Resolving deltas: 100% (3775/3775), done.
(dbt) [pplesnia@np04-srv-019 sourcecode]$ git clone [email protected]:DUNE-DAQ/druncschema.git -b develop
Cloning into 'druncschema'...
remote: Enumerating objects: 454, done.
remote: Counting objects: 100% (168/168), done.
remote: Compressing objects: 100% (80/80), done.
remote: Total 454 (delta 85), reused 123 (delta 62), pack-reused 286
Receiving objects: 100% (454/454), 102.41 KiB | 576.00 KiB/s, done.
Resolving deltas: 100% (254/254), done.

(dbt) [pplesnia@np04-srv-019 sourcecode]$ cd ..
(dbt) [pplesnia@np04-srv-019 240808]$ dbt-build
Executing 'cmake -DCMAKE_POLICY_DEFAULT_CMP0116=OLD -DCMAKE_MESSAGE_LOG_LEVEL=NOTICE
-DMOO_CMD=/cvmfs/dunedaq.opensciencegrid.org/spack/externals/ext-v2.1/spack-0.22.0/opt/spack/linux-almalinux9-x86_64/gcc-12.1.0/py-moo-0.6.7-ha3pgmoabupgp3ztoxjfpvr6ces7qgb7/bin/moo
-DDBT_ROOT=/cvmfs/dunedaq.opensciencegrid.org/tools/dbt/v8.3.0 -DDBT_DEBUG=false -DDBT_OPTIMIZE_FLAG=None -DCMAKE_INSTALL_PREFIX=/nfs/home/pplesnia/nightlyDev/240808/install -G Ninja
/nfs/home/pplesnia/nightlyDev/240808/sourcecode'
CMake Warning at /cvmfs/dunedaq.opensciencegrid.org/tools/dbt/v8.3.0/cmake/DAQTopprojHelpers.cmake:30 (_message):
  Skipping directory drunc: No CMakeLists.txt found.
Call Stack (most recent call first):
  /cvmfs/dunedaq.opensciencegrid.org/tools/dbt/v8.3.0/cmake/DAQTopprojHelpers.cmake:58 (message)
  /cvmfs/dunedaq.opensciencegrid.org/tools/dbt/v8.3.0/cmake/DAQTopprojHelpers.cmake:112 (daq_list_proj_subdirs)
  CMakeLists.txt:18 (daq_add_subpackages)


CMake Warning at /cvmfs/dunedaq.opensciencegrid.org/tools/dbt/v8.3.0/cmake/DAQTopprojHelpers.cmake:30 (_message):
  Package "druncschema" not provided to the daq_add_subpackages
  function in /nfs/home/pplesnia/nightlyDev/240808/sourcecode/CMakeLists.txt.
  druncschema will only be built after the provided packages are built.
  There's no guarantee this is the correct order; if you know where
  druncschema should be in the dependency hierarchy add it to its appropriate
  place in
  /nfs/home/pplesnia/nightlyDev/240808/sourcecode/dbt-build-order.cmake
Call Stack (most recent call first):
  /cvmfs/dunedaq.opensciencegrid.org/tools/dbt/v8.3.0/cmake/DAQTopprojHelpers.cmake:127 (message)
  CMakeLists.txt:18 (daq_add_subpackages)


CHECK_START;Performing Test HAS_FLTO
CHECK_PASS;Success
-- Configuring done (4.5s)
-- Generating done (0.0s)
-- Build files have been written to: /nfs/home/pplesnia/nightlyDev/240808/build
This script believes you have 32 processors available on this system, and will use as many of them as it can
Executing 'cmake --build .  --target install -j 32'
[0/2] Re-checking globbed directories...
[0/21] Generating phony_druncschema_build_info.json
[0/21] Generating codegen/include/druncschema/authoriser.pb.cc, codegen/include/druncschema/authoriser....a/token.pb.h, codegen/include/druncschema/token.grpc.pb.cc, codegen/include/druncschema/token.grpc.pb.
[1/21] Generating phony_druncschema_build_info.json
[2/21] Generating codegen/include/druncschema/authoriser.pb.cc, codegen/include/druncschema/authoriser....a/token.pb.h, codegen/include/druncschema/token.grpc.pb.cc, codegen/include/druncschema/token.grpc.pb.
[2/21] Building CXX object druncschema/CMakeFiles/druncschema.dir/src/dummy.cpp.o
[2/21] Building CXX object druncschema/CMakeFiles/druncschema.dir/codegen/include/druncschema/controller.pb.cc.o
[2/21] Building CXX object druncschema/CMakeFiles/druncschema.dir/codegen/include/druncschema/authoriser.pb.cc.o
[2/21] Building CXX object druncschema/CMakeFiles/druncschema.dir/codegen/include/druncschema/authoriser.grpc.pb.cc.o
[2/21] Building CXX object druncschema/CMakeFiles/druncschema.dir/codegen/include/druncschema/broadcast.pb.cc.o
[2/21] Building CXX object druncschema/CMakeFiles/druncschema.dir/codegen/include/druncschema/broadcast.grpc.pb.cc.o
[2/21] Building CXX object druncschema/CMakeFiles/druncschema.dir/codegen/include/druncschema/controller.grpc.pb.cc.o
[2/21] Building CXX object druncschema/CMakeFiles/druncschema.dir/codegen/include/druncschema/session_manager.pb.cc.o
[2/21] Building CXX object druncschema/CMakeFiles/druncschema.dir/codegen/include/druncschema/generic.pb.cc.o
[2/21] Building CXX object druncschema/CMakeFiles/druncschema.dir/codegen/include/druncschema/generic.grpc.pb.cc.o
[2/21] Building CXX object druncschema/CMakeFiles/druncschema.dir/codegen/include/druncschema/process_manager.pb.cc.o
[2/21] Building CXX object druncschema/CMakeFiles/druncschema.dir/codegen/include/druncschema/process_manager.grpc.pb.cc.o
[2/21] Building CXX object druncschema/CMakeFiles/druncschema.dir/codegen/include/druncschema/request_response.pb.cc.o
[2/21] Building CXX object druncschema/CMakeFiles/druncschema.dir/codegen/include/druncschema/request_response.grpc.pb.cc.o
[2/21] Building CXX object druncschema/CMakeFiles/druncschema.dir/codegen/include/druncschema/session_manager.grpc.pb.cc.o
[2/21] Building CXX object druncschema/CMakeFiles/druncschema.dir/codegen/include/druncschema/token.pb.cc.o
[2/21] Building CXX object druncschema/CMakeFiles/druncschema.dir/codegen/include/druncschema/token.grpc.pb.cc.o
[3/21] Building CXX object druncschema/CMakeFiles/druncschema.dir/src/dummy.cpp.o
[4/21] Building CXX object druncschema/CMakeFiles/druncschema.dir/codegen/include/druncschema/authoriser.pb.cc.o
[5/21] Building CXX object druncschema/CMakeFiles/druncschema.dir/codegen/include/druncschema/token.pb.cc.o
[6/21] Building CXX object druncschema/CMakeFiles/druncschema.dir/codegen/include/druncschema/request_response.pb.cc.o
[7/21] Building CXX object druncschema/CMakeFiles/druncschema.dir/codegen/include/druncschema/broadcast.pb.cc.o
[8/21] Building CXX object druncschema/CMakeFiles/druncschema.dir/codegen/include/druncschema/token.grpc.pb.cc.o
[9/21] Building CXX object druncschema/CMakeFiles/druncschema.dir/codegen/include/druncschema/generic.grpc.pb.cc.o
[10/21] Building CXX object druncschema/CMakeFiles/druncschema.dir/codegen/include/druncschema/request_response.grpc.pb.cc.o
[11/21] Building CXX object druncschema/CMakeFiles/druncschema.dir/codegen/include/druncschema/authoriser.grpc.pb.cc.o
[12/21] Building CXX object druncschema/CMakeFiles/druncschema.dir/codegen/include/druncschema/session_manager.pb.cc.o
[13/21] Building CXX object druncschema/CMakeFiles/druncschema.dir/codegen/include/druncschema/generic.pb.cc.o
[14/21] Building CXX object druncschema/CMakeFiles/druncschema.dir/codegen/include/druncschema/controller.pb.cc.o
[15/21] Building CXX object druncschema/CMakeFiles/druncschema.dir/codegen/include/druncschema/process_manager.pb.cc.o
[16/21] Building CXX object druncschema/CMakeFiles/druncschema.dir/codegen/include/druncschema/broadcast.grpc.pb.cc.o
[17/21] Building CXX object druncschema/CMakeFiles/druncschema.dir/codegen/include/druncschema/session_manager.grpc.pb.cc.o
[18/21] Building CXX object druncschema/CMakeFiles/druncschema.dir/codegen/include/druncschema/controller.grpc.pb.cc.o
[19/21] Building CXX object druncschema/CMakeFiles/druncschema.dir/codegen/include/druncschema/process_manager.grpc.pb.cc.o
[19/21] Linking CXX shared library druncschema/src/libdruncschema.so
[20/21] Linking CXX shared library druncschema/src/libdruncschema.so
[20/21] Install the project...
-- Install configuration: ""
-- Installing: /nfs/home/pplesnia/nightlyDev/240808/install/druncschema/lib64/libdruncschema.so
-- Set runtime path of "/nfs/home/pplesnia/nightlyDev/240808/install/druncschema/lib64/libdruncschema.so" to ""
-- Installing: /nfs/home/pplesnia/nightlyDev/240808/install/druncschema/druncschema_build_info.json
-- Installing: /nfs/home/pplesnia/nightlyDev/240808/install/druncschema/lib64/druncschema/cmake/druncschemaTargets.cmake
-- Installing: /nfs/home/pplesnia/nightlyDev/240808/install/druncschema/lib64/druncschema/cmake/druncschemaTargets-noconfig.cmake
-- Installing: /nfs/home/pplesnia/nightlyDev/240808/install/druncschema/include/druncschema
-- Up-to-date: /nfs/home/pplesnia/nightlyDev/240808/install/druncschema/include/druncschema
-- Installing: /nfs/home/pplesnia/nightlyDev/240808/install/druncschema/include/druncschema/broadcast.pb.h
-- Installing: /nfs/home/pplesnia/nightlyDev/240808/install/druncschema/include/druncschema/session_manager.grpc.pb.h
-- Installing: /nfs/home/pplesnia/nightlyDev/240808/install/druncschema/include/druncschema/controller.pb.h
-- Installing: /nfs/home/pplesnia/nightlyDev/240808/install/druncschema/include/druncschema/controller.grpc.pb.h
-- Installing: /nfs/home/pplesnia/nightlyDev/240808/install/druncschema/include/druncschema/request_response.grpc.pb.h
-- Installing: /nfs/home/pplesnia/nightlyDev/240808/install/druncschema/include/druncschema/authoriser.pb.h
-- Installing: /nfs/home/pplesnia/nightlyDev/240808/install/druncschema/include/druncschema/token.pb.h
-- Installing: /nfs/home/pplesnia/nightlyDev/240808/install/druncschema/include/druncschema/generic.pb.h
-- Installing: /nfs/home/pplesnia/nightlyDev/240808/install/druncschema/include/druncschema/generic.grpc.pb.h
-- Installing: /nfs/home/pplesnia/nightlyDev/240808/install/druncschema/include/druncschema/process_manager.grpc.pb.h
-- Installing: /nfs/home/pplesnia/nightlyDev/240808/install/druncschema/include/druncschema/authoriser.grpc.pb.h
-- Installing: /nfs/home/pplesnia/nightlyDev/240808/install/druncschema/include/druncschema/process_manager.pb.h
-- Installing: /nfs/home/pplesnia/nightlyDev/240808/install/druncschema/include/druncschema/request_response.pb.h
-- Installing: /nfs/home/pplesnia/nightlyDev/240808/install/druncschema/include/druncschema/broadcast.grpc.pb.h
-- Installing: /nfs/home/pplesnia/nightlyDev/240808/install/druncschema/include/druncschema/token.grpc.pb.h
-- Installing: /nfs/home/pplesnia/nightlyDev/240808/install/druncschema/include/druncschema/session_manager.pb.h
-- Installing: /nfs/home/pplesnia/nightlyDev/240808/install/druncschema/lib64/python/druncschema
-- Installing: /nfs/home/pplesnia/nightlyDev/240808/install/druncschema/lib64/python/druncschema/token_pb2.py
-- Installing: /nfs/home/pplesnia/nightlyDev/240808/install/druncschema/lib64/python/druncschema/generic_pb2.py
-- Installing: /nfs/home/pplesnia/nightlyDev/240808/install/druncschema/lib64/python/druncschema/request_response_pb2.py
-- Installing: /nfs/home/pplesnia/nightlyDev/240808/install/druncschema/lib64/python/druncschema/authoriser_pb2_grpc.py
-- Installing: /nfs/home/pplesnia/nightlyDev/240808/install/druncschema/lib64/python/druncschema/controller_pb2_grpc.py
-- Installing: /nfs/home/pplesnia/nightlyDev/240808/install/druncschema/lib64/python/druncschema/process_manager_pb2_grpc.py
-- Installing: /nfs/home/pplesnia/nightlyDev/240808/install/druncschema/lib64/python/druncschema/token_pb2_grpc.py
-- Installing: /nfs/home/pplesnia/nightlyDev/240808/install/druncschema/lib64/python/druncschema/authoriser_pb2.py
-- Installing: /nfs/home/pplesnia/nightlyDev/240808/install/druncschema/lib64/python/druncschema/controller_pb2.py
-- Installing: /nfs/home/pplesnia/nightlyDev/240808/install/druncschema/lib64/python/druncschema/session_manager_pb2.py
-- Installing: /nfs/home/pplesnia/nightlyDev/240808/install/druncschema/lib64/python/druncschema/broadcast_pb2_grpc.py
-- Installing: /nfs/home/pplesnia/nightlyDev/240808/install/druncschema/lib64/python/druncschema/session_manager_pb2_grpc.py
-- Installing: /nfs/home/pplesnia/nightlyDev/240808/install/druncschema/lib64/python/druncschema/generic_pb2_grpc.py
-- Installing: /nfs/home/pplesnia/nightlyDev/240808/install/druncschema/lib64/python/druncschema/broadcast_pb2.py
-- Installing: /nfs/home/pplesnia/nightlyDev/240808/install/druncschema/lib64/python/druncschema/process_manager_pb2.py
-- Installing: /nfs/home/pplesnia/nightlyDev/240808/install/druncschema/lib64/python/druncschema/request_response_pb2_grpc.py
-- Up-to-date: /nfs/home/pplesnia/nightlyDev/240808/install/druncschema/lib64/druncschema/cmake
-- Installing: /nfs/home/pplesnia/nightlyDev/240808/install/druncschema/share/schema
-- Installing: /nfs/home/pplesnia/nightlyDev/240808/install/druncschema/share/schema/druncschema
-- Installing: /nfs/home/pplesnia/nightlyDev/240808/install/druncschema/share/schema/druncschema/request_response.proto
-- Installing: /nfs/home/pplesnia/nightlyDev/240808/install/druncschema/share/schema/druncschema/session_manager.proto
-- Installing: /nfs/home/pplesnia/nightlyDev/240808/install/druncschema/share/schema/druncschema/controller.proto
-- Installing: /nfs/home/pplesnia/nightlyDev/240808/install/druncschema/share/schema/druncschema/broadcast.proto
-- Installing: /nfs/home/pplesnia/nightlyDev/240808/install/druncschema/share/schema/druncschema/token.proto
-- Installing: /nfs/home/pplesnia/nightlyDev/240808/install/druncschema/share/schema/druncschema/generic.proto
-- Installing: /nfs/home/pplesnia/nightlyDev/240808/install/druncschema/share/schema/druncschema/process_manager.proto
-- Installing: /nfs/home/pplesnia/nightlyDev/240808/install/druncschema/share/schema/druncschema/authoriser.proto
-- Installing: /nfs/home/pplesnia/nightlyDev/240808/install/druncschema/lib64/druncschema/cmake/druncschemaConfigVersion.cmake
-- Installing: /nfs/home/pplesnia/nightlyDev/240808/install/druncschema/lib64/druncschema/cmake/druncschemaConfig.cmake


CMake's build file config+generate stages took 5 seconds
Start time: Fri Aug 9 10:09:36 CEST 2024
End time:   Fri Aug 9 10:09:41 CEST 2024

CMake's build+install stages took 16 seconds
Start time: Fri Aug 9 10:09:41 CEST 2024
End time:   Fri Aug 9 10:09:57 CEST 2024

This script is ending normally. This implies your code successfully compiled; to see
build details you can either scroll up or run the following:

less -R /nfs/home/pplesnia/nightlyDev/240808/log/build_attempt_Fri_Aug_9_10_09_36_AM_CEST_2024.log

(dbt) [pplesnia@np04-srv-019 240808]$ dbt-workarea-env
Work area: '/nfs/home/pplesnia/nightlyDev/240808'

The build environment has already been setup. Skipping package load/Python environment activation.

Updating paths...
Updated /nfs/home/pplesnia/nightlyDev/240808/install/druncschema/bin -> PATH
Updated /nfs/home/pplesnia/nightlyDev/240808/install/druncschema/test/bin -> PATH
Updated /nfs/home/pplesnia/nightlyDev/240808/install/druncschema/lib64/python -> PYTHONPATH
Updated /nfs/home/pplesnia/nightlyDev/240808/install/druncschema/lib64 -> LD_LIBRARY_PATH
Updated /nfs/home/pplesnia/nightlyDev/240808/install/druncschema/test/lib64 -> LD_LIBRARY_PATH
Updated /nfs/home/pplesnia/nightlyDev/240808/install/druncschema/lib64 -> CET_PLUGIN_PATH
Updated /nfs/home/pplesnia/nightlyDev/240808/install/druncschema/test/lib64 -> CET_PLUGIN_PATH
Updated /nfs/home/pplesnia/nightlyDev/240808/install/druncschema/share -> DUNEDAQ_SHARE_PATH
Updated /nfs/home/pplesnia/nightlyDev/240808/sourcecode/druncschema -> DUNEDAQ_DB_PATH
...done

This script has been sourced successfully

process_manager commands

boot - before progress bars

(dbt) [pplesnia@np04-srv-019 drunc]$ drunc-unified-shell ssh-standalone
Starting process manager with configuration file:///nfs/home/pplesnia/nightlyDev/240805/sourcecode/drunc/src/drunc/data/process_manager/ssh-standalone.json
Using 'file:///nfs/home/pplesnia/nightlyDev/240805/sourcecode/drunc/src/drunc/data/process_manager/ssh-standalone.json' as the ProcessManager configuration
Starting 'SSHProcessManager'
[11:52:36] INFO     "BroadcastSenderConfHandler": None                                                                                                                              configuration.py:25
           INFO     "Controller": DummyAuthoriser ready                                                                                                                          dummy_authoriser.py:13
ProcessManager was started on np04-srv-019:10054
[11:52:36] INFO     "unified": localhost:10054 is 'process_manager.pplesnia' (name.session), starting listening...                                                                   shell_utils.py:284
drunc-unified-shell > boot test/config/test-session.data.xml test-session
test/config/test-session.data.xml
[11:54:22] INFO     "_convert_oks_to_boot_request":                                                                                                                        process_manager_driver.py:35
                    /cvmfs/dunedaq-development.opensciencegrid.org/nightly/NB_DEV_240805_A9/spack-0.22.0/opt/spack/linux-almalinux9-x86_64/gcc-12.1.0/appmodel-NB_DEV_2408                             
                    05_A9-ogm7fojt4qcerq2dcitwso2o3mmpld2y/share/test/config/test-session.data.xml                                                                                                     
           INFO     "collect_apps": Ignoring disabled app ru-02                                                                                                                        oks_parser.py:95
           INFO     "collect_apps": Ignoring disabled app ru-03                                                                                                                        oks_parser.py:95
           INFO     "process_manager_driver": RTE script was not supplied in the OKS configuration, using the one from local enviroment instead                            process_manager_driver.py:82
[11:54:22] INFO     "ssh-process-manager": Booting user: "pplesnia"                                                                                                          ssh_process_manager.py:220
                    session: "test-session"                                                                                                                                                            
                    name: "root-controller"                                                                                                                                                            
                    tree_id: "1.0.0"                                                                                                                                                                   
                                                                                                                                                                                                       
[11:54:25] INFO     "ssh-process-manager": Booted root-controller uid: cb986b26-221c-4819-bc9b-20825b11bee9                                                                  ssh_process_manager.py:299
'root-controller' (cb986b26-221c-4819-bc9b-20825b11bee9) process started
[11:54:25] INFO     "process_manager_driver": RTE script was not supplied in the OKS configuration, using the one from local enviroment instead                            process_manager_driver.py:82
           INFO     "ssh-process-manager": Booting user: "pplesnia"                                                                                                          ssh_process_manager.py:220
                    session: "test-session"                                                                                                                                                            
                    name: "ru-controller"                                                                                                                                                              
                    tree_id: "1.1.0"                                                                                                                                                                   
                                                                                                                                                                                                       
           INFO     "ssh-process-manager": Booted ru-controller uid: 2715c09e-d568-4e86-80a2-bb7827fd46fc                                                                    ssh_process_manager.py:299
'ru-controller' (2715c09e-d568-4e86-80a2-bb7827fd46fc) process started
           INFO     "process_manager_driver": RTE script was not supplied in the OKS configuration, using the one from local enviroment instead                            process_manager_driver.py:82
           INFO     "ssh-process-manager": Booting user: "pplesnia"                                                                                                          ssh_process_manager.py:220
                    session: "test-session"                                                                                                                                                            
                    name: "ru-01"                                                                                                                                                                      
                    tree_id: "1.1.1"                                                                                                                                                                   
                                                                                                                                                                                                       
[11:54:26] INFO     "ssh-process-manager": Booted ru-01 uid: d93f7922-377e-463f-8b26-523b73fb7d6b                                                                            ssh_process_manager.py:299
'ru-01' (d93f7922-377e-463f-8b26-523b73fb7d6b) process started
[11:54:26] INFO     "process_manager_driver": RTE script was not supplied in the OKS configuration, using the one from local enviroment instead                            process_manager_driver.py:82
           INFO     "ssh-process-manager": Booting user: "pplesnia"                                                                                                          ssh_process_manager.py:220
                    session: "test-session"                                                                                                                                                            
                    name: "df-controller"                                                                                                                                                              
                    tree_id: "1.2.0"                                                                                                                                                                   
                                                                                                                                                                                                       
           INFO     "ssh-process-manager": Booted df-controller uid: d91c71f7-3c41-4a7e-aab0-7fb98d99c071                                                                    ssh_process_manager.py:299
'df-controller' (d91c71f7-3c41-4a7e-aab0-7fb98d99c071) process started
           INFO     "process_manager_driver": RTE script was not supplied in the OKS configuration, using the one from local enviroment instead                            process_manager_driver.py:82
           INFO     "ssh-process-manager": Booting user: "pplesnia"                                                                                                          ssh_process_manager.py:220
                    session: "test-session"                                                                                                                                                            
                    name: "tp-stream-writer"                                                                                                                                                           
                    tree_id: "1.2.1"                                                                                                                                                                   
                                                                                                                                                                                                       
           INFO     "ssh-process-manager": Booted tp-stream-writer uid: 225c8e51-b63e-43e6-9eb7-19e68dff48fc                                                                 ssh_process_manager.py:299
'tp-stream-writer' (225c8e51-b63e-43e6-9eb7-19e68dff48fc) process started
           INFO     "process_manager_driver": RTE script was not supplied in the OKS configuration, using the one from local enviroment instead                            process_manager_driver.py:82
           INFO     "ssh-process-manager": Booting user: "pplesnia"                                                                                                          ssh_process_manager.py:220
                    session: "test-session"                                                                                                                                                            
                    name: "dfo-01"                                                                                                                                                                     
                    tree_id: "1.2.2"                                                                                                                                                                   
                                                                                                                                                                                                       
           INFO     "ssh-process-manager": Booted dfo-01 uid: 4e96ed38-3815-44d1-9281-2fe9378cdd12                                                                           ssh_process_manager.py:299
'dfo-01' (4e96ed38-3815-44d1-9281-2fe9378cdd12) process started
           INFO     "process_manager_driver": RTE script was not supplied in the OKS configuration, using the one from local enviroment instead                            process_manager_driver.py:82
           INFO     "ssh-process-manager": Booting user: "pplesnia"                                                                                                          ssh_process_manager.py:220
                    session: "test-session"                                                                                                                                                            
                    name: "df-01"                                                                                                                                                                      
                    tree_id: "1.2.3"                                                                                                                                                                   
                                                                                                                                                                                                       
           INFO     "ssh-process-manager": Booted df-01 uid: eb66ba51-7eb6-4456-b8e3-bd79bda7eed0                                                                            ssh_process_manager.py:299
'df-01' (eb66ba51-7eb6-4456-b8e3-bd79bda7eed0) process started
           INFO     "process_manager_driver": RTE script was not supplied in the OKS configuration, using the one from local enviroment instead                            process_manager_driver.py:82
           INFO     "ssh-process-manager": Booting user: "pplesnia"                                                                                                          ssh_process_manager.py:220
                    session: "test-session"                                                                                                                                                            
                    name: "df-02"                                                                                                                                                                      
                    tree_id: "1.2.4"                                                                                                                                                                   
                                                                                                                                                                                                       
           INFO     "ssh-process-manager": Booted df-02 uid: a5aea894-5ecd-4edb-90e5-26b7dc3e2c65                                                                            ssh_process_manager.py:299
'df-02' (a5aea894-5ecd-4edb-90e5-26b7dc3e2c65) process started
           INFO     "process_manager_driver": RTE script was not supplied in the OKS configuration, using the one from local enviroment instead                            process_manager_driver.py:82
           INFO     "ssh-process-manager": Booting user: "pplesnia"                                                                                                          ssh_process_manager.py:220
                    session: "test-session"                                                                                                                                                            
                    name: "trg-controller"                                                                                                                                                             
                    tree_id: "1.3.0"                                                                                                                                                                   
                                                                                                                                                                                                       
           INFO     "ssh-process-manager": Booted trg-controller uid: 380ba19f-0fbd-4729-88a6-c09f746f3e48                                                                   ssh_process_manager.py:299
'trg-controller' (380ba19f-0fbd-4729-88a6-c09f746f3e48) process started
           INFO     "process_manager_driver": RTE script was not supplied in the OKS configuration, using the one from local enviroment instead                            process_manager_driver.py:82
           INFO     "ssh-process-manager": Booting user: "pplesnia"                                                                                                          ssh_process_manager.py:220
                    session: "test-session"                                                                                                                                                            
                    name: "tc-maker-1"                                                                                                                                                                 
                    tree_id: "1.3.1"                                                                                                                                                                   
                                                                                                                                                                                                       
           INFO     "ssh-process-manager": Booted tc-maker-1 uid: 26338541-5d58-4d05-858d-9dc0fc64bc95                                                                       ssh_process_manager.py:299
'tc-maker-1' (26338541-5d58-4d05-858d-9dc0fc64bc95) process started
           INFO     "process_manager_driver": RTE script was not supplied in the OKS configuration, using the one from local enviroment instead                            process_manager_driver.py:82
           INFO     "ssh-process-manager": Booting user: "pplesnia"                                                                                                          ssh_process_manager.py:220
                    session: "test-session"                                                                                                                                                            
                    name: "mlt"                                                                                                                                                                        
                    tree_id: "1.3.2"                                                                                                                                                                   
                                                                                                                                                                                                       
           INFO     "ssh-process-manager": Booted mlt uid: ff2e8437-7f31-4655-b370-8b65bbfbf9c0                                                                              ssh_process_manager.py:299
'mlt' (ff2e8437-7f31-4655-b370-8b65bbfbf9c0) process started
           INFO     "process_manager_driver": RTE script was not supplied in the OKS configuration, using the one from local enviroment instead                            process_manager_driver.py:82
           INFO     "ssh-process-manager": Booting user: "pplesnia"                                                                                                          ssh_process_manager.py:220
                    session: "test-session"                                                                                                                                                            
                    name: "hsi-to-tc-app"                                                                                                                                                              
                    tree_id: "1.3.3"                                                                                                                                                                   
                                                                                                                                                                                                       
           INFO     "ssh-process-manager": Booted hsi-to-tc-app uid: 1009204e-8664-47c0-9c07-98b82c40d8c6                                                                    ssh_process_manager.py:299
'hsi-to-tc-app' (1009204e-8664-47c0-9c07-98b82c40d8c6) process started
           INFO     "process_manager_driver": RTE script was not supplied in the OKS configuration, using the one from local enviroment instead                            process_manager_driver.py:82
           INFO     "ssh-process-manager": Booting user: "pplesnia"                                                                                                          ssh_process_manager.py:220
                    session: "test-session"                                                                                                                                                            
                    name: "hsi-controller"                                                                                                                                                             
                    tree_id: "1.4.0"                                                                                                                                                                   
                                                                                                                                                                                                       
           INFO     "ssh-process-manager": Booted hsi-controller uid: b3156947-1f0a-441e-9546-1c62ac678e48                                                                   ssh_process_manager.py:299
'hsi-controller' (b3156947-1f0a-441e-9546-1c62ac678e48) process started
           INFO     "process_manager_driver": RTE script was not supplied in the OKS configuration, using the one from local enviroment instead                            process_manager_driver.py:82
           INFO     "ssh-process-manager": Booting user: "pplesnia"                                                                                                          ssh_process_manager.py:220
                    session: "test-session"                                                                                                                                                            
                    name: "hsi-01"                                                                                                                                                                     
                    tree_id: "1.4.1"                                                                                                                                                                   
                                                                                                                                                                                                       
           INFO     "ssh-process-manager": Booted hsi-01 uid: 27d7b583-3dcc-43ac-8a03-0931fdc4a2a2                                                                           ssh_process_manager.py:299
'hsi-01' (27d7b583-3dcc-43ac-8a03-0931fdc4a2a2) process started
           INFO     "process_manager_driver": RTE script was not supplied in the OKS configuration, using the one from local enviroment instead                            process_manager_driver.py:82
           INFO     "ssh-process-manager": Booting user: "pplesnia"                                                                                                          ssh_process_manager.py:220
                    session: "test-session"                                                                                                                                                            
                    name: "local-connection-server"                                                                                                                                                    
                    tree_id: "1.0.1"                                                                                                                                                                   
                                                                                                                                                                                                       
           INFO     "ssh-process-manager": Booted local-connection-server uid: 0994f364-8d1f-4ccc-98f1-1872f8722b0f                                                          ssh_process_manager.py:299
'local-connection-server' (0994f364-8d1f-4ccc-98f1-1872f8722b0f) process started
Controller endpoint is 'localhost:3333'
Connecting this shell to it...
⠴ timeout ━━━━━━╸━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0:00:50 0:00:10
[11:54:36] INFO     "unified": localhost:3333 is 'root-controller.test-session' (name.session), starting listening...                                                                shell_utils.py:284
Connected to the controller
root-controller.test-session's children 👪: ['ru-controller', 'df-controller', 'trg-controller', 'hsi-controller']
           INFO     "unified": Taking control of the controller as token: "pplesnia-token"                                                                                           shell_utils.py:284
                    user_name: "pplesnia"                                                                                                                                                              
                                                                                                                                                                                                       
           INFO     "controller_driver": Command 'take_control' not executed on 'ru-01' (response flag 'NOT_EXECUTED_NOT_IMPLEMENTED')                                               shell_utils.py:132
           INFO     "controller_driver": Command 'take_control' not executed on 'hsi-01' (response flag 'NOT_EXECUTED_NOT_IMPLEMENTED')                                              shell_utils.py:132
           INFO     "controller_driver": Command 'take_control' not executed on 'tc-maker-1' (response flag 'NOT_EXECUTED_NOT_IMPLEMENTED')                                          shell_utils.py:132
           INFO     "controller_driver": Command 'take_control' not executed on 'mlt' (response flag 'NOT_EXECUTED_NOT_IMPLEMENTED')                                                 shell_utils.py:132
           INFO     "controller_driver": Command 'take_control' not executed on 'hsi-to-tc-app' (response flag 'NOT_EXECUTED_NOT_IMPLEMENTED')                                       shell_utils.py:132
           INFO     "controller_driver": Command 'take_control' not executed on 'tp-stream-writer' (response flag 'NOT_EXECUTED_NOT_IMPLEMENTED')                                    shell_utils.py:132
           INFO     "controller_driver": Command 'take_control' not executed on 'dfo-01' (response flag 'NOT_EXECUTED_NOT_IMPLEMENTED')                                              shell_utils.py:132
           INFO     "controller_driver": Command 'take_control' not executed on 'df-01' (response flag 'NOT_EXECUTED_NOT_IMPLEMENTED')                                               shell_utils.py:132
           INFO     "controller_driver": Command 'take_control' not executed on 'df-02' (response flag 'NOT_EXECUTED_NOT_IMPLEMENTED')                                               shell_utils.py:132
           INFO     "unified": You are in control.                                                                                                                                   shell_utils.py:284
Current FSM status is initial. Available transitions are conf 

boot - after progress bars

TODO

ps

drunc-unified-shell > ps
                                                      Processes running                                                       
┏━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━┳━━━━━━━━━━━┓
┃ session      ┃ friendly name             ┃ user     ┃ host      ┃ uuid                                 ┃ alive ┃ exit-code ┃
┡━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━╇━━━━━━━━━━━┩
│ test-session │ root-controller           │ pplesnia │ localhost │ cb986b26-221c-4819-bc9b-20825b11bee9 │ True  │ 0         │
│ test-session │   local-connection-server │ pplesnia │ localhost │ 0994f364-8d1f-4ccc-98f1-1872f8722b0f │ True  │ 0         │
│ test-session │   ru-controller           │ pplesnia │ localhost │ 2715c09e-d568-4e86-80a2-bb7827fd46fc │ True  │ 0         │
│ test-session │     ru-01                 │ pplesnia │ localhost │ d93f7922-377e-463f-8b26-523b73fb7d6b │ True  │ 0         │
│ test-session │   df-controller           │ pplesnia │ localhost │ d91c71f7-3c41-4a7e-aab0-7fb98d99c071 │ True  │ 0         │
│ test-session │     tp-stream-writer      │ pplesnia │ localhost │ 225c8e51-b63e-43e6-9eb7-19e68dff48fc │ True  │ 0         │
│ test-session │     dfo-01                │ pplesnia │ localhost │ 4e96ed38-3815-44d1-9281-2fe9378cdd12 │ True  │ 0         │
│ test-session │     df-01                 │ pplesnia │ localhost │ eb66ba51-7eb6-4456-b8e3-bd79bda7eed0 │ True  │ 0         │
│ test-session │     df-02                 │ pplesnia │ localhost │ a5aea894-5ecd-4edb-90e5-26b7dc3e2c65 │ True  │ 0         │
│ test-session │   trg-controller          │ pplesnia │ localhost │ 380ba19f-0fbd-4729-88a6-c09f746f3e48 │ True  │ 0         │
│ test-session │     tc-maker-1            │ pplesnia │ localhost │ 26338541-5d58-4d05-858d-9dc0fc64bc95 │ True  │ 0         │
│ test-session │     mlt                   │ pplesnia │ localhost │ ff2e8437-7f31-4655-b370-8b65bbfbf9c0 │ True  │ 0         │
│ test-session │     hsi-to-tc-app         │ pplesnia │ localhost │ 1009204e-8664-47c0-9c07-98b82c40d8c6 │ True  │ 0         │
│ test-session │   hsi-controller          │ pplesnia │ localhost │ b3156947-1f0a-441e-9546-1c62ac678e48 │ True  │ 0         │
│ test-session │     hsi-01                │ pplesnia │ localhost │ 27d7b583-3dcc-43ac-8a03-0931fdc4a2a2 │ True  │ 0         │
└──────────────┴───────────────────────────┴──────────┴───────────┴──────────────────────────────────────┴───────┴───────────┘

controller shell commands

describe

                                                                      root-controller.test-session (controller) commands                                                                       
┏━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ name                ┃ input typereturn typehelp                                                                                                 ┃
┡━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│ describe            │ None                       │ request_response_pb2.Description  │ Describe self (return a list of commands, the type of endpoint, the name and session).               │
│ get_children_status │ generic_pb2.PlainText,None │ controller_pb2.ChildrenStatus     │ Get the status of all the children. Only get the status from the child if provided in the request.   │
│ get_status          │ None                       │ controller_pb2.Status             │ Get the status of self                                                                               │
│ ls                  │ None                       │ generic_pb2.PlainTextVector       │ List the children                                                                                    │
│ describe_fsm        │ None                       │ request_response_pb2.Description  │ List available FSM commands for the current state.                                                   │
│ execute_fsm_command │ controller_pb2.FSMCommand  │ controller_pb2.FSMCommandResponse │ Execute an FSM command                                                                               │
│ include             │ None                       │ controller_pb2.FSMCommandResponse │ Include self in the current session, if a children is provided, include it and its eventual children │
│ exclude             │ None                       │ controller_pb2.FSMCommandResponse │ Exclude self in the current session, if a children is provided, exclude it and its eventual children │
│ take_control        │ None                       │ generic_pb2.PlainText             │ Take control of self and children                                                                    │
│ surrender_control   │ None                       │ generic_pb2.PlainText             │ Surrender control of self and children                                                               │
│ who_is_in_charge    │ None                       │ generic_pb2.PlainText             │ Get who is in control of self                                                                        │
└─────────────────────┴────────────────────────────┴───────────────────────────────────┴──────────────────────────────────────────────────────────────────────────────────────────────────────┘

help - from drunc-unified-shell

drunc-unified-shell > help

Documented commands (type help <topic>):
========================================
boot        exclude  kill  restart            terminate       
connect     flush    logs  status             who-is-in-charge
describe    fsm      ls    surrender-control  whoami          
dummy_boot  include  ps    take-control     

Undocumented commands:
======================
exit  help  quit

drunc-unified-shell > help boot
Usage: PROCESS_MANAGER_CONFIGURATION boot [OPTIONS] BOOT_CONFIGURATION
                                          SESSION_NAME

Options:
  -u, --user TEXT                 Select the process of a particular user
                                  (default $USER)
  -l, --log-level [CRITICAL|ERROR|WARNING|INFO|DEBUG|NOTSET]
                                  Set the log level
  --override-logs / --no-override-logs
  --help                          Show this message and exit.

help - from drunc-controller-shell

drunc-controller > help

Documented commands (type help <topic>):
========================================
connect   exclude  include  status             take-control      whoami
describe  fsm      ls       surrender-control  who-is-in-charge

Undocumented commands:
======================
exit  help  quit

ls - from drunc-unified-shell

drunc-unified-shell > ls
['ru-controller', 'df-controller', 'trg-controller', 'hsi-controller']

ls - from drunc-controller-shell connected to df-controller

drunc-controller > ls
['tp-stream-writer', 'dfo-01', 'df-01', 'df-02']

status - from drunc-unified-shell

drunc-unified-shell > status
                     root-controller status                      
┏━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━┓
┃ Name               ┃ State   ┃ Substate ┃ In error ┃ Included ┃
┡━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━┩
│ root-controller    │ initial │ initial  │    No    │   Yes    │
│ ├── ru-controller  │ initial │ initial  │    No    │   Yes    │
│ ├── df-controller  │ initial │ initial  │    No    │   Yes    │
│ ├── trg-controller │ initial │ initial  │    No    │   Yes    │
│ └── hsi-controller │ initial │ initial  │    No    │   Yes    │
└────────────────────┴─────────┴──────────┴──────────┴──────────┘

status - from drunc-controller-shell connected to df-controller

drunc-controller > status
                       df-controller status                        
┏━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━┓
┃ Name                 ┃ State   ┃ Substate ┃ In error ┃ Included ┃
┡━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━┩
│ df-controller        │ initial │ initial  │    No    │   Yes    │
│ ├── tp-stream-writer │ initial │ idle     │    No    │   Yes    │
│ ├── dfo-01           │ initial │ idle     │    No    │   Yes    │
│ ├── df-01            │ initial │ idle     │    No    │   Yes    │
│ └── df-02            │ initial │ idle     │    No    │   Yes    │
└──────────────────────┴─────────┴──────────┴──────────┴──────────┘
Clone this wiki locally