Bug 1322976
Summary: | race condition in project deletion / recreation | ||
---|---|---|---|
Product: | OKD | Reporter: | Andy Grimm <agrimm> |
Component: | Pod | Assignee: | Andy Goldstein <agoldste> |
Status: | CLOSED NOTABUG | QA Contact: | DeShuai Ma <dma> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 3.x | CC: | aos-bugs, decarr, jgoulding, mmccomas |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-03-31 20:36:08 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: | |||
Bug Depends On: | |||
Bug Blocks: | 1303130 |
Description
Andy Grimm
2016-03-31 19:21:07 UTC
the call to oc delete project will initiate project deletion. project deletion works as follows: 1. mark the phase as terminating 2. a controller(s) sees the project is terminating and deletes all existing content 3. after each controller(s) finishes, the project is removed. the right thing to do in your script is to have logic like the following: 1. oc delete project foo 2. wait until oc get project foo returns not found (poll every 2s) 3. oc new-project oc get project foo should be called with cluster-admin credentials, or some credential whose access to the project is granted outside of the the project scope itself. |