This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ be bin/flapjack start --no-daemonize --config etc/flapjack_config.yaml | |
| Flapjack starting.../Users/jesse/src/flpjck/flapjack/lib/flapjack/gateways/jsonapi.rb:121:in `<class:JSONAPI>': uninitialized constant Flapjack::Gateways::JSONAPI::Rack::FiberPool (NameError) | |
| from /Users/jesse/src/flpjck/flapjack/lib/flapjack/gateways/jsonapi.rb:26:in `<module:Gateways>' | |
| from /Users/jesse/src/flpjck/flapjack/lib/flapjack/gateways/jsonapi.rb:24:in `<module:Flapjack>' | |
| from /Users/jesse/src/flpjck/flapjack/lib/flapjack/gateways/jsonapi.rb:22:in `<top (required)>' | |
| from /Users/jesse/src/flpjck/flapjack/lib/flapjack/pikelet.rb:23:in `require' | |
| from /Users/jesse/src/flpjck/flapjack/lib/flapjack/pikelet.rb:23:in `<top (required)>' | |
| from /Users/jesse/src/flpjck/flapjack/lib/flapjack/coordinator.rb:13:in `require' | |
| from /Users/jesse/src/flpjck/flapjack/lib/flapjack/coordinator.rb:13:in `<top (required)>' | |
| from bin/flapjack:115:in `require' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ruby | |
| require 'rack' | |
| module Flapjack | |
| module Gateways | |
| module JSONAPI | |
| module Rack | |
| class JsonParamsParser < Struct.new(:app) | |
| def call(env) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ruby_api_version=`ruby -e 'case when RUBY_VERSION.match(/1\.8/) ; print "1.8" ; when RUBY_VERSION.match(/1\.9/) ; print "1.9.1" ; end'` | |
| GEM_PATH=$GEM_PATH:/srv/monitoring-scripts/shared/bundle/ruby/$ruby_api_version | |
| export GEM_PATH | |
| echo "GEM_PATH: ${GEM_PATH}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| All examples were filtered out; ignoring {:focus=>true} | |
| 1) Flapjack::Gateways::API::ContactMethods lists a contact's notification rules | |
| Failure/Error: expect(notification_rule_2).to receive(:to_json).and_return('"rule_2"') | |
| (Double Flapjack::Data::NotificationRule).to_json(any args) | |
| expected: 1 time with any arguments | |
| received: 0 times with any arguments | |
| # ./spec/lib/flapjack/gateways/api/contact_methods_spec.rb:201:in `block (2 levels) in <top (required)>' | |
| # ./spec/spec_helper.rb:96:in `block (2 levels) in <top (required)>' | |
| 2) Flapjack::Gateways::API::EntityMethods non-bulk API calls returns the status for all checks on an entity |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ SHOW_LOGGER_ALL=1 be rspec ./spec/lib/flapjack/gateways/api/contact_methods_spec.rb:97 | |
| Run options: include {:locations=>{"./spec/lib/flapjack/gateways/api/contact_methods_spec.rb"=>[97]}} | |
| Run options: include {:locations=>{"./spec/lib/flapjack/gateways/api/contact_methods_spec.rb"=>[97]}} | |
| Flapjack::Gateways::API::ContactMethods | |
| INFO: starting api - class | |
| ERROR: Error: TypeError - can't convert Array into Hash | |
| /Users/jesse/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/rack-1.5.2/lib/rack/request.rb:225:in `merge' | |
| /Users/jesse/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/rack-1.5.2/lib/rack/request.rb:225:in `params' | |
| /Users/jesse/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/sinatra-1.4.3/lib/sinatra/base.rb:877:in `call!' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cat examples/contacts_ada_and_charles.json | \ | |
| curl -w 'response: %{http_code} \n' -X POST -H "Content-type: application/json" \ | |
| -d - http://localhost:3081/contacts | |
| curl -w 'response: %{http_code} \n' -X POST -H "Content-type: application/json" \ | |
| -d - http://localhost:3081/contacts < examples/contacts_ada_and_charles.json | |
| curl -w 'response: %{http_code} \n' -X POST -H "Content-type: application/json" \ | |
| -d @examples/contacts_ada_and_charles.json \ | |
| http://localhost:3081/contacts |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| irb(main):007:0> Dir.foreach('.') {|i| puts i.inspect if i.match(/[[:cntrl:]]/)} | |
| "\026l}" | |
| "@\021\273@f\364" | |
| "\241\022" | |
| "@\002" | |
| => nil |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| vagrant-flapjack $ vagrant destroy && time VAGRANT_CACHE=yes vagrant up --provider vmware_fusion | |
| Are you sure you want to destroy the 'flapjack' VM? [y/N] y | |
| [flapjack] Stopping the VMware VM... | |
| [flapjack] Deleting the VM... | |
| [flapjack] Running cleanup tasks for 'puppet' provisioner... | |
| Bringing machine 'flapjack' up with 'vmware_fusion' provider... | |
| [flapjack] Cloning VMware VM: 'precise64'. This can take some time... | |
| [flapjack] Verifying vmnet devices are healthy... | |
| [flapjack] Preparing network adapters... | |
| [flapjack] Starting the VMware VM... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "dataset_uuid": "17c98640-1fdb-11e3-bf51-3708ce78e75a", | |
| "autoboot": true, | |
| "alias": "ns", | |
| "hostname": "ns", | |
| "dns_domain": "example.com", | |
| "max_physical_memory": 512, | |
| "max_swap": 1024, | |
| "quota": 20, | |
| "cpu_cap": 200, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Nov 19 15:35:58 precise64 kernel: [ 4654.375681] ------------[ cut here ]------------ | |
| Nov 19 15:35:58 precise64 kernel: [ 4654.375690] WARNING: at /build/buildd/linux-3.2.0/fs/dcache.c:1287 d_set_d_op+0x7c/0xb0() | |
| Nov 19 15:35:58 precise64 kernel: [ 4654.375692] Hardware name: VirtualBox | |
| Nov 19 15:35:58 precise64 kernel: [ 4654.375693] Modules linked in: vboxsf(O) nfsd nfs lockd fscache auth_rpcgss nfs_acl sunrpc ext2 vesafb ppdev parport_pc mac_hid psmouse serio_raw vboxguest(O) i2c_piix4 lp parport e1000 | |
| Nov 19 15:35:58 precise64 kernel: [ 4654.375709] Pid: 4311, comm: gem Tainted: G O 3.2.0-23-generic #36-Ubuntu | |
| Nov 19 15:35:58 precise64 kernel: [ 4654.375710] Call Trace: | |
| Nov 19 15:35:58 precise64 kernel: [ 4654.375715] [<ffffffff8106712f>] warn_slowpath_common+0x7f/0xc0 | |
| Nov 19 15:35:58 precise64 kernel: [ 4654.375718] [<ffffffff8106718a>] warn_slowpath_null+0x1a/0x20 | |
| Nov 19 15:35:58 precise64 kernel: [ 4654.375720] [<ffffffff8118d03c>] d_set_d_op+0x7c/0xb0 | |
| Nov 19 15:35:58 precise64 kernel: [ 4 |