{"action":"opened","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/37041","repository_url":"https://api.github.com/repos/saltstack/salt","labels_url":"https://api.github.com/repos/saltstack/salt/issues/37041/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/37041/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/37041/events","html_url":"https://github.com/saltstack/salt/issues/37041","id":183370330,"number":37041,"title":"HTTPError: 400 Client Error: Bad Request for url","user":{"login":"dmelnicz","id":22816206,"avatar_url":"https://avatars.githubusercontent.com/u/22816206?v=3","gravatar_id":"","url":"https://api.github.com/users/dmelnicz","html_url":"https://github.com/dmelnicz","followers_url":"https://api.github.com/users/dmelnicz/followers","following_url":"https://api.github.com/users/dmelnicz/following{/other_user}","gists_url":"https://api.github.com/users/dmelnicz/gists{/gist_id}","starred_url":"https://api.github.com/users/dmelnicz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmelnicz/subscriptions","organizations_url":"https://api.github.com/users/dmelnicz/orgs","repos_url":"https://api.github.com/users/dmelnicz/repos","events_url":"https://api.github.com/users/dmelnicz/events{/privacy}","received_events_url":"https://api.github.com/users/dmelnicz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-17T09:43:36Z","updated_at":"2016-10-17T09:43:36Z","closed_at":null,"body":"### Description of Issue/Question\r\n\r\nThere is an error while running elasticsearch official container through dockerng. Error says:\r\n\r\n> HTTPError: 400 Client Error: Bad Request for url: http+docker://localunixsocket/v1.24/containers/5e259ec5afb4b727bec7143d94e0714abccb1e76e643dd69adc286cb224eff7e/start\r\n\r\n### Setup\r\n\r\n```\r\nelasticsearch-image:\r\n  dockerng.image_present:\r\n    - name: elasticsearch:5\r\n\r\nelasticsearch-service:\r\n  docker.running:\r\n    - image: elasticsearch:5\r\n    - name: elasticsearch\r\n    - detach: True\r\n```\r\n\r\n### Steps to Reproduce Issue\r\n\r\n```\r\n----------\r\n          ID: docker\r\n    Function: service.running\r\n      Result: True\r\n     Comment: The service docker is already running\r\n     Started: 11:40:37.095977\r\n    Duration: 36.905 ms\r\n     Changes:\r\n----------\r\n          ID: elasticsearch-image\r\n    Function: dockerng.image_present\r\n        Name: elasticsearch:5\r\n      Result: True\r\n     Comment: Image 'elasticsearch:5' already present\r\n     Started: 11:40:37.138866\r\n    Duration: 4.816 ms\r\n     Changes:\r\n----------\r\n          ID: elasticsearch-service\r\n    Function: docker.running\r\n        Name: elasticsearch\r\n      Result: False\r\n     Comment: Container 'elasticsearch' cannot be started\r\n              Traceback (most recent call last):\r\n                File \"/usr/lib/python2.7/dist-packages/salt/modules/dockerio.py\", line 983, in start\r\n                  cap_drop=cap_drop)\r\n                File \"/usr/local/lib/python2.7/dist-packages/docker/utils/decorators.py\", line 21, in wrapped\r\n                  return f(self, resource_id, *args, **kwargs)\r\n                File \"/usr/local/lib/python2.7/dist-packages/docker/api/container.py\", line 383, in start\r\n                  self._raise_for_status(res)\r\n                File \"/usr/local/lib/python2.7/dist-packages/docker/client.py\", line 170, in _raise_for_status\r\n                  response.raise_for_status()\r\n                File \"/usr/lib/python2.7/dist-packages/requests/models.py\", line 840, in raise_for_status\r\n                  raise HTTPError(http_error_msg, response=self)\r\n              HTTPError: 400 Client Error: Bad Request for url: http+docker://localunixsocket/v1.24/containers/5e259ec5afb4b727bec7143d94e0714abccb1e76e643dd69adc286cb224eff7e/start\r\n     Started: 11:40:37.144853\r\n    Duration: 77.224 ms\r\n     Changes:\r\n```\r\n\r\n\r\n### Versions Report\r\n\r\n```\r\nSalt Version:\r\n           Salt: 2016.3.3\r\n\r\nDependency Versions:\r\n           cffi: Not Installed\r\n       cherrypy: Not Installed\r\n       dateutil: 2.4.2\r\n          gitdb: Not Installed\r\n      gitpython: Not Installed\r\n          ioflo: Not Installed\r\n         Jinja2: 2.8\r\n        libgit2: Not Installed\r\n        libnacl: Not Installed\r\n       M2Crypto: Not Installed\r\n           Mako: 1.0.3\r\n   msgpack-pure: Not Installed\r\n msgpack-python: 0.4.6\r\n   mysql-python: Not Installed\r\n      pycparser: Not Installed\r\n       pycrypto: 2.6.1\r\n         pygit2: Not Installed\r\n         Python: 2.7.12 (default, Jul  1 2016, 15:12:24)\r\n   python-gnupg: Not Installed\r\n         PyYAML: 3.11\r\n          PyZMQ: 15.2.0\r\n           RAET: Not Installed\r\n          smmap: Not Installed\r\n        timelib: Not Installed\r\n        Tornado: 4.2.1\r\n            ZMQ: 4.1.4\r\n\r\nSystem Versions:\r\n           dist: Ubuntu 16.04 xenial\r\n        machine: x86_64\r\n        release: 4.4.0-21-generic\r\n         system: Linux\r\n        version: Ubuntu 16.04 xenial\r\n```\r\n"}}
{"actor":{"display_login":"dmelnicz"}}