-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Components previously deleted reappear in cloned environment. #318
Comments
@henrjk Moving this to 3. |
@michaelsauter / @henrjk - this is a MUST for 2.0 .. we cannot afford to bootstrap an environment wrongly. (too many components. ... ) |
@henrjk Could you attempt to implement/test your suggested fix? |
I just noticed this is in my queue. When I wrote original description that the export is happening daily. However I don't see this happening. |
If follow correctly, th code in this branch ods-core/ocp-scripts/export-project.sh Line 458 in 44f9d3a
appears to ignore the prior exporting in the script above and to also leak a temp_dir. Should it be in its own script? |
I was just preparing to test this. However the changes in commit opendevstack/ods-jenkins-shared-library@0709122#diff-9b926a359deb3f339e040516225f076e (see this line) mean that for cloning the occonfig_artifacts repo is checked out with a unique branch so it should be empty anyways. If my assumptions are true then this behavior should no longer occur even without any further change. I will aim to test this, but it might take a bit until I get to that. |
Some more info on my previous comment gathered while testing with autocloning with the suggested code changes
So for the second case and presumably if somebody exported to master (manually) the new code is still needed. I did a fourth cloning operation after deleting another component with oc delete. And in this case the deleted component did not reappear. There was error in the jenkins job of the first cloning only. I believe it is unrelated. The error was:
I manually cross checked and got:
Notice that during jenkins script My vote would be to merge this based on these test results. @michaelsauter if you want to inspect the jenkins logs yourself, please ping me directly. |
Openshift resources are exported into the
<project>-occonfig-artifacts
repo during cloning or the daily automated export.If one removes a component the related files are not deleted in
<project>-occonfig-artifacts
. As a consequence components previously delete reemerge.Presumably on export we could simply
rm -rf
the are that was checked out and is written to.The text was updated successfully, but these errors were encountered: