You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Server https://xyz:8443
openshift v3.6.0+c4dd4cf
kubernetes v1.6.1+5115d708d7
Steps To Reproduce
Create a build configuration (anything will do)
Build a few times - get to build 5 for example
Export, delete, and re-import the build configuration.
Try to start a new build
Current Result
An error occurred while starting the build. Reason: builds.build.openshift.io "php-2" already exists
Expected Result
Build is started.
Additional Information
This is happening because the old builds exist. You can get it to build by clicking "Build" a bunch of times.
Sub-issue: I noticed that through the UI, if you try and delete the build configuration it says "This will delete the build config and all build history. It cannot be undone. Make sure this is something you really want to do!" But, it doesn't actually delete the build history. You can still see it through the UI and also CLI.
The CLI does have a suggestion here, and says "error: builds.build.openshift.io "php-4" already exists. Retry building BuildConfig "php" or delete the conflicting builds."
Now I suppose I can run oc delete builds --all to fix it, but I'd also expect one of these to happen:
Creating/replacing a build configuration when builds already exist should increment the latestVersion
Replacing/deleting the build configuration should, as the warning says, delete all existing builds.
The text was updated successfully, but these errors were encountered:
This is working as designed. You must either delete the old builds, or set the lastVersion value in your BC that you're using to replace things, to a higher value than the highest existing build.
Agree that the UI warning is incorrect, though. I'm not sure what CLI warning you're referring to, though. oc delete bc foo deletes the bc+builds, and if you don't want the builds to be deleted, you specify --cascade=false. (cascade is on by default). I don't see any warning.
@bparees My opinion: it would be better fix garbage collection so it deletes all old builds. Right now it deletes any created after 3.6, but not anything older. It's not a good user experience no matter what message we add to that dialog.
@bparees the CLI warning comes from oc start-build
ok that warning is appropriate.. I read your statement of:
if you try and delete the build configuration it says "This will delete the build config and all build history. It cannot be undone. Make sure this is something you really want to do!" But, it doesn't actually delete the build history. You can still see it through the UI and also CLI.
as saying that the message was seen in the CLI. I see now you meant that you can see the build history (old builds) in the CLI.
If replacing a build configuration through
oc replace
, the next build will fail because the "lastVersion" is set to 1 in the build configuration.Version
oc v3.6.0+c4dd4cf
kubernetes v1.6.1+5115d708d7
features: Basic-Auth GSSAPI Kerberos SPNEGO
Server https://xyz:8443
openshift v3.6.0+c4dd4cf
kubernetes v1.6.1+5115d708d7
Steps To Reproduce
Current Result
An error occurred while starting the build. Reason: builds.build.openshift.io "php-2" already exists
Expected Result
Build is started.
Additional Information
This is happening because the old builds exist. You can get it to build by clicking "Build" a bunch of times.
Sub-issue: I noticed that through the UI, if you try and delete the build configuration it says "This will delete the build config and all build history. It cannot be undone. Make sure this is something you really want to do!" But, it doesn't actually delete the build history. You can still see it through the UI and also CLI.
The CLI does have a suggestion here, and says "error: builds.build.openshift.io "php-4" already exists. Retry building BuildConfig "php" or delete the conflicting builds."
Now I suppose I can run
oc delete builds --all
to fix it, but I'd also expect one of these to happen:The text was updated successfully, but these errors were encountered: