Commit Graph

1268 Commits

Author SHA1 Message Date
Chris Meyers
2dc22042ee flake8 fixes 2015-07-20 11:21:03 -04:00
Chris Meyers
fd3422437d Merge pull request #311 from chrismeyersfsu/fix-workload_generator4
use file fact scan data for file fact scan module scans
2015-07-17 10:24:52 -04:00
Chris Meyers
3a07c85898 use file fact scan data for file fact scan module scans 2015-07-13 15:27:23 -04:00
Matthew Jones
874c97f748 Purge some unneeded HA unit tests 2015-07-08 14:31:02 -04:00
Matthew Jones
5605ec9754 Adjust usage of is_ha_environment()
Limit it to just instance count and make sure we use it for the mongo check
2015-07-08 14:18:04 -04:00
Matthew Jones
9e6c604fc1 Remove extra output from doing a hard mongo shutdown. 2015-07-06 14:38:19 -04:00
Matthew Jones
4fd0fbda08 Invert the conditional checking for whether or not mongo is running 2015-07-06 14:28:27 -04:00
Matthew Jones
26af43dab6 Remove superflous sleep when shutting mongo down 2015-07-06 14:19:12 -04:00
Matthew Jones
9b03d22d75 Fixes to conditionally invoking mongo shutdown
* Make sure we are waiting on the service script
* Improve sudo configuration
* Check pidof before attempting to invoke a hard mongo shutdown
2015-07-06 14:15:41 -04:00
Matthew Jones
10f5308bd8 Fix version parsing of ansible to exclude newlines 2015-07-06 12:16:17 -04:00
Matthew Jones
5a77d1f0d4 Fix up mongo service handline and task logging
* Use -f instead of -c for mongod when refernecing config file
  for shutdown behavior in the stop task
* Fix up task logging to use new supervisor configuration syntax
2015-07-06 11:49:24 -04:00
Chris Meyers
8f804cf9fa python 2.6 compatible total_seconds 2015-06-29 16:55:56 -04:00
Matthew Jones
414394afa0 can not -> cannot (even though they are both correct) 2015-06-26 15:35:33 -04:00
Matthew Jones
05f56c805a Logic should check for the condition where HA is NOT enabled 2015-06-26 15:28:41 -04:00
Matthew Jones
80a6f22c0c Move HA license check logic to the promotion step and allow registering
HA instances.   Registration is allowed but promotion/demotion is not
allowed without the HA feature
2015-06-26 15:23:07 -04:00
Matthew Jones
237a661912 Fix verbage around why we are disallowing removing a primary 2015-06-26 15:22:35 -04:00
Chris Meyers
8095f88e38 Merge pull request #295 from chrismeyersfsu/feature-fact_cache_receiver_verbose_logging
added more logging for fact cache receiver
2015-06-24 16:32:02 -04:00
Chris Meyers
713f18438c added more logging for fact cache receiver 2015-06-24 14:07:18 -04:00
Chris Meyers
5eb4f51be9 Merge pull request #294 from chrismeyersfsu/feature-IPy
robust check for HA env setup
2015-06-24 09:21:26 -04:00
Matthew Jones
b45ea4f1f4 Force shutdown of mongo after requesting a service stop. Just in case. 2015-06-23 12:32:43 -04:00
Chris Meyers
4669c44af9 robust check for HA environment setup 2015-06-23 11:21:00 -04:00
Chris Meyers
41de9c9f9f flake8 2015-06-23 07:58:01 -04:00
Chris Meyers
bd61261454 when aging, use a more compact age to stay within username 30 char restriction 2015-06-22 13:06:50 -04:00
James Laska
6d6d9de379 Use the proper attr when saving instance name
Fixes: https://trello.com/c/24OoIyyf
2015-06-20 13:47:09 -04:00
Chris Meyers
39e508373f Merge pull request #288 from chrismeyersfsu/fix-workload_generator
works with scan -> inventory link
2015-06-19 09:26:04 -04:00
Chris Meyers
8381d7dbfa Merge pull request #286 from chrismeyersfsu/fix-license_expire_vs_existance
Differentiate between an expired license and a non-existant license
2015-06-19 09:25:27 -04:00
Chris Meyers
096ca10a1a works with scan -> inventory link 2015-06-19 08:23:17 -04:00
Chris Meyers
d2a555b752 non-celery invocations (command-line invocations) do not update the inventory_update object after completion 2015-06-17 12:36:07 -04:00
Chris Meyers
2b2126d8e1 create enterprise license file for fact api tests 2015-06-17 10:50:56 -04:00
Chris Meyers
fcc789f13b Differentiate between an expired license and a non-existant license 2015-06-16 15:59:23 -04:00
Chris Meyers
686312a427 fix fact cache reciever unit tests to use inventory_id in message 2015-06-16 13:11:09 -04:00
Chris Meyers
c076ba1669 flake8 2015-06-15 16:56:12 -04:00
Chris Meyers
8e3b33ee21 Added age_deleted command for support team 2015-06-15 16:06:54 -04:00
Chris Meyers
87824fa240 Replaced crafty logic that tried to detect the User but, wrongfully, matched Credential with explicit logic that, when cleaning up the User model, searches for the _del_ string in the username attribute. 2015-06-15 10:20:15 -04:00
Matthew Jones
d01e93535d Fixing flake8 issue 2015-06-15 09:36:04 -04:00
Matthew Jones
bb7af4e916 Merge pull request #277 from matburt/fix_inventory_read_jt_rbac
Check inventory access for normal users when deciding what job templates show up in the queryset
2015-06-12 16:04:34 -04:00
Matthew Jones
5d1b27e520 Adding some job template listing unit tests and permissions to actually
make those work
2015-06-12 14:43:24 -04:00
Chris Church
4607972135 Included openstack inventory script from core + changes from some open PRs, fixes to be able to use without custom changes for tower. 2015-06-12 00:58:33 -04:00
Chris Church
dfe4e0c694 Add unit test for azure inventory. 2015-06-12 00:52:57 -04:00
Chris Meyers
d5b7be3f4f Merge pull request #276 from chrismeyersfsu/fix-fact_inventory_relationship
associate scan runs with a particular inventory host
2015-06-11 20:55:13 -04:00
Matthew Jones
df61fd6ab8 Check inventory access for normal users when deciding what job templates
show up in the job template queryset
2015-06-11 16:24:54 -04:00
John Mitchell
32d1c0e4db fixed copyright date 2015-06-11 16:10:23 -04:00
Chris Meyers
0c7638bdd7 associate scan runs with a particular inventory host 2015-06-11 15:14:00 -04:00
Matthew Jones
bcc18aa689 Make using named pipe for adding passwords conditional on the version
of ssh used.
2015-06-11 14:48:10 -04:00
Matthew Jones
322fdc37a4 Remove some spurious print statements I left previously 2015-06-11 14:48:09 -04:00
Matthew Jones
f9ca5159e7 Fix up more copyright headers 2015-06-10 16:11:26 -04:00
Chris Meyers
f06c7e17f5 Merge pull request #273 from chrismeyersfsu/fix-job_launch_credential_permissions
restrict the set of valid, explicitly supplied credentials to be ones readable by the user
2015-06-10 08:37:25 -04:00
Matthew Jones
3c2f3f323a Fix some flake8 2015-06-09 16:07:06 -04:00
Matthew Jones
ab5c4b5f20 Check connection for scan jobs before actually running the job, fail
early if the system tracking database isn't available
2015-06-09 15:31:23 -04:00
Chris Meyers
df57f45baa Merge branch 'master' into fix-job_launch_credential_permissions 2015-06-08 14:40:50 -04:00