File tree Expand file tree Collapse file tree 3 files changed +16
-0
lines changed
tests/templates/kuttl/smoke Expand file tree Collapse file tree 3 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## [ Unreleased]
4
4
5
+ ### Added
6
+
7
+ - Run a ` containerdebug ` process in the background of each Airflow container to collect debugging information ([ #557 ] ).
8
+
5
9
### Fixed
6
10
7
11
- BREAKING: Use distinct ServiceAccounts for the Stacklets, so that multiple Stacklets can be
11
15
12
16
[ #545 ] : https://github.com/stackabletech/airflow-operator/pull/545
13
17
[ #547 ] : https://github.com/stackabletech/airflow-operator/pull/547
18
+ [ #557 ] : https://github.com/stackabletech/airflow-operator/pull/557
14
19
15
20
## [ 24.11.0] - 2024-11-18
16
21
Original file line number Diff line number Diff line change @@ -344,6 +344,7 @@ impl AirflowRole {
344
344
command. extend ( Self :: authentication_start_commands ( auth_config) ) ;
345
345
command. extend ( vec ! [
346
346
"prepare_signal_handlers" . to_string( ) ,
347
+ format!( "CONTAINERDEBUG_LOG_DIRECTORY={STACKABLE_LOG_DIR}/containerdebug containerdebug --output={STACKABLE_LOG_DIR}/containerdebug-state.json --loop &" ) ,
347
348
"airflow webserver &" . to_string( ) ,
348
349
] ) ;
349
350
}
@@ -361,10 +362,12 @@ impl AirflowRole {
361
362
--role \" Admin\" "
362
363
. to_string( ) ,
363
364
"prepare_signal_handlers" . to_string( ) ,
365
+ format!( "CONTAINERDEBUG_LOG_DIRECTORY={STACKABLE_LOG_DIR}/containerdebug containerdebug --output={STACKABLE_LOG_DIR}/containerdebug-state.json --loop &" ) ,
364
366
"airflow scheduler &" . to_string( ) ,
365
367
] ) ,
366
368
AirflowRole :: Worker => command. extend ( vec ! [
367
369
"prepare_signal_handlers" . to_string( ) ,
370
+ format!( "CONTAINERDEBUG_LOG_DIRECTORY={STACKABLE_LOG_DIR}/containerdebug containerdebug --output={STACKABLE_LOG_DIR}/containerdebug-state.json --loop &" ) ,
368
371
"airflow celery worker &" . to_string( ) ,
369
372
] ) ,
370
373
}
Original file line number Diff line number Diff line change @@ -79,3 +79,11 @@ status:
79
79
expectedPods: 1
80
80
currentHealthy: 1
81
81
disruptionsAllowed: 1
82
+ ---
83
+ # This test checks if the containerdebug-state.json file is present and valid
84
+ apiVersion: kuttl.dev/v1beta1
85
+ kind: TestAssert
86
+ timeout: 600
87
+ commands:
88
+ - script: kubectl exec -n $NAMESPACE --container airflow airflow-scheduler-default-0 -- cat /stackable/log/containerdebug-state.json | jq --exit-status
89
+ - script: kubectl exec -n $NAMESPACE --container airflow airflow-webserver-default-0 -- cat /stackable/log/containerdebug-state.json | jq --exit-status
You can’t perform that action at this time.
0 commit comments