rackerlabs/otter — pull request #488 by cyli (2013-12-05 00:40:12+00:00)
Title: Audit log successful creation and successful deletion of servers

This was the easy one. Still working on the failures.

This is the audit log for scaling up by 1, then down by 1:

2013-12-05_00:36:25.97854
{
"is_error": false,
"event_type": "convergence.scale_up",
"tenant_id": "851153",
"@timestamp": 1386203785.978461,
"_message": "Starting 1 new servers to satisfy desired capacity",
"convergence_delta": 1,
"scaling_group_id": "c640d3f9-e67a-4bb4-98d1-32c3b7772c1f",
"desired_capacity": 1,
"host": "ubuntu",
"current_capacity": 0,
"pending_capacity": 1,
"@version": 1,
"transaction_id": "36e44101-10f6-4d2d-9115-c1a9d0d65483",
"audit_log": true
}
2013-12-05_00:36:26.04168
{
"server_id": "test-server4434096851-id-4434096851",
"is_error": false,
"event_type": "server.active",
"tenant_id": "851153",
"@timestamp": 1386203786.041568,
"_message": "Server is active.",
"scaling_group_id": "c640d3f9-e67a-4bb4-98d1-32c3b7772c1f",
"host": "ubuntu",
"@version": 1,
"transaction_id": "36e44101-10f6-4d2d-9115-c1a9d0d65483",
"audit_log": true
}
2013-12-05_00:37:32.00438
{
"is_error": false,
"event_type": "convergence.scale_down",
"tenant_id": "851153",
"@timestamp": 1386203852.004307,
"_message": "Deleting 1 servers to satisfy desired capacity",
"convergence_delta": -1,
"scaling_group_id": "c640d3f9-e67a-4bb4-98d1-32c3b7772c1f",
"desired_capacity": 0,
"host": "ubuntu",
"current_capacity": 0,
"pending_capacity": 0,
"@version": 1,
"transaction_id": "08e5e482-1ca8-46de-a974-c9b7dc8201d8",
"audit_log": true
}
2013-12-05_00:37:32.03681
{
"server_id": "test-server4434096851-id-4434096851",
"is_error": false,
"event_type": "server.delete",
"tenant_id": "851153",
"@timestamp": 1386203852.036702,
"_message": "Server deleted.",
"scaling_group_id": "c640d3f9-e67a-4bb4-98d1-32c3b7772c1f",
"host": "ubuntu",
"@version": 1,
"transaction_id": "08e5e482-1ca8-46de-a974-c9b7dc8201d8",
"audit_log": true
}