cncf / crossplane-conformance

Crossplane Conformance Program
https://cncf.io/projects
Apache License 2.0
16 stars 13 forks source link

"namespace already exists" when running sonobuoy run #24

Open zzxwill opened 3 years ago

zzxwill commented 3 years ago

Followed the instructions to run Sonobuoy. I hit an issue when running sonobuoy run --plugin https://raw.githubusercontent.com/crossplane/conformance/release-${xp_version}/plugin-provider.yaml.

$ sonobuoy run --plugin https://raw.githubusercontent.com/crossplane/conformance/release-${xp_version}/plugin-provider.yaml

ERRO[0001] Preflight checks failed
ERRO[0001] namespace already exists

What's the namespace which will be used for the conformance test? Thanks.

jbw976 commented 3 years ago

what was ${xp_version} set to for that commaand @zzxwill?

zzxwill commented 3 years ago

what was ${xp_version} set to for that commaand @zzxwill?

xp_version=1.2

jbw976 commented 3 years ago

Looks like this failed pre-flight check is coming from sonobuoy itself: https://github.com/vmware-tanzu/sonobuoy/blob/30592b486b523f9cfbb94ba3d721cedcbf489665/pkg/client/preflight.go#L153

And it looks like they use the sonobuoy namespace to run by default. Do you already have this namespace lingering? Perhaps clean everything up in it, delete the namespace, then try again?

negz commented 3 years ago

@jbw976 is correct here - the trick is to run sonobuoy delete --wait after each run to cleanup per https://github.com/vmware-tanzu/sonobuoy#getting-started