File tree Expand file tree Collapse file tree 4 files changed +17
-0
lines changed
tests/templates/kuttl/smoke Expand file tree Collapse file tree 4 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ All notable changes to this project will be documented in this file.
8
8
9
9
- The lifetime of auto generated TLS certificates is now configurable with the role and roleGroup
10
10
config property ` requestedSecretLifetime ` . This helps reducing frequent Pod restarts ([ #722 ] ).
11
+ - Run a ` containerdebug ` process in the background of each Airflow container to collect debugging information ([ #730 ] ).
11
12
12
13
### Fixed
13
14
@@ -19,6 +20,7 @@ All notable changes to this project will be documented in this file.
19
20
[ #717 ] : https://github.com/stackabletech/nifi-operator/pull/717
20
21
[ #718 ] : https://github.com/stackabletech/nifi-operator/pull/718
21
22
[ #722 ] : https://github.com/stackabletech/nifi-operator/pull/722
23
+ [ #730 ] : https://github.com/stackabletech/nifi-operator/pull/730
22
24
23
25
## [ 24.11.0] - 2024-11-18
24
26
Original file line number Diff line number Diff line change @@ -938,6 +938,13 @@ async fn build_node_rolegroup_statefulset(
938
938
..EnvVar :: default ( )
939
939
} ) ;
940
940
941
+ // Needed for the `containerdebug` process to log it's tracing information to.
942
+ env_vars. push ( EnvVar {
943
+ name : "CONTAINERDEBUG_LOG_DIRECTORY" . to_string ( ) ,
944
+ value : Some ( format ! ( "{STACKABLE_LOG_DIR}/containerdebug" ) ) ,
945
+ value_from : None ,
946
+ } ) ;
947
+
941
948
env_vars. push ( zookeeper_env_var (
942
949
"ZOOKEEPER_HOSTS" ,
943
950
& nifi. spec . cluster_config . zookeeper_config_map_name ,
@@ -1084,6 +1091,7 @@ async fn build_node_rolegroup_statefulset(
1084
1091
{COMMON_BASH_TRAP_FUNCTIONS}
1085
1092
{remove_vector_shutdown_file_command}
1086
1093
prepare_signal_handlers
1094
+ containerdebug --output={STACKABLE_LOG_DIR}/containerdebug-state.json --loop &
1087
1095
bin/nifi.sh run &
1088
1096
wait_for_termination $!
1089
1097
{create_vector_shutdown_file_command}
File renamed without changes.
Original file line number Diff line number Diff line change
1
+ ---
2
+ # This test checks if the containerdebug-state.json file is present and valid
3
+ apiVersion : kuttl.dev/v1beta1
4
+ kind : TestAssert
5
+ timeout : 600
6
+ commands :
7
+ - script : kubectl exec -n $NAMESPACE --container nifi test-nifi-node-default-0 -- cat /stackable/log/containerdebug-state.json | jq --exit-status '"valid JSON"'
You can’t perform that action at this time.
0 commit comments