Commit Graph

2574 Commits

Author SHA1 Message Date
Chris Meyers 7f614a53db flake8 fix 2016-09-15 15:28:55 -04:00
Chris Meyers 77cc7f9d00 functional workflow test for issue #3498 2016-09-15 15:03:08 -04:00
Chris Meyers c35c2d9331 fix class method 2016-09-15 13:51:23 -04:00
Matthew Jones c6f87607f2 Shifting migrations after integration with devel for ha 2016-09-15 10:55:00 -04:00
Matthew Jones f5d2c5c18a Merge branch 'ramparts_and_ha' into devel
* ramparts_and_ha: (21 commits)
  Rename database migrations for devel integration
  Integrate callback receiver refactoring
  Fix an issue running jobs in the cluster
  Implement a more dynamic celery queue system
  Purge old munin monitors and tools
  Refactor Tower HA Instance logic and models
  Docker compose improvements
  Initial Docker Compose workflow for Tower cluster
  Add memcached role for setup playbook
  Removing qpid from deb packaging
  Refactor rabbitmq role
  Integrate memcached into setup playbook
  Remove mongodb shutdown task
  Remove dependency on erlang_sd_notify
  Add initial rabbitmq role
  Initial rabbitmq setup playbook integration
  Update development environment for rabbit
  Replace qpid with rabbitmq
  Remove redis role from setup playbook
  Update qpid packaging, remove migrations
  ...
2016-09-15 10:19:57 -04:00
Matthew Jones 574a0fde05 Rename database migrations for devel integration 2016-09-15 10:15:14 -04:00
Chris Meyers c3bb7521de Merge pull request #3474 from chrismeyersfsu/feature-workflows
workflows
2016-09-15 10:12:58 -04:00
Matthew Jones ab395b0009 Integrate callback receiver refactoring
* Drop ZMQ as the communication mechanism between job_event_callback and
  callback_receiver
* Setup queue and exchange for callback broker communication
* Refactor event plugin and callback receiver to efficiently handle
  message submission and processing
* Integrate django caching for parent processing
2016-09-14 11:42:13 -04:00
Chris Meyers 32461574ae add unit tests 2016-09-13 15:24:20 -04:00
Alan Rominger 43e399df81 Merge pull request #3370 from ansible/AlanCoding-patch-3
test_credential bug fixes
2016-09-13 09:56:43 -04:00
Chris Meyers 4dc5c33442 refactor to be more testable 2016-09-12 12:19:36 -04:00
Chris Meyers cea5ebadb7 split Node in job and job template node 2016-09-12 11:04:20 -04:00
Matthew Jones 807cced571 Implement a more dynamic celery queue system
* Meant to be a starting point to more efficiently manage work routing
  and to balance work across all tower nodes
* Integrate flower as a dev tool that starts alongside other nodes.
  Helpful for observing and monitoring the queues/exchanges
* For the moment, force the task manager to only run on one node (not
  sure if this is needed)
* Define queues and routes for all task work
* Bump celery version to 3.1.23
* Expose flower through haproxy
2016-09-09 15:18:18 -04:00
Chris Meyers e4025a7eff flake8 fixes 2016-09-08 14:26:30 -04:00
Matthew Jones 0c1e1fa2fb Refactor Tower HA Instance logic and models
* Gut the HA middleware
* Purge concept of primary and secondary.
* UUID is not the primary host identifier, now it's based mostly on the
  username.  Some work probably still left to do to make sure this is
  legit.  Also removed unique constraint from the uuid field.  This
  might become the cluster ident now... or it may just deprecate
* No more secondary -> primary redirection
* Initial revision of /api/v1/ping
* Revise and gut tower-manage register_instance
* Rename awx/main/socket.py to awx/main/socket_queue.py to prevent
  conflict with the "socket" module from python base
* Revist/gut the Instance manager... not sure if this manager is really
  needed anymore
2016-09-08 13:37:53 -04:00
Chris Meyers 28ec68e91b workflow dependency tests 2016-09-08 13:08:54 -04:00
Chris Meyers cae48cfb77 instantiate db with sample workflows 2016-09-08 13:04:56 -04:00
Chris Meyers 0e68481a85 consolidate workflow migration 2016-09-08 12:57:54 -04:00
Chris Meyers 83c5b3323f add workflow to unified endpoints 2016-09-02 09:04:49 -04:00
AlanCoding 26ce3a4773 avoid lookup of content_type for description when summarizing object_roles 2016-09-01 15:08:32 -04:00
Chris Meyers 39ac2c047b launch workflows 2016-09-01 14:11:20 -04:00
Jake McDermott f20185c113 Merge pull request #3389 from jakemcdermott/fix_role_unit_tests
fix skipped role unit tests
2016-09-01 09:44:49 -04:00
Jake McDermott d2407b549e fix skipped role unit tests 2016-08-31 21:07:36 -04:00
Matthew Jones f988877bae Merge branch 'stable' into devel
* stable: (24 commits)
  Updating changelogs for 3.0.2 release
  fixing deprecated_team.organization credential migration
  Fix issue when installing bundled ansible on el6
  fixed localed date stuff
  update test to check org_auditor access
  ensure team organizations are assigned to credentials
  temporarily pin the pytest version until the ldap error can be fixed
  fixed locale
  fix date locale angular scheduler
  Make sure org admins can see credential after migration, comment updates on related tests add clause in test to verify automatic setting of org of new team credential
  Update team admin credential migration test to current state-of-knowledge
  fix ng-toast rel, resolves #3197 (#3316)
  allow users to edit their first and last name
  Revert "Prevent ignored task from being displayed as failing."
  Revert "Modify job event save behavior"
  fixing old tests for new user creation permissions
  Clean venv on 'make clean'
  Resolve KeyError by coercing instance_id to a str
  Update cloudforms dynamic inventory
  Update foreman inventory script
  ...
