Commit Graph
100 Commits
Author SHA1 Message Date
Matthew Jones e6bcc039f2 Rearchitect project update strategy
* Instead of using a fanout for project updates initial project
  updates will sync the latest commit hash
* Prior to a node running a job it will ensure that the latest project
  is synced
2016-10-20 13:30:44 -04:00
Matthew Jones b906469b40 Add execution node information 2016-10-20 13:27:36 -04:00
Matthew Jones e8669b0cbf Support celeryd autoreloading for dev environment 2016-10-20 13:27:36 -04:00
Matthew Jones 2a844b9c42 Add api node request servicer to response headers 2016-10-07 11:40:44 -04:00
Matthew Jones 20b5aa7424 Fix some issues with management commands for clustering 2016-10-07 09:58:47 -04:00
Matthew Jones babe29ebfa Implement cluster health checks
* Add a local node queue to execute targeted jobs
* Add a setting for active cluster node id (per-node)
* Base the heartbeat time on the `modified` time on the Instance table
* Add periodic task that calls save() on the instance to update the
  heartbeat time if services are up
* Purge/update any ha/instance management commands
* Fix up CELERY_ROUTES settings data structure
2016-10-06 16:05:39 -04:00
Matthew Jones 4b57263adf Updates to clustering doc
* Notes about routing/dns
* Mention upgrade testing
2016-10-04 12:22:43 -04:00
Matthew Jones ff4d071be9 Adding/updating documentation for Cluster/HA Tower 2016-10-03 14:50:54 -04:00
Matthew Jones 959342a5fd Fixing up unit tests from HA/Clustering work
* Also purge old fact migration tests
* Upgrade some services on various container images
2016-10-03 10:40:30 -04:00
Matthew Jones be18737802 Merge branch 'ha_installer' into devel
* ha_installer:
  Fixing up some minor nits with ha setup playbook
  Update postgres yum/apt repo locations
  Add note about when to use short/long name
  Setup playbook modifications for HA/Ramparts
2016-09-29 12:29:25 -04:00
Matthew Jones a648beba90 Rev django security version 2016-09-29 12:03:06 -04:00
Matthew Jones 6b0e337886 Update postgres yum/apt repo locations
*Thanks postgres team
2016-09-29 11:25:08 -04:00
Matthew Jones a4ec0739ea Temporarily disable instance id gathering
During requests
2016-09-16 15:21:42 -04:00
Matthew Jones d8ea0920c5 Update configuration and playbook for rabbitmq
* Purge remaining zeromq settings
* Make sure we have CALLBACK_QUEUE defined where needed
* Update setup playbook to not be tied to old ha primary/secondary concept
2016-09-16 11:35:46 -04:00
Matthew Jones 3de4aae548 Fixing up HA induced flake8 issues 2016-09-15 13:51:17 -04:00
Matthew Jones 2872409271 Integrate rabbitmqctl interface to cluster and standalone containers 2016-09-15 12:07:16 -04:00
Matthew Jones c6f87607f2 Shifting migrations after integration with devel for ha 2016-09-15 10:55:00 -04:00
Matthew Jones 3255a17856 Exposing rabbitmq management console interface on compose 2016-09-15 10:46:45 -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
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
Matthew Jones 799f321760 Fix an issue running jobs in the cluster
The old VENV_PATH settings were still in place
2016-09-12 10:43:40 -04:00
Matthew Jones 988bbc4f4f Purge more qpid configuration 2016-09-12 09:50:42 -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
Matthew Jones 13a0fd749f Purge old munin monitors and tools 2016-09-09 15:17:16 -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
Matthew Jones eafb6c92b5 Docker compose improvements
* Make sure we explicitly set a hostname for tower nodes
* Switch rabbit vhost to use the root
2016-09-08 11:02:51 -04:00
Matthew Jones ebf103f345 Initial Docker Compose workflow for Tower cluster
The goal is to share a common pattern with the existing development work
2016-09-08 10:18:14 -04:00
Matthew Jones 27ab6705e7 Merge branch 'ramparts_and_ha' into devel
* ramparts_and_ha:
  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
  Integrate packaging for qpid/memcached
