summaryrefslogtreecommitdiffstats
path: root/cds-regression-test/test/ansible-python-dg/mock-payloads/job-execution.json
blob: 34772d7da0d312da7f086f7b973080964a226fa5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
{
  "httpRequest": {
    "method": "GET",
    "path": "/ansible-python-dg/success/api/v2/jobs/456/"
  },
  "httpResponse": {
    "body": {
      "id": "456",
      "type": "job",
      "url": "/api/v2/jobs/456/",
      "related": {
        "created_by": "/api/v2/users/1/",
        "labels": "/api/v2/jobs/456/labels/",
        "inventory": "/api/v2/inventories/1/",
        "project": "/api/v2/projects/8/",
        "extra_credentials": "/api/v2/jobs/456/extra_credentials/",
        "credentials": "/api/v2/jobs/456/credentials/",
        "unified_job_template": "/api/v2/job_templates/123/",
        "stdout": "/api/v2/jobs/456/stdout/",
        "job_events": "/api/v2/jobs/456/job_events/",
        "job_host_summaries": "/api/v2/jobs/456/job_host_summaries/",
        "activity_stream": "/api/v2/jobs/456/activity_stream/",
        "notifications": "/api/v2/jobs/456/notifications/",
        "job_template": "/api/v2/job_templates/123/",
        "cancel": "/api/v2/jobs/456/cancel/",
        "create_schedule": "/api/v2/jobs/456/create_schedule/",
        "relaunch": "/api/v2/jobs/456/relaunch/"
      },
      "summary_fields": {
        "inventory": {
          "id": 1,
          "name": "Demo Inventory",
          "description": "",
          "has_active_failures": false,
          "total_hosts": 1,
          "hosts_with_active_failures": 0,
          "total_groups": 0,
          "groups_with_active_failures": 0,
          "has_inventory_sources": false,
          "total_inventory_sources": 0,
          "inventory_sources_with_failures": 0,
          "organization_id": 1,
          "kind": ""
        },
        "project": {
          "id": 8,
          "name": "cds_playbooks",
          "description": "CDS - cds_playbooks Project",
          "status": "ok",
          "scm_type": ""
        },
        "job_template": {
          "id": "123",
          "name": "hello_world_job_template",
          "description": "hello_world Runner Job Template"
        },
        "unified_job_template": {
          "id": "123",
          "name": "hello_world_job_template",
          "description": "hello_world Runner Job Template",
          "unified_job_type": "job"
        },
        "instance_group": {
          "name": "tower",
          "id": 1
        },
        "created_by": {
          "id": 1,
          "username": "admin",
          "first_name": "",
          "last_name": ""
        },
        "user_capabilities": {
          "delete": true,
          "start": true
        },
        "labels": {
          "count": 0,
          "results": []
        },
        "extra_credentials": [],
        "credentials": []
      },
      "created": "2019-06-12T11:21:26.891986Z",
      "modified": "2019-06-12T11:21:27.355185Z",
      "name": "hello_world_job_template",
      "description": "hello_world Runner Job Template",
      "job_type": "run",
      "inventory": 1,
      "project": 8,
      "playbook": "hello_world.yml",
      "forks": 0,
      "limit": "",
      "verbosity": 0,
      "extra_vars": "{\"tor_group\": \"vEPC\", \"site_id\": \"3 - Belmont\"}",
      "job_tags": "",
      "force_handlers": false,
      "skip_tags": "",
      "start_at_task": "",
      "timeout": 0,
      "use_fact_cache": false,
      "unified_job_template": "123",
      "launch_type": "manual",
      "status": "successful",
      "failed": false,
      "started": "2019-06-12T11:21:27.510766Z",
      "finished": "2019-06-12T11:21:48.993385Z",
      "elapsed": 21.483,
      "job_args": "[\"ansible-playbook\", \"-u\", \"root\", \"-i\", \"/tmp/awx_223_ft8hu4p4/tmptmtwllu4\", \"-e\", \"@/tmp/awx_223_ft8hu4p4/env/extravars\", \"hello_world.yml\"]",
      "job_cwd": "/var/lib/awx/projects/cds_playbooks_folder",
      "job_env": {
        "HOSTNAME": "awx",
        "LC_ALL": "en_US.UTF-8",
        "VIRTUAL_ENV": "/var/lib/awx/venv/ansible",
        "PATH": "/var/lib/awx/venv/ansible/bin:/var/lib/awx/venv/awx/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
        "SUPERVISOR_GROUP_NAME": "tower-processes",
        "PWD": "/var/lib/awx",
        "LANG": "en_US.UTF-8",
        "PS1": "(awx) ",
        "SUPERVISOR_ENABLED": "1",
        "HOME": "/var/lib/awx",
        "SHLVL": "2",
        "LANGUAGE": "en_US.UTF-8",
        "LC_CTYPE": "en_US.UTF-8",
        "SUPERVISOR_PROCESS_NAME": "dispatcher",
        "SUPERVISOR_SERVER_URL": "unix:///tmp/supervisor.sock",
        "DJANGO_SETTINGS_MODULE": "awx.settings.production",
        "DJANGO_LIVE_TEST_SERVER_ADDRESS": "localhost:9013-9199",
        "TZ": "UTC",
        "ANSIBLE_FORCE_COLOR": "True",
        "ANSIBLE_HOST_KEY_CHECKING": "False",
        "ANSIBLE_INVENTORY_UNPARSED_FAILED": "True",
        "ANSIBLE_PARAMIKO_RECORD_HOST_KEYS": "False",
        "ANSIBLE_VENV_PATH": "/var/lib/awx/venv/ansible",
        "AWX_PRIVATE_DATA_DIR": "/tmp/awx_223_ft8hu4p4",
        "PYTHONPATH": "/var/lib/awx/venv/ansible/lib/python2.7/site-packages:/var/lib/awx/venv/awx/lib64/python3.6/site-packages/awx/lib:",
        "JOB_ID": "456",
        "INVENTORY_ID": "1",
        "PROJECT_REVISION": "",
        "ANSIBLE_RETRY_FILES_ENABLED": "False",
        "MAX_EVENT_RES": "700000",
        "ANSIBLE_CALLBACK_PLUGINS": "/var/lib/awx/venv/awx/lib64/python3.6/site-packages/awx/plugins/callback",
        "AWX_HOST": "https://towerhost",
        "ANSIBLE_SSH_CONTROL_PATH_DIR": "/tmp/awx_223_ft8hu4p4/cp",
        "ANSIBLE_STDOUT_CALLBACK": "awx_display",
        "AWX_ISOLATED_DATA_DIR": "/tmp/awx_223_ft8hu4p4/artifacts/456"
      },
      "job_explanation": "",
      "execution_node": "awx",
      "controller_node": "",
      "result_traceback": "",
      "event_processing_finished": true,
      "job_template": "123",
      "passwords_needed_to_start": [],
      "ask_diff_mode_on_launch": false,
      "ask_variables_on_launch": true,
      "ask_limit_on_launch": true,
      "ask_tags_on_launch": true,
      "ask_skip_tags_on_launch": true,
      "ask_job_type_on_launch": false,
      "ask_verbosity_on_launch": false,
      "ask_inventory_on_launch": true,
      "ask_credential_on_launch": true,
      "allow_simultaneous": false,
      "artifacts": {
        "interface_groups": [
          "NSO-Openstack-NFVI-SRIOV-Shared"
        ],
        "host_groups": "NSO-Openstack-NFVI-SRIOV-Shared_999, ",
        "topology": {
          "tor-8.tenlab-cloud": [
            {
              "interface_lldp_description": "sriov-s-2",
              "interface_group": "NSO-Openstack-NFVI-SRIOV-Shared",
              "lldp_interface_id": 740,
              "compute_device": "nfvi-compute-14.tenlab-nfvi",
              "interface_parent_name": null,
              "interface_name": "TenGigE0/0/0/19",
              "host_aggregate": "vLNS",
              "tor_device": "tor-8.tenlab-cloud",
              "compute_interface": "sriov-s-2"
            }
          ],
          "tor-7.tenlab-cloud": [
            {
              "interface_lldp_description": "sriov-s-1",
              "interface_group": "NSO-Openstack-NFVI-SRIOV-Shared",
              "lldp_interface_id": 698,
              "compute_device": "nfvi-compute-14.tenlab-nfvi",
              "interface_parent_name": null,
              "interface_name": "TenGigE0/0/0/19",
              "host_aggregate": "vLNS",
              "tor_device": "tor-7.tenlab-cloud",
              "compute_interface": "sriov-s-1"
            }
          ]
        }
      },
      "scm_revision": "",
      "instance_group": 1,
      "diff_mode": false,
      "job_slice_number": 0,
      "job_slice_count": 1,
      "host_status_counts": {
        "ok": 1
      },
      "playbook_counts": {
        "play_count": 1,
        "task_count": 2
      },
      "custom_virtualenv": "/var/lib/awx/venv/ansible",
      "credential": null,
      "vault_credential": null
    }
  }
}