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
AlanCoding
73ee11725d
Add copy note to galaxy file
2020-06-19 09:08:58 -04:00
AlanCoding
721ed516a4
Separate folder for templating collection stuff
2020-06-19 09:08:57 -04:00
AlanCoding
4848f1298a
Include a default galaxy.yml file
2020-06-19 09:08:57 -04:00
AlanCoding
f76c57b1ec
Bump AWX version, after notable inventory deprecation
2020-06-18 15:10:10 -04:00
AlanCoding
8fc3377fa6
Minor test fixes
2020-06-18 13:46:28 -04:00
Alan Rominger
3cf4f4729d
[DO NOT PORT to AWX] Pin dev requirements ( #4413 )
2020-06-18 09:22:04 -04:00
AlanCoding
e784a7c0a3
bump migrations
2020-06-17 14:25:16 -04:00
AlanCoding
401c5671c8
Remove things from tests specific to inventory scripts
2020-06-17 14:25:16 -04:00
AlanCoding
3c8c1858d4
Fix migration through manual testing
2020-06-17 14:25:15 -04:00
AlanCoding
b6a4c34b7a
bump migration number
2020-06-17 14:25:15 -04:00
AlanCoding
71cf3198d8
Add data migration to convert cloudforms scripts to SCM
2020-06-17 14:25:15 -04:00
AlanCoding
b0ff763a0b
flake8 fixes
2020-06-17 14:25:15 -04:00
AlanCoding
8f56042dcc
rename migration
2020-06-17 14:25:15 -04:00
AlanCoding
ec3c4de1f7
Fix openstack and logic and update some tests
2020-06-17 14:25:14 -04:00
AlanCoding
b2bdb0c81d
lose cloudforms as inventory source option
2020-06-17 14:25:14 -04:00
AlanCoding
bedb1f364d
Remove inventory scripts
2020-06-17 14:25:11 -04:00
AlanCoding
1970fac989
Allow use of fallback instance_ids
2020-06-10 14:06:50 -07:00
AlanCoding
1dd9772e41
Allow use of fallback instance_ids
2020-06-09 22:51:42 -07:00
AlanCoding
9dec359898
fix lint failures
2020-06-08 20:11:11 -04:00
AlanCoding
4657680f9e
Get sanity tests to work for ansible.tower and Ansible 2.10
2020-06-03 11:42:56 -04:00
AlanCoding
86f1ba984a
Comply with updated Ansible sanity test rules
2020-06-03 08:44:11 -04:00
AlanCoding
e3814c6f0f
Share inventory plugin auth code with modules
...
refactor shared auth option definitions to repeat less
2020-06-02 21:17:12 -04:00
AlanCoding
0c3d27e818
fix bug with config file [general] section
2020-06-02 19:05:45 -04:00
AlanCoding
751ca57390
Narrow function of task to be strictly role install
2020-05-19 12:30:10 -04:00
Alan Rominger
22cdc129ad
Patches from tinkering with tests and default to devel version ( #8 )
...
This causes make install_collection to avoid templating the version
so that it can still be used as-is in development
2020-05-18 08:51:39 -04:00
AlanCoding
b904ad68a6
recover line deletes
2020-05-15 09:44:31 -04:00
Alan Rominger
2e2fe40d2a
Add options to ovirt inventory file ( #4307 )
...
fixes schema differences from script
add back in default groups from script
change hostnames to reflect script
add in some hostvars
Generally allow giving plugin options from source variables
allows testing with insecure connection with ovirt_insecure
this is a behavior change from the script
2020-05-11 22:45:19 -04:00
AlanCoding
d825cca9f2
Unit testing of tower_schedule
...
Move previously integration tests of lookup plugin to unit tests
delete all integration tests except some basic demo tests
do simple create unit test
2020-05-07 14:42:47 -04:00
AlanCoding
e24c511aef
Update test files for sat6 updates
2020-05-06 11:49:04 -04:00
Alan Rominger
961c5589c1
Refresh inventory collection requirements ( #4296 )
...
* Refresh inventory collection requirements
Fix bug specific to Docker development where the right folder of
install was not specified in the setting
Add initial rhv/ovirt version for consistency
* Update unit test to ovirt name change
2020-05-05 18:22:00 -04:00
Alan Rominger
1ca29df0de
Fix for schedule delete 500 from Gabe ( #4290 )
2020-05-05 18:11:51 -04:00
AlanCoding
d54e5e5ed8
Remove defunct entry from view method return tuple
2020-05-01 14:10:14 -04:00
AlanCoding
6d1746f99c
yamllint fixes
2020-05-01 11:50:01 -04:00
AlanCoding
fcca0cee37
use include_tasks to make hg dependency optional
2020-05-01 10:37:37 -04:00
Alan Rominger
41014e62b7
Avoid applying galaxy settings if no user settings exist ( #4262 )
2020-04-27 16:15:11 -04:00
AlanCoding
8bbd2c7aaa
bump collection requirements, vmware patches
...
New VMWare and azure were released, pick those up
Enable using of VMWare inventory plugin for Ansible 2.9
Few fixes from manual testing with VMWare
Remove invalid properties which resulted in no hosts imported
Add some defaults to be more consistent with script
2020-04-23 19:57:53 -04:00
AlanCoding
ab703e2a32
Add feature docs and document development tooling
2020-04-22 21:41:52 -04:00
AlanCoding
8c657e210c
VMWare collection ready but waiting for release
...
turn off use of VMWare inventory plugin for now
Attempt to roll back general migration to Ansible 2.8
failed, kept at 2.9 because of compatibility
2020-04-22 21:40:23 -04:00
AlanCoding
68f5482c42
Update vmware implementation to new agreements
2020-04-21 22:49:20 -04:00
AlanCoding
50197c6a12
Handle custom script options of hostnames and destination variable
2020-04-18 23:30:50 -04:00
AlanCoding
de0122d64e
Respect the ec2 script nested groups option
2020-04-18 19:32:18 -04:00
AlanCoding
fff34f7227
Make inventory non-strict for production and remove comments
2020-04-17 15:43:03 -04:00
AlanCoding
e2f5aa987d
Implement vmware plugin host filtering
2020-04-17 14:52:38 -04:00
AlanCoding
84d863ff9d
Shorten list of VMWare inventory plugin properties
...
Do not include summaries
decision on vmware keyed groups
Handle first set of custom user vmware options
2020-04-16 20:56:02 -04:00
AlanCoding
47bdf86dfa
Pick up collections paths in openstack inventory update prep
...
Update amazon.aws version
Update vmware to new release
Pin some more tests due to transitioning to inventory plugins
Remove more temporary hacks
2020-04-16 20:56:02 -04:00