{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/33163","repository_url":"https://api.github.com/repos/saltstack/salt","labels_url":"https://api.github.com/repos/saltstack/salt/issues/33163/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/33163/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/33163/events","html_url":"https://github.com/saltstack/salt/issues/33163","id":154145371,"number":33163,"title":"Salt 2015.8.5 incompatible with Pip v8.1.2","user":{"login":"jaybocc2","id":2801114,"avatar_url":"https://avatars.githubusercontent.com/u/2801114?v=3","gravatar_id":"","url":"https://api.github.com/users/jaybocc2","html_url":"https://github.com/jaybocc2","followers_url":"https://api.github.com/users/jaybocc2/followers","following_url":"https://api.github.com/users/jaybocc2/following{/other_user}","gists_url":"https://api.github.com/users/jaybocc2/gists{/gist_id}","starred_url":"https://api.github.com/users/jaybocc2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaybocc2/subscriptions","organizations_url":"https://api.github.com/users/jaybocc2/orgs","repos_url":"https://api.github.com/users/jaybocc2/repos","events_url":"https://api.github.com/users/jaybocc2/events{/privacy}","received_events_url":"https://api.github.com/users/jaybocc2/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/saltstack/salt/labels/Execution%20Module","name":"Execution Module","color":"006b75"},{"url":"https://api.github.com/repos/saltstack/salt/labels/High%20Severity","name":"High Severity","color":"ff9143"},{"url":"https://api.github.com/repos/saltstack/salt/labels/P1","name":"P1","color":"2181ee"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Platform","name":"Platform","color":"fef2c0"},{"url":"https://api.github.com/repos/saltstack/salt/labels/State%20Module","name":"State Module","color":"006b75"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Upstream%20Bug","name":"Upstream Bug","color":"bfe5bf"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/saltstack/salt/milestones/13","html_url":"https://github.com/saltstack/salt/milestones/Approved","labels_url":"https://api.github.com/repos/saltstack/salt/milestones/13/labels","id":9265,"number":13,"title":"Approved","description":"All issues that are ready to be worked on, both bugs and features.","creator":{"login":"thatch45","id":507599,"avatar_url":"https://avatars.githubusercontent.com/u/507599?v=3","gravatar_id":"","url":"https://api.github.com/users/thatch45","html_url":"https://github.com/thatch45","followers_url":"https://api.github.com/users/thatch45/followers","following_url":"https://api.github.com/users/thatch45/following{/other_user}","gists_url":"https://api.github.com/users/thatch45/gists{/gist_id}","starred_url":"https://api.github.com/users/thatch45/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thatch45/subscriptions","organizations_url":"https://api.github.com/users/thatch45/orgs","repos_url":"https://api.github.com/users/thatch45/repos","events_url":"https://api.github.com/users/thatch45/events{/privacy}","received_events_url":"https://api.github.com/users/thatch45/received_events","type":"User","site_admin":false},"open_issues":3061,"closed_issues":3606,"state":"open","created_at":"2011-05-14T04:00:56Z","updated_at":"2016-05-11T15:48:43Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2016-05-11T02:09:47Z","updated_at":"2016-05-11T16:02:33Z","closed_at":null,"body":"### Description of Issue/Question\r\nPip 8.1.2 was just released and the poorly timed upgrade to it broke all of our salt states that rely on pip.\r\nForce downgrading and locking pip to version 8.1.1 resolves the issue for now.\r\n### Setup\r\n```\r\nadmin@jay-dev-001:~$ pip --version\r\npip 8.1.2 from /usr/local/lib/python2.7/dist-packages (python 2.7)\r\n```\r\n```\r\n    config['upgrade-pip'] = {\r\n        'pip.installed': [\r\n            {'name': 'pip'},\r\n            {'reload_modules': True},\r\n            {'upgrade': True},\r\n            {'require': [{'pkg': 'core_packages'}]}\r\n        ]\r\n    }\r\n\r\n    config['upgrade-requests'] = {\r\n        'pip.installed': [\r\n            {'name': 'requests'},\r\n            {'reload_modules': True},\r\n            {'upgrade': True},\r\n            {'require': [\r\n                {'pkg': 'core_packages'},\r\n                {'pip': 'pip'}\r\n            ]}\r\n        ]\r\n    }\r\n\r\n    config['docker-py'] = {\r\n        'pip.installed': [\r\n            {'name': 'docker-py == 1.4.0'},\r\n            {'reload_modules': True},\r\n            {'require': [\r\n                {'pip': 'requests'},\r\n                {'pip': 'pip'}\r\n            ]}\r\n        ]\r\n    }\r\n```\r\n\r\n### Steps to Reproduce Issue\r\nsalt \\* state.apply\r\n```\r\n----------\r\n          ID: upgrade-pip\r\n    Function: pip.installed\r\n        Name: pip\r\n      Result: False\r\n     Comment: An exception occurred in this state: Traceback (most recent call last):\r\n                File \"/usr/lib/python2.7/dist-packages/salt/state.py\", line 1624, in call\r\n                  **cdata['kwargs'])\r\n                File \"/usr/lib/python2.7/dist-packages/salt/loader.py\", line 1491, in wrapper\r\n                  return f(*args, **kwargs)\r\n                File \"/usr/lib/python2.7/dist-packages/salt/states/pip_state.py\", line 592, in installed\r\n                  out = _check_pkg_version_format(pkg)\r\n                File \"/usr/lib/python2.7/dist-packages/salt/states/pip_state.py\", line 176, in _check_pkg_version_format\r\n                  ret['prefix'] = install_req.req.project_name\r\n              AttributeError: 'Requirement' object has no attribute 'project_name'\r\n     Started: 02:02:36.041407\r\n    Duration: 55.199 ms\r\n     Changes:\r\n----------\r\n          ID: upgrade-requests\r\n    Function: pip.installed\r\n        Name: requests\r\n      Result: False\r\n     Comment: One or more requisite failed: core.docker_setup.upgrade-pip\r\n     Started:\r\n    Duration:\r\n     Changes:\r\n----------\r\n          ID: install-python-requests\r\n    Function: pip.installed\r\n        Name: requests\r\n      Result: False\r\n     Comment: An exception occurred in this state: Traceback (most recent call last):\r\n                File \"/usr/lib/python2.7/dist-packages/salt/state.py\", line 1624, in call\r\n                  **cdata['kwargs'])\r\n                File \"/usr/lib/python2.7/dist-packages/salt/loader.py\", line 1491, in wrapper\r\n                  return f(*args, **kwargs)\r\n                File \"/usr/lib/python2.7/dist-packages/salt/states/pip_state.py\", line 592, in installed\r\n                  out = _check_pkg_version_format(pkg)\r\n                File \"/usr/lib/python2.7/dist-packages/salt/states/pip_state.py\", line 176, in _check_pkg_version_format\r\n                  ret['prefix'] = install_req.req.project_name\r\n              AttributeError: 'Requirement' object has no attribute 'project_name'\r\n     Started: 02:02:36.484286\r\n    Duration: 56.197 ms\r\n     Changes:\r\n----------\r\n          ID: docker-py\r\n    Function: pip.installed\r\n        Name: docker-py == 1.4.0\r\n      Result: False\r\n     Comment: One or more requisite failed: core.docker_setup.upgrade-pip, core.docker_setup.upgrade-requests, consul.install.install-python-requests\r\n     Started:\r\n    Duration:\r\n     Changes:\r\n----------\r\n          ID: install-python-consul\r\n    Function: pip.installed\r\n        Name: python-consul\r\n      Result: False\r\n     Comment: An exception occurred in this state: Traceback (most recent call last):\r\n                File \"/usr/lib/python2.7/dist-packages/salt/state.py\", line 1624, in call\r\n                  **cdata['kwargs'])\r\n                File \"/usr/lib/python2.7/dist-packages/salt/loader.py\", line 1491, in wrapper\r\n                  return f(*args, **kwargs)\r\n                File \"/usr/lib/python2.7/dist-packages/salt/states/pip_state.py\", line 592, in installed\r\n                  out = _check_pkg_version_format(pkg)\r\n                File \"/usr/lib/python2.7/dist-packages/salt/states/pip_state.py\", line 176, in _check_pkg_version_format\r\n                  ret['prefix'] = install_req.req.project_name\r\n              AttributeError: 'Requirement' object has no attribute 'project_name'\r\n     Started: 02:02:46.170152\r\n    Duration: 58.18 ms\r\n     Changes:\r\n```\r\n\r\n### Versions Report\r\n```\r\nadmin@saltshaker-001:~$ salt --versions-report\r\nSalt Version:\r\n           Salt: 2015.8.5\r\n\r\nDependency Versions:\r\n         Jinja2: 2.7.3\r\n       M2Crypto: Not Installed\r\n           Mako: 1.0.0\r\n         PyYAML: 3.11\r\n          PyZMQ: 14.4.0\r\n         Python: 2.7.9 (default, Mar  1 2015, 12:57:24)\r\n           RAET: Not Installed\r\n        Tornado: 4.2.1\r\n            ZMQ: 4.0.5\r\n           cffi: Not Installed\r\n       cherrypy: Not Installed\r\n       dateutil: 2.4.2\r\n          gitdb: 0.5.4\r\n      gitpython: 0.3.2 RC1\r\n          ioflo: Not Installed\r\n        libgit2: Not Installed\r\n        libnacl: Not Installed\r\n   msgpack-pure: Not Installed\r\n msgpack-python: 0.4.2\r\n   mysql-python: 1.2.3\r\n      pycparser: Not Installed\r\n       pycrypto: 2.6.1\r\n         pygit2: Not Installed\r\n   python-gnupg: 0.3.6\r\n          smmap: 0.8.2\r\n        timelib: Not Installed\r\n\r\nSystem Versions:\r\n           dist: debian 8.3\r\n        machine: x86_64\r\n        release: 3.16.0-4-amd64\r\n         system: debian 8.3\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/218506184","html_url":"https://github.com/saltstack/salt/issues/33163#issuecomment-218506184","issue_url":"https://api.github.com/repos/saltstack/salt/issues/33163","id":218506184,"user":{"login":"jfindlay","id":702905,"avatar_url":"https://avatars.githubusercontent.com/u/702905?v=3","gravatar_id":"","url":"https://api.github.com/users/jfindlay","html_url":"https://github.com/jfindlay","followers_url":"https://api.github.com/users/jfindlay/followers","following_url":"https://api.github.com/users/jfindlay/following{/other_user}","gists_url":"https://api.github.com/users/jfindlay/gists{/gist_id}","starred_url":"https://api.github.com/users/jfindlay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfindlay/subscriptions","organizations_url":"https://api.github.com/users/jfindlay/orgs","repos_url":"https://api.github.com/users/jfindlay/repos","events_url":"https://api.github.com/users/jfindlay/events{/privacy}","received_events_url":"https://api.github.com/users/jfindlay/received_events","type":"User","site_admin":false},"created_at":"2016-05-11T16:02:33Z","updated_at":"2016-05-11T16:02:33Z","body":"Thanks everyone for reporting.  This has affected us as well and we're looking into it.  As @kiorky suggests, this seems to be an upstream bug."}}