Alan Rominger
efcbea1fc5
Skip sliced jobs from the workflow EE logic
2021-06-03 16:20:47 -04:00
Alan Rominger
cb1df4a334
Remove code and settings no longer used
2021-05-24 09:44:58 -04:00
Alan Rominger
5dac46cd7d
Update with force option if branch_override
2021-05-17 11:57:46 -04:00
Alan Rominger
e5f059806b
Add instance_group to inventory update serializer
2021-05-13 09:00:43 -04:00
Alan Rominger
6649b435ce
Fix flake8 error
2021-05-13 08:57:19 -04:00
Alan Rominger
ae320ab228
Do not set openstack env var to blank string
2021-05-13 08:57:19 -04:00
Alan Rominger
29c961e52a
Remove comment
2021-05-13 08:57:19 -04:00
Alan Rominger
fd466c5cff
Finish converting the runner strings
2021-05-13 08:57:19 -04:00
Alan Rominger
623cf0b4cd
Start migrating the /runner path references
2021-05-13 08:57:18 -04:00
Alan Rominger
d33a748eea
Clean up and test patch changing methods
2021-05-13 08:57:18 -04:00
Alan Rominger
1f1cdf8859
start on path helper methods
2021-05-13 08:57:18 -04:00
Alan Rominger
334be9eb25
Use durable switch from container to host path
2021-05-13 08:57:18 -04:00
Alan Rominger
8f9373085a
Fix credential env folder, test_tasks.py
2021-05-13 08:57:18 -04:00
Alan Rominger
11c5d577d6
Fix rel path for other inventories
2021-05-13 08:57:17 -04:00
Alan Rominger
0e17023ba3
Inventory directory already pre-created
2021-05-13 08:57:17 -04:00
Alan Rominger
3c785fbff3
update unit tests to new behavior
2021-05-13 08:57:16 -04:00
Alan Rominger
0061c57577
update inventory injector tests
2021-05-13 08:56:38 -04:00
Alan Rominger
f59da78328
Use inventory and env private_data_dir subfolders
...
This avoids writing files to the top level
of the ansible-runner private_data_dir
Inventory is moved to be in the standard "inventory" folder
Credential related files are moved inside of the "env" folder
Also pre-create these folders when preparing for a job run
With this, args is the only top-level file still remaining
2021-05-13 08:56:38 -04:00
Alan Rominger
164255e516
Remove fields not needed from .only
2021-05-11 16:26:12 -04:00
Alan Rominger
0f5629b514
Add more fields to .only since they get referenced
2021-05-11 16:14:55 -04:00
Alan Rominger
7ec0464072
minikube instructions adjustments from debugging
2021-05-10 11:30:14 -04:00
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