Commit Graph

4022 Commits

Author SHA1 Message Date
Chris Meyers
b3e20b843d more carefully add to python path
* ensure our path is the first in the sys.path list instead of
blindly poping and pushing onto the path
2015-09-04 13:43:24 -04:00
Matthew Jones
7774b17960 Unit test for ec2 credentialless inventory 2015-09-03 14:05:17 -04:00
Matthew Jones
15005d3e6b Fix issue with ec2 iam sync with no credential.
When checking if an inventory sync can start allow an ec2 sync to run
even if credentials are not supplied
2015-09-03 13:37:38 -04:00
Matthew Jones
f0a23b7ed3 Proper flake8 fix 2015-09-01 16:15:39 -04:00
Matthew Jones
4a5111308f Fix flake8 warning from tests 2015-09-01 15:23:35 -04:00
Matthew Jones
09f4c9fbbe Fixed job redaction for projects and unit tests 2015-08-31 16:24:38 -04:00
Matthew Jones
2f39393cf3 Implement fact receiver thread worker
Optionally allow processing of fact receiver messages in a worker
thread.  This works around an issue where data could take a while to
page into Mongo and cross the zmq socket timeout.
2015-08-28 10:59:52 -04:00
James Laska
51e2120886 Properly handle namespace packages (oslo, dogpile)
Using `site.addsitedir()` handles namespace packages, where the traditional
`sys.path.insert` does not.  Kudos to Chris Meyers for this discovery.
2015-08-26 21:33:57 -04:00
Matthew Jones
549809dfa4 Fix chunked stdout display issue
* We removed stdout redaction from jobs and job templates but only for
  the full stdout dump, this extends it to the limited display also
2015-08-25 16:05:03 -04:00
Chris Meyers
c038bdb1d5 flake8 fixes 2015-08-24 08:48:53 -04:00
Chris Meyers
38435648c6 Merge branch 'feature-offline_merge' into release_2.3 2015-08-21 16:21:12 -04:00
Matthew Jones
1471a3bb3e Allow proot's base tmp path to be configurable 2015-08-21 15:28:39 -04:00
Matthew Jones
7080996670 Cleanup stdout dump during 2.2 migration
postgres is adding extra newline/carriage return escapes to the stdout
output.  Here we'll use sed to fix those so they can be read correctly
2015-08-21 13:28:34 -04:00
Matthew Jones
4ce2300d27 Bump version number for 2.3.0 release 2015-08-21 11:55:19 -04:00
Matthew Jones
c5ce9cdc12 Fix stdout plaintext render
* Was rendering as json (though text/plain)
* Switched to rendering it as normal text with stripped ansi
* Fixes: https://trello.com/c/TMyOak0H/142-api-v1-jobs-n-stdout-format-txt-emits-json-output
2015-08-21 10:20:57 -04:00
Matthew Jones
f66ed43788 Bump version to 2.2.3 2015-08-19 13:26:55 -04:00
Matthew Jones
2bdc79f3ba Optimize inventory read check for Job Templates
Our old check used an extremely inefficient boolean logic AND and
generated a bad query.   This does a simpler check by querying the
inventories that the user has access to and using that as a simple
condition when performing the job template permission query
2015-08-19 13:26:10 -04:00
James Laska
853c2b09ee Make flake8 happy 2015-08-17 16:24:10 -04:00
James Laska
d30605d82d Fix import error by calling prepare_env first 2015-08-17 16:24:04 -04:00
Chris Meyers
99fb641b1b all vendor dependencies expressed in requirements.txt 2015-08-17 11:17:53 -04:00
James Laska
717f646430 Bump version to 2.2.2 2015-08-14 08:16:57 -04:00
Matthew Jones
ee8a76f32b Use smart_str instead of .encode on passwords
We originally tried to prune these .encode() calls out of the tree in
favor of smart_str but we must have missed this one.   This allows
migration 0066 to work if utf-8 characters are used in the password
2015-08-13 17:00:46 -04:00
Matthew Jones
d4dccff20c Change default sensitive redaction behavior
* Only project updates will contain sensitive data redaction logic when
  displaying stdout
