Seeking an AWX CLI to begin the effort of migrating AWX from 9.3.0 to something much newer (TBD).
Seems the CLI needs to closely match the API but no luck finding any support matrix.
Have tried so far both latest awxkit (23.1.0) and an older version (3.8.3).
Some commands work (e.g. ping, “organizations list”, “jobs list”) but others (e.g “projects”) fail as follows:
(awxkit) $ awx -v --version
23.1.0
(awxkit) $ awx -v projects
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): localhost:443
DEBUG:urllib3.connectionpool:https://localhost:443 “GET /api/ HTTP/1.1” 200 186
DEBUG:awxkit.api.client:“GET https://localhost/api/” elapsed: 0:00:00.330171
DEBUG:awxkit.api.registry:Retrieved <class ‘awxkit.api.pages.api.ApiV2’> by url: /api/v2/
DEBUG:urllib3.connectionpool:https://localhost:443 “GET /api/v2/ HTTP/1.1” 200 1688
DEBUG:awxkit.api.client:“GET https://localhost/api/v2/” elapsed: 0:00:00.124531
DEBUG:awxkit.api.registry:Retrieved <class ‘awxkit.api.pages.projects.Projects’> by url: /api/v2/projects/
DEBUG:urllib3.connectionpool:https://localhost:443 “OPTIONS /api/v2/projects/ HTTP/1.1” 200 14379
DEBUG:awxkit.api.client:“OPTIONS https://localhost/api/v2/projects/” elapsed: 0:00:00.372171
DEBUG:awxkit.api.registry:Retrieved <class ‘awxkit.api.pages.projects.Projects’> by url: /api/v2/projects/
DEBUG:urllib3.connectionpool:https://localhost:443 “OPTIONS /api/v2/projects/1/ HTTP/1.1” 200 8958
DEBUG:awxkit.api.client:“OPTIONS https://localhost/api/v2/projects/1/” elapsed: 0:00:00.279471
DEBUG:urllib3.connectionpool:https://localhost:443 “OPTIONS /api/v2/projects/1/update/ HTTP/1.1” 200 687
DEBUG:awxkit.api.client:“OPTIONS https://localhost/api/v2/projects/1/update/” elapsed: 0:00:00.158381
Traceback (most recent call last):
File “/home/nobody/venv/awxkit/lib/python3.9/site-packages/awxkit/cli/init.py”, line 25, in run
cli.parse_resource()
File “/home/nobody/venv/awxkit/lib/python3.9/site-packages/awxkit/cli/client.py”, line 166, in parse_resource
response = self.parse_action(resource)
File “/home/nobody/venv/awxkit/lib/python3.9/site-packages/awxkit/cli/client.py”, line 206, in parse_action
parser = ResourceOptionsParser(self.v2, page, self.resource, subparsers)
File “/home/nobody/venv/awxkit/lib/python3.9/site-packages/awxkit/cli/options.py”, line 100, in init
self.handle_custom_actions()
File “/home/nobody/venv/awxkit/lib/python3.9/site-packages/awxkit/cli/options.py”, line 293, in handle_custom_actions
action(self.page).add_arguments(self.parser, self)
File “/home/nobody/venv/awxkit/lib/python3.9/site-packages/awxkit/cli/custom.py”, line 67, in add_arguments
launch_time_options = launch_time_options.json()[‘actions’][‘POST’]
KeyError: ‘POST’
The older awxkit 3.8.3 yields almost identical results.
eKT