Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ui_next] Ansible environment is missing in Job Template #9175

Closed
anxstj opened this issue Jan 27, 2021 · 1 comment
Closed

[ui_next] Ansible environment is missing in Job Template #9175

anxstj opened this issue Jan 27, 2021 · 1 comment

Comments

@anxstj
Copy link
Contributor

anxstj commented Jan 27, 2021

ISSUE TYPE
  • Bug Report
SUMMARY

After upgrading AWX to 17.0.1 existing and new job templates are missing the "Ansible environment" section. It's present via API but not in the UI.

ENVIRONMENT
  • AWX version: 17.0.1
  • AWX install method: local docker
  • Ansible version: 2.9.17
  • Operating System: Debian 10
  • Web Browser: Firefox 84
STEPS TO REPRODUCE
  • Install AWX 17.0.1 with additional virtual environments
  • Set custom environment:
curl -s -H "Authorization: Bearer ${TOWER_OAUTH_TOKEN}" -H "Content-Type: application/json" -X PATCH --data '{"CUSTOM_VENV_PATHS": ["/opt/my-envs/"]}' ${TOWER_HOST}/api/v2/settings/system/
  • Create new job template
  • The "Ansible environment" section is missing.
EXPECTED RESULTS

A drop-down list should show the existing environments.

ACTUAL RESULTS

The drop-down list is missing.

ADDITIONAL INFORMATION

grafik

https://awx.example.com/api/v2/job_templates/7/
{
    "id": 9,
    "type": "job_template",
    "url": "/api/v2/job_templates/9/",
    "related": {
        "named_url": "/api/v2/job_templates/awx-env-test++Default/",
        "created_by": "/api/v2/users/1/",
        "modified_by": "/api/v2/users/1/",
        "labels": "/api/v2/job_templates/9/labels/",
        "inventory": "/api/v2/inventories/2/",
        "project": "/api/v2/projects/8/",
        "organization": "/api/v2/organizations/1/",
        "credentials": "/api/v2/job_templates/9/credentials/",
        "last_job": "/api/v2/jobs/374/",
        "jobs": "/api/v2/job_templates/9/jobs/",
        "schedules": "/api/v2/job_templates/9/schedules/",
        "activity_stream": "/api/v2/job_templates/9/activity_stream/",
        "launch": "/api/v2/job_templates/9/launch/",
        "webhook_key": "/api/v2/job_templates/9/webhook_key/",
        "webhook_receiver": "",
        "notification_templates_started": "/api/v2/job_templates/9/notification_templates_started/",
        "notification_templates_success": "/api/v2/job_templates/9/notification_templates_success/",
        "notification_templates_error": "/api/v2/job_templates/9/notification_templates_error/",
        "access_list": "/api/v2/job_templates/9/access_list/",
        "survey_spec": "/api/v2/job_templates/9/survey_spec/",
        "object_roles": "/api/v2/job_templates/9/object_roles/",
        "instance_groups": "/api/v2/job_templates/9/instance_groups/",
        "slice_workflow_jobs": "/api/v2/job_templates/9/slice_workflow_jobs/",
        "copy": "/api/v2/job_templates/9/copy/"
    },
    ...
    "created": "2020-06-22T09:39:14.945626Z",
    "modified": "2021-01-27T12:41:20.115333Z",
    "name": "awx-env-test",
    "description": "Test AWX Environments",
    "job_type": "run",
    "inventory": 2,
    "project": 8,
    "playbook": "test1.play.yml",
    "scm_branch": "",
    "forks": 0,
    "limit": "",
    "verbosity": 0,
    "extra_vars": "",
    "job_tags": "",
    "force_handlers": false,
    "skip_tags": "",
    "start_at_task": "",
    "timeout": 0,
    "use_fact_cache": false,
    "organization": 1,
    "last_job_run": "2021-01-27T12:32:14.374471Z",
    "last_job_failed": false,
    "next_job_run": null,
    "status": "successful",
    "host_config_key": "",
    "ask_scm_branch_on_launch": false,
    "ask_diff_mode_on_launch": false,
    "ask_variables_on_launch": false,
    "ask_limit_on_launch": false,
    "ask_tags_on_launch": false,
    "ask_skip_tags_on_launch": false,
    "ask_job_type_on_launch": false,
    "ask_verbosity_on_launch": false,
    "ask_inventory_on_launch": false,
    "ask_credential_on_launch": false,
    "survey_enabled": false,
    "become_enabled": false,
    "diff_mode": false,
    "allow_simultaneous": true,
    "custom_virtualenv": "/opt/my-envs/extended-ansible-2.8-py3/",
    "job_slice_count": 1,
    "webhook_service": "",
    "webhook_credential": null
}
@mabashian
Copy link
Member

This field is going to be replaced very soon by #9189. Stay tuned. I'm going to close this issue in favor of 9189.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants