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
{{ message }}
Repository navigation
Rolling back to a previous deployment should add a cause in the DC #9632
@smarterclayton@mfojtik rolling back a config right now is not atomic. deploymentconfigs/rollback is generating the rolled back config which in turn needs to be PUTed. Does it make sense to have the endpoint touch etcd in a similar fashion to deploymentconfigs/instantiate? Only in that way we can add a separate cause for rollback. Otherwise, we either need to open a hole in our normal update path or have the new specstatus endpoint type @deads2k was talking about.
I don't like specstatus in general - that's what PUT / should do in a
"dumb apiserver" and it gets too close to the line.
Either rollout cause should be settable by an end user (because when a
user says deploy --latest they want to provide what the release does)
like builds, or that instantiate should be able to trigger a
deployment via only status (which is probably backwards incompatible
with old clients).
Upstream is using annotations (change-cause) in replica sets for storing the cause of a rollout. I believe it's more flexible than our mechanism mainly because the cause in the DC is always for the latest rollout thus we end up losing history.
Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.
If this issue is safe to close now please do so with /close.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
Exclude this issue from closing by commenting /lifecycle frozen.
If this issue is safe to close now please do so with /close.
Reopen the issue by commenting /reopen.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Exclude this issue from closing again by commenting /lifecycle frozen.
Activity
0xmichalis commentedon Aug 22, 2016
@smarterclayton @mfojtik rolling back a config right now is not atomic.
deploymentconfigs/rollbackis generating the rolled back config which in turn needs to be PUTed. Does it make sense to have the endpoint touch etcd in a similar fashion todeploymentconfigs/instantiate? Only in that way we can add a separate cause for rollback. Otherwise, we either need to open a hole in our normal update path or have the new specstatus endpoint type @deads2k was talking about.smarterclayton commentedon Aug 22, 2016
0xmichalis commentedon Jan 30, 2017
Upstream is using annotations (change-cause) in replica sets for storing the cause of a rollout. I believe it's more flexible than our mechanism mainly because the cause in the DC is always for the latest rollout thus we end up losing history.
mfojtik commentedon Jan 30, 2017
@Kargakis so tu summarize this what we want:
oc rollout historyto display the annotation (if set)oc statusas well?0xmichalis commentedon Jan 30, 2017
openshift-bot commentedon Feb 13, 2018
Issues go stale after 90d of inactivity.
Mark the issue as fresh by commenting
/remove-lifecycle stale.Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting
/lifecycle frozen.If this issue is safe to close now please do so with
/close./lifecycle stale
openshift-bot commentedon Mar 16, 2018
Stale issues rot after 30d of inactivity.
Mark the issue as fresh by commenting
/remove-lifecycle rotten.Rotten issues close after an additional 30d of inactivity.
Exclude this issue from closing by commenting
/lifecycle frozen.If this issue is safe to close now please do so with
/close./lifecycle rotten
/remove-lifecycle stale
openshift-bot commentedon Apr 15, 2018
Rotten issues close after 30d of inactivity.
Reopen the issue by commenting
/reopen.Mark the issue as fresh by commenting
/remove-lifecycle rotten.Exclude this issue from closing again by commenting
/lifecycle frozen./close