{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/5615","repository_url":"https://api.github.com/repos/ansible/ansible-modules-core","labels_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/5615/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/5615/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/5615/events","html_url":"https://github.com/ansible/ansible-modules-core/issues/5615","id":189354043,"number":5615,"title":"Pip doesn't respect virtualenv settings","user":{"login":"deejay1","id":41211,"avatar_url":"https://avatars.githubusercontent.com/u/41211?v=3","gravatar_id":"","url":"https://api.github.com/users/deejay1","html_url":"https://github.com/deejay1","followers_url":"https://api.github.com/users/deejay1/followers","following_url":"https://api.github.com/users/deejay1/following{/other_user}","gists_url":"https://api.github.com/users/deejay1/gists{/gist_id}","starred_url":"https://api.github.com/users/deejay1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deejay1/subscriptions","organizations_url":"https://api.github.com/users/deejay1/orgs","repos_url":"https://api.github.com/users/deejay1/repos","events_url":"https://api.github.com/users/deejay1/events{/privacy}","received_events_url":"https://api.github.com/users/deejay1/received_events","type":"User","site_admin":false},"labels":[{"id":437720380,"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/affects_2.2","name":"affects_2.2","color":"5319e7","default":false},{"id":132571937,"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/bug_report","name":"bug_report","color":"fbca04","default":false},{"id":414073372,"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/waiting_on_maintainer","name":"waiting_on_maintainer","color":"d93f0b","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-11-15T10:28:14Z","updated_at":"2016-11-20T16:59:25Z","closed_at":null,"body":"##### ISSUE TYPE\r\n<!--- Pick one below and delete the rest: -->\r\n - Bug Report\r\n\r\n\r\n##### COMPONENT NAME\r\npackaging/language/pip.py\r\n\r\n##### ANSIBLE VERSION\r\n<!--- Paste verbatim output from “ansible --version” between quotes below -->\r\n```\r\nansible 2.2.0.0\r\n  config file = /home/deejay1/ansible.cfg\r\n  configured module search path = Default w/o overrides\r\n\r\n```\r\n\r\n##### CONFIGURATION\r\n<!---\r\nMention any settings you have changed/added/removed in ansible.cfg\r\n(or using the ANSIBLE_* environment variables).\r\n-->\r\n\r\n##### OS / ENVIRONMENT\r\n<!---\r\nMention the OS you are running Ansible from, and the OS you are\r\nmanaging, or say “N/A” for anything that is not platform-specific.\r\n-->\r\nUbuntu 16.04\r\n\r\n##### SUMMARY\r\n<!--- Explain the problem briefly -->\r\nThe pip module doesn't respect the virtualenv setting, but uses the stock /usr/bin/pip2 executable.\r\nSee https://github.com/ansible/ansible-modules-core/commit/d2106f1c929908aaeaeb53a77f71a1b9b0d59049#commitcomment-19682440\r\n##### STEPS TO REPRODUCE\r\n<!---\r\nFor bugs, show exactly how to reproduce the problem.\r\nFor new features, show how the feature would be used.\r\n-->\r\n\r\n<!--- Paste example playbooks or commands between quotes below -->\r\n```\r\n - name: check virtualenv\r\n   become_user: alamo\r\n-  pip: name=pip virtualenv=/opt/alamo_worker virtualenv_command=pyvenv-3.4 virtualenv_python=python3.4 state=latest\r\n```\r\n\r\n<!--- You can also paste gist.github.com links for larger files -->\r\n\r\n##### EXPECTED RESULTS\r\n<!--- What did you expect to happen when running the steps above? -->\r\nPip gets updated in virtualenv or nothing happens if it's latest\r\n##### ACTUAL RESULTS\r\n<!--- What actually happened? If possible run with extra verbosity (-vvvv) -->\r\n\r\n<!--- Paste verbatim command output between quotes below -->\r\n```\r\nfatal: [my_host.com]: FAILED! => {\r\n    \"changed\": false, \r\n    \"cmd\": \"/usr/bin/pip2 install -U pip\", \r\n    \"failed\": true, \r\n    \"invocation\": {\r\n        \"module_args\": {\r\n            \"chdir\": null, \r\n            \"editable\": true, \r\n            \"executable\": null, \r\n            \"extra_args\": null, \r\n            \"name\": [\r\n                \"pip\"\r\n            ], \r\n            \"requirements\": null, \r\n            \"state\": \"latest\", \r\n            \"umask\": null, \r\n            \"use_mirrors\": true, \r\n            \"version\": null, \r\n            \"virtualenv\": \"/opt/alamo_worker/\", \r\n            \"virtualenv_command\": \"pyvenv-3.4\", \r\n            \"virtualenv_python\": \"python3.4\", \r\n            \"virtualenv_site_packages\": false\r\n        }, \r\n        \"module_name\": \"pip\"\r\n    }, \r\n\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/comments/261790096","html_url":"https://github.com/ansible/ansible-modules-core/issues/5615#issuecomment-261790096","issue_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/5615","id":261790096,"user":{"login":"d3prof3t","id":13720398,"avatar_url":"https://avatars.githubusercontent.com/u/13720398?v=3","gravatar_id":"","url":"https://api.github.com/users/d3prof3t","html_url":"https://github.com/d3prof3t","followers_url":"https://api.github.com/users/d3prof3t/followers","following_url":"https://api.github.com/users/d3prof3t/following{/other_user}","gists_url":"https://api.github.com/users/d3prof3t/gists{/gist_id}","starred_url":"https://api.github.com/users/d3prof3t/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d3prof3t/subscriptions","organizations_url":"https://api.github.com/users/d3prof3t/orgs","repos_url":"https://api.github.com/users/d3prof3t/repos","events_url":"https://api.github.com/users/d3prof3t/events{/privacy}","received_events_url":"https://api.github.com/users/d3prof3t/received_events","type":"User","site_admin":false},"created_at":"2016-11-20T16:59:25Z","updated_at":"2016-11-20T16:59:25Z","body":"@deejay1 Please refer to this issue. Seems duplicate to me. https://github.com/ansible/ansible-modules-core/issues/5458"}}
{"actor":{"display_login":"d3prof3t"}}