Skip to content

Instantly share code, notes, and snippets.

@hany
hany / main.tf
Last active August 29, 2015 14:28
Terraform files for Cloud.ca
provider "cloudstack" {
api_url = "${var.api_url}"
api_key = "${var.api_key}"
secret_key = "${var.secret_key}"
}
resource "cloudstack_vpc" "staging" {
name = "staging"
cidr = "10.164.240.0/22"
vpc_offering = "Default VPC offering"
@hany
hany / cloudstack.tf
Created August 31, 2015 14:38
Updated Terraform files
provider "cloudstack" {
api_url = "${var.api_url}"
api_key = "${var.api_key}"
secret_key = "${var.secret_key}"
}
@hany
hany / crash.log
Created September 17, 2015 21:23
Terraform Crash
2015/09/17 17:20:59 [INFO] Terraform version: 0.6.3 234f49a2c93fecdecd803d7562e0d394dd12ae42+CHANGES
2015/09/17 17:20:59 Detected home directory from env var: /home/deploy
2015/09/17 17:20:59 [DEBUG] Discovered plugin: atlas = /usr/local/src/terraform-provider-atlas
2015/09/17 17:20:59 [DEBUG] Discovered plugin: aws = /usr/local/src/terraform-provider-aws
2015/09/17 17:20:59 [DEBUG] Discovered plugin: azure = /usr/local/src/terraform-provider-azure
2015/09/17 17:20:59 [DEBUG] Discovered plugin: cloudflare = /usr/local/src/terraform-provider-cloudflare
2015/09/17 17:20:59 [DEBUG] Discovered plugin: cloudstack = /usr/local/src/terraform-provider-cloudstack
2015/09/17 17:20:59 [DEBUG] Discovered plugin: consul = /usr/local/src/terraform-provider-consul
2015/09/17 17:20:59 [DEBUG] Discovered plugin: digitalocean = /usr/local/src/terraform-provider-digitalocean
2015/09/17 17:20:59 [DEBUG] Discovered plugin: dme = /usr/local/src/terraform-provider-dme
@hany
hany / terraform-fail1
Created September 18, 2015 16:01
Terraform failures
$ terraform destroy
Do you really want to destroy?
Terraform will delete all your managed infrastructure.
There is no undo. Only 'yes' will be accepted to confirm.
Enter a value: yes
cloudstack_vpc.staging: Refreshing state... (ID: d8a21605-c6d1-4131-9f39-7df46ad94b43)
cloudstack_network_acl.allow_all_main: Refreshing state... (ID: 6c892aec-4f06-404e-a79e-f2c81e19a5b1)
cloudstack_ipaddress.prod-app-tier-ip: Refreshing state... (ID: 9cd3c0e6-b53d-441f-8536-42437f1af01f)
@hany
hany / terraform-fail3
Created September 18, 2015 17:42
More Failures
mbp:hany_gist hany$ date && terraform apply && date
Fri 18 Sep 2015 13:15:54 EDT
cloudstack_vpc.staging: Creating...
cidr: "" => "10.164.240.0/22"
display_text: "" => "<computed>"
name: "" => "staging"
project: "" => "61c0cebb-fd71-48ad-a0de-9cf53aeea291"
vpc_offering: "" => "Default VPC offering"
zone: "" => "QC-1"
cloudstack_vpc.staging: Creation complete
@hany
hany / terraform-fail6
Created September 18, 2015 17:53
More failures
mbp:hany_gist hany$ date ; terraform apply ; date
Fri 18 Sep 2015 13:49:12 EDT
cloudstack_vpc.staging: Creating...
cidr: "" => "10.164.240.0/22"
display_text: "" => "<computed>"
name: "" => "staging"
project: "" => "3c024b9a-d1f9-40a9-bb13-d53ac1e99ca5"
vpc_offering: "" => "Default VPC offering"
zone: "" => "QC-1"
cloudstack_vpc.staging: Creation complete
108.162.219.15 - - [15/Nov/2015:09:51:23 -0500] "GET http://www.altitude-sports.com/media/catalog/product/cache/2/small_image/160x/9df78eab33525d08d6e5fb8d27136e95/a/l/alt-cintre-1_black.jpg HTTP/1.1" 200 - "-" "Amazon CloudFront"
173.245.56.245 - - [15/Nov/2015:10:23:13 -0500] "GET http://www.altitude-sports.com/media/catalog/product/cache/2/small_image/160x/9df78eab33525d08d6e5fb8d27136e95/a/l/alt-cintre-1_black.jpg HTTP/1.1" 200 21384 "-" "Amazon CloudFront"
108.162.216.247 - - [15/Nov/2015:15:17:06 -0500] "GET http://www.altitude-sports.com/media/catalog/product/cache/2/small_image/160x/9df78eab33525d08d6e5fb8d27136e95/a/l/alt-cintre-1_black.jpg HTTP/1.1" 200 21386 "-" "Amazon CloudFront"
173.245.56.245 - - [15/Nov/2015:19:04:36 -0500] "GET http://www.altitude-sports.com/media/catalog/product/cache/2/small_image/160x/9df78eab33525d08d6e5fb8d27136e95/a/l/alt-cintre-1_black.jpg HTTP/1.1" 200 21385 "-" "Amazon CloudFront"
173.245.56.245 - - [15/Nov/2015:21:30:06 -0500] "GET http://www.altitude-sports.com/med
u'';alert(String.fromCharCode(88,83,83))//';alert(String.fromCharCode(88,83,83))//; alert(String.fromCharCode(88,83,83))//;alert(String.fromCharCode(88,83,83))//-- ></SCRIPT>>'><SCRIPT>alert(String.fromCharCode(88,83,83))</SCRIPT>'
@hany
hany / Job count
Last active November 18, 2015 00:29
1066 invoices.tasks.invoice_payment_insight_priming__task
716 financial_transactions.tasks.BankRecBackfill
309 event_tracker.handlers.hook_handler_tasks.InvoiceHookHandlerEventTask
283 integrations.etsy.tasks.download_process_etsy_seller_receipts
46 event_tracker.handlers.vero_post_task.PostVeroEventTask
33 event_tracker.handlers.checklist_handler.update_checklist_for_step_progress
23 wave_payments.tasks.run_auto_provision_wpp_business_task
6 manual_import.tasks.ManualImportRecordCreator
6 event_tracker.handlers.mixpanel_post_task.PostMixpanelEventTask
1 integrations.paypal.tasks.PayPalOnboardingTas
#<AMQP::Header:0x000000020df9d8
@attributes=
{:content_type=>"application/octet-stream", :delivery_mode=>1, :priority=>0},
@channel=
#<AMQP::Channel:0x0000000159e038
@auto_recovery=true,
@callbacks=
{:error=>
[#<Proc:0x0000000159d2c8@/opt/sensu/embedded/lib/ruby/gems/2.2.0/gems/sensu-transport-3.3.0/lib/sensu/transport/rabbitmq.rb:135>],
:qos=>[nil]},