Skip to content

[patch] pipeline-db2-license secret not created when Slack is not configured Slack config - #434

Merged
prveenkumr merged 1 commit into
stablefrom
fix-db2-update
Jul 28, 2026
Merged

[patch] pipeline-db2-license secret not created when Slack is not configured Slack config#434
prveenkumr merged 1 commit into
stablefrom
fix-db2-update

Conversation

@prveenkumr

@prveenkumr prveenkumr commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

The prepareUpdateSecrets() function in tekton.py was introduced in PR #425 ("day2 fix for devops slack secret issue") which added an early return when slack_token or slack_channel are not provided. This inadvertently placed the pipeline-db2-license secret creation after the early return, meaning the secret was never created for users who do not have Slack configured.

The PipelineRun template (pipelinerun-update.yml.j2) unconditionally binds the shared-db2 workspace to secretName: pipeline-db2-license. When the secret does not exist, the update-db2 task pod is stuck in Init:0/2 with repeated FailedMount errors, blocking the entire mas-update pipeline run.

Fix: move pipeline-db2-license secret creation before the Slack guard so it is always created regardless of whether Slack credentials are provided.

Fixes: update-db2 pod stuck at Init:0/2 — FailedMount: secret "pipeline-db2-license" not found

…figured Slack config

[fix] pipeline-db2-license secret not created when Slack is not configured

The prepareUpdateSecrets() function in tekton.py was introduced in PR #425
("day2 fix for devops slack secret issue") which added an early return when
slack_token or slack_channel are not provided. This inadvertently placed the
pipeline-db2-license secret creation after the early return, meaning the
secret was never created for users who do not have Slack configured.

The PipelineRun template (pipelinerun-update.yml.j2) unconditionally binds
the shared-db2 workspace to secretName: pipeline-db2-license. When the
secret does not exist, the update-db2 task pod is stuck in Init:0/2 with
repeated FailedMount errors, blocking the entire mas-update pipeline run.

Fix: move pipeline-db2-license secret creation before the Slack guard so it
is always created regardless of whether Slack credentials are provided.

Fixes: update-db2 pod stuck at Init:0/2 — FailedMount: secret
"pipeline-db2-license" not found
@prveenkumr
prveenkumr requested a review from a team as a code owner July 25, 2026 10:40
@prveenkumr prveenkumr changed the title [patch] pipeline-db2-license secret not created when Slack is not con… [patch] pipeline-db2-license secret not created when Slack is not configured Slack config Jul 25, 2026
@prveenkumr

Copy link
Copy Markdown
Contributor Author

test passed in day290 pipeline:
image

@anilprajapatiibm
anilprajapatiibm added this pull request to the merge queue Jul 27, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jul 27, 2026
@prveenkumr
prveenkumr added this pull request to the merge queue Jul 27, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jul 27, 2026
@prveenkumr
prveenkumr added this pull request to the merge queue Jul 27, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jul 27, 2026
@prveenkumr
prveenkumr added this pull request to the merge queue Jul 27, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jul 27, 2026
@prveenkumr
prveenkumr added this pull request to the merge queue Jul 27, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jul 27, 2026
@prveenkumr prveenkumr closed this Jul 27, 2026
@prveenkumr
prveenkumr deleted the fix-db2-update branch July 27, 2026 16:07
@prveenkumr
prveenkumr restored the fix-db2-update branch July 27, 2026 17:13
@prveenkumr prveenkumr reopened this Jul 27, 2026
@prveenkumr
prveenkumr added this pull request to the merge queue Jul 28, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jul 28, 2026
@prveenkumr
prveenkumr added this pull request to the merge queue Jul 28, 2026
Merged via the queue into stable with commit fd7a382 Jul 28, 2026
8 of 11 checks passed
@prveenkumr
prveenkumr deleted the fix-db2-update branch July 28, 2026 05:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants