Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1490720

Summary: [trello o82aiHhh] Deployment canceled notification was not included in notification drawer
Product: OpenShift Container Platform Reporter: Yadan Pei <yapei>
Component: Management ConsoleAssignee: bpeterse
Status: CLOSED CURRENTRELEASE QA Contact: Yadan Pei <yapei>
Severity: low Docs Contact:
Priority: medium    
Version: 3.7.0CC: aos-bugs, jokerman, mmccomas, yapei
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-11-06 15:15:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Yadan Pei 2017-09-12 06:33:12 UTC
Description of problem:
Deployment canceled notification was not included in notification drawer

Version-Release number of selected component (if applicable):
v3.7.0-alpha.1+37bf502-282

How reproducible:
Always

Steps to Reproduce:
1.Create test DC
$ cat dc.yaml
apiVersion: v1
kind: DeploymentConfig
metadata:
  labels:
    run: php-apache
  name: php-apache
spec:
  replicas: 1
  selector:
    run: php-apache
  template:
    metadata:
      labels:
        run: php-apache
    spec:
      containers:
      - image: gcr.io/google_containers/hpa-example
        imagePullPolicy: IfNotPresent
        name: php-apache
        resources:
          requests:
            cpu: 200m
        securityContext:
          privileged: true
      restartPolicy: Always
      securityContext: {}
      terminationGracePeriodSeconds: 30
  triggers:
  - type: ConfigChange

$ oc create -f dc.yaml
deploymentconfig "php-apache" created
2. The pod will not be running since we don't have sufficient permission to create privileged containers, during the deployment process we cancel it on Overview page
3. After canceled, we get toast notification "Deployment php-apache #1 was cancelled" displayed at the upper-right 

Actual results:
3. Deployment cancelled notification was not included in notification drawer

Expected results:
3. Per https://github.com/openshift/origin-web-console/pull/1326 discussion, deployment cancelled (dc, k8sdep, pod, etc) notification should goes into notification drawer

Additional info:

Comment 1 bpeterse 2017-09-13 18:19:31 UTC
Looking into this.

For the list of Events that should appear in the drawer, see this file:
https://github.com/openshift/origin-web-console/blob/master/app/scripts/constants.js#L157

This list is based on the event.reason.

Comment 2 bpeterse 2017-10-31 20:19:50 UTC
PR opened for this:
https://github.com/openshift/origin-web-console/pull/2412

Comment 3 Yadan Pei 2017-11-02 02:10:15 UTC
Waiting for newer(>3.7.0-0.189.0) puddle to verify the bug

Comment 4 Yadan Pei 2017-11-03 05:57:48 UTC
Waiting for new puddle with the fix to verify the bug

Comment 5 Yadan Pei 2017-11-03 06:20:21 UTC
Checked on v3.7.0-0.190.0

After DC is canceled, message "Rollout Cancelled — Deployment Config" goes into notification drawer

Move to VERIFIED