2016-09-06 09:47:11 -04:00
Matthew Jones f3b7fe18ce Integrate memcached into setup playbook 2016-09-01 11:41:20 -04:00
Matthew Jones 95563c7637 Add Inventory and Project Update list endpoints 2016-08-31 16:17:22 -04:00
Matthew Jones f0b7622672 Update development environment for rabbit 2016-08-31 14:47:20 -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
Matthew Jones 48e15d98b5 Merge branch 'release_3.0.2' into stable
* release_3.0.2: (150 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:30:58 -04:00
Matthew Jones 116e40dbe7 Fix some venv issues related to the new dev env 2016-08-30 14:21:11 -04:00
Matthew Jones c112fc3cf4 Update qpid packaging, remove migrations
* Remove old system migrations
* Update qpid install deps for RH
2016-08-30 10:46:13 -04:00
Matthew Jones 3f0311a969 Integrate packaging for qpid/memcached
Also

* Remove redis packaging
* Fix typo in contributing
2016-08-26 14:59:43 -04:00
Matthew Jones 3382736e70 Put some redis reqs back in until we make the packaging changes 2016-08-25 12:03:33 -04:00
Matthew Jones b507dc53ea Putting a bow on some of the new dev workflow
* Documentation of the developer variety
* Defaulting the COMPOSE_TAG to develop, can be overridden
* Automatic docker login assuming gcr login
* Including a manual build step as an alternative to gcr
* Make qpid container shut the f**k up when it's running
2016-08-25 11:57:31 -04:00
Matthew Jones c8e2f73d48 Support pulling the dev container image from gcr
This will be branch-relative.  If you are ont he `devel` branch then it
will pull that tag, it will try to pull the branch you are on and can be
overridden with the COMPOSE_TAG environment variable
2016-08-24 22:45:20 -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
Matthew Jones 8893f8278a Merge branch 'release_3.0.2' into devel
* release_3.0.2: (126 commits)
  Disable permissions tab in Credential > Edit form if Credential is private (#3288)
  Tweaked the popover text for job and skip tags on JT add/edit
  Workaround a cascade setnull polymorphic issue
  flake8
  Fixed old test expectations
  Made it so the credential organization field can't be changed
  Skip some unit tests
  Fixed org auditor visibility of team credentials
  Fix sosreport
  fix credential kind options for list
  interpret any code below 300 as success
  bail when status code is over 300
  Make CloudForms inventory_script work
  Use no_log when handling passwords
  Prevent ignored task from being displayed as failing.
  making ec2 cred optional on group->edit
  making ec2 credential optional for ec2 inventory
  Revert "Fix to ensure org auditors can see team credentials"
  Fixed team credential list to work with corrected permissions
  Making the username and password fields optional
  ...
2016-08-18 22:52:55 -04:00
Matthew Jones 3beef1d988 Workaround a cascade setnull polymorphic issue
See: https://github.com/django-polymorphic/django-polymorphic/issues/229
2016-08-17 12:55:12 -04:00
Matthew Jones 8fcc194c82 Attempt to wait for job host summaries
Sometimes the job host summaries can land a little later after the job
has finished so sometimes events are still filtering in when the
notifications are triggered
2016-08-10 11:30:02 -04:00
Matthew Jones 4881529688 Merge branch 'ui_release_3.0.1' into release_3.0.2
* ui_release_3.0.1: (54 commits)
  Returning btn-primary to blue
  Fixed adhoc relaunch logic to match normal adhoc launch logic
  Breadcrumb appears correctly on first run
  Fixed display of non-breaking names
  Continuing audit work
  remove aws ask at runtime prompt from cred form config, resolves #3055 (#3058)
  fix missing URI encoding in event summary serch, kickback on #2980 (#3050)
  Switch base class for StateConflict
  Fixed password show/hide on enter for survey maker password type previews
  Fixed password show/hide on enter for survey taker survey questions where type is password
  Prevent populate_user from being registered multiple times.
  Fixing iterator used when jobs list refreshes
  Explicit super user check for JT can_delete
  Fix for populating teams for LDAP user.
  Update hubspot template for marketting
  Fix up flake8
  Rolled back the onExit solution previously implemented to handle the backspace navigation on the job launch modal.  New solution listens for state changes within the directive and cleans itself up.
  Switch disallowed object delete to 409
  Password enter show/hide fix
  add test for CustomInventoryScript serializer
  ...
2016-08-01 13:29:19 -04:00
Matthew Jones 3e1c0111f5 Merge branch 'api_release_3.0.1' into release_3.0.2
* api_release_3.0.1:
  add code to HostAccess can_add so the browsable API will work
  update unit tetsts
  use get_object_or_400 to fetch Role
  refactor to unit tests
  restrict User.admin_role membership changes through RoleUsersList
  fix test
  do not allow membership changes to User.admin_role
  RoleTeam and TeamRole sublist NotFound exception handling and test update
  add system job templates to the unified JT list
  Reorganize activity stream around org admin/auditors
  Allow instant cancel for new jobs
  orphan project protection in job delete access
  pass context into Job and JobList serializer classes
  pass context to unified job template subclasses
  Allow auditors to see same /api/v1/config information as admins
2016-08-01 13:23:37 -04:00
Matthew Jones 0189cd3d0c Bump version for 3.0.2 2016-08-01 11:55:30 -04:00
Matthew Jones 572f62e22a Merge branch 'stable' into devel
* stable: (30 commits)
  Remove ansible-tower.repo during packer cleanup
  Update package changelogs
  Enable SE boolean httpd_execmem
  Check that venv is activated before loading wsgi app (#3148)
  also limit creation of system auditors to superusers
  Make check for idle session more specific
  Use foreman.id instead
  flake8 fixups
  fixing tests for new team role assignment restrictions
  driveby cleanup
  do not allow assignment of system roles or user.admin_role to teams
  Add copyright back with utf-8 encoding
  Complete Sat6 integration
  Force requests to emit application/json
  fix issue with rbac_migrations logger
  Enable software collections repo on RHEL 6 + RHSM
  Fixed credential migration issue involving null inventory fields in job templates
  Allow instant cancel for new jobs
  Show new jobs in UI Jobs tab
  use existing logging infrastructure
  ...
2016-08-01 11:51:26 -04:00
Matthew Jones bfd037e00b Switch base class for StateConflict
This fixes the output format for the 409 exception return
2016-07-25 17:39:19 -04:00
Matthew Jones ebdf0e49b5 Explicit super user check for JT can_delete 2016-07-25 17:39:19 -04:00
Matthew Jones d3a541483c Fix up flake8 2016-07-25 17:39:19 -04:00
Matthew Jones d389233b88 Switch disallowed object delete to 409
In the case of running job conflicts
2016-07-25 17:39:19 -04:00
Matthew Jones 60e012f75b Force requests to emit application/json
When sending webhook notifications
2016-07-25 12:46:12 -04:00
Matthew Jones 495115af6a Bump version number for 3.0.1 release 2016-07-21 10:51:44 -04:00
Matthew Jones 1208450f59 Merge branch 'stable' into devel
* stable:
  Update 3.0 changelogs
  Spacing in sh script on merge conflict
  Update setup for bundled ansible-2 dependencies
  fix ansible2.0 bundle deps bootstrap
  Use yum's compare_providers() function instead of just pulling the latest alphabetically.
2016-07-21 10:49:50 -04:00
Matthew Jones 7b1fd964e3 Merge branch 'release_3.0.0' into devel
* release_3.0.0: (22 commits)
  remove aws ask at runtime prompt from cred form config, resolves #3055 (#3058)
  fix missing URI encoding in event summary serch, kickback on #2980 (#3050)
  Switch base class for StateConflict
  Fixed password show/hide on enter for survey maker password type previews
  Fixed password show/hide on enter for survey taker survey questions where type is password
  Prevent populate_user from being registered multiple times.
  Fixing iterator used when jobs list refreshes
  Explicit super user check for JT can_delete
  Fix for populating teams for LDAP user.
  Update hubspot template for marketting
  Fix up flake8
  Rolled back the onExit solution previously implemented to handle the backspace navigation on the job launch modal.  New solution listens for state changes within the directive and cleans itself up.
  Switch disallowed object delete to 409
  Password enter show/hide fix
  add test for CustomInventoryScript serializer
  Fixed bug where hitting enter in a password field in the job launch/survey maker modal would toggle the show/hide.
  Setting the local var CredentialList to the deep clone seems to be problematic.  Moving this out so that the original object itself is overwritten which is how it's done in other places. (#3017)
  Jobs list page size (#3019)
  resolves kickback on #2980 (#3008)
  add read_role to organization select_related
  ...
2016-07-18 21:16:01 -04:00
Matthew Jones 3ab8a93461 Merge branch 'release_3.0.0' into stable
* release_3.0.0: (2364 commits)
  remove aws ask at runtime prompt from cred form config, resolves #3055 (#3058)
  fix missing URI encoding in event summary serch, kickback on #2980 (#3050)
  Switch base class for StateConflict
  Fixed password show/hide on enter for survey maker password type previews
  Fixed password show/hide on enter for survey taker survey questions where type is password
  Prevent populate_user from being registered multiple times.
  Fixing iterator used when jobs list refreshes
  Explicit super user check for JT can_delete
  Fix for populating teams for LDAP user.
  Update hubspot template for marketting
  Fix up flake8
  Rolled back the onExit solution previously implemented to handle the backspace navigation on the job launch modal.  New solution listens for state changes within the directive and cleans itself up.
  Switch disallowed object delete to 409
  Password enter show/hide fix
  add test for CustomInventoryScript serializer
  Fixed bug where hitting enter in a password field in the job launch/survey maker modal would toggle the show/hide.
  Setting the local var CredentialList to the deep clone seems to be problematic.  Moving this out so that the original object itself is overwritten which is how it's done in other places. (#3017)
  Jobs list page size (#3019)
  resolves kickback on #2980 (#3008)
  Use the correct yum attribute name
  ...
2016-07-18 20:40:13 -04:00
Matthew Jones b587b892b0 Switch base class for StateConflict
This fixes the output format for the 409 exception return
2016-07-18 12:29:51 -04:00
Matthew Jones c36080e149 Explicit super user check for JT can_delete 2016-07-15 13:48:42 -04:00
Matthew Jones df1c1ae473 Fix up flake8 2016-07-15 12:50:59 -04:00
Matthew Jones eb97b8c916 Switch disallowed object delete to 409
In the case of running job conflicts
2016-07-15 11:47:02 -04:00
Matthew Jones ba444ab743 Merge branch 'release_3.0.0' into devel
* release_3.0.0: (129 commits)
  Use the correct yum attribute name
  Fix NaN / invalid end date value in schedule edit forms (#3007)
  resolves kickback on #2976 (#3009)
  Additional UI/JS licenses (#2974)
  Install at when configuring on-book AMI conf
  Added patch tests for updating project organizations
  Make development environment use ATOMIC_REQUESTS
  Team organization field made non-null
  Don't let normal users create orgless projects
  Fix up some flake8 issues
  Add delete protection from certain objects
  Cascade delete teams when their organization is deleted
  Updated tests to reflect credential access after migrations
  Changed conditonal to repair console error and page loade error
  Remove socket binding when the scope is destroyed so that we don't make errant GET requests in future instances of this controller.
  updated EULA text from rnalen
  Fix team credential role access in rbac migration
  Orphan handling in _old_access.py
  Normalized CustomInventoryScriptAccess.can_admin
  Use simplified epel-release links
  ...
2016-07-14 16:22:26 -04:00
Matthew Jones c852503163 Fix up some flake8 issues 2016-07-14 12:40:37 -04:00
Matthew Jones 00e55e3813 Add delete protection from certain objects
Certain objects can be sensitive to being deleted while jobs are
running, this protects those objects
2016-07-14 12:22:33 -04:00
Matthew Jones e9afee6149 Revert required org on notification templates
This reverts the validation of a required Organization on the
Notification Template.   After discussion with jlaska and jladd, I think
this can behave fine in this situation.   It's more like a Credential
then where without an Organization the NT only becomes available to
Super Users and the creator of the NT.
2016-07-13 11:10:18 -04:00
Matthew Jones e9a0f41152 Fix an ommitted fields 500 error
If organization or notification_template is omitted entirely from the
POST for a new item then a 500 error would be raised
2016-07-13 10:45:49 -04:00
Matthew Jones d6679936da Update license info, add tool for helpsies 2016-07-12 16:30:30 -04:00
Matthew Jones 2f843d15e0 Also forcefully kill the main process 2016-07-11 14:45:41 -04:00
Matthew Jones 43c5105a57 No more Mr. Nice Tower
or how I learned to stop worrying and use SIGKILL.

Ansible has a bug that could potentially leave tower's jobs hanging
around indefinitely requiring manual shell intervention.   I'm going to
put this here and until Ansible can get to the bottom of it.
2016-07-11 14:37:09 -04:00
Matthew Jones 6447434aa1 Hanele credential in notifications when deleted 2016-07-11 10:16:33 -04:00
Matthew Jones ae9b4d3e58 Revert "Fix up hook conditions for rbac activity stream"
This reverts commit 36c14f83bcb11fcdbd31140ce182ab87e3db4644.
2016-07-08 13:13:22 -04:00
Matthew Jones 26b0d345f8 Notification guarding for deleted inventory 2016-07-08 13:04:42 -04:00
Matthew Jones 1c860b81ac Fix up hook conditions for rbac activity stream 2016-07-08 13:03:34 -04:00
Matthew Jones 4c7f54cf72 Fix an activity stream associate with deleted obj
In some scenarios the activity stream associate could be invoked where
obj2 doesn't exist... the .get() will fail and tank the caller
preventing the save.   This guards that and blocks the activity stream
event, saving the save (whew!)
2016-07-08 12:56:52 -04:00
Matthew Jones 7337f5227b Merge branch 'release_3.0.0' into devel
* release_3.0.0: (638 commits)
  Disallow deleting job templates when there are jobs running
  M2M fix for project activity stream
  flake8
  Made it so org auditors can see all users if ORG_ADMINS_CAN_SEE_ALL_USERS is true
  made lebel delete find all associated labels by recursively getting the labels
  Fix up organization default exposed by unit test
  Fix flake8 'not in'
  remove unnecessary fixture from org_credential
  fix label dropdown population on edit of JT
  Allow anyone who can read an inventory to see adhoc command run against said inventory
  Added role visibility tests
  Typo
  remove duplicate playbook variable
  specify database on local restore
  do not log postgres restore
  add sudo true when sudoing to a user
  ansible 1.9 support
  filter_visible_roles performance enhancement
  fix order_by parameter not being applied to page 2+ of list results (#2786)
  Needed to bind removeSchedulesRefresh to the scope so that we could clear the listener properly
  ...
2016-07-07 12:40:36 -04:00
Matthew Jones 6b73fb2c27 Revert "Merge branch 'release_3.0.0' into devel"
This reverts commit 3cedfe6c679e5b289bd0a27defb6198d063ba8e8.
2016-07-07 12:40:10 -04:00
Matthew Jones 6a1973c873 Disallow deleting job templates when there are jobs running 2016-07-07 12:03:41 -04:00
Matthew Jones 3e0ed4c1a1 Fix up organization default exposed by unit test 2016-07-06 16:36:22 -04:00
Matthew Jones f75eba471e Fix flake8 'not in' 2016-07-06 16:09:38 -04:00
Matthew Jones 2528952090 Require organization when creating new notification templates 2016-07-05 15:31:54 -04:00
Matthew Jones 77f2bd1c0d Missing ad-hoc notification template assignment 2016-07-05 14:34:49 -04:00
Matthew Jones cec1f413a4 Switch notification to use jobhostsummary name
In case the host is removed prior to the notification being emitted
we'll use the host_name cached on the jobhostsummary object iself.
2016-07-05 12:32:37 -04:00
Matthew Jones d899c33ac4 Handle errors that come out of job deps generation 2016-07-01 15:40:46 -04:00
Matthew Jones 9bd05abcf3 Derive ad-hoc - inventory source notification templates 2016-06-29 13:48:00 -04:00
Matthew Jones 8055bcc94e Create activity stream event on group delete
Normally this is bypassed for recursive deletes, this manually creates
one beyond the bypass
2016-06-27 16:53:47 -04:00
Matthew Jones 4eb6adb5e7 Add notification_template to summary fields 2016-06-27 15:35:34 -04:00
Matthew Jones 80b044580d Fix up flake8 for notification tests 2016-06-27 15:12:10 -04:00
Matthew Jones 78e10241da Disallow DELETE on a notification_template
When there are pending notifications
2016-06-27 11:36:29 -04:00
Matthew Jones 288ecc1c5b Ignore management jobs on activity stream 2016-06-23 16:14:56 -04:00
Matthew Jones a9162278f8 Perform length validation on notification lists
Wherever we use a list for notification template configuration we'll now
validate that it contains at least one item at submission time.
2016-06-23 11:31:59 -04:00
Matthew Jones 960b6e22aa Fix up broken CredentialOwnerTeams view
Missing the object when requesting whether the user can access it or not
2016-06-22 15:17:45 -04:00
Matthew Jones 8d67d3a6fc Don't auto-gen the demo project update on preload 2016-06-22 14:49:27 -04:00
Matthew Jones 0fda36116a Change org admin role access for inventory scripts
Previously a super user was required to create and administer custom
inventory scripts.   Since these are tied to organizations this commit
extends orgadmin admininstration abilities to custom scripts within
their organization
2016-06-22 13:58:14 -04:00
Matthew Jones 87f1f6f8e6 Update inventory script visibility access level
admin roles on inv scripts can now see the actual script contents.  Read
role doesn't convey that capability.

This should be pretty similar to before from a read_role
perspective... it now allows more folks to see the script contents
2016-06-22 13:48:38 -04:00
Matthew Jones 2a4fa0ed9d Increment sent messages for pagerduty backend 2016-06-22 12:09:04 -04:00
Matthew Jones c812e85f65 Change email notification formatting.
Instead of pretty printing the datastructure we'll now dump out the
result in json format with indent=4 for pretty viewing.
2016-06-22 11:52:49 -04:00
Matthew Jones 462d43060e Fix up missing notifications in invsrc 2016-06-17 11:52:13 -04:00
Matthew Jones 526c7d719f Disable rax ssl verification everywhere 2016-06-16 15:48:36 -04:00
Matthew Jones 251dae657a Force schedule save during celery startup 2016-06-16 13:14:53 -04:00
Matthew Jones cded126f5b worker_ready is unused here 2016-06-15 14:40:50 -04:00