Skip to content

Instantly share code, notes, and snippets.

View zehicle's full-sized avatar

Rob Hirschfeld zehicle

View GitHub Profile
@zehicle
zehicle / squid.conf
Last active August 29, 2015 13:57
Example of Squid Proxy config for Crowbar that uses a CNTLM proxy
acl localhost src 127.0.0.1/32
acl localhost src ::1
acl to_localhost dst 127.0.0.0/8
acl to_localhost dst 0.0.0.0/32
acl to_localhost dst ::1
acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
acl localnet src 172.16.0.0/12 # For Docker VMs running locally.
acl to_localnet dst 192.168.0.0/16
acl to_localnet dst fe80::/10
acl to_localnet dst 172.16.0.0/12
@zehicle
zehicle / capabilities.json
Created May 6, 2014 19:19
draft capabilities list
{ "block" : { "core_test_count" : 0,
"description" : "TBD",
"domain" : "volume",
"tests" : [ "test_volume_type_extra_spec_create_get_delete",
"test_create_with_nonexistent_volume_type",
"test_create_with_empty_name",
"test_get_nonexistent_type_id",
"test_delete_nonexistent_type_id",
"test_volume_type_list",
"test_create_get_delete_volume_with_volume_type_and_extra_specs",
@zehicle
zehicle / capabilities.html
Created May 6, 2014 23:25
test capabilities page
<!DOCTYPE html>
<html>
<head>
<title>OpenStack DefCore Tracked Capabilities</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js" ></script>
<script>
function create_caps() {
$.ajax({
type: "GET",
@zehicle
zehicle / squid 8080
Last active August 29, 2015 14:02
squid working from home 8080
acl localnet src 192.168.0.0/16
acl localnet src 172.16.0.0/12
acl to_localnet dst 192.168.0.0/16
http_access allow localnet
always_direct allow to_localnet
http_access deny all
http_port 8123
@zehicle
zehicle / etcsambda_smb.conf_
Created July 6, 2014 19:27
samba share instructions
... PARTIAL FILE ...
[dev_crowbar]
force user=crowbar
comment=Builder
read only = no
path = /home/crowbar
writable = yes
guest ok = yes
guest only = no
RuntimeError: Script jig run for chef-client on d52-54-13-0c-00-00.cb.com failed! (status = 1)
Out: /tmp/scriptjig-D4Vdst/runner@5(): shopt -s nullglob extglob globstar
/tmp/scriptjig-D4Vdst/runner@6(): export TMPDIR=/tmp/scriptjig-D4Vdst
/tmp/scriptjig-D4Vdst/runner@6(): TMPDIR=/tmp/scriptjig-D4Vdst
/tmp/scriptjig-D4Vdst/runner@7(): export ROLE=chef-client
/tmp/scriptjig-D4Vdst/runner@7(): ROLE=chef-client
/tmp/scriptjig-D4Vdst/runner@10(): export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true
/tmp/scriptjig-D4Vdst/runner@10(): DEBIAN_FRONTEND=noninteractive
/tmp/scriptjig-D4Vdst/runner@10(): DEBCONF_NONINTERACTIVE_SEEN=true
/tmp/scriptjig-D4Vdst/runner@11(): export LC_ALL=C LANGUAGE=C LANG=C
RuntimeError: Chef jig run for system: d00-25-90-e7-43-72.b.com: ipmi-configure failed
Out: [2014-07-10T22:00:28-04:00] INFO: Forking chef instance to converge...
[2014-07-10T22:00:28-04:00] INFO: *** Chef 11.10.0 ***
[2014-07-10T22:00:28-04:00] INFO: Chef-client pid: 3873
[2014-07-10T22:00:30-04:00] INFO: Run List is [role[crowbar-d00-25-90-e7-43-72_b_com]]
[2014-07-10T22:00:30-04:00] INFO: Run List expands to [barclamp, ohai, utils, ipmi::configure]
[2014-07-10T22:00:30-04:00] INFO: Starting Chef Run for d00-25-90-e7-43-72.b.com
[2014-07-10T22:00:30-04:00] INFO: Running start handlers
[2014-07-10T22:00:30-04:00] INFO: Start handlers complete.
[2014-07-10T22:00:30-04:00] INFO: HTTP Request Returned 404 Object Not Found:
@zehicle
zehicle / gist:1a80478ab3fb9230d9b2
Created July 18, 2014 00:42
Cannot Dump Database Error
pg_dump: server version: 9.3.4; pg_dump version: 8.4.20
pg_dump: aborting because of server version mismatch
rake aborted!
Error dumping database
/var/cache/crowbar/gems/ruby/gems/activerecord-4.0.8/lib/active_record/tasks/postgresql_database_tasks.rb:55:in `structure_dump'
/var/cache/crowbar/gems/ruby/gems/activerecord-4.0.8/lib/active_record/tasks/database_tasks.rb:143:in `structure_dump'
/var/cache/crowbar/gems/ruby/gems/activerecord-4.0.8/lib/active_record/railties/databases.rake:288:in `block (3 levels) in <top (required)>'
/var/cache/crowbar/gems/ruby/gems/activerecord-4.0.8/lib/active_record/railties/databases.rake:51:in `block (2 levels) in <top (required)>'
/var/cache/crowbar/gems/ruby/gems/activerecord-4.0.8/lib/active_record/railties/databases.rake:45:in `block (2 levels) in <top (required)>'
@zehicle
zehicle / gist:5ac7711b2426813bd5ee
Created August 25, 2014 13:11
chef-client proxy error
RuntimeError: Script jig run for chef-client on d52-54-05-bc-00-00.b.com failed! (status = 1)
Out: /tmp/scriptjig-TTsEBA/runner@5(): shopt -s nullglob extglob globstar
/tmp/scriptjig-TTsEBA/runner@6(): export TMPDIR=/tmp/scriptjig-TTsEBA
/tmp/scriptjig-TTsEBA/runner@6(): TMPDIR=/tmp/scriptjig-TTsEBA
/tmp/scriptjig-TTsEBA/runner@7(): export ROLE=chef-client
/tmp/scriptjig-TTsEBA/runner@7(): ROLE=chef-client
/tmp/scriptjig-TTsEBA/runner@10(): export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true
/tmp/scriptjig-TTsEBA/runner@10(): DEBIAN_FRONTEND=noninteractive
/tmp/scriptjig-TTsEBA/runner@10(): DEBCONF_NONINTERACTIVE_SEEN=true
/tmp/scriptjig-TTsEBA/runner@11(): export LC_ALL=C LANGUAGE=C LANG=C
@zehicle
zehicle / gist:a494374c993c667d3eea
Created August 27, 2014 15:47
chef client issue T320
NoMethodError: undefined method `success?' for nil:NilClass
Backtrace:
/opt/opencrowbar/core/rails/app/models/barclamp_crowbar/jig.rb:33:in `run'
/opt/opencrowbar/core/rails/app/models/jig.rb:163:in `block in run_job'
/opt/opencrowbar/core/rails/app/models/jig.rb:157:in `loop'
/opt/opencrowbar/core/rails/app/models/jig.rb:157:in `run_job'
/var/cache/crowbar/gems/ruby/2.1.0/gems/delayed_job-4.0.2/lib/delayed/performable_method.rb:26:in `perform'
/var/cache/crowbar/gems/ruby/2.1.0/gems/delayed_job-4.0.2/lib/delayed/backend/base.rb:105:in `block in invoke_job'
/var/cache/crowbar/gems/ruby/2.1.0/gems/delayed_job-4.0.2/lib/delayed/lifecycle.rb:60:in `call'
/var/cache/crowbar/gems/ruby/2.1.0/gems/delayed_job-4.0.2/lib/delayed/lifecycle.rb:60:in `block in initialize'