Ryan Petrello
2df924ae78
cleanup more old licensing cruft
2020-10-22 14:37:26 -04:00
Ryan Petrello
849079316a
change rhsm candlepin crt location
2020-10-22 14:08:19 -04:00
Christian M. Adams
f812d2e318
Fallback to RH Candlepin Verify setting for OCP
2020-10-22 13:33:41 -04:00
Ryan Petrello
0c63e6a624
clarify messaging and behavior when subscription-manager isn't installed
2020-10-22 13:20:55 -04:00
Christian M. Adams
23f365786c
Add error handling for missing rhsm.conf
2020-10-22 12:29:29 -04:00
Ryan Petrello
fcf56b4ba6
cleanup up some unused code/comments, and simplify the license migration
2020-10-22 11:56:47 -04:00
Ryan Petrello
a7c7ac714f
change license uploading to parse RHSM manifests
...
Co-authored-by: Christian Adams <chadams@redhat.com >
2020-10-22 11:56:41 -04:00
Ryan Petrello
ffab48c77f
reimplement licensing to work with RHSM and entitlement uploads
...
Co-authored-by: Christian Adams <chadams@redhat.com >
2020-10-22 11:10:28 -04:00
Jim Ladd
05ac2c1ec2
Updates to a given inventory should happen serially
2020-10-12 09:34:37 -07:00
Ryan Petrello
30b6fd27b3
fix a display bug in notification bodies with unicode characters
...
see: https://github.com/ansible/awx/issues/7400
2020-10-02 14:37:25 -04:00
Ryan Petrello
64485c1066
fix a bug that prevents deletion of workflow approval records
...
see: https://github.com/ansible/awx/issues/8305
2020-10-01 16:06:53 -04:00
softwarefactory-project-zuul[bot]
5c0432b979
Merge pull request #8186 from marshmalien/setting-details
...
Add setting details and unit tests
Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
2020-09-30 19:01:30 +00:00
softwarefactory-project-zuul[bot]
820d4d292e
Merge pull request #8253 from beeankha/edit_approval_node_bugfix
...
Fix Approval Node Edit Permissions
Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
2020-09-29 16:45:07 +00:00
beeankha
f584c1cc47
Fix Approval Node Edit Permissions
2020-09-29 12:14:12 -04:00
Ryan Petrello
c52054951d
fix a bug that can break password prompting in certain scenarios
...
see: https://github.com/ansible/awx/issues/8202
2020-09-29 09:34:38 -04:00
Marliana Lara
558dfb685e
Add a new key "unit" to api setting fields
...
* Add detail popover
* Fix broken redirects
* Add additional id and data-cy attributes to Detail components
* Remove galaxy fields from job settings
2020-09-25 14:00:27 -04:00
Ryan Petrello
baad765179
refactor some callback receiver code
...
the bigint migration removed the foreign key constraints for:
- host_id
- job_id (and projectupdate_id, etc...)
because of this, we don't really need to check explicitly for a host_id
IntegrityError anymore (because it won't occur)
additionally, while it's possible to insert an event with a mismatched
job_id now (for example, you can totally start a long-running job, and
delete the job record in the background using the ORM or psql), doing
so results in DoesNotExist errors in the code that handles the
playbook_on_stats events
2020-09-25 13:12:42 -04:00
softwarefactory-project-zuul[bot]
ce65ed0ac6
Merge pull request #8191 from ryanpetrello/callback-directly-to-redis
...
remove multiprocessing.Queue usage from the callback receiver
Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
2020-09-24 18:21:49 +00:00
Ryan Petrello
cd0b9de7b9
remove multiprocessing.Queue usage from the callback receiver
...
instead, just have each worker connect directly to redis
this has a few benefits:
- it's simpler to explain and debug
- back pressure on the queue keeps messages around in redis (which is
observable, and survives the restart of Python processes)
- it's likely notably more performant at high loads
2020-09-24 13:53:58 -04:00
beeankha
c855ce95aa
Fix JT timeout notification bug
2020-09-23 15:45:11 -04:00
softwarefactory-project-zuul[bot]
aac17b9d2c
Merge pull request #8206 from ryanpetrello/more-bulk-update-last-job
...
change host -> last_job_id bulk update query to avoid locking issues
Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
2020-09-23 15:18:42 +00:00
softwarefactory-project-zuul[bot]
d7ca49ce4a
Merge pull request #8193 from ryanpetrello/ws-broadcast-limited
...
add a few additional optimizations to the callback receiver
Reviewed-by: Shane McDonald <me@shanemcd.com >
https://github.com/shanemcd
2020-09-23 14:58:41 +00:00
Ryan Petrello
1f0cd8df71
expose GALAXY_IGNORE_CERTS in the job settings UI
2020-09-23 08:36:52 -04:00
Ryan Petrello
89ff8e1f3e
change host -> last_job_id bulk update query to avoid locking issues
...
see: https://github.com/ansible/awx/issues/8145
2020-09-22 16:04:28 -04:00
Ryan Petrello
b370e8389e
add a few additional optimizations to the callback receiver
2020-09-22 08:51:01 -04:00
Ryan Petrello
bed2dea04d
don't broadcast ws:// events when UI_LIVE_UPDATES_ENABLED is False
2020-09-21 20:42:39 -04:00
Elijah DeLee
7c7d15a8be
Need log level info to show up with new settings
2020-09-21 11:22:43 -04:00
softwarefactory-project-zuul[bot]
44d1e15ef4
Merge pull request #8177 from ryanpetrello/rrule-bug
...
fix an rrule bug that causes improper HOURLY/MINUTELY calculation
Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
2020-09-18 20:02:10 +00:00
Ryan Petrello
bf1d93168b
fix an rrule bug that causes improper HOURLY/MINUTELY calculation
...
see: https://github.com/ansible/awx/issues/8071
2020-09-18 12:06:07 -04:00
softwarefactory-project-zuul[bot]
c17bb36bcd
Merge pull request #8167 from ryanpetrello/callback-cleanup
...
Add support for a `--status` to the callback receiver (and improve our approach to stats collection in general)
Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
2020-09-18 13:58:30 +00:00
Ryan Petrello
57f8e48894
make --status more robust for dispatcher, and add support for receiver
...
make the --status flag work by fetching a periodically recorded snapshot
of internal process state; additionally, update the callback receiver to
*also* record these statistics so we can gain more insight into any
performance issues
2020-09-17 15:33:37 -04:00
Bill Nottingham
18c27437b7
Fix analytics logging
...
The analytics change PR adjusted the logging for awx.analytics,
which solved the issue, but should have used the targeted awx.main.analytics.
Also flip a couple of loggers to use the regular awx.analytics (awx analytics)
logger instead of awx.main.analytics (the automation anayltics task system).
2020-09-17 13:39:14 -04:00
Ryan Petrello
0df6409244
remove task state tracking from the callback receiver
...
we don't have support for displaying these stats anyways, so there's
no point in using resources tracking them, especially for high-volume
installs
2020-09-16 13:40:42 -04:00
Elijah DeLee
d8e4ac773b
Print one tarball per line
...
Printing out a python like list is hard to process for tests
Better to print out one tarball per line
2020-09-14 17:00:31 -04:00
softwarefactory-project-zuul[bot]
9d66b41e84
Merge pull request #7991 from bbayszczak/hashivault_auth_path_in_inputs
...
hashivault_kv auth_path moved from metadata to inputs
Reviewed-by: Jake McDermott <yo@jakemcdermott.me >
https://github.com/jakemcdermott
2020-09-14 15:28:07 +00:00
Bill Nottingham
13802fcf2b
Don't return error messages for license errors
...
Just log the exception and return None.
2020-09-10 21:19:07 -04:00
Bill Nottingham
05ad85e7a6
Remove the model for the now unused TowerAnalyticsState.
2020-09-09 20:18:04 -04:00
Bill Nottingham
a604ecffb8
Adjust query_info to set the collection time based on what's passed.
2020-09-09 20:05:48 -04:00
Bill Nottingham
09f7d70428
Use isoformat() rather than strftime
...
Reformat SQL in unit tests because sqlite.
2020-09-09 20:05:32 -04:00
Bill Nottingham
c753324872
Move back to less frequent collections, and split large event tables
...
This should ensure we stay under 100MB at all times.
2020-09-09 17:42:40 -04:00
Bill Nottingham
9f67b6742c
Fail more gracefully if analytics.ship() is called with a bad path,
...
or it's deleted out from under us.
2020-09-09 17:42:40 -04:00
Bill Nottingham
1a15f18be3
Stop using the TowerAnalyticsState solo model
...
This is now tracked in the AUTOMATION_ANALYTICS_LAST_GATHER setting.
2020-09-09 17:42:40 -04:00
Bill Nottingham
40309e6f70
Ensure we do not send large bundles, or empty bundles
...
Collect expensive collectors separately, and in a loop
where we make smaller intermediate dumps.
Don't return a table dump if there are no records, and
don't put that CSV in the manifest.
Fix up unit tests.
2020-09-09 17:42:40 -04:00
Bill Nottingham
1c4b06fe1e
Refactor analytics collectors.
...
- Only have one registration class
- Add description fields
- Add automation collector information to /api/v2/config
2020-09-09 17:10:14 -04:00
softwarefactory-project-zuul[bot]
caa7b43fe0
Merge pull request #7817 from ryanpetrello/galaxy-credentials
...
Support Organization-scoped Galaxy installs
Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
2020-09-09 16:17:18 +00:00
softwarefactory-project-zuul[bot]
800cf30d92
Merge pull request #8089 from rooftopcellist/update_analytics_job_test
...
Provide a distinct column name for inventory_name in unifiedjob analy…
Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
2020-09-08 20:04:31 +00:00
softwarefactory-project-zuul[bot]
cd8c74e28f
Merge pull request #8094 from ryanpetrello/upgrade-django-libs
...
Update Django and channels_redis
Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
2020-09-08 17:46:35 +00:00
Seth Foster
e09274e533
PR #8074 - limit how many jobs the task manager can start on a given run
2020-09-08 12:16:06 -04:00
Christian M. Adams
0681444294
Provide a distinct column name for inventory_name in unifiedjob analytics csv
2020-09-08 11:14:24 -04:00
Ryan Petrello
c862b3e5a2
Revert "work around a memory leak in channels_redis"
...
This reverts commit e25da217e8 .
2020-09-08 10:40:47 -04:00