{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/awx/issues/2500","repository_url":"https://api.github.com/repos/ansible/awx","labels_url":"https://api.github.com/repos/ansible/awx/issues/2500/labels{/name}","comments_url":"https://api.github.com/repos/ansible/awx/issues/2500/comments","events_url":"https://api.github.com/repos/ansible/awx/issues/2500/events","html_url":"https://github.com/ansible/awx/issues/2500","id":372288670,"node_id":"MDU6SXNzdWUzNzIyODg2NzA=","number":2500,"title":"API denied when creating new virtualenvs","user":{"login":"ybizeul","id":182035,"node_id":"MDQ6VXNlcjE4MjAzNQ==","avatar_url":"https://avatars2.githubusercontent.com/u/182035?v=4","gravatar_id":"","url":"https://api.github.com/users/ybizeul","html_url":"https://github.com/ybizeul","followers_url":"https://api.github.com/users/ybizeul/followers","following_url":"https://api.github.com/users/ybizeul/following{/other_user}","gists_url":"https://api.github.com/users/ybizeul/gists{/gist_id}","starred_url":"https://api.github.com/users/ybizeul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ybizeul/subscriptions","organizations_url":"https://api.github.com/users/ybizeul/orgs","repos_url":"https://api.github.com/users/ybizeul/repos","events_url":"https://api.github.com/users/ybizeul/events{/privacy}","received_events_url":"https://api.github.com/users/ybizeul/received_events","type":"User","site_admin":false},"labels":[{"id":687169246,"node_id":"MDU6TGFiZWw2ODcxNjkyNDY=","url":"https://api.github.com/repos/ansible/awx/labels/component:api","name":"component:api","color":"fbca04","default":false},{"id":687172858,"node_id":"MDU6TGFiZWw2ODcxNzI4NTg=","url":"https://api.github.com/repos/ansible/awx/labels/state:needs_triage","name":"state:needs_triage","color":"A0522D","default":false},{"id":607283748,"node_id":"MDU6TGFiZWw2MDcyODM3NDg=","url":"https://api.github.com/repos/ansible/awx/labels/type:bug","name":"type:bug","color":"F79F81","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-21T07:45:33Z","updated_at":"2018-10-22T13:37:17Z","closed_at":null,"author_association":"NONE","body":"##### ISSUE TYPE\r\n - Bug Report\r\n\r\n##### COMPONENT NAME\r\n - API\r\n\r\n##### SUMMARY\r\nTrying to follow https://github.com/ansible/awx/blob/devel/docs/custom_virtualenvs.md, I cannot make the PATCH request to create a new environment.\r\n\r\n##### ENVIRONMENT\r\n* AWX version: 1.0.6.23\r\n* AWX install method: docker on linux\r\n* Ansible version:  2.5.5\r\n* Operating System: CentOS 7\r\n* Web Browser: Safari / Postman\r\n\r\n##### STEPS TO REPRODUCE\r\n\r\n- Followed the aforementioned documentation in a shell into the awx_task container\r\n- Istalled gcc and python-devel along the way to satisfy dependencies\r\n- Installed `pyvmomi` and `netapp-lib` with pip\r\n\r\nOn the credential part, I created a new application \"API Access\"\r\n\r\n![image](https://user-images.githubusercontent.com/182035/47264321-d71f1200-d514-11e8-99ef-69b1304090ec.png)\r\n\r\nas well as a new token for `admin`\r\n\r\n![image](https://user-images.githubusercontent.com/182035/47264326-fb7aee80-d514-11e8-9a06-cb365d14bd90.png)\r\n\r\nI can now query the configuration :\r\n\r\n![image](https://user-images.githubusercontent.com/182035/47264333-1f3e3480-d515-11e8-8875-ee95795f1522.png)\r\n\r\nbut I cannot `PATCH` the new environment :\r\n\r\n![image](https://user-images.githubusercontent.com/182035/47264359-b4d9c400-d515-11e8-96c0-2a63806275ac.png)\r\n\r\n```\r\nOct 21 09:44:41 ansible journal: 2018-10-21 07:44:41,314 DEBUG    awx.api.authentication User admin performed a PATCH to /api/v2/organizations/1/ through the API using OAuth token 1.\r\nOct 21 09:44:41 ansible journal: 2018-10-21 07:44:41,319 WARNING  awx.api.generics status 403 received by user admin attempting to access /api/v2/organizations/1/ from 10.0.1.122\r\n```\r\n\r\n##### EXPECTED RESULTS\r\n\r\nI should be granted permission\r\n\r\n##### ACTUAL RESULTS\r\n\r\nI got permission denied"},"comment":{"url":"https://api.github.com/repos/ansible/awx/issues/comments/431838021","html_url":"https://github.com/ansible/awx/issues/2500#issuecomment-431838021","issue_url":"https://api.github.com/repos/ansible/awx/issues/2500","id":431838021,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMTgzODAyMQ==","user":{"login":"ryanpetrello","id":214912,"node_id":"MDQ6VXNlcjIxNDkxMg==","avatar_url":"https://avatars1.githubusercontent.com/u/214912?v=4","gravatar_id":"","url":"https://api.github.com/users/ryanpetrello","html_url":"https://github.com/ryanpetrello","followers_url":"https://api.github.com/users/ryanpetrello/followers","following_url":"https://api.github.com/users/ryanpetrello/following{/other_user}","gists_url":"https://api.github.com/users/ryanpetrello/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanpetrello/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanpetrello/subscriptions","organizations_url":"https://api.github.com/users/ryanpetrello/orgs","repos_url":"https://api.github.com/users/ryanpetrello/repos","events_url":"https://api.github.com/users/ryanpetrello/events{/privacy}","received_events_url":"https://api.github.com/users/ryanpetrello/received_events","type":"User","site_admin":false},"created_at":"2018-10-22T13:37:17Z","updated_at":"2018-10-22T13:37:17Z","author_association":"CONTRIBUTOR","body":"@ybizeul can you give this a shot with a newer version of awx?  We've fixed several notable issues related to custom virtualenvs since then.  When I try to reproduce with your steps in the Docker on Linux environment, it works fine for me:\r\n\r\n<img width=\"1195\" alt=\"image\" src=\"https://user-images.githubusercontent.com/214912/47295187-0dc05f80-d5dd-11e8-862f-d5cb31bf832c.png\">\r\n\r\n<img width=\"1003\" alt=\"image\" src=\"https://user-images.githubusercontent.com/214912/47295214-19ac2180-d5dd-11e8-9b07-522f78019149.png\">\r\n\r\n<img width=\"416\" alt=\"image\" src=\"https://user-images.githubusercontent.com/214912/47295326-62fc7100-d5dd-11e8-8918-cd000171b241.png\">\r\n\r\n<img width=\"428\" alt=\"image\" src=\"https://user-images.githubusercontent.com/214912/47295266-3fd1c180-d5dd-11e8-9adb-d4f941b0556a.png\">\r\n\r\n```\r\n~ curl -kiX PATCH -d '{\"custom_virtualenv\": \"/venv/ryan\"}' -H \"Authorization: Bearer I9gc5MhKq7zUTC05VBgnKsGfZdASeQ\" https://tower.local:8043/api/v2/organizations/2/ -H \"Content-Type: application/json\"\r\nHTTP/1.1 200 OK\r\nServer: nginx/1.12.2\r\nDate: Mon, 22 Oct 2018 13:36:05 GMT\r\n...\r\n```"}}
{"actor":{"display_login":"ryanpetrello"}}