Jeff Bradberry
20504042c9
Graph out only the parent/child chains from a given Role
...
Doing the entire graph is too much on any system with real amounts of Roles.
2024-06-10 16:36:22 -04:00
Jeff Bradberry
0e87e97820
Check for a broken ContentType -> model and log and skip
...
Apparently this has happened to a customer, per Nate Becker.
2024-06-10 16:36:22 -04:00
Jeff Bradberry
1f154742df
Make the role_chain.py script emit a Graphviz file
...
of the Role relationships.
2024-06-10 16:36:22 -04:00
Jeff Bradberry
85fc81aab1
Start a new script that can be used to examine a Role's ancestry
2024-06-10 16:36:22 -04:00
Jeff Bradberry
5cfeeb3e87
Treat resources with null role fks differently
...
The underlying role should be re-linked, instead of treated as orphaned.
2024-06-10 16:36:22 -04:00
Jeff Bradberry
a8c07b06d8
Set up an enhanced version of Seth's bad role scenario
2024-06-10 16:36:22 -04:00
Jeff Bradberry
53c5feaf6b
Set up Seth's bad role scenario
2024-06-10 16:36:22 -04:00
Jeff Bradberry
6f57aaa8f5
When checking reverse links, treat duplicate Roles different from bad ones
...
Also, null out the generic foreign key on orphaned roles before deleting.
2024-06-10 16:36:22 -04:00
Jeff Bradberry
bea74a401d
Attempt to be more efficient about grouping the content types
...
Also, attempt to rebuild the role ancestors in the fixup script.
2024-06-10 16:36:22 -04:00
Jeff Bradberry
54e85813c8
First full check script
...
This version emits the first fix-up script as its output.
2024-06-10 16:36:22 -04:00
Jeff Bradberry
b69ed08fe5
Specifically examine the InstanceGroup roles
2024-06-10 16:36:22 -04:00
Jeff Bradberry
de25408a23
Print out details of all of the crosslinked roles
2024-06-10 16:36:22 -04:00
Jeff Bradberry
b17f0a188b
Initial check
2024-06-10 16:36:22 -04:00
Julen Landa Alustiza
8c9c02c975
awxkit: allow to modify api base url ( #14835 )
...
Signed-off-by: Julen Landa Alustiza <jlanda@redhat.com>
2024-02-07 12:26:42 +01:00
Hao Liu
6440e3cb55
Send SIGKILL to rsyslog if hard cancellation is needed
2023-12-14 10:41:48 -05:00
Hao Liu
6e5e1c8fff
Recover rsyslog from 4xx error
...
Due to https://github.com/ansible/awx/issues/7560
'omhttp' module for rsyslog will completely stop forwarding message to external log aggregator after receiving a 4xx error from the external log aggregator
This PR is an "workaround" for this problem by restarting rsyslogd after detecting that rsyslog received a 4xx error
2023-12-14 10:41:48 -05:00
Alan Rominger
8feeb5f1fa
Allow saving github creds in user folder ( #14435 )
2023-09-12 15:47:12 -04:00
John Westcott IV
07e30a3d5f
Refined release documentation ( #14221 )
2023-07-10 19:45:34 +00:00
John Westcott IV
a665d96026
Replacing psycopg2.copy_expert with psycopg3.copy
2023-06-14 17:40:15 -04:00
John Westcott IV
e47d30974c
Removing psycopg2 references
2023-06-14 17:40:15 -04:00
lucas-benedito
434595481c
AAP-8038 - enable/disable services on reboot ( #13415 )
...
Co-authored-by: Lucas Benedito <lbenedit@redhat.com>
2023-05-31 19:24:30 +00:00
Alan Rominger
85e7189ee3
Add error handling to scm_version.py script ( #13521 )
...
raise Exception in the case that return code is non-zero
this approach has shown itself to be the most consistently reliable across multiple ecosystems
2023-05-10 14:20:56 -04:00
Shane McDonald
0d097964be
Automatically install setuptools-scm in script called from Makefile
2022-07-22 12:59:39 -04:00
Aditya Mulik
df38650aee
Localization Scripts for AWX UI & API
2022-07-08 11:44:56 -04:00
Shane McDonald
6a3f9690b0
Remove setup.py entirely
2022-06-27 14:15:32 -04:00
Shane McDonald
cbea36745e
Transition from setup.py to setup.cfg
2022-06-27 13:30:01 -04: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
Jeff Bradberry
028f09002f
Fix the cleanup_jobs management command
...
It previously depended on a private Django internal class that changed
with Django 3.1.
I've switched here instead to disabling the django-polymorphic
accessors to get the underlying UnifiedJob object for a Job, which due
to the way they implement those was resulting in N+1 behavior on
deletes. This gets us back most of the way to the performance gains
we achieved with the custom collector class. See
https://github.com/django-polymorphic/django-polymorphic/issues/198 .
2022-03-07 18:11:36 -05:00
Jeff Bradberry
04568ea830
Fix the firehose job creation script
...
to account for the changes made due to the job event table partitioning work.
2022-02-09 09:49:17 -05:00
Sarabraj Singh
ec7e4488dc
adding event handler specific to when awx-rsyslog throws PROCESS_LOG_STDERR errors based on 4XX http errors; increased clarity in stderr log messages; removed useless None intializations
2022-02-04 11:18:45 -05:00
Satoe Imaishi
ac540d3d3f
Remove tower-setup script - no longer used
2022-02-01 12:51:02 -05:00
Shane McDonald
8609a637f9
Merge pull request #9365 from mcharanrm/aa-workloads-firehose
...
tools/scripts/firehose.py: capture all job ids, attach events to all jobs ids and distribute the events
2021-07-22 15:52:16 -04:00
Bill Nottingham
34f4dc521b
Rename one more Tower bit.
2021-05-18 19:26:18 -04:00
Bill Nottingham
c8cf28f266
Assorted renaming and string changes
2021-04-30 14:32:05 -04:00
softwarefactory-project-zuul[bot]
f48e600563
Merge pull request #9673 from jborean93/pwsh-request
...
Fix up request tower ps script
SUMMARY
Fixes the request_tower_configuration.ps1 script with the following:
Added PowerShell 6+ support, can now run on Linux
Removes the uneeded strict and ErrorActionPreference settings which could impact the global settings
Enables TLS 1.2 support on Windows PowerShell
Fixes -insecure handling for certificates
Works across ps versions
Original didn't actually work (at least in my testing)
Hopefully doesn't impact the global state
Fixes IE not loaded error on Windows PowerShell when running on a new profile
Changes the encoding to UTF-8 (no BOM) and made it executable
Can now be invoked on Linux like ./request_tower_configuration.ps1 ...
There are no non-ASCII chars in the script so this won't matter on Windows
Fixes #9434
ISSUE TYPE
Bugfix Pull Request
COMPONENT NAME
Tools
AWX VERSION
N/A
Reviewed-by: Ryan Petrello <None>
2021-04-07 13:18:43 +00:00
Yanis Guenane
f89cf95c51
Rename ansible-tower file to automation-controller
2021-04-01 21:09:48 +02:00
Jordan Borean
b222f10d68
Missed ErrorAction in the params
2021-03-24 12:21:50 +10:00
Jordan Borean
1b6cfd803c
Fix up request tower ps script
2021-03-24 12:12:02 +10:00
mcharanrm
412015b7bd
tools/scripts/firehose.py: capture all job ids, attach events to all jobs ids and distribute the events
2021-02-19 19:10:34 +05:30
Christian M. Adams
36466b9694
Upgrade PostgreSQL from 10 to 12
2021-01-08 10:54:00 -05:00
Shane McDonald
6f9862c72e
Sweeping replace of old dev venv paths
2020-12-26 21:29:22 -05:00
Chris Meyers
f32716a0f1
remove instance_filter
2020-09-01 12:50:56 -04:00
Bill Nottingham
bd6cac966a
Create marginally more realistic event data with firehose
2020-08-03 20:57:10 -04:00
Elijah DeLee
efa5a95cf1
fix flake8
2020-05-28 13:00:37 -04:00
Elijah DeLee
90ca2fd59b
be a bit more respectful of event request
...
minimum events made now is 10,000, used to be 10,000*number of cores.
could dig deeper but this is better for debugging changes to script
2020-05-27 19:34:12 -04:00
Elijah DeLee
5d5edf6535
create timestamp outside loop
...
this may be expensive
2020-05-27 18:43:26 -04:00
Elijah DeLee
a599afa81c
Also apply time delta to job
...
This way they all happened on the same day
2020-05-27 18:29:11 -04:00
Elijah DeLee
1835787772
add option to set hour delta on firehose
2020-05-27 17:56:07 -04:00
Elijah DeLee
00060c9572
make time delta for firehose events configurable
...
This was hardcoded to back in january, which make it of limited use testing
automation analytics behavior when there are many events, we need it to be sometime in the past two months.
Will take another pass to do the hours delta
2020-05-27 17:47:38 -04:00
Graham Mainwaring
d55b223aae
Use sysconfig file to get the list of services
2020-04-24 14:08:24 -04:00