Skip to content

Commit 81c8677

Browse files
remove check for ConfDeploymentException
1 parent 241db0d commit 81c8677

2 files changed

Lines changed: 0 additions & 31 deletions

File tree

pkg/splunk/enterprise/afwscheduler.go

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1727,17 +1727,6 @@ func (shcPlaybookContext *SHCPlaybookContext) isBundlePushComplete(ctx context.C
17271727
return false, nil
17281728
}
17291729

1730-
// If Splunk reports that a deployment job is already running, treat it as still
1731-
// in progress rather than resetting state to Pending and re-triggering. Resetting
1732-
// would schedule a second push while the first is still holding Splunk's deployment
1733-
// lock, producing another ConfDeploymentException and creating a retry storm.
1734-
// This can happen in FIPS mode (premature state reset caused by the FIPS banner) or
1735-
// after an operator restart mid-push.
1736-
if strings.Contains(stdOut, "ConfDeploymentException: Can't start deployment job as one is already running!") {
1737-
scopedLog.Info("SHC Bundle Push is already running; will recheck status on next reconcile", "statusFileOutput", stdOut)
1738-
return false, nil
1739-
}
1740-
17411730
// this means there was an error in bundle push command
17421731
err = fmt.Errorf("there was an error in applying SHC Bundle, err=\"%v\"", stdOut)
17431732
scopedLog.Error(err, "SHC Bundle push status file reported an error while applying bundle")

pkg/splunk/enterprise/afwscheduler_test.go

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4898,26 +4898,6 @@ func TestSHCIsBundlePushComplete(t *testing.T) {
48984898
expectedError: false,
48994899
description: "FIPS banner before success string should still be recognized as complete",
49004900
},
4901-
{
4902-
name: "ConfDeploymentException alone - treated as still in progress",
4903-
catStdOut: "ConfDeploymentException: Can't start deployment job as one is already running!",
4904-
catStdErr: "",
4905-
catErr: nil,
4906-
expectsRemoval: false,
4907-
expectedResult: false,
4908-
expectedError: false,
4909-
description: "ConfDeploymentException must not reset state to Pending; treat as still in progress to avoid retry storm",
4910-
},
4911-
{
4912-
name: "FIPS banner followed by ConfDeploymentException - treated as still in progress",
4913-
catStdOut: splunkFIPSProviderBannerStr + "\n" + splunkSSLCertWarnStr + " Hostname Validation is disabled.\nConfDeploymentException: Can't start deployment job as one is already running!",
4914-
catStdErr: "",
4915-
catErr: nil,
4916-
expectsRemoval: false,
4917-
expectedResult: false,
4918-
expectedError: false,
4919-
description: "FIPS banner plus ConfDeploymentException is the primary FIPS retry-storm scenario; must not reset to Pending",
4920-
},
49214901
}
49224902

49234903
for _, tt := range tests {

0 commit comments

Comments
 (0)