Commit Graph

485 Commits

Author SHA1 Message Date
AlanCoding
34a8e0a9b6 Feature: saved launchtime configurations
Consolidate prompts accept/reject logic in unified models
Break out accept/reject logic for variables
Surface new promptable fields on WFJT nodes, schedules

Make schedules and workflows accurately reject variables
  that are not allowed by the prompting
  rules or the survey rules on the template

Validate against unallowed extra_data in system job schedules
Prevent schedule or WFJT node POST/PATCH with unprompted data
Move system job days validation to new mechanism
Add new psuedo-field for WFJT node credential
Add validation for node related credentials
Add related config model to unified job
Use JobLaunchConfig model for launch RBAC check

Support credential overwrite behavior with multi-creds
  change modern manual launch to use merge behavior
Refactor JobLaunchSerializer, self.instance=None
Modularize job launch view to create "modern" data
Auto-create config object with every job
Add create schedule endpoint for jobs
2017-12-08 13:38:54 -05:00
AlanCoding
2c06bfc9ce fix inventory import bug with enabled_var 2017-11-29 14:12:03 -05:00
Ryan Petrello
28ce9b700e replace all Job/JT relations with a single M2M credentials relation
Includes backwards compatibility for now-deprecated .credential,
.vault_credential, and .extra_credentials

This is a building block for multi-vault implementation and Alan's saved
launch configurations (both coming soon)

see: https://github.com/ansible/awx/issues/352
see: https://github.com/ansible/awx/issues/169
2017-11-14 12:49:12 -05:00
Wayne Witzel III
58737a8e28 Using metavar with a flag is not allowed or useful 2017-11-13 16:05:54 -05:00
Wayne Witzel III
768a3f62f1 Fix mgmt cmds, use real types not strings 2017-11-13 15:32:31 -05:00
Wayne Witzel III
de376292ba Update management commands 2017-11-09 17:18:18 -05:00
AlanCoding
90f63774f4 flake8: comply with new E722 rule 2017-10-23 14:36:48 -04:00
Chris Meyers
9cc4520a34 Merge pull request #409 from chrismeyersfsu/replay_job_events
add job event replay awx-manage command
2017-10-13 09:39:28 -04:00
Chris Meyers
62987196cb add speedup support to event replay and stats
* add tests
* add verbosity support
2017-10-13 09:25:18 -04:00
Chris Meyers
e19a57c50a add job event replay awx-manage command
* awx-manage replay_job_event --job_id <id>
2017-10-12 09:40:30 -04:00
Matthew Jones
6fa283fc98 Merge branch 'release_3.2.0' into devel
* release_3.2.0: (66 commits)
  fix workflow maker lookup issues
  adding extra logic check for ansible_facts in smart search
  adding "admin_role" as a default query param for insights cred lookup
  changing insights cred lookup to not use hard coded cred type
  fix rounding of capacity percentage
  Catch potential unicode errors when looking up addrinfo
  fixing typo with adding query params for instance groups modal
  move percentage capacitty to variable
  Add unit test for inventory_sources_already_updated
  Check for inventory sources already updated from start args
  Fixed inventory completed jobs pagination bug by setting default page size
  Remove the logic blocking dependent inventory updates on callbacks
  fix instance group percentage
  Remove host-filter-modal import
  Fix partial hover highlight of host filter modal row
  Removed leading slash on basePath
  Fixed host nested groups pagination
  Added trailing slash to basePath
  Fixed nested groups pagination
  Fixed host_filter searching related fields
  ...
2017-10-10 16:09:43 -04:00
Alan Rominger
4c0fd573c6 Merge pull request #459 from AlanCoding/special_treatment
always ignore deprecated_group if in groups
2017-09-25 13:35:55 -04:00
AlanCoding
647d272a31 handle additional cases of inv script output 2017-09-25 12:20:21 -04:00
AlanCoding
a4a17fe14c always ignore deprecated_group if in groups
If overwrite=True for an inventory source import, then this matters
creating a new inventory source through v1 API will not include
deprecated_group inside of the InventorySource groups m2m related
connection, but migrations from 3.1 will

In those migrated cases, this code will leave the deprecated_group
untouched, so as to not trigger its cascade delete
2017-09-25 11:22:12 -04:00
AlanCoding
f1219ea001 add back logic to recall script for hostvars 2017-09-20 15:31:13 -04:00
AlanCoding
80a944dd31 add back logic to recall script for hostvars 2017-09-20 13:20:04 -04:00
Matthew Jones
64415872a0 Merge branch 'release_3.2.0' into devel 2017-09-18 10:55:45 -04:00
Chris Meyers
a08a158672 remove azure 2017-09-18 10:35:32 -04:00
Mike McMahon
0cd34c1498 jobs take count of gte cutoff, process only lt cutoff
Signed-off-by: Mike McMahon <mike.mcmahon@wavefront.com>
2017-09-08 18:46:52 -07:00
Mike McMahon
399e0e5e24 switching to iterator and adding the missed Job cleanup
Signed-off-by: Mike McMahon <mike.mcmahon@wavefront.com>
2017-09-08 18:37:59 -07:00
AlanCoding
42ee804464 add help for instance provisioning 2017-09-08 14:36:17 -07:00
Mike McMahon
023431165a fixing missing colon and missing variable usage
Signed-off-by: Mike McMahon <mike.mcmahon@wavefront.com>
2017-09-07 14:03:18 -07:00
Mike McMahon
0388568ea0 Reduces the job to only looking at objects older than the cutoff date
Signed-off-by: Mike McMahon <mike.mcmahon@wavefront.com>
2017-09-07 13:41:43 -07:00
Ryan Petrello
6941df940f Merge pull request #360 from ryanpetrello/license_type_check
update the license check command to return license type, not validity
2017-08-30 09:12:44 -04:00
Ryan Petrello
beae7ffa20 update the license check command to return license type, not validity
we care about preventing upgradability from AWX installs w/ the open
source license, not general license validity

