{"action":"created","issue":{"url":"https://api.github.com/repos/epoelke/rds-service-broker/issues/1","labels_url":"https://api.github.com/repos/epoelke/rds-service-broker/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/epoelke/rds-service-broker/issues/1/comments","events_url":"https://api.github.com/repos/epoelke/rds-service-broker/issues/1/events","html_url":"https://github.com/epoelke/rds-service-broker/issues/1","id":112412916,"number":1,"title":"creating a second service instance causes stacktrace","user":{"login":"Blackbaud-JasonCrowe","id":634922,"avatar_url":"https://avatars.githubusercontent.com/u/634922?v=3","gravatar_id":"","url":"https://api.github.com/users/Blackbaud-JasonCrowe","html_url":"https://github.com/Blackbaud-JasonCrowe","followers_url":"https://api.github.com/users/Blackbaud-JasonCrowe/followers","following_url":"https://api.github.com/users/Blackbaud-JasonCrowe/following{/other_user}","gists_url":"https://api.github.com/users/Blackbaud-JasonCrowe/gists{/gist_id}","starred_url":"https://api.github.com/users/Blackbaud-JasonCrowe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Blackbaud-JasonCrowe/subscriptions","organizations_url":"https://api.github.com/users/Blackbaud-JasonCrowe/orgs","repos_url":"https://api.github.com/users/Blackbaud-JasonCrowe/repos","events_url":"https://api.github.com/users/Blackbaud-JasonCrowe/events{/privacy}","received_events_url":"https://api.github.com/users/Blackbaud-JasonCrowe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-20T16:51:41Z","updated_at":"2015-10-20T16:59:05Z","closed_at":null,"body":"using 1.5.7 ops manager and 1.5.6 elastic runtime\r\n\r\ncommand:\r\nCF_TRACE=true cf create-service hsdp-rds postgres-medium-dev pg-med-2\r\n\r\nrelevant output:\r\n```\r\nREQUEST: [2015-10-20T16:23:57Z]\r\nPOST /v2/service_instances?accepts_incomplete=true HTTP/1.1^M\r\nHost: api.system.pivotal.blackbaudcloud.com^M\r\nAccept: application/json^M\r\nAuthorization: [PRIVATE DATA HIDDEN]\r\nContent-Type: application/json^M\r\nUser-Agent: go-cli 6.11.3-cebadc9 / linux^M\r\n^M\r\n{\"name\":\"pg-med-2\",\"space_guid\":\"ff2844e8-f063-4e53-bd01-636bfb839bc7\",\"service_plan_guid\":\"9db73a23-0858-4768-a18e-5d8ab10d75af\"}\r\n\r\nRESPONSE: [2015-10-20T16:23:57Z]\r\nHTTP/1.1 502 Bad Gateway^M\r\nContent-Length: 1403^M\r\nConnection: keep-alive^M\r\nContent-Type: application/json;charset=utf-8^M\r\nDate: Tue, 20 Oct 2015 16:23:57 GMT^M\r\nServer: nginx^M\r\nX-Cf-Requestid: 17a3172e-a382-4786-7832-99428bab932c^M\r\nX-Content-Type-Options: nosniff^M\r\nX-Vcap-Request-Id: f12ab95f-de54-4a6e-59a0-b822df8eb08c::0b4f34cf-e106-429e-a774-c03c396e015e^M\r\n^M\r\n{\r\n  \"code\": 10001,\r\n  \"description\": \"The service broker returned an invalid response for the request to https://hsdp-rds.app.pivotal.blackbaudcloud.com/v2/service_instances/7374f26c-e4a1-4be8-a57f-db4725255e61?accepts_incomplete=true. Status Code: 500 Internal Server Error, Body: \\n    <!DOCTYPE HTML PUBLIC \\\"-//IETF//DTD HTML 2.0//EN\\\">\\n    <html>\\n        <head>\\n            <title>Error: 500 Internal Server Error</title>\\n            <style type=\\\"text/css\\\">\\n              html {background-color: #eee; font-family: sans;}\\n              body {background-color: #fff; border: 1px solid #ddd;\\n                    padding: 15px; margin: 15px;}\\n              pre {background-color: #eee; border: 1px solid #ddd; padding: 5px;}\\n            </style>\\n        </head>\\n        <body>\\n            <h1>Error: 500 Internal Server Error</h1>\\n            <p>Sorry, the requested URL <tt>&#039;https://hsdp-rds.app.pivotal.blackbaudcloud.com/v2/service_instances/7374f26c-e4a1-4be8-a57f-db4725255e61?accepts_incomplete=true&#039;</tt>\\n               caused an error:</p>\\n            <pre>Internal Server Error</pre>\\n        </body>\\n    </html>\\n\",\r\n  \"error_code\": \"CF-ServiceBrokerBadResponse\",\r\n  \"http\": {\r\n    \"uri\": \"https://hsdp-rds.app.pivotal.blackbaudcloud.com/v2/service_instances/7374f26c-e4a1-4be8-a57f-db4725255e61?accepts_incomplete=true\",\r\n    \"method\": \"PUT\",\r\n    \"status\": 500\r\n  }\r\n}\r\n```\r\n\r\napp output:\r\n```\r\nConnected, tailing logs for app hsdp-rds in org bluemoon / space broker as admin...\r\n\r\n2015-10-20T16:23:57.30+0000 [RTR/0]      OUT hsdp-rds.app.pivotal.blackbaudcloud.com - [20/10/2015:16:23:57 +0000] \"PUT /v2/service_instances/7374f26c-e4a1-4be8-a57f-db4725255e61?accepts_incomplete=true HTTP/1.1\" 500 848 \"-\" \"HTTPClient/1.0 (2.5.3.3, ruby 2.1.6 (2015-04-13))\" 10.209.76.157:31500 x_forwarded_for:\"52.22.117.12\" vcap_request_id:19454afc-b361-4e4d-657d-63960c94a913 response_time:0.002562879 app_id:345d5c19-20b7-4013-964c-e34586fc69b4\r\n2015-10-20T16:23:57.31+0000 [App/0]      ERR Traceback (most recent call last):\r\n2015-10-20T16:23:57.31+0000 [App/0]      ERR   File \"/app/.heroku/python/lib/python2.7/site-packages/bottle.py\", line 862, in _handle\r\n2015-10-20T16:23:57.31+0000 [App/0]      ERR     return route.call(**args)\r\n2015-10-20T16:23:57.31+0000 [App/0]      ERR   File \"/app/.heroku/python/lib/python2.7/site-packages/bottle.py\", line 1732, in wrapper\r\n2015-10-20T16:23:57.31+0000 [App/0]      ERR     rv = callback(*a, **ka)\r\n2015-10-20T16:23:57.31+0000 [App/0]      ERR   File \"rds_sb_app.py\", line 46, in wrapper\r\n2015-10-20T16:23:57.31+0000 [App/0]      ERR     return callback(*args, **kwargs)\r\n2015-10-20T16:23:57.31+0000 [App/0]      ERR   File \"/app/.heroku/python/lib/python2.7/site-packages/bottle.py\", line 2680, in wrapper\r\n2015-10-20T16:23:57.31+0000 [App/0]      ERR     return func(*a, **ka)\r\n2015-10-20T16:23:57.31+0000 [App/0]      ERR   File \"rds_sb_app.py\", line 102, in provision\r\n2015-10-20T16:23:57.31+0000 [App/0]      ERR     if plan['id'] == data['plan_id']:\r\n2015-10-20T16:23:57.31+0000 [App/0]      ERR KeyError: 'id'\r\n2015-10-20T16:23:57.31+0000 [App/0]      ERR [pid: 38|app: 0|req: 64/92] 10.209.78.15 () {54 vars in 1124 bytes} [Tue Oct 20 16:23:57 2015] PUT /v2/service_instances/7374f26c-e4a1-4be8-a57f-db4725255e61?accepts_incomplete=true => generated 848 bytes in 1 msecs (HTTP/1.1 500) 2 headers in 99 bytes (1 switches on core 1)\r\n2015-10-20T16:23:59.59+0000 [RTR/0]      OUT hsdp-rds.app.pivotal.blackbaudcloud.com - [20/10/2015:16:23:59 +0000] \"DELETE /v2/service_instances/7374f26c-e4a1-4be8-a57f-db4725255e61?plan_id=25079dac-ca5a-4ab3-af1c-24047ba8500d&service_id=e4de7294-4e76-44ac-bf40-08b01282f478 HTTP/1.1\" 500 921 \"-\" \"HTTPClient/1.0 (2.5.3.3, ruby 2.1.6 (2015-04-13))\" 10.209.76.157:31565 x_forwarded_for:\"52.22.117.12\" vcap_request_id:28c0e1a6-9581-400e-61bc-f585d547e86e response_time:0.062632286 app_id:345d5c19-20b7-4013-964c-e34586fc69b4\r\n2015-10-20T16:23:59.59+0000 [App/0]      ERR Traceback (most recent call last):\r\n2015-10-20T16:23:59.59+0000 [App/0]      ERR   File \"/app/.heroku/python/lib/python2.7/site-packages/bottle.py\", line 862, in _handle\r\n2015-10-20T16:23:59.59+0000 [App/0]      ERR     return route.call(**args)\r\n2015-10-20T16:23:59.59+0000 [App/0]      ERR   File \"/app/.heroku/python/lib/python2.7/site-packages/bottle.py\", line 1732, in wrapper\r\n2015-10-20T16:23:59.59+0000 [App/0]      ERR     rv = callback(*a, **ka)\r\n2015-10-20T16:23:59.59+0000 [App/0]      ERR   File \"rds_sb_app.py\", line 46, in wrapper\r\n2015-10-20T16:23:59.59+0000 [App/0]      ERR     return callback(*args, **kwargs)\r\n2015-10-20T16:23:59.59+0000 [App/0]      ERR   File \"/app/.heroku/python/lib/python2.7/site-packages/bottle.py\", line 2680, in wrapper\r\n2015-10-20T16:23:59.59+0000 [App/0]      ERR     return func(*a, **ka)\r\n2015-10-20T16:23:59.59+0000 [App/0]      ERR   File \"rds_sb_app.py\", line 186, in deprovision\r\n2015-10-20T16:23:59.59+0000 [App/0]      ERR     record = table.get_item(Key={'instance_id': instance_id})['Item']\r\n2015-10-20T16:23:59.59+0000 [App/0]      ERR KeyError: 'Item'\r\n2015-10-20T16:23:59.59+0000 [App/0]      ERR [pid: 37|app: 0|req: 7/93] 10.209.78.15 () {50 vars in 1212 bytes} [Tue Oct 20 16:23:59 2015] DELETE /v2/service_instances/7374f26c-e4a1-4be8-a57f-db4725255e61?plan_id=25079dac-ca5a-4ab3-af1c-24047ba8500d&service_id=e4de7294-4e76-44ac-bf40-08b01282f478 => generated 921 bytes in 61 msecs (HTTP/1.1 500) 2 headers in 99 bytes (1 switches on core 0)\r\n```"},"comment":{"url":"https://api.github.com/repos/epoelke/rds-service-broker/issues/comments/149632707","html_url":"https://github.com/epoelke/rds-service-broker/issues/1#issuecomment-149632707","issue_url":"https://api.github.com/repos/epoelke/rds-service-broker/issues/1","id":149632707,"user":{"login":"Blackbaud-JasonCrowe","id":634922,"avatar_url":"https://avatars.githubusercontent.com/u/634922?v=3","gravatar_id":"","url":"https://api.github.com/users/Blackbaud-JasonCrowe","html_url":"https://github.com/Blackbaud-JasonCrowe","followers_url":"https://api.github.com/users/Blackbaud-JasonCrowe/followers","following_url":"https://api.github.com/users/Blackbaud-JasonCrowe/following{/other_user}","gists_url":"https://api.github.com/users/Blackbaud-JasonCrowe/gists{/gist_id}","starred_url":"https://api.github.com/users/Blackbaud-JasonCrowe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Blackbaud-JasonCrowe/subscriptions","organizations_url":"https://api.github.com/users/Blackbaud-JasonCrowe/orgs","repos_url":"https://api.github.com/users/Blackbaud-JasonCrowe/repos","events_url":"https://api.github.com/users/Blackbaud-JasonCrowe/events{/privacy}","received_events_url":"https://api.github.com/users/Blackbaud-JasonCrowe/received_events","type":"User","site_admin":false},"created_at":"2015-10-20T16:59:05Z","updated_at":"2015-10-20T16:59:05Z","body":"your fix seem to only deal with part of the issue"}}