2016-08-31 14:34:52 -04:00
Chris Meyers 2cfdee3b21 turn job templates in jobs via launch 2016-08-31 09:00:25 -04:00
Chris Meyers 4c876b40e4 initial models and endpoints added for workflows 2016-08-30 15:05:28 -04:00
Chris Meyers 27b9fb8dab refactor notifications 2016-08-30 14:36:18 -04:00
Wayne Witzel III fd9d05d5df fixing deprecated_team.organization credential migration 2016-08-30 14:21:16 -04:00
Alan Rominger 5e626cfe2e test_credential bug fixes
Credential detail view was looked up with the organization's primary key. Works fine when the database arbitrarily gives them both pk=1 in a isolated test, but not a great thing to depend on.
2016-08-29 15:54:45 -04:00
AlanCoding 38879d339b flake8 fix 2016-08-26 13:57:35 -04:00
Bill Nottingham cb69416799 Merge pull request #3348 from wenottingham/old-ansible-branch
Remove compatiblity code for pre-1.9 Ansible versions.
2016-08-26 12:14:54 -04:00
Matthew Jones 59aed7b318 Merge pull request #3343 from ansible/ramparts_and_ha
New Development Environment Workflow && Replacing Redis with qpid/memcached
2016-08-26 09:34:19 -04:00
Bill Nottingham c2f85d5bfb Remove compatiblity code for pre-1.9 Ansible versions. 2016-08-25 15:41:47 -04:00
Wayne Witzel III 18e4a33404 update test to check org_auditor access 2016-08-25 13:45:13 -04:00
Wayne Witzel III dbe3f628d4 ensure team organizations are assigned to credentials 2016-08-25 13:44:55 -04:00
Matthew Jones dcb4959443 Initial qpid development work
* Switch base tower devel image from u14.04 to c7
* Switch container image to build python dependencies into itself
  instead of forcing it to be built on startup
* Upgrade venv pip to 8.1.2
* Neuter queue.py which was heavily tied to redis and was basically
  orphaned code
* Alter local_settings to override default cache settings and use
  memcached
* Alter local settings to refer to qpid instead of redis for celery
  broker
* Purge redis python dependencies and add qpid and memcached
* Update docker-compose to purge redis and add qpid and memcached
2016-08-24 16:23:47 -04:00
AlanCoding 23024c8fad Make sure org admins can see credential after migration, comment updates on related tests
add clause in test to verify automatic setting of org of new team credential
2016-08-24 11:36:07 -04:00
jangsutsr 8576dcda19 Remove legacy exception handling. 2016-08-24 10:58:53 -04:00
jangsutsr c3f844cfe0 Add unit test. 2016-08-23 20:00:08 -04:00
Alan Rominger 75f513e591 Merge pull request #3324 from AlanCoding/3305_test_update
Update team admin credential migration test
2016-08-23 16:40:31 -04:00
Wayne Witzel III efa8496407 Merge pull request #3301 from wwitzel3/release_3.0.2
remove last_name and first_name from admin_only fields
2016-08-23 15:17:35 -04:00
Wayne Witzel III c963035178 Merge pull request #3302 from wwitzel3/fix-3153
prevent non-superusers from adding orphan users
2016-08-23 15:16:57 -04:00
AlanCoding bb3e370e56 Update team admin credential migration test to current state-of-knowledge 2016-08-23 14:14:48 -04:00
Wayne Witzel III 2fb386b23c allow users to edit their first and last name 2016-08-23 09:55:00 -04:00
jangsutsr 60b7309c08 Resolve extra vars display mix-up with passworded survey questions. 2016-08-22 16:33:03 -04:00
Matthew Jones 16fce59512 Revert "Modify job event save behavior" 2016-08-22 13:34:08 -04:00
Aaron Tan 0991e213cc Merge pull request #3252 from jangsutsr/2955_update_system_job_start_access
Update system job start access
2016-08-22 12:35:48 -04:00
Wayne Witzel III 706e98c392 fixing old tests for new user creation permissions 2016-08-19 18:54:56 -04:00
Aaron Tan 871ae0f5c7 Merge pull request #3307 from jangsutsr/3199_2_change_job_event_save_behavior
Modify job event save behavior
2016-08-19 16:20:13 -04:00
James Laska 08c4c9647b Resolve KeyError by coercing instance_id to a str
Related #3300
2016-08-19 15:37:28 -04:00