Skip to content

[Bug]: test_overprovision_level_policy_control_with_capacity fails when StorageClass sc-test-blk already exists (Create returns AlreadyExists) #13803

@paraggit

Description

@paraggit

Description

A test that creates a StorageClass (sc-test-blk) fails with AlreadyExists when an older test run left the same StorageClass behind. The automation does not check for pre-existing resources before calling oc create, causing CI failures and test instability.

oc create -f /tmp/StorageClass... -o yaml returns:

Error from server (AlreadyExists): error when creating "/tmp/StorageClassla28qfou": storageclasses.storage.k8s.io "sc-test-blk" already exists

Steps to Reproduce

Actual Behavior

Expected Behavior

Impact (likelihood of reproduction, impact on the cluster and on other tests, etc.)

Screenshots (if applicable)

Environment

  • Test Suite(s):
  • Platform(s):
  • Version(s):
  • OS:

Additional Context

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions