Commit Graph
100 Commits
Author SHA1 Message Date
Alan Rominger ee68dd00aa Remove inventory-related docs which are outdated or wrong 2021-04-28 14:00:05 -04:00
Alan Rominger 67f7998ab9 Modify formatting in response to black update 2021-04-26 10:51:27 -04:00
Alan Rominger 8241ebbc9a Fix migration order of operations bug 2021-04-22 08:36:49 -04:00
Alan Rominger 5f39b6276d Add command to export custom inventory scripts to tar file 2021-04-22 08:36:48 -04:00
Alan Rominger 8c0366675a Remove source_script from awx collection 2021-04-22 08:36:48 -04:00
Alan Rominger b40e8d15c0 Fix migration bug
Bump migration number

Skip data migration for fresh migrations
  where ContentType for custom inventory scripts
  has not yet been created
    no scripts will exist in this case, so no-op
2021-04-22 08:36:48 -04:00
Alan Rominger f28ad90bf3 Remove source_script field from serializers
Remove some other uses of source_script
2021-04-22 08:36:48 -04:00
Alan Rominger 8440e3f41d Remove ForeignKey relations involving CustomInventoryScript
Add migration to carry out corresponding schema change

Add data migration to delete inventory sources
  which are the custom type

Split migration into two files
  data migration touches same rows as schema migration
2021-04-22 08:36:48 -04:00
Alan Rominger 33b6da4456 Remove filter_by_class where it was not working 2021-04-22 08:36:48 -04:00
Alan Rominger a54aab9717 Remove old uses of CustomInventoryScript
some uses are minor references

Fix some test fails
2021-04-22 08:36:48 -04:00
Alan Rominger 38352063e8 Remove custom inventory script API 2021-04-22 08:36:46 -04:00
Alan Rominger 855cb162b7 Change inventory source factory defaults
Also set source_path to a newly merged test-playbooks script
  this gives similar behavior to the prior default script