see: https://github.com/ansible/ansible-tower/issues/6555
2017-08-29 15:25:32 -04:00
AlanCoding
9d91875832 set flag to fail imports on errors 2017-08-29 14:36:53 -04:00
AlanCoding
9ad34edc38 graceful killing of receiver worker processes 2017-08-15 12:13:47 -04:00
AlanCoding
8be1bea33a import os, fixing bug that forced SIGKILL 2017-08-15 06:32:21 -04:00
Ryan Petrello
9d931e7f7e don't run debug_tree for production inventory imports
the output of the `debug_tree` function is *very* verbose, and is most
useful for people who are debugging inventory import code

pexpect reads large stdout/stderr streams *very slowly*;
when verbosity is set to `DEBUG` for inventory imports, it's not
uncommon for this function to write 50MB+ of data into stderr, causing
pexpect to read over a pseudoterminal for 30+ minutes

see: https://github.com/ansible/ansible-tower/issues/7414#issuecomment-321615104
2017-08-10 16:25:37 -04:00
AlanCoding
d41d9a957e stubs and docs for management cmd renames 2017-08-07 15:27:23 -04:00
AlanCoding
79e2b995d2 initial git mv for management command renaming 2017-08-07 15:23:26 -04:00
AlanCoding
3cb986b2b0 do not use transaction.atomic where locks are also used 2017-08-07 14:29:44 -04:00
Chris Meyers
9b12d88e8c lay the foundation for checking license on upgrade 2017-08-02 12:24:58 -04:00
Aaron Tan
c44fe85fe2 Merge pull request #107 from jangsutsr/7334_make_up_missing_create_kwargs_for_inv_import
Make up missing create kwargs in inventory import
2017-08-01 20:32:26 -04:00
AlanCoding
2f8a7de6bd remove --hostnames option for registering nodes 2017-07-31 16:44:57 -04:00
Aaron Tan
48c3cfad9e Make up missing create kwargs in inventory import 2017-07-28 17:06:05 -04:00
AlanCoding
1112557c79 set capacity to 0 if instance has not checked in lately 2017-07-27 16:20:04 -04:00
AlanCoding
1e9a0e5814 Change 'can not' to cannot (by request) 2017-07-18 09:01:09 -04:00
Ryan Petrello
cb929ea4d8 Merge pull request #7077 from ryanpetrello/fix-7040
wrap instance and queue registration in postgres advisory locks
2017-07-14 15:05:14 -04:00
Ryan Petrello
d8da1dddf5 wrap instance and queue registration in postgres advisory locks
see: #7040
2017-07-14 14:56:14 -04:00
Matthew Jones
450baf2e8d Fix a dictionary reference when getting the license type on import 2017-07-14 14:08:51 -04:00
Matthew Jones
891f26c850 Fix an issue where an unlicensed system would throw errors
In the case where the license was entirely not present but the tower
license module was present
2017-07-14 10:21:26 -04:00
Christian Adams
f5bbccf0cd Merge pull request #6979 from rooftopcellist/IntegrityError
Fix IntegrityError on Source Update
2017-07-14 06:45:31 -07:00
adamscmRH
d065d5176e Removes redundant atomic transactions 2017-07-14 06:41:53 -07:00
adamscmRH
0d0c75c318 Change to update if already exists 2017-07-13 13:55:42 -04:00
adamscmRH
5a307dd62b Added defaults to get_or_create methods 2017-07-12 22:40:34 -04:00
adamscmRH
58bd747cb1 Fixes group & host integrity error 2017-07-12 14:06:17 -04:00
adamscmRH
e01d98f2a2 Fix IntegrityError on Source Update 2017-07-12 14:06:17 -04:00
Matthew Jones
8486944eaa Switch out existing obfuscated license with external module
This creates a new fallback license module called StubLicense that
will be used in the event that the tower_license module is not
installed.

All existing license mechanisms are routed through the get_licenser()
util method
2017-07-11 12:01:24 -04:00
Bill Nottingham
f8515857b2 Remove assorted references to Tower.
Reword and remove references to Tower so they don't need parameterized.
2017-07-05 16:42:47 -04:00