Ryan Petrello
7880f83d97
don't send WWW-Authenticate: Basic for AJAX, and properly detect 401
2018-06-26 08:40:21 -04:00
Ryan Petrello
813a3be2b8
always specify cloud: True/False for JT/job credential summary
2018-06-21 11:16:35 -04:00
Ryan Petrello
c7125a335a
filter jt.summary_fields.credential.credential_type from /api/v1/
2018-06-21 11:03:23 -04:00
Ryan Petrello
83ecea2377
don't show summary_fields.credential.credential_type_id on /api/v1/
2018-06-21 09:19:47 -04:00
Ryan Petrello
78f6907c1b
don't show inventory_source/update.related.credentials in /api/v1/
2018-06-20 17:21:08 -04:00
Ryan Petrello
ff2f7aa950
expedite the heartbeat when an isolated node is registered
2018-06-19 15:37:02 -04:00
Ryan Petrello
471ff69257
stop setting celery's hostname dynamically (it's passed via the cli)
2018-06-19 12:16:00 -04:00
Ryan Petrello
ef6433c6f9
Revert "fix celery task reaper"
...
This reverts commit 1359208a99 .
2018-06-18 16:18:20 -04:00
Ryan Petrello
eb9083c447
allow the bundled ansible virtualenv to be selected on JT/Proj
...
see: https://github.com/ansible/awx/issues/34
2018-06-18 14:33:09 -04:00
Ryan Petrello
427271f791
fix busted migrations
2018-06-15 20:38:57 -04:00
Ryan Petrello
45fb262556
fix a bug in JobTemplate.extra_credentials summary_fields
...
see: https://github.com/ansible/tower/issues/2184
2018-06-15 12:19:40 -04:00
Ryan Petrello
0bcbccba33
enforce True or False for boolean credential injectors
...
see: https://github.com/ansible/tower/issues/2038
2018-06-14 12:34:54 -04:00
Ryan Petrello
84eacfc360
fix a few isolated dev issues
...
the main goal of this change is to make `make docker-isolated` work out
of the box
- specify the proper version for awx-expect --version
- update some deprecated playbook bits
- change the isolated container to privileged so bwrap will work
- fix awx-manage test_isolated_connection
- expedite the first isolated heartbeat so you don't have to wait 10m;
this is accomplished by _not_ setting Instance.last_isolated_check to
now() at insertion time (which causes the next check not to happen for
10 minutes)
- fix a bug that caused isolated node execution to fail when bwrap was
enabled
see: https://github.com/ansible/tower/issues/2150
This reverts commit 9863fe71dc .
2018-06-13 14:17:58 -04:00
Ryan Petrello
c3bda8e259
properly detect settings.AUTHENTICATION_BACKEND changes for SSO logins
...
see: https://github.com/ansible/tower/issues/1979
2018-06-12 15:24:09 -04:00
Ryan Petrello
1733a20094
make sdb-listen work for docker-compose-cluster
...
use a different port range for each container, because docker can't map
them all to the same port range
2018-06-12 13:57:28 -04:00
Ryan Petrello
d0d7bf5c21
more gracefully handle fact cache failures for hosts that contain /
...
see: https://github.com/ansible/awx/issues/1977
related: https://github.com/ansible/ansible/issues/41413
2018-06-11 15:38:09 -04:00
Ryan Petrello
62c5784833
fix failing flake8
2018-06-11 15:21:47 -04:00
Ryan Petrello
88e3c46810
add a background process to spot celery hangs and reload the worker pool
...
see: https://github.com/ansible/tower/issues/2085
2018-06-11 12:22:21 -04:00
Ryan Petrello
195aff37ad
default instance capacity to zero at registration/insertion time
...
if the first health check fails due to AMQP or celery issues, the
capacity will stay at the default of 100 (which is confusing)
see: https://github.com/ansible/tower/issues/2085
2018-06-07 11:42:31 -04:00
Ryan Petrello
d0249d3ae6
sprinkle more i18n for certain field labels
...
see: https://github.com/ansible/tower/issues/2063
2018-06-06 14:06:34 -04:00
Ryan Petrello
97fc745329
fix a setting help text typo
2018-06-04 16:28:26 -04:00
Ryan Petrello
581756527e
fix an i18n-related bug that affects non-English hipchat users
...
see: https://github.com/ansible/tower/issues/951
2018-06-04 15:02:27 -04:00
Ryan Petrello
6183e5166d
fix a failing timezone test
2018-06-01 09:51:42 -04:00
Ryan Petrello
99d2f3ea34
allow Jinja2 in ansible -a when ALLOW_JINJA_IN_EXTRA_VARS is 'always'
2018-05-31 11:49:50 -04:00
Ryan Petrello
9bc871db47
add a test for tower inventory syncs
2018-05-30 15:13:49 -04:00
Ryan Petrello
354b076956
clean up Tower inventory error handling
...
related: https://github.com/ansible/tower/pull/1697
related: https://github.com/ansible/tower-qa/pull/1746
2018-05-30 13:34:14 -04:00
Ryan Petrello
c369d44518
use the _correct_ argument to specify poll vs select
2018-05-29 11:25:08 -04:00
Ryan Petrello
7f7f635f7b
upgrade to the latest pexpect
...
see: https://github.com/pexpect/pexpect/pull/492
see: https://github.com/ansible/tower/issues/1797
2018-05-29 09:52:59 -04:00
Ryan Petrello
af7ec17ccd
fix a few minor issues that have broken the User Token creation
...
see: https://github.com/ansible/tower/issues/1928
2018-05-25 17:37:02 -04:00
Ryan Petrello
e03c584b80
mark dynamic Credential Type labels and help_text for i18n
...
see: https://github.com/ansible/tower/issues/1960
related: https://github.com/ansible/ansible-tower/pull/6844
2018-05-25 15:08:11 -04:00
Ryan Petrello
a0433773d8
don't allow Accept:application/json on /api/login/
...
see: https://github.com/ansible/tower/issues/1672
2018-05-25 14:21:22 -04:00
Ryan Petrello
870adc14f9
fix a bug in the instance policy algorithm when both min and % are used
...
see: https://github.com/ansible/tower/issues/897
2018-05-24 12:28:46 -04:00
Ryan Petrello
c9c7a4b8f4
fix a few broken network UI tests
2018-05-24 09:46:35 -04:00
Ryan Petrello
37264d9d21
rename some tests from unit -> functional
2018-05-24 09:27:34 -04:00
Ryan Petrello
3abdf66794
run network ui tests in shippable and Jenkins
2018-05-24 09:07:53 -04:00
Ryan Petrello
63f089c712
allow any authenticated user to access the schedule preview API endpoint
...
see: https://github.com/ansible/tower/issues/1939
2018-05-23 16:51:58 -04:00
Ryan Petrello
d8f86ecba0
add help text for the new custom_virtualenv field
...
see: https://github.com/ansible/tower/issues/1866
2018-05-23 16:19:59 -04:00
Ryan Petrello
28a42850a2
allow AUTH_LDAP_USER_FLAGS_BY_GROUP to specify an OR'd list for a flag
...
see: https://github.com/ansible/tower/issues/968
2018-05-23 14:45:46 -04:00
Ryan Petrello
f434196bae
store denormalized metadata about ActivityStream.actor for accounting
...
see: https://github.com/ansible/tower/issues/1782
2018-05-23 09:47:26 -04:00
Ryan Petrello
d493a4e0d0
revert expect(use_poll=True) due to a bug that causes os.read() hangs
...
There's a bug in the implementation in pexpect:
pexpect/pexpect#491
Issues that could be related to this:
ansible/awx#1870
ansible/awx#1840
Rolling this back will cause #861 to no longer be "fixed". We'll have to solve it another way, or wait for pexpect to fix the poll bug.
2018-05-21 12:42:20 -04:00
Ryan Petrello
4abac44411
prevent unicode in instance hostnames and instance group names
...
see: https://github.com/ansible/tower/issues/1721
2018-05-18 16:28:43 -04:00
Ryan Petrello
51f66b8c0a
filter /api/v2/users/N/tokens/ to only show tokens for _that_ user
...
see: https://github.com/ansible/tower/issues/1773
2018-05-17 15:44:35 -04:00
Ryan Petrello
b6923bdbeb
speed up a handful of really slow stdout tests
...
before: 59 passed in 95.20 seconds
after: 59 passed in 11.09 seconds
2018-05-17 13:27:18 -04:00
Ryan Petrello
53ef9ed288
never convert ANSI codes to HTML for format /stdout/?format=json
...
see: https://github.com/ansible/awx/issues/1863
2018-05-16 11:20:55 -04:00
Ryan Petrello
39cb1cb60c
fix a nuanced parsing bug in naive UNTIL= parsing
2018-05-16 09:35:04 -04:00
Ryan Petrello
db1a669c68
work around a django-polymorphic bug that breaks certain cascades
...
see: #1794
2018-05-15 16:55:37 -04:00
Ryan Petrello
d5fbb2d3b6
remove md5 password hashing in dev
2018-05-15 14:57:47 -04:00
Ryan Petrello
3ab7f06f95
run scm inv syncs at the project root so relative imports work w/ bwrap
...
see: https://github.com/ansible/tower/issues/1357
2018-05-15 12:00:37 -04:00
Ryan Petrello
05b0c5ec6f
censor OAuth tokens from activity stream deletion records
...
see: https://github.com/ansible/tower/issues/1772
2018-05-15 09:16:37 -04:00
Ryan Petrello
357a735e56
fix a bug that prevented JT admins from editing diff mode
...
see: https://github.com/ansible/tower/issues/801
2018-05-14 16:01:36 -04:00
Ryan Petrello
5b55e3cb2b
fix a bug that prevented JT admins from editing custom virtualenvs
...
see: https://github.com/ansible/tower/issues/1754
2018-05-14 14:12:22 -04:00
Ryan Petrello
bb3b19e174
truncate certain event fields when they are overly long
...
see: https://github.com/ansible/tower/issues/1775
2018-05-14 14:02:17 -04:00
Ryan Petrello
c52eb0f327
provide a naive UNTIL= datestamp for schedules for UI convenience
2018-05-09 15:51:52 -04:00
Ryan Petrello
056933e33e
refactor naive UNTIL= coercion
2018-05-09 15:00:48 -04:00
Ryan Petrello
00ae91dace
slight cleanup and refactor of Schedule.timezone property
2018-05-08 08:28:51 -04:00
Ryan Petrello
441e5cc9c2
allow naive UNTILs to be specified for schedule rrules
2018-05-07 13:00:01 -07:00
Ryan Petrello
fbe2391b86
provide the timezone so that the UI doesn't have to
...
this will also ensure that UI doesn't use a different front end library
that will yield different results than the underlying Python code
2018-05-07 13:00:01 -07:00
Ryan Petrello
30af0a1b44
don't run scheduled jobs if there isn't a valid license
2018-05-02 11:52:51 -04:00
Ryan Petrello
c8e416f0b7
restore the celery hostname
2018-04-27 11:40:58 -04:00
Ryan Petrello
1eb5e98743
Merge branch 'release_3.2.4' into release_3.3.0
2018-04-26 11:10:28 -04:00
Ryan Petrello
f0d3713e99
use select.poll() instead of select.select() for file descriptors
...
see: https://github.com/ansible/tower/issues/861
see: https://github.com/pexpect/pexpect/pull/474
2018-04-25 16:29:55 -04:00
Ryan Petrello
0bc5665e92
remove the legacy fact cleanup system template
...
see: https://github.com/ansible/tower/issues/1021
2018-04-25 14:20:19 -04:00
Ryan Petrello
c98ede2f27
fix a bug in custom virtualenv when Project.organization is None
...
see: https://github.com/ansible/tower/issues/1490
2018-04-24 16:53:10 -04:00
Ryan Petrello
19d5d71937
unpin botocore now that an upstream dependency issue is resolved
...
related: https://github.com/ansible/awx/commit/4f585dd09e35c2ab1011e8ea93e6533be8877329
related: https://github.com/boto/botocore/pull/1433
2018-04-23 14:43:09 -04:00
Ryan Petrello
f8211b0588
add more edge case handling for yaml unsafe marking
2018-04-19 09:16:22 -04:00
Ryan Petrello
835f2eebc3
make extra var YAML serialization more robust to non-dict extra vars
2018-04-17 15:39:37 -04:00
Ryan Petrello
fe47b75aad
use a three-prong setting for Jinja extra vars policy
2018-04-17 12:08:07 -04:00
Ryan Petrello
7304301948
don't bother building a safe extra vars namespace; it's a file path now
2018-04-17 10:24:14 -04:00
Ryan Petrello
7074dcd677
don't allow usage of jinja templates in certain ansible CLI flags
...
see: https://github.com/ansible/tower/issues/1338
2018-04-17 09:20:05 -04:00
Ryan Petrello
88c243c92a
mark all unsafe launch-time extra vars as !unsafe
...
see: https://github.com/ansible/tower/issues/1338
see: https://bugzilla.redhat.com/show_bug.cgi?id=1565865
2018-04-16 16:47:44 -04:00
Ryan Petrello
b1028a2e0a
fix a bug preventing custom credential templates from including unicode
...
see: https://github.com/ansible/tower/issues/1266
2018-04-09 17:08:10 -04:00
Ryan Petrello
18c95bf706
add exception handling to deprecated v1 credential support
...
see: https://github.com/ansible/tower/issues/1268
2018-04-09 14:23:43 -04:00
Ryan Petrello
ba66996add
missing import for celery failure handler
2018-04-09 09:10:50 -04:00
Ryan Petrello
4c0096a524
implement celery failure logging using CELERY_ANNOTATIONS
...
see: https://github.com/ansible/awx/issues/1720
see: https://github.com/ansible/tower/issues/1190
2018-04-06 11:23:23 -04:00
Ryan Petrello
5f01d26224
automatically encrypt/decrypt main_oauth2application.client_secret
...
see: https://github.com/ansible/awx/issues/1416
2018-04-04 15:35:24 -04:00
Ryan Petrello
4b518298a6
remove old crusty test fixtures
2018-04-04 09:32:17 -04:00
Ryan Petrello
0db24a5c97
more gracefully account for undefined stdout
...
see: https://github.com/ansible/tower/issues/1215
related: https://github.com/ansible/tower/pull/1192#issuecomment-377982131
2018-04-04 08:29:57 -04:00
Ryan Petrello
31a0eab880
add more custom credential type env blacklist items
...
see: https://github.com/ansible/tower/issues/1224
2018-04-03 15:44:44 -04:00
Ryan Petrello
5fd5c95a1d
only record task.args in the callback plugin if DISPLAY_ARGS_TO_STDOUT
...
see: https://github.com/ansible/awx/issues/1633
2018-04-03 10:52:55 -04:00
Ryan Petrello
f8c40cc26f
properly support v2_playbook_on_notify in ansible 2.5+
...
see: https://github.com/ansible/awx/issues/1705
see: https://github.com/ansible/tower/issues/1205
related: https://github.com/ansible/ansible/pull/32633
2018-04-03 08:53:13 -04:00
Ryan Petrello
c1cc92afa0
properly filter disabled hosts on smart inventory composition
...
see: #1053
related: https://github.com/ansible/tower/pull/1155
2018-03-28 17:02:32 -04:00
Ryan Petrello
23267bce38
properly filter disabled hosts on smart inventory composition
...
see: https://github.com/ansible/tower/issues/1053
2018-03-28 15:16:26 -04:00
Ryan Petrello
21d629531f
remove an RRULE parsing bug fix that landed upstream in python-dateutil
...
related: a2a246a834
2018-03-26 18:02:52 -04:00
Ryan Petrello
a2a246a834
update to a newer python-dateutil with more bug fixes we were vendoring
...
related: dateutil/dateutil#649
2018-03-26 17:12:01 -04:00
Ryan Petrello
35e38760aa
properly sanitize module arguments with no_log (like uri:password)
...
this will _not_ sanitize playbooks that have secrets hard-coded *in* the
playbook - for that, people will need to use Vault or a variable/lookup
see: https://github.com/ansible/tower/issues/1101
see: https://github.com/ansible/awx/issues/1633
2018-03-23 11:15:37 -04:00
Ryan Petrello
61aafe15d6
fix busted shippable builds
2018-03-22 16:56:04 -04:00
Ryan Petrello
f59f47435b
send job notification templates _after_ all events have been processed
...
see: https://github.com/ansible/awx/issues/500
2018-03-22 09:30:41 -04:00
Ryan Petrello
6a96e6a268
dynamically set worker autoscale max_concurrency based on system memory
2018-03-21 11:10:48 -04:00
Ryan Petrello
918f372c20
add uwsgitop as a dependency
...
see: https://github.com/ansible/ansible-tower/issues/7966
2018-03-19 08:53:30 -04:00
Ryan Petrello
4f585dd09e
pin botocore to avoid dependency hell re: latest python-dateutil
...
boto decided to pin python-dateutil on a version _lower than_ what we
need for the TZID= bug fix:
https://github.com/boto/botocore/commit/90d7692702be1a423af15e0f49b58365f2a400f2#diff-b4ef698db8ca845e5845c4618278f29a
2018-03-16 16:08:03 -04:00
Ryan Petrello
44adab0e9e
bump python-dateutil to latest
...
this change provides support for numerous bug fixes, along with
support for parsing TZINFO= from rrule strings
related: https://github.com/ansible/ansible-tower/issues/823
related: https://github.com/dateutil/dateutil/issues/614
2018-03-12 12:20:03 -04:00
Ryan Petrello
a61187e132
restrict API filtering on oauth-related fields
...
related: https://github.com/ansible/awx/issues/1354
2018-03-12 09:16:37 -04:00
Ryan Petrello
397b9071a6
properly categorize OAuth2 endpoints for swagger autogen
2018-03-09 15:07:50 -05:00
Ryan Petrello
8955e6bc1c
normalize custom_virtualenv empty values to null
...
see: https://github.com/ansible/ansible-tower/issues/7923
2018-03-05 17:05:10 -05:00
Ryan Petrello
8887be5952
add validation to InventorySource.inventory to avoid task manager death
...
see: https://github.com/ansible/awx/issues/1438
2018-03-05 14:40:57 -05:00
Ryan Petrello
13672cc88c
fix busted shippable builds
2018-03-05 14:16:42 -05:00
Ryan Petrello
b9ab06734d
don't inject custom extra_vars for inventory updates
...
see: https://github.com/ansible/awx/issues/1366
2018-02-27 16:10:23 -05:00
Ryan Petrello
d743b77353
replace our rdb tooling w/ the sdb PyPI package
2018-02-26 19:05:50 -05:00
Ryan Petrello
7741de5153
set $HOME via an API call so AWX_TASK_ENV isn't marked as readonly
...
see: https://github.com/ansible/awx/issues/1315
2018-02-26 16:35:36 -05:00
Ryan Petrello
35f629d42c
Revert "changes to license compliance"
...
This reverts commit 218dfb680e .
2018-02-22 15:02:33 -05:00