Commit Graph

39 Commits

Author SHA1 Message Date
Aaron Tan
9e4655419e Fix flake8 E302 errors. 2016-11-15 20:59:39 -05:00
Aaron Tan
473ed016de Fix flake8 E305 errors. 2016-11-15 16:32:27 -05: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
Akita Noek
b57739a800 Converted except T,e expressions to except T as e 2016-06-27 15:12:37 -04:00
Chris Meyers
3f4913f5ab adds socket tests 2015-11-06 10:30:56 -05:00
Chris Meyers
4434d336a3 notify all socket session of a token 2015-10-01 16:27:49 -04:00
Chris Meyers
b350eef3f0 session limit invalidation events via socket.io 2015-09-29 14:10:26 -04:00
Chris Meyers
000d26d7e3 session limit enforcement
* upon creating a new session, invalidate oldest sessions
2015-09-28 14:17:28 -04:00
John Mitchell
32d1c0e4db fixed copyright date 2015-06-11 16:10:23 -04:00
Matthew Jones
b3da3b34a3 Changing some legal headers for python source files 2015-05-29 12:10:39 -04:00
Matthew Jones
5a401c31aa Handle any exception that could come from sending a packet to a client 2015-04-22 16:50:37 -04:00
Matthew Jones
fb3bbea027 Add recv_disconnect to acl allowed methods 2015-04-21 14:13:53 -04:00
Chris Church
f7b8d510dc Implement support for ad hoc commands. 2015-03-30 13:04:19 -04:00
Matthew Jones
3c61006455 Fix up some flake warnings 2015-02-18 12:55:07 -05:00
Matthew Jones
52385f7346 Process Token from query string instead of cookie header on the api side
for the socket.io service
2015-02-18 11:04:18 -05:00
Matthew Jones
0b8b39f951 Refactor logging to work primarily with rotating files instead of syslog 2015-02-13 10:30:01 -05:00
Matthew Jones
6a18a50d99 Fixing flake8 errors, this should be almost all of them! 2015-02-11 16:42:55 -05:00
Matthew Jones
da5f518a65 Remove some unnecessary print statements 2015-02-09 14:24:36 -05:00
Matthew Jones
2887855c15 Changes to be more strict on connection authentication for the socketio service 2015-01-30 12:14:39 -05:00
Matthew Jones
bd542bc336 Update some of the dev requirements stuff 2015-01-30 10:52:35 -05:00
Luke Sneeringer
fea31271d2 Move cert and key files to tower.cert and tower.key. 2015-01-26 16:11:56 -06:00
Matthew Jones
ba06fc0f69 Allow recv_connect on the base socket namespace 2015-01-06 11:14:28 -05:00
Matthew Jones
bc78587c60 Remove an unneeded acl processor for job events in the socketio daemon 2014-12-10 15:00:15 -05:00
Matthew Jones
9a44f8eca8 Further tighten down socketio service 2014-12-08 14:41:48 -05:00
Luke Sneeringer
52aca5a081 Theoretically working Socket implementation. 2014-11-21 09:24:49 -06:00
Luke Sneeringer
3a8c32444b Merge branch 'master' into expunge-zeromq-unstable
Conflicts:
	awx/main/management/commands/run_callback_receiver.py
	awx/main/management/commands/run_task_system.py
2014-11-11 12:00:25 -06:00
Matthew Jones
ba1b9b9136 Add timestamp to logs for prints in management commands so we pick them
up the supervisor logs
2014-11-11 11:47:12 -05:00
Luke Sneeringer
f000e71371 Merge branch 'master' into expunge-zeromq-unstable 2014-10-30 15:30:39 -05:00
Luke Sneeringer
99381f11fa Beginning swap of ZeroMQ for Redis. 2014-10-27 16:18:04 -05:00
Matthew Jones
43ecfc0a87 Fix a small bug related to return state when determining valid user on
the socket io service
2014-10-27 14:52:21 -04:00
Matthew Jones
c6180d3928 Access control on websocket service 2014-10-27 11:40:33 -04:00
Luke Sneeringer
3b45252039 Theoretical move from /etc/awx/ to /etc/tower/. 2014-08-22 10:12:12 -04:00
Matthew Jones
92117ae460 Copy socket list in place to prevent a runtimeerror when the socket list
gets updated in the middle of notifications

Fixes https://trello.com/c/Q0bwCU9R/61-traceback-from-run-socketio-service
2014-06-27 13:21:52 -04:00
Matthew Jones
e72728b38c Add schedule based socket.io events for AC-1333 2014-06-10 15:58:57 -04:00
Matthew Jones
4ab2207dd2 Fix issue #1253... mention the tower product and version in the 404 data string 2014-06-04 14:05:57 -04:00
Matthew Jones
444430ed5b Use singular keyfile 2014-04-21 12:16:22 -04:00
Matthew Jones
c793ff0d95 Small updates to the event triggers and javascript to show individual endpoints 2014-04-17 14:55:44 -04:00
Matthew Jones
647001546a Support ssl listener for socketio service, add such service to setup playbook, add handler for external notifications, implement basic namespaces for other supported events 2014-04-17 12:36:34 -04:00
Matthew Jones
69583a1b07 Import socketio service work and updates to documentation and setup procedures 2014-04-16 15:27:04 -04:00