{"action":"created","issue":{"url":"https://api.github.com/repos/openshift/origin/issues/14120","repository_url":"https://api.github.com/repos/openshift/origin","labels_url":"https://api.github.com/repos/openshift/origin/issues/14120/labels{/name}","comments_url":"https://api.github.com/repos/openshift/origin/issues/14120/comments","events_url":"https://api.github.com/repos/openshift/origin/issues/14120/events","html_url":"https://github.com/openshift/origin/issues/14120","id":227479373,"number":14120,"title":"oc delete bc --cascade=false still deletes all builds","user":{"login":"spadgett","id":1167259,"avatar_url":"https://avatars2.githubusercontent.com/u/1167259?v=3","gravatar_id":"","url":"https://api.github.com/users/spadgett","html_url":"https://github.com/spadgett","followers_url":"https://api.github.com/users/spadgett/followers","following_url":"https://api.github.com/users/spadgett/following{/other_user}","gists_url":"https://api.github.com/users/spadgett/gists{/gist_id}","starred_url":"https://api.github.com/users/spadgett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spadgett/subscriptions","organizations_url":"https://api.github.com/users/spadgett/orgs","repos_url":"https://api.github.com/users/spadgett/repos","events_url":"https://api.github.com/users/spadgett/events{/privacy}","received_events_url":"https://api.github.com/users/spadgett/received_events","type":"User","site_admin":false},"labels":[{"id":210155294,"url":"https://api.github.com/repos/openshift/origin/labels/component/build","name":"component/build","color":"0052cc","default":false},{"id":118251699,"url":"https://api.github.com/repos/openshift/origin/labels/kind/bug","name":"kind/bug","color":"fc2929","default":false}],"state":"open","locked":false,"assignee":{"login":"bparees","id":4974046,"avatar_url":"https://avatars1.githubusercontent.com/u/4974046?v=3","gravatar_id":"","url":"https://api.github.com/users/bparees","html_url":"https://github.com/bparees","followers_url":"https://api.github.com/users/bparees/followers","following_url":"https://api.github.com/users/bparees/following{/other_user}","gists_url":"https://api.github.com/users/bparees/gists{/gist_id}","starred_url":"https://api.github.com/users/bparees/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bparees/subscriptions","organizations_url":"https://api.github.com/users/bparees/orgs","repos_url":"https://api.github.com/users/bparees/repos","events_url":"https://api.github.com/users/bparees/events{/privacy}","received_events_url":"https://api.github.com/users/bparees/received_events","type":"User","site_admin":false},"assignees":[{"login":"bparees","id":4974046,"avatar_url":"https://avatars1.githubusercontent.com/u/4974046?v=3","gravatar_id":"","url":"https://api.github.com/users/bparees","html_url":"https://github.com/bparees","followers_url":"https://api.github.com/users/bparees/followers","following_url":"https://api.github.com/users/bparees/following{/other_user}","gists_url":"https://api.github.com/users/bparees/gists{/gist_id}","starred_url":"https://api.github.com/users/bparees/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bparees/subscriptions","organizations_url":"https://api.github.com/users/bparees/orgs","repos_url":"https://api.github.com/users/bparees/repos","events_url":"https://api.github.com/users/bparees/events{/privacy}","received_events_url":"https://api.github.com/users/bparees/received_events","type":"User","site_admin":false}],"milestone":null,"comments":9,"created_at":"2017-05-09T19:56:20Z","updated_at":"2017-05-10T14:55:12Z","closed_at":null,"body":"Running the command\r\n\r\n```\r\n$ oc delete bc node-ex --cascade=false -n test-delete\r\n```\r\n\r\ndeletes all my builds, even though I specified `--cascade=false`. Here is the API request sent by the CLI. It looks like it includes no delete options in the request body.\r\n\r\n```\r\nI0509 15:53:38.992308   45266 round_trippers.go:405] DELETE https://127.0.0.1:8443/oapi/v1/namespaces/test-delete/buildconfigs/node-ex 200 OK in 155 milliseconds\r\nI0509 15:53:38.992334   45266 round_trippers.go:411] Response Headers:\r\nI0509 15:53:38.992339   45266 round_trippers.go:414]     Date: Tue, 09 May 2017 19:53:38 GMT\r\nI0509 15:53:38.992343   45266 round_trippers.go:414]     Cache-Control: no-store\r\nI0509 15:53:38.992346   45266 round_trippers.go:414]     Content-Type: application/json\r\nI0509 15:53:38.992349   45266 round_trippers.go:414]     Content-Length: 80\r\nI0509 15:53:38.992395   45266 request.go:991] Response Body: {\"kind\":\"Status\",\"apiVersion\":\"v1\",\"metadata\":{},\"status\":\"Success\",\"code\":200}\r\n```\r\n\r\ncc @jwforres "},"comment":{"url":"https://api.github.com/repos/openshift/origin/issues/comments/300508330","html_url":"https://github.com/openshift/origin/issues/14120#issuecomment-300508330","issue_url":"https://api.github.com/repos/openshift/origin/issues/14120","id":300508330,"user":{"login":"bparees","id":4974046,"avatar_url":"https://avatars1.githubusercontent.com/u/4974046?v=3","gravatar_id":"","url":"https://api.github.com/users/bparees","html_url":"https://github.com/bparees","followers_url":"https://api.github.com/users/bparees/followers","following_url":"https://api.github.com/users/bparees/following{/other_user}","gists_url":"https://api.github.com/users/bparees/gists{/gist_id}","starred_url":"https://api.github.com/users/bparees/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bparees/subscriptions","organizations_url":"https://api.github.com/users/bparees/orgs","repos_url":"https://api.github.com/users/bparees/repos","events_url":"https://api.github.com/users/bparees/events{/privacy}","received_events_url":"https://api.github.com/users/bparees/received_events","type":"User","site_admin":false},"created_at":"2017-05-10T14:55:12Z","updated_at":"2017-05-10T14:55:12Z","body":"@deads2k @liggitt so this is the only place I see us setting an ownerReference on a build, and it's when we first create it:\r\n\r\nhttps://github.com/openshift/origin/blob/master/pkg/build/generator/generator.go#L469\r\nhttps://github.com/openshift/origin/blob/master/pkg/build/generator/generator.go#L824\r\n\r\nI've also confirmed our reaper is not getting invoked when cascade=false (which is to be expected).\r\n\r\nWhat do we need to do to chase down what's going wrong here?"}}
{"actor":{"display_login":"bparees"}}