{"action":"opened","issue":{"url":"https://api.github.com/repos/ansible/awx/issues/1136","repository_url":"https://api.github.com/repos/ansible/awx","labels_url":"https://api.github.com/repos/ansible/awx/issues/1136/labels{/name}","comments_url":"https://api.github.com/repos/ansible/awx/issues/1136/comments","events_url":"https://api.github.com/repos/ansible/awx/issues/1136/events","html_url":"https://github.com/ansible/awx/issues/1136","id":294576931,"number":1136,"title":"Creating workflow fails if added template has survey","user":{"login":"greenscar","id":4122160,"avatar_url":"https://avatars1.githubusercontent.com/u/4122160?v=4","gravatar_id":"","url":"https://api.github.com/users/greenscar","html_url":"https://github.com/greenscar","followers_url":"https://api.github.com/users/greenscar/followers","following_url":"https://api.github.com/users/greenscar/following{/other_user}","gists_url":"https://api.github.com/users/greenscar/gists{/gist_id}","starred_url":"https://api.github.com/users/greenscar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greenscar/subscriptions","organizations_url":"https://api.github.com/users/greenscar/orgs","repos_url":"https://api.github.com/users/greenscar/repos","events_url":"https://api.github.com/users/greenscar/events{/privacy}","received_events_url":"https://api.github.com/users/greenscar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-05T23:17:06Z","updated_at":"2018-02-05T23:17:06Z","closed_at":null,"author_association":"NONE","body":"##### ISSUE TYPE\r\n<!--- Pick one below and delete the rest: -->\r\n - Bug Report\r\n\r\n##### COMPONENT NAME\r\n<!-- Pick the area of AWX for this issue, you can have multiple, delete the rest: -->\r\n - API\r\n - UI\r\n\r\n##### SUMMARY\r\n<!-- Briefly describe the problem. -->\r\n# Create a Job Template. Details are irrelevant. All that matters is this template has a Survey. I have tried various names and Answer types and Required / not and get the same result any time\r\n# Now create a Workflow Template \r\n** Click Workflow Editor\r\n** Add the job template created above.\r\n** Click Save\r\n\r\nI get a popup \"ERROR!\r\nFailed to add workflow node. POST returned status: 400\"\r\n\r\nIn logs I see:\r\n`awx_web_1    | 2018-02-05 23:09:34,992 WARNING  awx.api.generics status 400 received by user justme attempting to access /api/v2/workflow_job_templates/40/workflow_nodes/ from 4.4.4.4\r\nawx_web_1    | [pid: 31|app: 0|req: 69/168] 3.3.3.3() {52 vars in 3578 bytes} [Mon Feb  5 23:09:34 2018] POST /api/v2/workflow_job_templates/40/workflow_nodes/ => generated 146 bytes in 727 msecs (HTTP/1.1 400) 9 headers in 264 bytes (1 switches on core 0)\r\nawx_web_1    | 3.3.3.3- - [05/Feb/2018:23:09:35 +0000] \"POST /api/v2/workflow_job_templates/40/workflow_nodes/ HTTP/1.1\" 400 146 \"http://ps1mawx-01.mydomain.com/\" \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.119 Safari/537.36\" \"-\"`\r\n\r\nUsing Chrome developer tools, I see:\r\n\r\nRequest URL:http://boxname-01.mydomain.com/api/v2/workflow_job_templates/40/workflow_nodes/\r\nRequest Method:POST\r\nStatus Code:400 Bad Request\r\nRemote Address:10.254.139.185:80\r\nReferrer Policy:no-referrer-when-downgrade\r\n\r\nvariables_needed_to_start : [\"'x_template' value missing\", \"'x_env_name' value missing\", \"'x_label' value missing\",…]\r\n0 : \"'x_template' value missing\"\r\n1 : \"'x_env_name' value missing\"\r\n2 : \"'x_label' value missing\"\r\n3 : \"'static_ip' value missing\"\r\n\r\n\r\n##### ENVIRONMENT\r\n* AWX version: 1.0.2\r\n* AWX install method: docker on ubuntu\r\n* Ansible version:  2.4.2\r\n* Operating System: Ubuntu\r\n* Web Browser: Chrome, Safara, Opera\r\n\r\n##### STEPS TO REPRODUCE\r\n\r\n# Create a Job Template. Details are irrelevant. All that matters is this template has a Survey. I have tried various names and Answer types and Required / not and get the same result any time\r\n# Now create a Workflow Template \r\n** Click Workflow Editor\r\n** Add the job template created above.\r\n** Click Save\r\n\r\n##### EXPECTED RESULTS\r\n\r\nI expect it to either add the template & query the survey of the template or popup error stating \r\n\r\n##### ACTUAL RESULTS\r\n\r\n<!-- For bug reports, what actually happened? -->\r\n\r\n##### ADDITIONAL INFORMATION\r\n\r\n<!-- Include any links to sosreport, database dumps, screenshots or other\r\ninformation. -->\r\n"}}
{"actor":{"display_login":"greenscar"}}