{"action":"created","issue":{"url":"https://api.github.com/repos/argoproj/argo-events/issues/103","repository_url":"https://api.github.com/repos/argoproj/argo-events","labels_url":"https://api.github.com/repos/argoproj/argo-events/issues/103/labels{/name}","comments_url":"https://api.github.com/repos/argoproj/argo-events/issues/103/comments","events_url":"https://api.github.com/repos/argoproj/argo-events/issues/103/events","html_url":"https://github.com/argoproj/argo-events/issues/103","id":369951064,"node_id":"MDU6SXNzdWUzNjk5NTEwNjQ=","number":103,"title":"Unable to decode an event from the watch stream: stream error","user":{"login":"ttelfer","id":4094016,"node_id":"MDQ6VXNlcjQwOTQwMTY=","avatar_url":"https://avatars1.githubusercontent.com/u/4094016?v=4","gravatar_id":"","url":"https://api.github.com/users/ttelfer","html_url":"https://github.com/ttelfer","followers_url":"https://api.github.com/users/ttelfer/followers","following_url":"https://api.github.com/users/ttelfer/following{/other_user}","gists_url":"https://api.github.com/users/ttelfer/gists{/gist_id}","starred_url":"https://api.github.com/users/ttelfer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ttelfer/subscriptions","organizations_url":"https://api.github.com/users/ttelfer/orgs","repos_url":"https://api.github.com/users/ttelfer/repos","events_url":"https://api.github.com/users/ttelfer/events{/privacy}","received_events_url":"https://api.github.com/users/ttelfer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-10-14T22:31:28Z","updated_at":"2018-10-15T20:33:37Z","closed_at":null,"author_association":"NONE","body":"**Describe the bug**\r\nSensor doesn't trigger.\r\n\r\nSensor pod log:\r\n```\r\n{\"level\":\"info\",\"sensor-name\":\"operational-data\",\"port\":\"9300\",\"message\":\"sensor started listening\"}\r\n\r\n{\"level\":\"info\",\"sensor-name\":\"operational-data\",\"message\":\"watching sensor updates\"}\r\n\r\nERROR: logging before flag.Parse: E1014 19:09:35.791916       1 streamwatcher.go:109] Unable to decode an event from the watch stream: stream error: stream ID 5; INTERNAL_ERROR\r\n\r\nERROR: logging before flag.Parse: E1014 19:19:35.889108       1 streamwatcher.go:109] Unable to decode an event from the watch stream: stream error: stream ID 7; INTERNAL_ERROR \r\n```\r\n\r\n**To Reproduce**\r\nsensor.yaml:\r\n```\r\napiVersion: argoproj.io/v1alpha1\r\nkind: Sensor\r\nmetadata:\r\n  name: operational-data\r\n  namespace: argo-events\r\n  labels:\r\n    sensors.argoproj.io/sensor-controller-instanceid: argo-events\r\n    app: ami\r\nspec:\r\n  serviceAccountName: argo-events-sa\r\n  imagePullPolicy: Always\r\n  repeat: true\r\n  signals:\r\n    - name: calendar-gateway/calendar.barConfig\r\n  triggers:\r\n    - name: calendar-workflow-trigger\r\n      resource:\r\n        namespace: argo-events\r\n        group: argoproj.io\r\n        version: v1alpha1\r\n        kind: Workflow\r\n        source:\r\n          inline: |\r\n              apiVersion: argoproj.io/v1alpha1\r\n              kind: Workflow\r\n              metadata:\r\n                generateName: argo-operational-data\r\n              spec:\r\n                entrypoint: test-parallel\r\n                templates:\r\n                - name: test-parallel\r\n                  steps:\r\n                  - - name: foo\r\n                      template: test\r\n                      arguments:\r\n                        parameters:\r\n                        - name: filename\r\n                          value: \"foo\"\r\n                    - name: bar\r\n                      template: test\r\n                      arguments:\r\n                        parameters:\r\n                        - name: filename\r\n                          value: \"bar\"\r\n\r\n                - name: test\r\n                  inputs:\r\n                    parameters:\r\n                    - name: filename\r\n                  container:\r\n                    image: foodev.azurecr.io/base:latest\r\n                    command: [\"python3\", \"/project/foo/bar/{{inputs.parameters.filename}}.py\"]\r\n```\r\n\r\nconfigmap:\r\n```\r\napiVersion: v1\r\nkind: ConfigMap\r\nmetadata:\r\n  name: calendar-gateway-configmap\r\n  namespace: argo-events\r\ndata:\r\n  calendar.barConfig: |-\r\n    interval: 5m\r\n```\r\n\r\ngateway:\r\n```\r\napiVersion: argoproj.io/v1alpha1\r\nkind: Gateway\r\nmetadata:\r\n  name: calendar-gateway\r\n  namespace: argo-events\r\n  labels:\r\n    gateways.argoproj.io/gateway-controller-instanceid: argo-events\r\n    gateway-name: \"calendar-gateway\"\r\nspec:\r\n  deploySpec:\r\n    containers:\r\n    - name: \"calendar-events\"\r\n      image: \"argoproj/calendar-gateway\"\r\n      imagePullPolicy: \"Always\"\r\n      command: [\"/bin/calendar-gateway\"]\r\n    serviceAccountName: \"argo-events-sa\"\r\n  configMap: \"calendar-gateway-configmap\"\r\n  type: \"calendar\"\r\n  dispatchMechanism: \"HTTP\"\r\n  version: \"1.0\"\r\n  watchers:\r\n      sensors:\r\n      - name: \"calendar-sensor\"\r\n```\r\n\r\n**Expected behavior**\r\nExpected the two steps to execute in parallel.\r\n\r\n**Environment (please complete the following information):**\r\n - Azure AKS 1.11.3\r\n\r\n```\r\n$ kubectl version -o yaml\r\nclientVersion:\r\n  buildDate: 2018-09-28T15:20:58Z\r\n  compiler: gc\r\n  gitCommit: 0ed33881dc4355495f623c6f22e7dd0b7632b7c0\r\n  gitTreeState: clean\r\n  gitVersion: v1.12.0\r\n  goVersion: go1.11\r\n  major: \"1\"\r\n  minor: \"12\"\r\n  platform: darwin/amd64\r\nserverVersion:\r\n  buildDate: 2018-09-09T17:53:03Z\r\n  compiler: gc\r\n  gitCommit: a4529464e4629c21224b3d52edfe0ea91b072862\r\n  gitTreeState: clean\r\n  gitVersion: v1.11.3\r\n  goVersion: go1.10.3\r\n  major: \"1\"\r\n  minor: \"11\"\r\n  platform: linux/amd64\r\n```\r\n\r\n```\r\n$ argo version\r\nargo: v2.2.0\r\n  BuildDate: 2018-08-30T08:51:40Z\r\n  GitCommit: af636ddd8455660f307d835814d3112b90815dfd\r\n  GitTreeState: clean\r\n  GitTag: v2.2.0\r\n  GoVersion: go1.10.3\r\n  Compiler: gc\r\n  Platform: darwin/amd64\r\n```\r\n\r\n**Additional information:**\r\nVerified that this sensor worked:\r\n```\r\napiVersion: argoproj.io/v1alpha1\r\nkind: Sensor\r\nmetadata:\r\n  name: calendar-sensor\r\n  namespace: argo-events\r\n  labels:\r\n    sensors.argoproj.io/sensor-controller-instanceid: argo-events\r\n    app: ami\r\nspec:\r\n  serviceAccountName: argo-events-sa\r\n  imagePullPolicy: Always\r\n  repeat: true\r\n  signals:\r\n    - name: calendar-gateway/calendar.barConfig\r\n  triggers:\r\n    - name: calendar-workflow-trigger\r\n      resource:\r\n        namespace: argo-events\r\n        group: argoproj.io\r\n        version: v1alpha1\r\n        kind: Workflow\r\n        source:\r\n          inline: |\r\n              apiVersion: argoproj.io/v1alpha1\r\n              kind: Workflow\r\n              metadata:\r\n                generateName: argo-test-\r\n              spec:\r\n                entrypoint: test\r\n                templates:\r\n                - name: test\r\n                  container:\r\n                    image: foodev.azurecr.io/base:latest\r\n                    command: [\"python3\", \"/project/foo/bar/foo.py\"]\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/argoproj/argo-events/issues/comments/430002906","html_url":"https://github.com/argoproj/argo-events/issues/103#issuecomment-430002906","issue_url":"https://api.github.com/repos/argoproj/argo-events/issues/103","id":430002906,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMDAwMjkwNg==","user":{"login":"VaibhavPage","id":2963256,"node_id":"MDQ6VXNlcjI5NjMyNTY=","avatar_url":"https://avatars3.githubusercontent.com/u/2963256?v=4","gravatar_id":"","url":"https://api.github.com/users/VaibhavPage","html_url":"https://github.com/VaibhavPage","followers_url":"https://api.github.com/users/VaibhavPage/followers","following_url":"https://api.github.com/users/VaibhavPage/following{/other_user}","gists_url":"https://api.github.com/users/VaibhavPage/gists{/gist_id}","starred_url":"https://api.github.com/users/VaibhavPage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VaibhavPage/subscriptions","organizations_url":"https://api.github.com/users/VaibhavPage/orgs","repos_url":"https://api.github.com/users/VaibhavPage/repos","events_url":"https://api.github.com/users/VaibhavPage/events{/privacy}","received_events_url":"https://api.github.com/users/VaibhavPage/received_events","type":"User","site_admin":false},"created_at":"2018-10-15T20:33:37Z","updated_at":"2018-10-15T20:33:37Z","author_association":"COLLABORATOR","body":"Its definitely related to one of the above issues. From the issue, it looks like sensor pod is not able to resync/watch with sensor resource object."}}
{"actor":{"display_login":"VaibhavPage"}}