2015-08-13 15:48:56 -04:00
Chris Church
6128ab3ff4 Add an error message when running a job and trying to use an OpenSSH formatted key on an older version of OpenSSH. 2015-08-11 16:54:54 -04:00
Matthew Jones
21acaa999d Handle Ubuntu 12.04 psutil recursive cancel
Ubuntu has a crazy old version of psutil, we'll fall back to sigkill for
that platform
2015-08-11 10:32:29 -04:00
John Mitchell
678fbd3328 fixed log viewer modal partial 2015-08-11 09:48:43 -04:00
John Mitchell
9105612c6a fixed alignment of download standard out button in modals 2015-08-10 15:43:00 -04:00
Jared Tabor
f7b0da7be5 About Tower version number fix
for parsing versions such as "2.3.0" and "2.3.0-0.git201507231538"
2015-08-10 10:02:45 -07:00
John Mitchell
642215f9f3 add standard out download button to various places in the UI 2015-08-07 11:23:12 -04:00
Matthew Jones
7484267186 Bump 2.2 branch to version 2.2.1 2015-08-07 11:19:09 -04:00
Chris Church
139a072afa Don't create a group that is its own parent when an EC2 tag has an empty value. Fixes https://trello.com/c/2zc0odvX 2015-08-06 21:31:56 -04:00
Chris Church
001127f8bd Limit max depth when building mapping of group depths to avoid hitting recursion limit. Fixes https://trello.com/c/2zc0odvX 2015-08-06 21:31:42 -04:00
Bill Nottingham
1982177248 Fix .ini web links for v2
This moved in the github repo.
2015-08-05 22:04:21 -04:00
Chris Church
f0010cc574 Add support for detecting encrypted openssh format private keys. Fixes https://trello.com/c/ZeVOXN5U 2015-08-05 22:03:20 -04:00
Matthew Jones
3b96c3ca52 Fix psutil usage on el6 for job cancel
psutil will fail to import on el6 due to not being able to access a
pseudo terminal.  This issues a SIGKILL to the proot process in order to
force the stop
2015-08-05 22:01:44 -04:00
Matthew Jones
31b8491d53 Set recursive on child process canceling
Sometimes ansible spawns many subprocesses that can get orphaned and
stuck if we only kill the direct descendent child processes
2015-08-05 22:00:27 -04:00
Chris Meyers
b01c2d2ad1 fixes stoud formats unicode problem 2015-08-05 21:59:05 -04:00
Matthew Jones
57778eb429 mock stdout unit test patch failure fix
Adjust some mock.patch behavior to match the new stdout behavior where
we need to check a file's size as well as its existence
2015-08-05 21:55:02 -04:00
Matthew Jones
b1c12ca120 Fix empty standard out behavior
Previously we could just check for the absence of the stdout file to
know we didn't yet/wouldn't ever have any stdout content.  Now that we
are creating the stdout file ahead of time and persisting it we need to
also check to see if the file contains any data.   This is also
necessary for some unit tests.
2015-08-05 21:54:23 -04:00
Matthew Jones
dc0d732ad4 Fix merge issues on stdout branch
The act of committing a PR that including part of these changes and then
reverting it meant that some of the changes from the original branch
didn't land in this new PR.   This commit adds the missing bits.

Lesson learned:  Create a new branch when submitting a PR on a
previously reverted PR
2015-08-05 21:53:46 -04:00
Matthew Jones
c0ea174e93 Rework stdout display for file storage only
* Cleanup old code related to stdout download using temporary files
* Remove copy-into-database code
* Modify stdout download code to reference stdout file
2015-08-05 21:52:47 -04:00
Joe Fiorini
4183f5acdc Remove accidental import from directive 2015-07-10 13:01:47 -04:00
Bill Nottingham
89bb4aa3fc Merge pull request #308 from wenottingham/vendor-branch
Fix up vendored package README
2015-07-10 11:28:37 -04:00
Joe Fiorini
c52ec1197b [system_tracking] Remove truncation of fact values
This is a temporary fix until we can get a permanent fix to the
performance issues we have with rendering this much data to the DOM. For
more info see my comment on https://trello.com/c/QrbeaZfK.
2015-07-10 11:22:40 -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
Joe Fiorini
069bb69b00 Fix truncate text directive to work as elements resize 2015-07-09 17:28:29 -04:00
John Mitchell
7c1c219ecb fixed smart status sorting to be locale friendly 2015-07-09 13:16:18 -04:00
Joe Fiorini
c52c9d1c8a [system_tracking] Fix issue with ng-if & truncated-text directives 2015-07-08 16:38:44 -04:00
Matthew Jones
874c97f748 Purge some unneeded HA unit tests 2015-07-08 14:31:02 -04:00