Bug 1997509
Summary: | flake: [sig-cli] oc builds new-build [Skipped:Disconnected] [Suite:openshift/conformance/parallel] | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Dan Winship <danw> |
Component: | oc | Assignee: | Filip Krepinsky <fkrepins> |
oc sub component: | oc | QA Contact: | zhou ying <yinzhou> |
Status: | CLOSED ERRATA | Docs Contact: | |
Severity: | medium | ||
Priority: | medium | CC: | aos-bugs, maszulik, mfojtik, rgudimet |
Version: | 4.9 | ||
Target Milestone: | --- | ||
Target Release: | 4.10.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | tag-ci | ||
Fixed In Version: | Doc Type: | No Doc Update | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2022-03-11 18:15:11 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Dan Winship
2021-08-25 12:26:32 UTC
Filip the main issue here is `error: the server doesn't have a resource type "noxus"` I'm not what added that type to all alias, but that's clearly wrong, nothing like that should ever exist in openshift. My suggestion for a fix is to explicitly call out what we want to remove instead of using all. I have posted a fix which deletes only the necessary resources instead of all as suggested. I have not touched the other *.go tests since all of them use a label selector and thus shouldn't cause these problems. There are multiple *.sh tests that use oc delete all, but there is a lot of usages to do a simple fix. @Maciej should I focus on these as well, or leave them for the rewrite? > test/extended/cli/builds.go should probably be split into multiple test cases anyway we have decided against that to limit the number of test cases > (I'm not sure if it makes sense to consider this a bug in "oc delete all"?) To me it seems like an okay behaviour. To get an error that a resource got missing in between the start and end of the execution. All is simply a category that gets expanded to all of the resources. So there probably shouldn't be a difference between specifying the resource vs all category. > I have not touched the other *.go tests since all of them use a label selector and thus shouldn't cause these problems.
I am taking this back. The issue persists here as well - will update the PR
(In reply to Filip Krepinsky from comment #2) > There are multiple *.sh tests that use oc delete all, but there is a lot of > usages to do a simple fix. @Maciej should I focus on these as well, or leave > them for the rewrite? I think it's reasonable to be explicit. I agree, although this bug doesn't affect these *.sh tests since they are run in serial mode. I would prefer to merge only the broken parts and postpone the refactoring for later, to focus on higher priority tasks and because it could introduce breaking changes. (In reply to Filip Krepinsky from comment #6) > I agree, although this bug doesn't affect these *.sh tests since they are > run in serial mode. I would prefer to merge only the broken parts and > postpone the refactoring for later, to focus on higher priority tasks and > because it could introduce breaking changes. SGTM |