{"action":"created","issue":{"url":"https://api.github.com/repos/syndesisio/syndesis/issues/3151","repository_url":"https://api.github.com/repos/syndesisio/syndesis","labels_url":"https://api.github.com/repos/syndesisio/syndesis/issues/3151/labels{/name}","comments_url":"https://api.github.com/repos/syndesisio/syndesis/issues/3151/comments","events_url":"https://api.github.com/repos/syndesisio/syndesis/issues/3151/events","html_url":"https://github.com/syndesisio/syndesis/issues/3151","id":343577319,"node_id":"MDU6SXNzdWUzNDM1NzczMTk=","number":3151,"title":"Error 500 when deleting integrations","user":{"login":"zregvart","id":1306050,"node_id":"MDQ6VXNlcjEzMDYwNTA=","avatar_url":"https://avatars0.githubusercontent.com/u/1306050?v=4","gravatar_id":"","url":"https://api.github.com/users/zregvart","html_url":"https://github.com/zregvart","followers_url":"https://api.github.com/users/zregvart/followers","following_url":"https://api.github.com/users/zregvart/following{/other_user}","gists_url":"https://api.github.com/users/zregvart/gists{/gist_id}","starred_url":"https://api.github.com/users/zregvart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zregvart/subscriptions","organizations_url":"https://api.github.com/users/zregvart/orgs","repos_url":"https://api.github.com/users/zregvart/repos","events_url":"https://api.github.com/users/zregvart/events{/privacy}","received_events_url":"https://api.github.com/users/zregvart/received_events","type":"User","site_admin":false},"labels":[{"id":751428603,"node_id":"MDU6TGFiZWw3NTE0Mjg2MDM=","url":"https://api.github.com/repos/syndesisio/syndesis/labels/cat/bug","name":"cat/bug","color":"e08891","default":false},{"id":751428710,"node_id":"MDU6TGFiZWw3NTE0Mjg3MTA=","url":"https://api.github.com/repos/syndesisio/syndesis/labels/group/server","name":"group/server","color":"c2e0c6","default":false},{"id":751428831,"node_id":"MDU6TGFiZWw3NTE0Mjg4MzE=","url":"https://api.github.com/repos/syndesisio/syndesis/labels/prio/p0","name":"prio/p0","color":"f85963","default":false}],"state":"open","locked":false,"assignee":{"login":"lburgazzoli","id":1868933,"node_id":"MDQ6VXNlcjE4Njg5MzM=","avatar_url":"https://avatars1.githubusercontent.com/u/1868933?v=4","gravatar_id":"","url":"https://api.github.com/users/lburgazzoli","html_url":"https://github.com/lburgazzoli","followers_url":"https://api.github.com/users/lburgazzoli/followers","following_url":"https://api.github.com/users/lburgazzoli/following{/other_user}","gists_url":"https://api.github.com/users/lburgazzoli/gists{/gist_id}","starred_url":"https://api.github.com/users/lburgazzoli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lburgazzoli/subscriptions","organizations_url":"https://api.github.com/users/lburgazzoli/orgs","repos_url":"https://api.github.com/users/lburgazzoli/repos","events_url":"https://api.github.com/users/lburgazzoli/events{/privacy}","received_events_url":"https://api.github.com/users/lburgazzoli/received_events","type":"User","site_admin":false},"assignees":[{"login":"lburgazzoli","id":1868933,"node_id":"MDQ6VXNlcjE4Njg5MzM=","avatar_url":"https://avatars1.githubusercontent.com/u/1868933?v=4","gravatar_id":"","url":"https://api.github.com/users/lburgazzoli","html_url":"https://github.com/lburgazzoli","followers_url":"https://api.github.com/users/lburgazzoli/followers","following_url":"https://api.github.com/users/lburgazzoli/following{/other_user}","gists_url":"https://api.github.com/users/lburgazzoli/gists{/gist_id}","starred_url":"https://api.github.com/users/lburgazzoli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lburgazzoli/subscriptions","organizations_url":"https://api.github.com/users/lburgazzoli/orgs","repos_url":"https://api.github.com/users/lburgazzoli/repos","events_url":"https://api.github.com/users/lburgazzoli/events{/privacy}","received_events_url":"https://api.github.com/users/lburgazzoli/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/syndesisio/syndesis/milestones/17","html_url":"https://github.com/syndesisio/syndesis/milestone/17","labels_url":"https://api.github.com/repos/syndesisio/syndesis/milestones/17/labels","id":3381372,"node_id":"MDk6TWlsZXN0b25lMzM4MTM3Mg==","number":17,"title":"Sprint 32 (4/5)","description":"","creator":{"login":"paoloantinori","id":1520602,"node_id":"MDQ6VXNlcjE1MjA2MDI=","avatar_url":"https://avatars3.githubusercontent.com/u/1520602?v=4","gravatar_id":"","url":"https://api.github.com/users/paoloantinori","html_url":"https://github.com/paoloantinori","followers_url":"https://api.github.com/users/paoloantinori/followers","following_url":"https://api.github.com/users/paoloantinori/following{/other_user}","gists_url":"https://api.github.com/users/paoloantinori/gists{/gist_id}","starred_url":"https://api.github.com/users/paoloantinori/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paoloantinori/subscriptions","organizations_url":"https://api.github.com/users/paoloantinori/orgs","repos_url":"https://api.github.com/users/paoloantinori/repos","events_url":"https://api.github.com/users/paoloantinori/events{/privacy}","received_events_url":"https://api.github.com/users/paoloantinori/received_events","type":"User","site_admin":false},"open_issues":33,"closed_issues":63,"state":"open","created_at":"2018-05-28T15:23:18Z","updated_at":"2018-08-01T06:51:52Z","due_on":"2018-08-05T07:00:00Z","closed_at":null},"comments":5,"created_at":"2018-07-23T10:33:19Z","updated_at":"2018-08-01T13:28:40Z","closed_at":null,"author_association":"COLLABORATOR","body":"## This is a...\r\n<!-- Check ONLY one of the following options with \"x\" -->\r\n<pre><code>\r\n[ ] Feature request\r\n[x] Regression (a behavior that used to work and stopped working in a new release)\r\n[x] Bug report  <!-- Please search GitHub for a similar issue or PR before submitting -->\r\n[ ] Documentation issue or request\r\n</code></pre>\r\n\r\n\r\n## The problem\r\n<!--\r\nBriefly describe the issue you are experiencing (or the feature you want to see implemented on Syndesis).\r\n+ For BUGS, tell us what you were trying to do and what happened instead.\r\n+ For NEW FEATURES, describe the _User Persona_ demanding it and its use case.\r\n-->\r\nDeleting integration yields an error. Oddly this is not the case when the integration is stopped, so trying to delete second time in a row succeeds.\r\n\r\n```\r\n2018-07-23 10:26:53.114 ERROR [-,40eef3b7be856afd,40eef3b7be856afd,false] 1 --- [  XNIO-3 task-2] .s.e.v.h.e.SyndesisServerExceptionMapper : Internal Server Exception. Failure executing: PATCH at: https://openshift.default.svc/api/v1/namespaces/syndesis/replicationcontrollers/i-salesforce-5 . Message: Forbidden!Configured service account doesn't have access. Service account may have been revoked. replicationcontrollers \"i-salesforce-5\" is forbidden: cannot set blockOwnerDeletion if an ownerReference refers to a resource you can't set finalizers on: User \"system:serviceaccount:syndesis:syndesis-server\" cannot update deploymentconfigs/finalizers.apps.openshift.io in project \"syndesis\", <nil>.\r\nio.fabric8.kubernetes.client.KubernetesClientException: Failure executing: PATCH at: https://openshift.default.svc/api/v1/namespaces/syndesis/replicationcontrollers/i-salesforce-5 . Message: Forbidden!Configured service account doesn't have access. Service account may have been revoked. replicationcontrollers \"i-salesforce-5\" is forbidden: cannot set blockOwnerDeletion if an ownerReference refers to a resource you can't set finalizers on: User \"system:serviceaccount:syndesis:syndesis-server\" cannot update deploymentconfigs/finalizers.apps.openshift.io in project \"syndesis\", <nil>.\r\n\tat io.fabric8.kubernetes.client.dsl.base.OperationSupport.requestFailure(OperationSupport.java:470) ~[kubernetes-client-3.1.4.jar!/:na]\r\n\tat io.fabric8.kubernetes.client.dsl.base.OperationSupport.assertResponseCode(OperationSupport.java:407) ~[kubernetes-client-3.1.4.jar!/:na]\r\n\tat io.fabric8.kubernetes.client.dsl.base.OperationSupport.handleResponse(OperationSupport.java:379) ~[kubernetes-client-3.1.4.jar!/:na]\r\n\tat io.fabric8.kubernetes.client.dsl.base.OperationSupport.handleResponse(OperationSupport.java:343) ~[kubernetes-client-3.1.4.jar!/:na]\r\n\tat io.fabric8.kubernetes.client.dsl.base.OperationSupport.handlePatch(OperationSupport.java:279) ~[kubernetes-client-3.1.4.jar!/:na]\r\n\tat io.fabric8.kubernetes.client.dsl.base.BaseOperation.handlePatch(BaseOperation.java:783) ~[kubernetes-client-3.1.4.jar!/:na]\r\n\tat io.fabric8.kubernetes.client.dsl.base.HasMetadataOperation$3.apply(HasMetadataOperation.java:156) ~[kubernetes-client-3.1.4.jar!/:na]\r\n\tat io.fabric8.kubernetes.client.dsl.base.HasMetadataOperation$3.apply(HasMetadataOperation.java:152) ~[kubernetes-client-3.1.4.jar!/:na]\r\n\tat io.fabric8.kubernetes.api.model.DoneableReplicationController.done(DoneableReplicationController.java:26) ~[kubernetes-model-2.0.10.jar!/:2.0.10]\r\n\tat io.fabric8.kubernetes.api.model.DoneableReplicationController.done(DoneableReplicationController.java:5) ~[kubernetes-model-2.0.10.jar!/:2.0.10]\r\n\tat io.fabric8.kubernetes.client.dsl.base.HasMetadataOperation.patch(HasMetadataOperation.java:163) ~[kubernetes-client-3.1.4.jar!/:na]\r\n\tat io.fabric8.kubernetes.client.dsl.internal.RollableScalableResourceOperation.patch(RollableScalableResourceOperation.java:185) ~[kubernetes-client-3.1.4.jar!/:na]\r\n\tat io.fabric8.kubernetes.client.dsl.base.HasMetadataOperation$1.apply(HasMetadataOperation.java:60) ~[kubernetes-client-3.1.4.jar!/:na]\r\n\tat io.fabric8.kubernetes.client.dsl.base.HasMetadataOperation$1.apply(HasMetadataOperation.java:50) ~[kubernetes-client-3.1.4.jar!/:na]\r\n\tat io.fabric8.kubernetes.api.model.DoneableReplicationController.done(DoneableReplicationController.java:26) ~[kubernetes-model-2.0.10.jar!/:2.0.10]\r\n\tat io.fabric8.kubernetes.client.dsl.internal.ReplicationControllerOperationsImpl.withReplicas(ReplicationControllerOperationsImpl.java:85) ~[kubernetes-client-3.1.4.jar!/:na]\r\n\tat io.fabric8.kubernetes.client.dsl.internal.ReplicationControllerOperationsImpl.withReplicas(ReplicationControllerOperationsImpl.java:42) ~[kubernetes-client-3.1.4.jar!/:na]\r\n\tat io.fabric8.kubernetes.client.dsl.internal.RollableScalableResourceOperation.scale(RollableScalableResourceOperation.java:77) ~[kubernetes-client-3.1.4.jar!/:na]\r\n\tat io.fabric8.kubernetes.client.dsl.internal.RollableScalableResourceOperation.scale(RollableScalableResourceOperation.java:45) ~[kubernetes-client-3.1.4.jar!/:na]\r\n\tat io.fabric8.kubernetes.client.dsl.internal.ScalableReaper.reap(ScalableReaper.java:30) ~[kubernetes-client-3.1.4.jar!/:na]\r\n\tat io.fabric8.kubernetes.client.dsl.base.BaseOperation.delete(BaseOperation.java:621) ~[kubernetes-client-3.1.4.jar!/:na]\r\n\tat io.fabric8.kubernetes.client.dsl.base.BaseOperation.delete(BaseOperation.java:70) ~[kubernetes-client-3.1.4.jar!/:na]\r\n\tat io.fabric8.kubernetes.client.dsl.base.BaseOperation.delete(BaseOperation.java:662) ~[kubernetes-client-3.1.4.jar!/:na]\r\n\tat io.fabric8.kubernetes.client.dsl.base.BaseOperation.deleteList(BaseOperation.java:696) ~[kubernetes-client-3.1.4.jar!/:na]\r\n\tat io.fabric8.kubernetes.client.dsl.base.BaseOperation.delete(BaseOperation.java:636) ~[kubernetes-client-3.1.4.jar!/:na]\r\n\tat io.fabric8.kubernetes.client.dsl.base.BaseOperation.delete(BaseOperation.java:70) ~[kubernetes-client-3.1.4.jar!/:na]\r\n\tat io.fabric8.openshift.client.dsl.internal.DeploymentConfigOperationsImpl$DeploymentConfigReaper.reap(DeploymentConfigOperationsImpl.java:129) ~[openshift-client-3.1.4.jar!/:na]\r\n\tat io.fabric8.kubernetes.client.dsl.base.BaseOperation.delete(BaseOperation.java:621) ~[kubernetes-client-3.1.4.jar!/:na]\r\n\tat io.fabric8.kubernetes.client.dsl.base.BaseOperation.delete(BaseOperation.java:70) ~[kubernetes-client-3.1.4.jar!/:na]\r\n\tat io.syndesis.server.openshift.OpenShiftServiceImpl.removeDeploymentConfig(OpenShiftServiceImpl.java:279) ~[server-openshift-1.4-SNAPSHOT.jar!/:1.4-SNAPSHOT]\r\n\tat io.syndesis.server.openshift.OpenShiftServiceImpl.delete(OpenShiftServiceImpl.java:110) ~[server-openshift-1.4-SNAPSHOT.jar!/:1.4-SNAPSHOT]\r\n\tat io.syndesis.server.endpoint.v1.handler.integration.IntegrationHandler.delete(IntegrationHandler.java:237) ~[server-endpoint-1.4-SNAPSHOT.jar!/:1.4-SNAPSHOT]\r\n```\r\n\r\nAre we missing a permission?\r\n\r\n## Expected behavior\r\n<!-- Describe what the desired behavior would be, enlistin gthe acceptance criteria. -->\r\nDelete integrations without errors.\r\n\r\n## Tasks involved / Steps to Reproduce\r\n<!--\r\nEnlist all the acceptance criteria for new features or the steps required to reproduce the bug/regression reported.\r\n-->\r\n1. Create integration and publish\r\n2. Delete it, notice the error\r\n3. Delete again (while it's stopped), great success\r\n"},"comment":{"url":"https://api.github.com/repos/syndesisio/syndesis/issues/comments/409574444","html_url":"https://github.com/syndesisio/syndesis/issues/3151#issuecomment-409574444","issue_url":"https://api.github.com/repos/syndesisio/syndesis/issues/3151","id":409574444,"node_id":"MDEyOklzc3VlQ29tbWVudDQwOTU3NDQ0NA==","user":{"login":"heiko-braun","id":369380,"node_id":"MDQ6VXNlcjM2OTM4MA==","avatar_url":"https://avatars1.githubusercontent.com/u/369380?v=4","gravatar_id":"","url":"https://api.github.com/users/heiko-braun","html_url":"https://github.com/heiko-braun","followers_url":"https://api.github.com/users/heiko-braun/followers","following_url":"https://api.github.com/users/heiko-braun/following{/other_user}","gists_url":"https://api.github.com/users/heiko-braun/gists{/gist_id}","starred_url":"https://api.github.com/users/heiko-braun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heiko-braun/subscriptions","organizations_url":"https://api.github.com/users/heiko-braun/orgs","repos_url":"https://api.github.com/users/heiko-braun/repos","events_url":"https://api.github.com/users/heiko-braun/events{/privacy}","received_events_url":"https://api.github.com/users/heiko-braun/received_events","type":"User","site_admin":false},"created_at":"2018-08-01T13:28:40Z","updated_at":"2018-08-01T13:28:40Z","author_association":"COLLABORATOR","body":"@lburgazzoli Is it a consistent or intermittent error?"}}
{"actor":{"display_login":"heiko-braun"}}