Hide Forgot
Description of problem: When click "Cancel" button for a active deployment, the deployment state is changed to "Cancelled" immediately on console. However deployment maybe still running(although it is marked for cancelation, since --cancel is a best-effort call, more detail please refer to https://bugzilla.redhat.com/show_bug.cgi?id=1318920) This leads to inconsistency between UI and CLI, that is: web UI has "Cancelled" status while CLI shows "running" Version-Release number of selected component (if applicable): Dev Preview Online How reproducible: Always Steps to Reproduce: 1. Create app from template on web console 2. Wait for 1st deployment complete 3. Manually deploy again on web console 4. Cancel the deploy before it complete 5. Check deployment status via CLI # oc deploy hooks hooks deployment #4 running for 37 seconds 6. Check deployment status on web console Actual results: 6. Deployment is marked as CANCELLED status Expected results: 6. Keep the same state with CLI. still show "running" for unsuccessful cancelling deployment, so that user could cancel multiple times Additional info: Only reproduces in Online
ccing Michail Kargakis
This is the same bug as https://bugzilla.redhat.com/show_bug.cgi?id=1323710 and is fixed in HEAD for Origin
Sorry, this is almost the same as https://bugzilla.redhat.com/show_bug.cgi?id=1323710 but not exactly. Working on a fix.
PR is https://github.com/openshift/origin/pull/8370
Commit pushed to master at https://github.com/openshift/origin https://github.com/openshift/origin/commit/95f1ffa347bc3a50215c4660e09109349dd04990 Bug 1324437: show cancel as subordinate to non-terminating phases
Reproduces on Online $ oc deploy hooks hooks deployment #1 deployed 50 seconds ago - 1 pod $ oc deploy hooks --latest; oc deploy hooks --cancel; oc deploy hooks Started deployment #2 Cancelled deployment #2 hooks deployment #2 running (cancelling) for 6 seconds hooks deployment #1 deployed about a minute ago $ oc deploy hooks hooks deployment #2 deployed 25 seconds ago - 1 pod Web UI shows "CANCELLED" status for #2 deployment while pod for deployment #2 in running status
Created attachment 1146377 [details] CancelledStatusOnOvervierw
Created attachment 1146378 [details] PodRunning
https://github.com/openshift/origin/commit/95f1ffa347bc3a50215c4660e09109349dd04990 is deployed to dev-preview-int, please re-test.
Confirmed with the latest dev-preview-int : openshift v3.2.0.16, the issue has fixed. will verify this .