Skip to content

Allow multiple possible job states when polling for LastJobState#101

Merged
lukeatdell merged 2 commits into
mainfrom
usr/lukeatdell/reprotect-bug
Jul 2, 2025
Merged

Allow multiple possible job states when polling for LastJobState#101
lukeatdell merged 2 commits into
mainfrom
usr/lukeatdell/reprotect-bug

Conversation

@lukeatdell

@lukeatdell lukeatdell commented Jul 2, 2025

Copy link
Copy Markdown
Contributor

Description

Expand scope of WaitForPolicyLastJobState() to accept a list of states, of which, at least one is desired.

These changes are related to dell/csi-powerscale#412 and allows the reprotect replication action to wait for a RUNNING or FINISHED state when trying to confirm the state of a newly created SyncIQ policy.

GitHub Issues

List the GitHub issues impacted by this PR:

GitHub Issue #
https://github.com/dell/csm/issues/1928

Common PR Checklist:

  • Have you made sure that the code compiles?
  • Have you commented your code, particularly in hard-to-understand areas
  • Did you run tests in a real Kubernetes cluster?
  • Have you maintained backward compatibility

Tests

Kubernetes e2e - External Storage

$ ./e2e.test
  I0702 15:37:33.218885 16383 external.go:189] Driver loaded from path [./manifest.yaml]: &{DriverInfo:{Name:csi-isilon.dellemc.com InTreePluginName: TestTags:[] MaxFileSize:0 SupportedSizeRange:{Max: Min:8Gi} SupportedFsType:map[:{} nfs:{}] SupportedMountOption:map[] RequiredMountOption:map[] Capabilities:map[block:false capacity:false controllerExpansion:true exec:false fsGroup:false multipods:true nodeExpansion:true offlineExpansion:true onlineExpansion:true persistence:true pvcDataSource:true snapshotDataSource:true topology:true volumeLimits:false] RequiredAccessModes:[] TopologyKeys:[csi-isilon.dellemc.com/10.247.102.193] NumAllowedTopologies:0 StressTestOptions:<nil> VolumeSnapshotStressTestOptions:0xc000aed3c0 PerformanceTestOptions:<nil>} StorageClass:{FromName:false FromFile: FromExistingClassName:isilon} VolumeAttributesClass:{FromName:false FromFile: FromExistingClassName:} SnapshotClass:{FromName:false FromFile: FromExistingClassName:isilon-snapclass} InlineVolumes:[] ClientNodeName: Timeouts:map[]}
  I0702 15:37:34.010988 16383 test_context.go:564] The --provider flag is not set. Continuing as if --provider=skeleton had been used.
  I0702 15:37:34.011126   16383 e2e.go:109] Starting e2e run "bf6ec656-08c8-46b4-9da9-3ee0f45726cb" on Ginkgo node 1
Running Suite: Kubernetes e2e suite
===========================================================================
Random Seed: 1751485053 - will randomize all specs

Will run 189 of 7037 specs
SSSSSSSSSSSSSSSSSSSSSSSSS...

Ran 37 of 7037 Specs in 1396.247 seconds
SUCCESS! -- 37 Passed | 0 Failed | 0 Pending | 7000 Skipped
PASS

@github-actions

github-actions Bot commented Jul 2, 2025

Copy link
Copy Markdown

Merging this branch will not change overall coverage

Impacted Packages Coverage Δ 🤖
github.com/dell/gopowerscale 0.00% (ø)

Coverage by file

Changed files (no unit tests)

Changed File Coverage Δ Total Covered Missed 🤖
github.com/dell/gopowerscale/replication.go 0.00% (ø) 0 0 0

Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code.

@lukeatdell lukeatdell merged commit 019e249 into main Jul 2, 2025
6 checks passed
@lukeatdell lukeatdell deleted the usr/lukeatdell/reprotect-bug branch July 2, 2025 20:34
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.

3 participants