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
A rolling update which is canceled because of an application issue (e.g. failed start) will revert to the latest known droplet version but any changes to environment variables or service bindings will not be reverted.
Steps to Reproduce
Deploy a slightly modified version of the spring-music app which introduces a version and a new env var called TEST by following the instructions available on the readme.
Verify that https://<apphost>/appinfo shows {"profiles":["http2"],"services":[],"version":"1.0.0"} and https://<apphost>/envVarTest shows false
Create a service instance from any type with the name test
Deploy with cf push --strategy rollinganother version of the spring-music app which can't start and introduces changes to the app version, the value of the TEST env var and a binding to the test service instance.
The cf push --strategy rolling will fail and with cf droplets <my-app> you can check that the latest droplet isn't the current one, but cf env <my-app> will show the updated version of the env var and that the app is bound to the test service.
Restart the app with cf restart <my-app> Verify that https://<apphost>/appinfo shows {"profiles":["http2"],"services":["test"],"version":"1.0.0"} and https://<apphost>/envVarTest shows true.
Expected result
The env var and service binding changes are not applied for failed rolling deployments.
Current result
Currently the env var and service binding changes are applied to the application.
Possible Fix
One option could be to use the Cloud Foundry API app revisions to revert to the last known good version in such a situation.
The text was updated successfully, but these errors were encountered:
Issue
A rolling update which is canceled because of an application issue (e.g. failed start) will revert to the latest known droplet version but any changes to environment variables or service bindings will not be reverted.
Steps to Reproduce
version
and a new env var calledTEST
by following the instructions available on the readme.https://<apphost>/appinfo
shows{"profiles":["http2"],"services":[],"version":"1.0.0"}
andhttps://<apphost>/envVarTest
showsfalse
test
cf push --strategy rolling
another version of the spring-music app which can't start and introduces changes to the appversion
, the value of theTEST
env var and a binding to thetest
service instance.cf push --strategy rolling
will fail and withcf droplets <my-app>
you can check that the latest droplet isn't the current one, butcf env <my-app>
will show the updated version of the env var and that the app is bound to thetest
service.cf restart <my-app>
Verify thathttps://<apphost>/appinfo
shows{"profiles":["http2"],"services":["test"],"version":"1.0.0"}
andhttps://<apphost>/envVarTest
showstrue
.Expected result
The env var and service binding changes are not applied for failed rolling deployments.
Current result
Currently the env var and service binding changes are applied to the application.
Possible Fix
One option could be to use the Cloud Foundry API app revisions to revert to the last known good version in such a situation.
The text was updated successfully, but these errors were encountered: