Alan Rominger
81b8028ea2
Merge pull request #12355 from AlanCoding/autoreload_once
...
Make awx-autoreloader work faster for large code changes
2022-06-09 15:19:17 -04:00
Alan Rominger
a4bfb032ff
Make awx-autoreloader work faster for large code changes
2022-06-09 14:52:03 -04:00
Alan Rominger
4543f6935f
Only do substitutions for container path conversions with resolved paths ( #12313 )
...
* Resolve paths as much as possible before doing replacements
* Move unused method out of main code, test symlink
2022-06-09 11:36:29 -04:00
Alan Rominger
78d3d6dc94
Merge pull request #12219 from AlanCoding/really_skip
...
Change Demo Project status to successful
2022-06-09 11:19:57 -04:00
Alan Rominger
3af89c1e2b
Merge pull request #12307 from AlanCoding/twilio
...
Upgrade twilio dependency to pick up fix
2022-06-02 13:48:34 -04:00
Alan Rominger
d553c37d7d
Upgrade twilio dependency to pick up fix
2022-06-01 11:35:43 -04:00
Alan Rominger
8366386126
Merge pull request #12260 from AlanCoding/callback_status
...
Fix the callback receiver --status command
2022-05-24 15:26:02 -04:00
Alan Rominger
1e6ca01686
Fix the callback receiver --status command
2022-05-19 15:00:49 -04:00
Alan Rominger
bca6e00e37
Change Demo Project status to successful
2022-05-12 16:14:09 -04:00
Alan Rominger
aaad634483
Only use in-memory cache for database settings, set ttl=5 ( #12166 )
...
* Only use in-memory cache for database settings
Make necessary adjustments to monkeypatch
as it is very vunerable to recursion
Remove migration exception that is now redundant
Clear cache if a setting is changed
* Use dedicated middleware for setting cache stuff
Clear cache for each request
* Add tests for in-memory cache
2022-05-10 21:58:22 -04:00
Alan Rominger
452744b67e
Delay update of artifacts and error fields until final job save ( #11832 )
...
* Delay update of artifacts until final job save
Save tracebacks from receptor module to callback object
Move receptor traceback check up to be more logical
Use new mock_me fixture to avoid DB call with me method
Update the special runner message to the delay_update pattern
* Move special runner message into post-processing of callback fields
2022-05-03 14:42:50 -04:00
Alan Rominger
29d60844a8
Fix notification timing issue by sending in the latter of 2 events ( #12110 )
...
* Track host_status_counts and use that to process notifications
* Remove now unused setting
* Back out changes to callback class not needed after all
* Skirt the need for duck typing by leaning on the cached field
* Delete tests for deleted task
* Revert "Back out changes to callback class not needed after all"
This reverts commit 3b8ae350d218991d42bffd65ce4baac6f41926b2.
* Directly hardcode stats_event_type for callback class
* Fire notifications if stats event was never sent
* Remove test content for deleted methods
* Add placeholder for when no hosts matched
* Make field default be None, denote events processed with empty dict
* Make UI process null value for host_status_counts
* Fix tracking of EOF dispatch for system jobs
* Reorganize EVENT_MAP into class properties
* Consolidate conditional I missed from EVENT_MAP refactor
* Give up on the null condition, also applies for empty hosts
* Remove cls position argument not being used
* Move wrapup method out of class, add tests
2022-04-29 13:54:31 -04:00
Alan Rominger
cb63d92bbf
Remove committed_capacity field, delete supporting code ( #12086 )
...
* Remove committed_capacity field, delete supporting code
* Track consumed capacity to solve the negatives problem
* Use more verbose name for IG queryset
2022-04-22 13:41:32 -04:00
Alan Rominger
44f0609314
Merge pull request #11996 from AlanCoding/blockhead
...
Remove unnecessary blocks from project update playbook
2022-04-21 13:58:48 -04:00
Alan Rominger
4b45148614
Merge pull request #12016 from Ladas/analytics_collector_should_collect_full_license_data
...
Analytics collector should collect full license data
2022-04-21 11:12:33 -04:00
Alan Rominger
c84e603ac5
Remove unnecessary blocks from project update playbook
2022-04-21 10:04:14 -04:00
Alan Rominger
b565038fdf
Merge pull request #12066 from AlanCoding/resolved_role
...
Ship the resolved_role event data to analytics
2022-04-20 11:00:21 -04:00
Alan Rominger
2530ada9d7
Bump analytics event_table version
2022-04-18 16:49:53 -04:00
Alan Rominger
75d7cb5bca
Merge pull request #11989 from AlanCoding/deprecate_uopu
...
Mark inventory source field for deprecation
2022-04-18 11:59:05 -04:00
Alan Rominger
9059dce8af
Merge pull request #12041 from AlanCoding/commitment_problems
...
Mark committed_capacity field for removal
2022-04-18 11:58:47 -04:00
Alan Rominger
1676c02611
Ship the resolved_role event data to analytics
2022-04-18 11:42:19 -04:00
Alan Rominger
5a304db840
Mark inventory source field for deprecation
2022-04-12 16:24:35 -04:00
Alan Rominger
e3044298bf
Mark committed_capacity field for removal
2022-04-12 16:18:05 -04:00
Alan Rominger
7822da03fb
Merge pull request #11865 from AlanCoding/galaxy_task_env
...
Add user-defined environment variables to ansible-galaxy commands
2022-04-01 15:24:54 -04:00
Alan Rominger
58cb3d5bdc
Change indent to standard pattern
2022-04-01 13:46:00 -04:00
Alan Rominger
4b913a0ae8
Merge pull request #11980 from AlanCoding/provision_cleanup
...
Delete dead code from get_or_register, move, and test
2022-03-30 15:44:44 -04:00
Alan Rominger
6c56f2b35b
Delete dead code from get_or_register, move, and test
2022-03-30 13:35:42 -04:00
Alan Rominger
73e02e745a
Patches to make jobs robust to database restarts ( #11905 )
...
* Simple patches to make jobs robust to database restarts
* Add some wait time before retrying loop due to DB error
* Apply dispatcher downtime setting to job updates, fix dispatcher bug
This resolves a bug where the pg_is_down property
never had the right value
the loop is normally stuck in the conn.events() iterator
so it never recognized successful database interactions
this lead to serial database outages terminating jobs
New setting for allowable PG downtime is shared with task code
any calls to update_model will use _max_attempts parameter
to make it align with the patience time that the dispatcher
respects when consuming new events
* To avoid restart loops, handle DB errors on startup with prejudice
* If reconnect consistently fails, exit with non-zero code
2022-03-30 09:14:20 -04:00
Alan Rominger
28fa90e9e5
Only allow provision_instances without options to be used on k8s
2022-03-29 16:24:06 -04:00
Alan Rominger
3d22c8ae91
Merge pull request #11968 from AlanCoding/cleanup_tweaks
...
Minor tweaks to ansible-runner cleanup task arguments
2022-03-29 15:00:33 -04:00
Alan Rominger
fe5736dc7f
Specifically abort the reaper if instance not registered
2022-03-29 14:08:58 -04:00
Alan Rominger
0caf263508
yaml cleanup
2022-03-29 09:57:40 -04:00
Alan Rominger
c77667788a
Add user-defined environment variables to ansible-galaxy commands
2022-03-29 09:57:40 -04:00
Alan Rominger
f17ceca7a0
Add in default value to unit tests
2022-03-28 22:39:59 -04:00
Alan Rominger
deac08ba8a
Add regression test for overly agressive cleanup behavior
2022-03-28 22:23:33 -04:00
Alan Rominger
85ec83c3fd
Minor tweaks to ansible-runner cleanup task arguments
2022-03-28 10:52:09 -04:00
Alan Rominger
799bac4066
Merge pull request #11860 from AlanCoding/hybrid_artifacts
...
Do not remove artifacts for local work
2022-03-18 10:37:06 -04:00
Alan Rominger
f99820a391
Merge pull request #11898 from AlanCoding/hop_node_lost_found
...
Only clear hop node errors if they were lost before, not lost now
2022-03-15 13:03:33 -04:00
Alan Rominger
2321f06c8a
Only clear hop node errors if they were lost before, not lost now
2022-03-14 16:04:55 -04:00
Alan Rominger
d4a4ba7fdb
Move location of AWX_ISOLATION_SHOW_PATHS so it is editable
2022-03-11 11:08:04 -05:00
Alan Rominger
99bbc347ec
Fill in errors for hop nodes when Last Seen is out of date, and clear them when not ( #11714 )
...
* Process unresponsive and newly responsive hop nodes
* Use more natural way to zero hop node capacity, add test
* Use warning as opposed to warn for log messages
2022-03-09 13:21:32 -05:00
Alan Rominger
cd86310562
Do not remove artifacts for local work
2022-03-08 09:07:09 -05:00
Alan Rominger
e02e91adaa
Merge pull request #11837 from AlanCoding/thread_key_error
...
Move model and settings operations out of threaded code
2022-03-05 14:55:13 -05:00
Alan Rominger
264c508c80
Move model and settings operations out of threaded code
...
This is to avoid references to settings in threads,
this is known to create problems when caches expire
this leads to KeyError in environments with heavy load
2022-03-04 15:31:12 -05:00
Alan Rominger
17756f0e72
Add job execution environment image to analytics data ( #11835 )
...
* Add job execution environment image to analytics data
* Add EE image to UJT analytics data
* Bump the unified job templates table
2022-03-03 11:13:11 -05:00
Alan Rominger
128400bfb5
Add resolved_action to analytics event data ( #11816 )
...
* Add resolved_action to analytics event data
* Bump collector version
2022-03-03 10:11:54 -05:00
Alan Rominger
eb52095670
Fix bug where translated strings will cause log error to error ( #11813 )
...
* Fix bug where translated strings will cause log error to error
* Use force_str for ensuring string
2022-02-28 08:38:01 -05:00
Alan Rominger
fe7a2fe229
Add loop label with docker-compose playbook
2022-02-15 13:05:59 -05:00
Alan Rominger
21bf698c81
Merge pull request #11617 from AlanCoding/task_job_id
...
Fix error on timeout with non-job types
2022-02-04 09:41:25 -05:00
Alan Rominger
54b5884943
Merge pull request #11642 from AlanCoding/new_black_rule
...
Fix newly-added black rules
2022-01-31 10:01:50 -05:00
Alan Rominger
6b25fcaa80
Fix newly-added black rules
2022-01-29 23:17:58 -05:00
Alan Rominger
2de5ffc8d9
Merge pull request #11627 from AlanCoding/fast_heartbeat
...
Prevent duplicate query in local health check
2022-01-28 13:19:56 -05:00
Alan Rominger
285ff080d0
Prevent duplicate query in local health check
2022-01-27 15:27:07 -05:00
Alan Rominger
cd8d382038
Fix error on timeout with non-job types
2022-01-26 17:00:59 -05:00
Alan Rominger
8d4d1d594b
Merge pull request #11608 from AlanCoding/mount_awx_devel
...
Mount awx_devel in execution nodes for developer utility
2022-01-25 16:42:56 -05:00
Alan Rominger
c86fafbd7e
Mount awx_devel in execution nodes for developer utility
2022-01-25 12:28:26 -05:00
Alan Rominger
4f1c662691
Merge pull request #11570 from AlanCoding/keycloak_docs
...
Minor docs tweaks for keycloak setup
2022-01-20 11:52:21 -05:00
Alan Rominger
9abd4e05d0
Minor docs tweaks for keycloak setup
2022-01-20 11:01:32 -05:00
Alan Rominger
add54bfd0b
Merge pull request #11472 from AlanCoding/process_ident
...
Pass new ansible-runner parameters to reduce number of artifacts we don't need on file system
2022-01-20 09:48:44 -05:00
Alan Rominger
2609ee5ed0
Delete artifact dir after transmit phase is finished
2022-01-18 14:51:40 -05:00
Alan Rominger
8fac1c18c8
Make task logic use consistent artifact dir location
2022-01-18 13:00:39 -05:00
Alan Rominger
eb64fde885
Pass ident to "process" cmd and disable stdout file
...
This requires corresponding ansible-runner changes
which are only available in devel branch
to do this, requirements are changed
to install ansible-runner devel as it did before
Revert "Use ansible-runner 2.1.1 build"
This reverts commit f0ede01017 .
Add back in change from updater.sh that we want to keep
2022-01-18 13:00:39 -05:00
Alan Rominger
696c0b0055
Merge pull request #11503 from AlanCoding/no_version
...
Remove unused ansible version method
2022-01-14 22:15:15 -05:00
Alan Rominger
9664aed1f2
Remove unused ansible version method
2022-01-14 14:55:35 -05:00
Alan Rominger
72cd73ca71
Update to cover stuff from tasks.py changes
2022-01-14 13:42:24 -05:00
Alan Rominger
02e18cf919
Fix more F811 linter violations
2022-01-14 13:23:05 -05:00
Alan Rominger
82671680e3
Respect linter rule F811 for trivial re-definition
2022-01-14 13:23:04 -05:00
Alan Rominger
b0c59ee330
Merge pull request #11375 from AlanCoding/missing_image_error_devel
...
Fail with specific error message if protected image is not available
2022-01-12 11:05:17 -05:00
Alan Rominger
8126f734e3
Remove unnecessary DEBUG logger level settings ( #11441 )
...
* Remove unnecessary DEBUG logger level settings
2022-01-05 14:44:57 -05:00
Alan Rominger
7219f8fed8
Merge pull request #11462 from AlanCoding/forgot_this
...
Add the cancel_callback to system job interface
2021-12-14 14:17:47 -05:00
Alan Rominger
b6a5f834d6
Merge pull request #11408 from amolgautam25/receptor_tech_debt
...
Removing time.sleep(3)
2021-12-14 11:54:49 -05:00
Alan Rominger
99b9d53bbb
Add the cancel_callback to system job interface
2021-12-14 10:50:39 -05:00
Alan Rominger
21895bd09b
Merge pull request #11448 from AlanCoding/revert_again
...
Revert "cancel job if receptor no longer knows about the work item"
2021-12-10 16:35:12 -05:00
Alan Rominger
411ef5f9e8
Revert "cancel job if receptor no longer knows about the work item"
...
This reverts commit 2a11bb4f3b .
2021-12-10 16:18:44 -05:00
Alan Rominger
1b0fca8026
Merge pull request #11386 from AlanCoding/logs_on_the_fire
...
Remove dev-only log filters and downgrade periodic logs
2021-12-07 16:13:45 -05:00
Alan Rominger
d6679a1e9b
Respect dynamic log setting for console, downgrade exit log
2021-12-07 14:35:03 -05:00
Alan Rominger
b721a4b361
Remove dev-only log filters and downgrade periodic logs
2021-12-07 14:35:02 -05:00
Alan Rominger
19b4849345
Merge pull request #11394 from notok/cfg_from_template_branch
...
Load ansible.cfg from the branch specified on job template
2021-12-06 11:09:36 -05:00
Alan Rominger
5512b71e16
Merge pull request #11412 from AlanCoding/cookie_revert
...
Revert "Set SESSION_COOKIE_NAME by default"
2021-12-02 11:00:56 -05:00
Alan Rominger
97b60c43b7
Merge pull request #11385 from AlanCoding/my_cluster_host
...
Do not overwrite file-based CLUSTER_HOST_ID written by installer
2021-12-02 10:53:59 -05:00
Alan Rominger
35b62f8526
Revert "Set SESSION_COOKIE_NAME by default"
...
This reverts commit 59c6f35b0b .
2021-12-01 17:51:47 -05:00
Alan Rominger
776c4a988a
Do not overwrite file-based CLUSTER_HOST_ID written by installer
2021-11-30 20:15:10 -05:00
Alan Rominger
099efb883d
Allow customizing the receptor image in the development environment ( #11374 )
...
* Allow for customizing the receptor image
* Hook in receptor image to docker-compose template
* Fix missing -e to pass into Dockerfile playbook
* Add some docs
2021-11-19 14:00:23 -05:00
Alan Rominger
eeefd19ad3
Fail with specific error message if protected image is not available locally
2021-11-19 11:52:54 -05:00
Alan Rominger
d67007f777
Move only_transmit_kwargs calculation out of thread
2021-11-19 01:11:18 +00:00
Alan Rominger
3a3fffb2dd
Fixed error dropped on floor - save receptor detail when it applies
2021-11-10 08:50:16 +08:00
Alan Rominger
a2acbe9fe6
Fix incorrect (changed: True) frequent in OCP task logs
2021-11-10 08:50:16 +08:00
Alan Rominger
0d1f8a06ce
Revert default EE authfile support for inventory_import
2021-11-10 08:50:15 +08:00
Alan Rominger
d42fe921db
Re-order authfile option to make inventory import command work
2021-11-10 08:50:15 +08:00
Alan Rominger
329caad681
In admin reaper skip work units w/o params
2021-11-10 08:50:14 +08:00
Alan Rominger
ecb84e090c
Revert "Merge pull request #5354 from ansible/jobs_killed_via_receptor_should_get_reaped"
...
This reverts commit 8736858d80 , reversing
changes made to 84e77c9db9 .
2021-11-10 08:50:14 +08:00
Alan Rominger
2839091b22
Avoid extra check if we have job_explanation
2021-11-10 08:50:13 +08:00
Alan Rominger
47e67481b3
Avoid reaping tentative jobs
2021-11-10 08:50:13 +08:00
Alan Rominger
55059b015f
Avoid resultsock shutdown before reading from it
2021-11-10 08:50:13 +08:00
Alan Rominger
eb6c58682d
Alternative for reaping lost jobs, in work unit reaper
2021-11-10 08:50:13 +08:00
Alan Rominger
e54db3ce50
Gracefully handle receptorctl RuntimeError in health check
2021-11-10 08:50:11 +08:00
Alan Rominger
77076dbd67
Reduce the number of triggers for execution node health checks
2021-11-10 08:50:11 +08:00
Alan Rominger
6f20a798ab
Allow testing a single hybrid instance like the good old days
2021-11-10 08:50:11 +08:00
Alan Rominger
f34c96ecf5
Error handling when node is missing from mesh for jobs and checks
2021-11-10 08:50:11 +08:00
Alan Rominger
7b35902d33
Respect settings to keep files and work units
...
Add new logic to cleanup orphaned work units
from administrative tasks
Remove noisy log which is often irrelevant
about running-cleanup-on-execution-nodes
we already have other logs for this
2021-11-10 08:50:10 +08:00