Ryan Petrello
f6046d47c9
work around a change in ansible 2.3 to Task.get_name()
...
Properly detect setup tasks so that we can filter out sensitive
variables from the `ansible_facts` portion of the event payload.
2017-05-01 10:38:05 -04:00
Aaron Tan
6884e44bb3
Unit test added.
2017-04-11 11:40:47 -04:00
Aaron Tan
9b1107c054
Prevent unexpected callback module attribute warning.
2017-04-10 14:40:57 -04:00
Ryan Petrello
f9b5b9aa91
property filter no_log for item event loops
...
see: #5691
2017-03-22 11:15:33 -04:00
Ryan Petrello
6a7743b274
fix a callback bug that causes a task_args leak between job events
...
see: #5802
2017-03-20 12:05:41 -04:00
Ryan Petrello
999a304c3b
add no_log filtering for runner_item_on_xyz events
...
see: #5691
2017-03-17 09:54:46 -04:00
Ryan Petrello
66c786b971
simplify memcache patching in our callback plugin tests
2017-03-14 14:07:53 -04:00
Ryan Petrello
a5ea468bfe
add a test to ensure that job events properly strip out environment vars
...
see: #5601
2017-03-14 12:56:44 -04:00
Ryan Petrello
5bbb824865
add tests for no_log filtering
...
see: #5691
2017-03-14 12:56:44 -04:00
Ryan Petrello
1005782ee9
add tests for our custom ansible callback plugin
2017-03-14 12:56:40 -04:00
Ryan Petrello
6af9638d81
job event data marked with _ansible_no_log should be censored
...
see: #5691
2017-03-10 15:47:39 -05:00
Ryan Petrello
ed5a01c0cf
strip ansible_env from job event callback data
...
this often contains sensitive details, and the data is already filtered
and stored on the job itself
see: #5601
2017-03-07 16:48:48 -05:00
Matthew Jones
2621f48189
We specifically need to convert the ansible included file type
...
for include events
2017-02-01 15:30:22 -05:00
Matthew Jones
d9a7f2fadb
Silently ignore psutil errors when the process is already gone
...
During ssh CP cleanuip
2017-01-30 13:39:05 -05:00
Matthew Jones
7ca496b6ef
Merge branch 'release_3.1.0' into multi_worker_callbacks
2017-01-18 20:39:15 -05:00
Matthew Jones
1cdeb4d2af
Refactor event emitter to not use event partials
...
event emitter now caches to memcache where it is eventually picked up
by the stdout event emitter. This obviates event reassembly in the
callback receiver.
2017-01-17 15:59:43 -05:00
Wayne Witzel III
9592c67c31
fixing flake8 errors
2017-01-16 14:16:24 -05:00
Wayne Witzel III
cd5eed9828
remove extra censoring code from tower, not needed since Ansible 2.1+
2017-01-16 13:54:07 -05:00
Matthew Jones
974fe1d244
Fix an issue with set_stats for unsupported Ansible versions
2017-01-11 10:24:17 -05:00
Chris Meyers
86a9a921eb
remove deepcopy, not sure how that slipped in
2017-01-06 11:47:45 -05:00
Chris Meyers
a1267a3dee
update artifacts to work with ansible set_stats
2017-01-06 10:04:57 -05:00
Chris Meyers
03734015c5
set_stats support
2017-01-05 13:42:29 -05:00
Matthew Jones
a61e729ebb
Purge event res dict if it is over a certain size
...
Also purge/update some old settings values
2016-12-14 15:05:28 -05:00
Chris Church
b85c98afd2
Split job event data between callback queue and stdout. Send most of event data directly over queue and capture only stdout/counter/start_line/end_line in celery task; recombine into single event in callback receiver.
2016-12-12 16:34:36 -05:00
Chris Church
ae16cadcc2
Ignore exception in sitecustomize.
2016-12-07 23:50:58 -05:00
Matthew Jones
24b858c6fb
Switch away from deepcopy to improve performance
2016-12-06 13:33:14 -05:00
Chris Church
d6d5d4263a
Only run ssh control persist cleanup from main process, flush after writing end marker for job event data.
2016-12-01 14:47:24 -05:00
Chris Church
1db697e4eb
Add multiprocessing RLock around event data output to ensure only one process is writing to stdout at a time.
2016-11-17 09:09:19 -05:00
Aaron Tan
9e4655419e
Fix flake8 E302 errors.
2016-11-15 20:59:39 -05:00
Aaron Tan
473ed016de
Fix flake8 E305 errors.
2016-11-15 16:32:27 -05:00
Chris Church
5760654671
Fix warning from v2_playbook_on_task_start with ad hoc commands.
2016-11-07 21:42:39 -05:00
Chris Church
c43334f8f4
Update job events based on how they are used in Ansible 2.x.
2016-10-28 21:58:24 -04:00
Chris Church
440f0539b0
Flake8 fixes.
2016-10-28 21:58:24 -04:00
Chris Church
c18b6c1352
Add support for capturing stdout associated with job events and ad hoc command events.
...
* New event types for stdout lines not associated with a callback event.
* New stdout, start_line, end_line and verbosity fields for job/ahc events.
* Callback plugins to wrap Ansible default/minimal stdout callbacks and embed callback event data using ANSI escape sequences.
* Callback plugin library to wrap ansible.display.Display class methods.
* Output filter to extract event data from stdout and create job/ahc events.
* Update stdout formats to strip new ANSI escape sequences.
2016-10-28 21:58:24 -04:00
AlanCoding
1fec29dcb3
remove awx.compat, since it looks like it is not necessary
2016-10-26 17:22:03 -04:00
Chris Meyers
358bc31450
remove metric
2016-05-10 14:18:05 -04:00
Matthew Jones
5d21ad5ae6
Fix up statsd work to support python 2.6
...
Format specifiers must include field specifier
2016-02-02 09:58:19 -05:00
Matthew Jones
c7fd21ae52
Fix up flake8 and unit test failures
...
* Make sure we default to localhost to not fail at the GAI check
* Cleanup some flake8 issues in the metrics module
2016-01-29 13:59:37 -05:00
Joshua "jag" Ginsberg
f25b76aee9
Integrate statsd metrics into ansible playbook execution.
...
* Add dependencies for pystatsd and django-statsd-mozilla
* Default turned off except for development environment
* Modify docker-compose to install statsd/graphite host
2016-01-26 16:54:24 -05:00
Chris Meyers
fa1643e330
all vendor dependencies expressed in requirements.txt
2015-08-05 08:10:16 -04:00
Chris Meyers
9ee9d9031a
fixes stoud formats unicode problem
2015-07-24 14:50:36 -04:00
Bill Nottingham
1d951fa9cc
Further normalization of names.
2015-07-10 01:25:26 -04:00
Bill Nottingham
afbbec6ee5
Fix up vendored package README
...
Fix a couple of typos to properly reflect package name and path.
Add vendored deps added when adding VMware & GCE support.
Add vendored deps added when vendoring pywinrm.
2015-07-09 23:56:52 -04:00
Chris Meyers
0344a801fe
consider 127.0/8 LOOPBACK
2015-06-23 10:53:07 -04:00
Chris Meyers
d1c361021a
add IPy python library to deal with ip addresses
2015-06-23 10:36:23 -04:00
John Mitchell
32d1c0e4db
fixed copyright date
2015-06-11 16:10:23 -04:00
Matthew Jones
b3da3b34a3
Changing some legal headers for python source files
2015-05-29 12:10:39 -04:00
Matthew Jones
6d3bd2500a
Remove spuriously added keystone client package info file
2015-05-26 13:46:07 -04:00
James Laska
e973711a84
Reapply "make shade python2.6 safe for our inventory update"
...
This reverts commit a977f9619ba2b42fb9b5a23824644b07b26214f2.
2015-05-26 11:05:39 -04:00
Matthew Jones
b2b05d9212
Import dist-info directories for various openstack libs, otherwise pbr
...
can't find the versions and that causes errors
2015-05-26 10:42:51 -04:00