Shane McDonald
35907fdf51
Merge pull request #11977 from shanemcd/handle-missing-devel-images
...
Tweaks to devel_images workflow
2022-03-30 09:45:35 -04:00
Shane McDonald
3513956cd6
Merge pull request #11972 from JoelKle/patch-1
...
[bugfix] credential_plugin tss.py (Thycotic Secret Server) return only value of secret
2022-03-30 09:33:54 -04:00
Shane McDonald
3ed65ce39e
Only run devel_images workflow for devel branch in awx repo
2022-03-30 09:24:22 -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
Shane McDonald
91df8ab0f7
Do not fail devel_images workflow if initial images are missing
2022-03-30 09:10:50 -04:00
Shane McDonald
ef0f6ca248
Merge pull request #11955 from shanemcd/fail-better
...
Increase resiliency when application crashes
2022-03-30 08:58:26 -04:00
Satoe Imaishi
4ecce81c51
Merge pull request #11971 from simaishi/add_setuptools_scm_toml
...
Add setuptools_scm[toml] and pkgconfig to requirements file
2022-03-30 06:51:18 +09:00
Satoe Imaishi
823e4cb11a
Add license files for pkgconfig, setuptools-scm and tomli
2022-03-29 16:57:12 -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
John Westcott IV
e2135b8d68
Collection meta runtime updates ( #11952 )
...
* Update runtime.yml
* Extending test_completness to include meta/runtime.yml and adding remaining missing modules from runtime.yml
Co-authored-by: quasd <quasd@users.noreply.github.com>
2022-03-29 14:24:06 -04:00
Alan Rominger
fe5736dc7f
Specifically abort the reaper if instance not registered
2022-03-29 14:08:58 -04:00
Shane McDonald
b36af5dfb3
Update help text for provision_instance command
2022-03-29 14:08:58 -04:00
Shane McDonald
4446434e5b
Ensure stop signals are forwarded to the correct processes
2022-03-29 14:08:56 -04:00
Shane McDonald
39905b33cd
Replace tini with dumb-init
...
dumb-init is more actively maintained, available on pypi, and already used for both upstream and downstream EEs
2022-03-29 14:08:09 -04:00
Shane McDonald
dbdc529d4a
Fix race condition causing rsyslog to crash
2022-03-29 14:08:07 -04:00
Shane McDonald
0cbc802cf4
Use the same settings on each supervisor entry
...
I didnt see a reason for the weird inconsistencies here.
2022-03-29 14:07:54 -04:00
Shane McDonald
b04747676c
Provision the instance before booting anything
...
There was a race condition because the callback reciever tried to run this code:
File "/awx_devel/awx/main/management/commands/run_callback_receiver.py", line 31, in handle
CallbackBrokerWorker(),
File "/awx_devel/awx/main/dispatch/worker/callback.py", line 49, in __init__
self.subsystem_metrics = s_metrics.Metrics(auto_pipe_execute=False)
File "/awx_devel/awx/main/analytics/subsystem_metrics.py", line 156, in __init__
self.instance_name = Instance.objects.me().hostname
Before get_or_register was being called by the dispatcher.
2022-03-29 14:07:49 -04:00
Alex Corey
5297a87ad4
Merge pull request #11970 from jtmelhorn/devel
...
Joboutput Search: Put Event Dropdown Options in Alpha Order #11807
2022-03-29 13:10:25 -04:00
Joel
bd907425a9
return only value of secret
2022-03-29 10:33:53 +02:00
Satoe Imaishi
229ed53c0e
Add setuptools_scm[toml] and pkgconfig, xmlsec's build dep
2022-03-29 01:57:44 -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
Seth Foster
e0082f4c76
Merge pull request #11945 from fosterseth/fix_create_partition_already_exists_error
...
Handle error for create_partition
2022-03-28 18:13:29 -04:00
Justin
bed0443b18
Joboutput Search: Put Event Dropdown Options in Alpha Order #11807
...
Put Event Options in Alpha order.
Signed-off-by: Justin Melhorn <jtmelhorn@gmail.com>
2022-03-28 16:50:44 -04:00
Seth Foster
24152555c5
Handle error for create_partition
...
Occasionally the create_partition will error with,
relation "main_projectupdateevent_20220323_19" already exists
This change wraps the db command into a try except block with its
own transaction
2022-03-28 16:37:50 -04:00
Amol Gautam
56f51eebce
Merge pull request #11956 from amolgautam25/credential_plugin
...
setting environment variables for credential plugins
2022-03-28 13:02:19 -04:00
Jeff Bradberry
6c1adade25
Merge pull request #11947 from jbradberry/django-3.2-upgrade
...
Remove the out-of-band JSONField migration
2022-03-28 12:02:53 -04:00
kialam
ec5e677635
Merge pull request #11938 from kialam/mesh-viz-unit-tests
...
Mesh viz unit tests
2022-03-28 08:44:19 -07:00
Alex Corey
327cae056e
Merge pull request #11829 from AlexSCorey/11478-StartofJobOutputDevDocs
...
Adds outline for JobOutput documentation.
2022-03-28 11:22:21 -04:00
Alex Corey
7a11470817
Adds outline for JobOutput documentation.
2022-03-28 10:58:05 -04:00
Alan Rominger
85ec83c3fd
Minor tweaks to ansible-runner cleanup task arguments
2022-03-28 10:52:09 -04:00
Alex Corey
1679102204
Merge pull request #11946 from nixocio/ui_cred_type
...
Add credential type filter
2022-03-28 10:03:56 -04:00
Kersom
7601531d82
Merge pull request #11965 from nixocio/ui_b_style
...
Small style update
2022-03-28 10:02:59 -04:00
Sarah Akus
56ab1c2f0a
Merge pull request #11958 from AlexSCorey/UpdatesPF
...
Updates PF to bring in the DrownActionToggle component
2022-03-25 20:27:25 -04:00
nixocio
f309054637
Small style update
...
Small style update to make a bit more consistent.
2022-03-25 15:39:22 -04:00
Amol Gautam
8efed4ef62
Adding awx_task_env as wrapper while invoking backend
2022-03-25 10:16:30 -04:00
Shane McDonald
e4c85a5790
Merge pull request #11957 from lucas-benedito/fix_hardcode_tmp_models_ha
...
fixed hardcode tmp ha.py
2022-03-25 09:57:02 -04:00
lucas-benedito
8af2214979
Merge branch 'ansible:devel' into fix_hardcode_tmp_models_ha
2022-03-25 14:28:29 +01:00
Lucas Dias
01ce3440eb
added os.path and module import
2022-03-25 14:26:00 +01:00
Shane McDonald
b6573ec2e2
Merge pull request #11961 from shanemcd/respect-system-tmp
...
Respect system configured tmp directory
2022-03-25 08:13:53 -04:00
Jeff Bradberry
d54838cd94
Remove the out-of-band migration
...
that was turning all old JSONFields into a jsonb type database column.
The use of JSONBlob makes this unnecessary.
2022-03-24 15:21:59 -04:00
Jeff Bradberry
e3f3ab224a
Replace all previously text-based json fields with JSONBlob
...
This JSONBlob field type is a wrapper around Django's new generic
JSONField, but with the database column type forced to be text. This
should behave close enough to our old wrapper around
django-jsonfield's JSONField and will avoid needing to do the
out-of-band database migration.
2022-03-24 15:21:54 -04:00
Shane McDonald
c06ced93f7
Merge pull request #11933 from AlanCoding/settingify
...
Add setting for notification job status retry loop
2022-03-24 13:55:39 -04:00
Shane McDonald
ea59e895af
Respect system configured tmp directory
2022-03-24 13:51:02 -04:00
Alex Corey
fb7a8dfd16
Updates PF to bring in the DrownActionToggle component
2022-03-24 13:17:25 -04:00
Lucas Dias
18b1440d7c
fixed hardcode tmp ha.py
2022-03-24 17:59:43 +01:00
John Westcott IV
593eebf062
Adding awx_ as well as tower_ variable names for webhooks ( #11925 )
...
Adding utility to ease testing webhooks from command line
Modifying all variables to use a constants list of variable names
2022-03-24 11:58:15 -04:00
John Westcott IV
fcdff8bdfb
Fixing pre-commit.sh for OS X ( #11953 )
2022-03-24 11:39:29 -04:00
John Westcott IV
b9cdd6f2c8
Adding ability to run user level pre-commit hooks ( #11923 )
...
* Adding ability to run user level pre-commit hooks
* Adding pre-commit docs in CONTRIBUTING.md
2022-03-24 10:58:14 -04:00