2021-04-22 08:34:38 -04:00
Alan Rominger 27d56726a3 Remove yaml_exts play variable 2021-04-19 15:55:29 -04:00
Alan Rominger 032341c7fc Move to fileglob loop for yml requirement locations 2021-04-19 15:45:51 -04:00
Alan Rominger 8f66793276 Assure that unit_id is always defined (#9180) 2021-03-03 18:52:55 -05:00
Alan Rominger c7e0e30f93 Make sure project updates run in default EE (#9172)
* Make sure project updates run in default EE

* Remove project execution_environment field from collection
2021-03-03 18:52:55 -05:00
Alan Rominger a435843f23 Exception handling to always release work units 2021-03-03 18:52:55 -05:00
Alan Rominger c29d476919 Fix obvious code error with foreman inventory 2021-03-03 18:52:55 -05:00
Alan Rominger b05b6b2e03 Fix minor syntax error failing AdHocCommands 2021-03-03 18:52:55 -05:00
Alan Rominger 3f76499c56 Use the fully qualified inventory plugin name only for foreman 2021-03-03 18:52:55 -05:00
Alan Rominger 90b9c7861c Allow jobs to run in the base ansible-runner image (#8949) 2021-03-03 18:52:54 -05:00
Alan Rominger eb5bf599e3 Fix raw archive project updates
Several squashed commits

Fix git bug introduced by setting remote tmp in project path
change shebang back to py3 again
Revert shebang change
2021-03-03 18:52:54 -05:00
Alan Rominger 10e68c6fb3 Fix unit test fallout 2021-03-03 18:52:54 -05:00
Alan Rominger 49bdadcdbf Fix yet another host vs container path bug 2021-03-03 18:52:54 -05:00
Alan Rominger 015fc29c1c Fix another svn issue due to pre-existing folder 2021-03-03 18:52:54 -05:00
Alan Rominger 0dfb183cb6 Fix another credential path-in-container bug 2021-03-03 18:52:54 -05:00
Alan Rominger ba14634318 Fix collection pep8 failure 2021-03-03 18:52:54 -05:00
Alan Rominger b953478225 Change the default EE location 2021-03-03 18:52:54 -05:00
Alan Rominger c0faa39b53 Remove files moved to the ansible/awx-ee repo
These have been moved to:

https://github.com/ansible/awx-ee

that will be the home for the processes needed to
build this execution environment.
2021-03-03 18:52:54 -05:00
Alan Rominger 7a433f4e8f Change the shebang back to just python 2021-03-03 18:52:54 -05:00
Alan Rominger 2302496724 Add back in the subversion requirement 2021-03-03 18:52:54 -05:00
Alan Rominger 54681eb055 Add utility method to get controller private_data_dir 2021-03-03 18:52:54 -05:00
Alan Rominger b716e2b099 Make insights integration tests pass again 2021-03-03 18:52:54 -05:00
Alan Rominger 69dcbe0865 More inventory update containerization fixes 2021-03-03 18:52:54 -05:00
Alan Rominger 7c6975baec Collections volume permission fix, and container group fix
Use same image for both types of container isolation

Inventory move fix related to container groups
2021-03-03 18:52:54 -05:00
Alan Rominger 9530c6ca50 Changes to get execution environments factories working (#8126) 2021-03-03 18:52:54 -05:00
Alan Rominger 9d806ddb82 Initial minimal hooking up of JT EEs to jobs 2021-03-03 18:52:54 -05:00
Alan Rominger 332c802317 Deal with missing HOME env var 2021-03-03 18:52:54 -05:00
Alan Rominger 9660e27246 Fix project folder deletion
Fix another absolute path reference in containers
2021-03-03 18:52:54 -05:00
Alan Rominger 64f45da4d2 Fix pathing issue for credential file references 2021-03-03 18:52:54 -05:00
Alan Rominger 73418e41f3 Fix pathing issue with custom credentials
also fix some minor flake8 issues
2021-03-03 18:52:54 -05:00
Alan Rominger 6e2010ca40 Respect user proot show paths when using containers 2021-03-03 18:52:54 -05:00
Alan Rominger 50433789ae Purge environment variables to work with ansible-runner changes
Remove inventory scripts show because they no longer exist

Remove reference to non-existent callback directory

Remove more references to removed paths
2021-03-03 18:52:54 -05:00
Alan Rominger a3f0158a94 Add Z to volume mount
Update to AWX execution environment
  use the special 2.9 container image
  revert setting back for merge

Fix another permission error by mapping 2 folders
  also create folders before running
2021-03-03 18:52:54 -05:00
Alan Rominger 130bf076f4 Add Z to volume mount
Set ansible-runner back to main fork due to merge
2021-03-03 18:52:54 -05:00
Alan Rominger d3c51ce75d Minor organization clarity for workflow failure summary 2021-01-05 10:33:35 -05:00
Alan Rominger 9a16e9f787 Condense logic for handling null job 2021-01-05 10:26:38 -05:00
Alan Rominger d79b96b6cc Make workflow_job.assert_successful() give specifics 2021-01-05 10:15:32 -05:00
Alan Rominger da3e521566 Fix the reverse association and edge cases 2020-12-10 14:36:53 -05:00
Alan Rominger d27afe9691 Small tweaks to logic to make is_superuser change take effect 2020-12-10 13:59:46 -05:00
Alan Rominger 99f3825826 Change to manual instead of deleting hg projects 2020-12-02 09:08:18 -05:00
Alan Rominger db9fbf1493 Add log for the case that hg projects were deleted 2020-12-01 15:53:55 -05:00
Alan Rominger 590d64f40e Remove hg updates and projects in migration 2020-12-01 15:38:40 -05:00
Alan Rominger 64fa18cafe Run the UI prettier tool for CI fix 2020-12-01 14:49:49 -05:00
Alan Rominger 634df240ed Attempt to fix UI test with hg,svn replacement 2020-12-01 14:25:11 -05:00
Alan Rominger 44e6e9344b Remove mercurial support 2020-12-01 14:06:34 -05:00
Alan Rominger 900127fde7 Fix bug in inventory update canceling 2020-11-30 14:39:02 -05:00
Alan Rominger 7734def856 Fix inventory log timestamp, organize logging code
The fixes and issue where the timestaps in the stdout for
inventory updates gave the time since the start of the dispatcher
instead of the time since the start of the update.

This commit also moves the handler into the utils module where
other custom AWX handlers live, instead of tasks.py
this is to keep tasks.py relatively clean, as best as possible
2020-11-30 11:36:16 -05:00
Alan Rominger d6e84b54c9 Some fixes for line numbering, and fixes for license error handling (#8)
* Change handling of error cases to global post_run_hook
* handle license errors correctly again
* Fix some issues with line ordering from the custom logger thing
* Remove debug log statement
* Use PermissionDenied for license errors
* More elegant handling of line initialization

Update tests to new exception type

Catch all save errors, fix timing offset bug

Fix license error handling inside import command
2020-11-30 11:35:33 -05:00
Alan Rominger ec93af4ba8 Not all license errors are caught, do not assume they are 2020-11-30 11:35:32 -05:00
Alan Rominger 96fc38d182 Swap in-memory logger to write stdout in post_save_hook
This commit makes the needed changes to inventory update
post_save_hook logic so that the historic log lines that
inventory updates write will be written to stdout,
but this hack bypasses the ansible-runner verbose event
logic and dispatches verbose events directly.

Fix the venv application with the ansible-inventory system
(note: much of this is undone in a later commit)

Deal with some minor test updates for
the ansible-inventory interface changes
2020-11-30 11:32:26 -05:00
Alan Rominger ae9ae14e5a Migrate inventory CLI options to programatic interface
POC, successfully importing with this commit

Attempt to surface saving related errors as a part of that
2020-11-30 11:31:38 -05:00
Alan Rominger 39fa70c58b Start on refactor to hook in inventory programatic use 2020-11-30 11:28:49 -05:00
Alan Rominger 501cf297df Apply more rigor to asserting text in stdout 2020-11-25 10:04:48 -05:00
Alan Rominger 44949b73cf Avoid copies made from failed updates 2020-11-24 15:33:44 -05:00
Alan Rominger 91eff51390 Avoid invalid group characters in default inventory script factory 2020-11-18 10:16:08 -05:00
Alan Rominger e177432b8f Do not expect failure in tower_import test 2020-09-16 10:34:11 -04:00
Alan Rominger 05fb47dece Remove out of date collection testing tools 2020-09-15 22:59:12 -04:00
Alan Rominger 3aec1a115d fix wording 2020-09-15 22:38:37 -04:00
Alan Rominger 2f1a9a28ea streamline credential test 2020-09-15 22:38:37 -04:00
Alan Rominger 362d6a3204 Add new option update_secrets to allow lazy or strict updating 2020-09-15 22:38:37 -04:00
Alan Rominger 48f30c5106 Fix AWX collection import test interference with Default organization 2020-09-15 22:03:37 -04:00
Alan Rominger 2e1f5cebb7 Further refine error message and update integration tests
Fix test with spaces

pep8 failure

More test tweaks

Even more test fixes
2020-09-10 09:49:27 -04:00
Alan Rominger a73323f3d6 Hack to delete orphaned organizations, consolidate get_one methods
minor test update

Updating the message if more than one object is found

Update test to new message
2020-09-10 09:00:50 -04:00
Alan Rominger 99aff93930 Get rid of ansible version checking 2020-09-01 12:50:59 -04:00
Alan Rominger 0b371b4340 Copy library folder to job private data dir
Remove inventory scripts show because they no longer exist

Remove reference to non-existent callback directory

Remove more references to removed path
2020-08-31 22:14:59 -04:00
Alan Rominger b84343d292 correct name of tower_notification redirect 2020-08-31 10:18:08 -04:00
Alan Rominger e811711a49 Put project playbook in runner project folder 2020-08-27 11:07:10 -04:00
Alan Rominger dfad5117fa Add changelog preparing for awx.awx 14.1.0 bug fix 2020-08-12 09:47:52 -04:00
Alan Rominger 2a0c61de63 Change regex to match what is in source 2020-08-11 10:04:14 -04:00
Alan Rominger 8aacd006e0 Revert updater changes to Ansible requirements 2020-08-10 14:29:07 -04:00
Alan Rominger f269d5b2ed Upgrade gitpython to pick up bug fix 2020-08-10 14:29:05 -04:00
AlanCoding f953e6ab55 Add execution environment metadata to AWX collection 2020-08-05 22:46:23 -04:00
AlanCoding 750c22a150 Handle not-provided falsy values in tower_inventory_source 2020-07-29 21:55:20 -04:00
Alan Rominger b4c3da55d2 Merge pull request #4474 from AlanCoding/per_update_cache_37
[3.7] Per update roles and collections cache
2020-07-29 06:58:25 -04:00
AlanCoding daaa0c8efe Avoid using long name of option not in 2.8 2020-07-28 13:57:31 -04:00
Alan Rominger 967f3cc6a7 Merge pull request #4472 from AlanCoding/upgrade_vmware
Upgrade community.vmware for better error surfacing
2020-07-27 10:16:12 -04:00
AlanCoding 0e8f30a4a2 Upgrade community.vmware for better error surfacing 2020-07-21 13:03:24 -04:00
AlanCoding ddb8c93f17 Fix log message 2020-07-21 11:21:21 -04:00
AlanCoding 425c70826f code style edit, always use cache_id as property in tasks 2020-07-21 10:50:13 -04:00
AlanCoding 8195bd7386 Remove job pre-creation of content folders 2020-07-20 19:45:22 -04:00
AlanCoding 300d54864d Remove project update vars no longer used 2020-07-20 19:45:21 -04:00
AlanCoding fefab89815 Integrate content caching with existing task logic
Revert the --force flags

use the update id as metric for role caching

Shift the movement of cache to job folder from rsync task to python

Only install roles and collections if needed

Deal with roles and collections for jobs without sync
Skip local copy if roles or collections turned off

update docs for content caching

Design pivot - use empty cache dir to indicate lack of content

Do not cache content if we did not install content

Test changes to allay concerns about reliability of local_path

Do not blow away cache for SCM inventory updates
2020-07-20 19:45:21 -04:00
Alan Rominger 34c23caed3 make lookup plugin compatible with ansible.tower namespace (#9) 2020-07-14 09:38:26 -04:00
AlanCoding 8239232d4d Delete the tower_get_id plugin and tests 2020-07-14 09:38:26 -04:00
AlanCoding 30ff112c87 Pull in functionality from lookup plugin get_id into tower_api itself 2020-07-14 09:38:26 -04:00
AlanCoding 3b5640aca3 fix test 2020-06-24 10:41:41 -04:00
AlanCoding 0dbaf632dc Documentation updates 2020-06-19 09:49:37 -04:00
AlanCoding a7fe5e1dd2 Fix yamllint error and sync version with module_utils 2020-06-19 09:08:58 -04:00
AlanCoding 96583e9e6b Make version recognizable as pre-release 2020-06-19 09:08:58 -04:00