{"action":"created","issue":{"url":"https://api.github.com/repos/cloudfoundry/bosh/issues/1495","repository_url":"https://api.github.com/repos/cloudfoundry/bosh","labels_url":"https://api.github.com/repos/cloudfoundry/bosh/issues/1495/labels{/name}","comments_url":"https://api.github.com/repos/cloudfoundry/bosh/issues/1495/comments","events_url":"https://api.github.com/repos/cloudfoundry/bosh/issues/1495/events","html_url":"https://github.com/cloudfoundry/bosh/issues/1495","id":187240369,"number":1495,"title":"In Fog code integrated in bosh-cpi, the check of “response.get_header('Content-Type') == 'application/json'” lead to failure in CF deployment ","user":{"login":"zhutao11","id":23250676,"avatar_url":"https://avatars.githubusercontent.com/u/23250676?v=3","gravatar_id":"","url":"https://api.github.com/users/zhutao11","html_url":"https://github.com/zhutao11","followers_url":"https://api.github.com/users/zhutao11/followers","following_url":"https://api.github.com/users/zhutao11/following{/other_user}","gists_url":"https://api.github.com/users/zhutao11/gists{/gist_id}","starred_url":"https://api.github.com/users/zhutao11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhutao11/subscriptions","organizations_url":"https://api.github.com/users/zhutao11/orgs","repos_url":"https://api.github.com/users/zhutao11/repos","events_url":"https://api.github.com/users/zhutao11/events{/privacy}","received_events_url":"https://api.github.com/users/zhutao11/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-11-04T02:34:38Z","updated_at":"2016-11-18T10:21:54Z","closed_at":"2016-11-08T05:18:18Z","body":"**Version:**\r\n```\r\nreleases:\r\n- name: bosh\r\n  url: https://bosh.io/d/github.com/cloudfoundry/bosh?v=257.14\r\n  sha1: b41821dccee78ad7bd44466cd0160920c183787a\r\n- name: bosh-openstack-cpi\r\n  url: https://bosh.io/d/github.com/cloudfoundry-incubator/bosh-openstack-cpi-release?v=27\r\n  sha1: 85e6244978f775c888bbd303b874a2c158eb43c4\r\n```\r\n\r\n**Issue**\r\nIn Fog code ,such as Line 391 of '/var/vcap/packages/registry/gem_home/ruby/2.3.0/gems/fog-openstack-0.1.7/lib/fog/openstack/compute.rb' in Bosh-director,\r\na check of ' if !response.body.empty? && response.get_header('Content-Type') == 'application/json''\r\nis here\r\n\r\nIf the HTTP Reponse Header is \"Content-Type\"=>\"application/json; **charset=UTF-8**\", the CF deployment will fail\r\n\r\n**Will the next Bosh-cpi solve this problem,or intergate a Fog version without this check?**"},"comment":{"url":"https://api.github.com/repos/cloudfoundry/bosh/issues/comments/261497773","html_url":"https://github.com/cloudfoundry/bosh/issues/1495#issuecomment-261497773","issue_url":"https://api.github.com/repos/cloudfoundry/bosh/issues/1495","id":261497773,"user":{"login":"voelzmo","id":2256887,"avatar_url":"https://avatars.githubusercontent.com/u/2256887?v=3","gravatar_id":"","url":"https://api.github.com/users/voelzmo","html_url":"https://github.com/voelzmo","followers_url":"https://api.github.com/users/voelzmo/followers","following_url":"https://api.github.com/users/voelzmo/following{/other_user}","gists_url":"https://api.github.com/users/voelzmo/gists{/gist_id}","starred_url":"https://api.github.com/users/voelzmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/voelzmo/subscriptions","organizations_url":"https://api.github.com/users/voelzmo/orgs","repos_url":"https://api.github.com/users/voelzmo/repos","events_url":"https://api.github.com/users/voelzmo/events{/privacy}","received_events_url":"https://api.github.com/users/voelzmo/received_events","type":"User","site_admin":false},"created_at":"2016-11-18T10:21:54Z","updated_at":"2016-11-18T10:21:54Z","body":"@zhoutiekui Have you tried using fog-openstack 0.1.17 and saw that the problem no longer exists? The check you mentioned is still there in 0.1.17, but moved to a different position in the code: https://github.com/fog/fog-openstack/blob/f3e081947d29551ace8440fd5785f1b234174895/lib/fog/openstack/core.rb#L110"}}
{"actor":{"display_login":"voelzmo"}}