Alan Rominger
6538d34b48
Remove ssh_key_data fix, handled in runner now
2022-10-31 11:01:28 -04:00
Alan Rominger
ed318ea784
Merge pull request #13082 from AlanCoding/health_check_stdout
...
Include stdout from health check if it is not nothing
2022-10-28 13:59:21 -04:00
Alex Corey
d2b69e05f6
Merge pull request #13041 from ansible/12966-DisableManualHealthCheck
...
Allows health checks on only execution nodes
2022-10-28 13:26:11 -04:00
Alan Rominger
d6fea77082
Include stdout from health check if it is not nothing
2022-10-26 16:26:59 -04:00
Joe Garcia
878035c13b
Fixed webservice_id check to string
2022-10-26 12:45:59 -04:00
Joe Garcia
2cc971a43f
default to AIMWebService if no val provided
2022-10-26 12:41:15 -04:00
Joe Garcia
9d77c54612
Remove references to AIM everywhere
2022-10-26 12:32:12 -04:00
Joe Garcia
ef651a3a21
Add Web Service ID & update branding
2022-10-26 11:54:09 -04:00
Alex Corey
41fd6ea37f
Prevents health checks on all node types except for Execution nodes
2022-10-25 10:11:45 -04:00
Seth Foster
de41601f27
make job lifecycle Cyan again
2022-10-24 13:50:42 -04:00
Alan Rominger
487efb77ce
Fix error when apply taggit app tags to objects
2022-10-21 14:53:31 -04:00
Sarah Akus
e655e1dbc2
Merge pull request #13068 from AlexSCorey/11555-CalculateElapsedTimeonJob
...
Allows job output to calculate elapsed time
2022-10-21 11:51:47 -04:00
Sarabraj Singh
e41f20320a
removed hostname check when editing hostname on existing host ( #13057 )
2022-10-21 10:28:40 -03:00
Alan Rominger
192f45bbd0
Make canceling view non-atomic to fix 500 errors with job bursts ( #13072 )
...
* Make canceling view non-atomic to fix 500 errors with job bursts
* Update test calls for cancel method changes
2022-10-20 15:02:54 -04:00
Alex Corey
8a6ad47ca5
Allows job output to calculate elapsed time
2022-10-19 12:56:23 -05:00
Alan Rominger
cba780a8f8
Fix dispatcher connection deadlock w scheduler and cleanup
2022-10-19 12:12:15 -04:00
Alan Rominger
4d9b8400da
Merge pull request #12887 from AlanCoding/more_rules
...
[tech debt] Add new flake8 rules to do some meaningful corrections
2022-10-18 20:27:00 -04:00
Alan Rominger
0f150aa3b3
Only perform prompts validation if prompts fields are submitted
2022-10-11 10:50:03 -04:00
César Francisco San Nicolás Martínez
871175f97f
Sending field_name in AttributeError
2022-10-11 10:21:44 +02:00
Alan Rominger
7849c0fb1e
Merge pull request #12694 from AlanCoding/whoami
...
Shortcut Instance.objects.me when possible
2022-10-06 15:25:29 -04:00
Alan Rominger
805091cfc1
Merge pull request #12969 from AlanCoding/code_deletions
...
[tech debt] Remove imports and references that are no longer needed
2022-10-06 09:33:03 -04:00
Sarabraj Singh
385a2eabce
hostname validation in InstanceSerializer ( #12979 )
...
* initial commit of hostname validation to InstanceSerializer
Co-authored-by: Cesar Francisco San Nicolas Martinez <cesarfsannicolasmartinez@gmail.com >
2022-10-05 17:50:06 +00:00
Alan Rominger
a64467c5a6
Shortcut Instance.objects.me when possible
2022-10-05 09:11:42 -04:00
Alan Rominger
58772d79c7
Remove unnecessary imports by deleting NOQA markers
2022-10-05 09:09:03 -04:00
Rick Elrod
03eaeac459
Better handle IPv6 in util function update_scm_url ( #12995 )
...
- Firstly -- add a bunch of unit tests for `update_scm_url`, because it
previously had none and desperately needed them.
- Secondly -- fix #12992 by adding back in IPv6 address brackets if they
existed in the first place when the function was called.
- Thirdly -- fix a related case where we disallowed IPv6 in URLs that
did not include the scheme.
Signed-off-by: Rick Elrod <rick@elrod.me >
2022-10-04 15:21:56 -05:00
John Westcott IV
d1588b94b0
Updating migration file again
2022-09-29 14:20:49 -04:00
Sarabraj Singh
2dcc7ec749
implementing Alan's recommendations for ig_fallback
2022-09-29 14:19:37 -04:00
John Westcott IV
2d756959d3
Altering prefered_instance_groups for ad_hoc_commands and inventory objects
2022-09-29 14:19:37 -04:00
John Westcott IV
e6518a1d1c
Updating the migration id
2022-09-29 14:19:37 -04:00
John Westcott IV
7031753a6d
Updating migration file
2022-09-29 14:19:37 -04:00
John Westcott IV
e5fd42c4da
Removing debug message and adding help details about empty groups
2022-09-29 14:19:36 -04:00
John Westcott IV
0f675cd375
Updating modules for prevent_instance_group_fallback
2022-09-29 14:19:36 -04:00
John Westcott IV
a85268f74a
Fixing inventoy help text
2022-09-29 14:19:36 -04:00
John Westcott IV
0983bd8dc0
Adding prevent_instance_group_fallback
2022-09-29 14:19:36 -04:00
Elijah DeLee
710b02a443
always display awx_status_total
...
this way we don't have null data in monitoring data
this makes writing alerts and dashboards easier
2022-09-28 14:02:57 -04:00
Alan Rominger
cfce31419d
Move the IS_TESTING method out of settings
2022-09-28 11:19:10 -04:00
Jeff Bradberry
5b5aac675b
Merge pull request #12959 from ansible/new-health-check-started
...
Add a new Instance.health_check_started field
2022-09-28 10:58:43 -04:00
Alan Rominger
d3eb2c1975
Add new flak8 rules to do some meaningful corrections
2022-09-27 20:36:42 -04:00
Jeff Bradberry
65179d9cd0
Add a new Instance.health_check_started field
...
This will enable us to provide more useful information for the user,
now that all user-triggered health checks are async.
Also, de-bounce the health check endpoint to not allow additional
health check tasks to be triggered when one is already in progress.
2022-09-27 17:09:41 -04:00
Alan Rominger
5648d9d96f
Avoid cache warning for dispatching control type tasks
2022-09-27 15:18:13 -04:00
Seth Foster
301807466d
Only get receptor.conf lock in k8s environment
...
- Writing to receptor.conf only takes place in K8S, so only get a
lock if IS_K8S is true
2022-09-23 09:46:15 -04:00
Seth Foster
1fde9c4f0c
add firewall rules to control node
2022-09-23 09:46:14 -04:00
Jeff Bradberry
08c18d71bf
Move InstanceLink creation and updating to the async tasks
...
So that they get applied in situations that do not go through the API.
2022-09-23 09:46:14 -04:00
Seth Foster
dfe6ce1ba8
remove tests that assume health check runs in view
2022-09-23 09:46:14 -04:00
Seth Foster
eaa4f2483f
Run instance health check in task container
...
awx-web container does not have access to receptor socket, and the
execution node health check requires receptorctl.
This change runs the health check asynchronously in the task container.
2022-09-23 09:46:14 -04:00
Jeff Bradberry
f3a9d4db07
Assign a default queue to wait_for_jobs()
2022-09-23 09:46:14 -04:00
Jeff Bradberry
ebd200380a
Resolve a deadlock in write_receptor_config()
2022-09-23 09:46:13 -04:00
Jeff Bradberry
1b650d6927
When deprovisioning a node, kick off a task that waits on running jobs
...
After all jobs on the node are complete, delete the node then
broadcast the write_receptor_config task.
Also, make sure that write_receptor_config updates the state of links
that are in 'adding' state.
2022-09-23 09:46:13 -04:00
Jeff Bradberry
3bc86ca8cb
Follow up on new execution node creation
...
- hop nodes are descoped
- links need to be created on execution node creation
- expose the 'edit' capabilities on the instance serializer
2022-09-23 09:46:13 -04:00
Seth Foster
3b024a057f
Allow work signing for execution node ( #12771 )
...
- work-signing added to the generated receptor config
- During receptor task submission, signwork is True when submitting to
an execution node
2022-09-23 09:46:13 -04:00