Skip to content

Instantly share code, notes, and snippets.

View flaccid's full-sized avatar

Chris Fordham flaccid

View GitHub Profile
@flaccid
flaccid / gist:67bf395d9e3827a7606e
Created July 23, 2015 06:49
Rancher failed to find a placement
This file has been truncated, but you can view the full file.
2015-07-23 06:41:24,896 INFO [:] [] [] [] [qtp411390898-44] [c.p.e.p.i.DefaultProcessInstanceImpl] Attempting to run process [service.create:6200] on resource [24]
2015-07-23 06:41:24,897 INFO [1e9f8f83-38ef-45f7-889b-ca21a70d3e4d:6200] [service:24] [service.create] [] [qtp411390898-44] [c.p.e.p.i.DefaultProcessInstanceImpl] Changing state [requested->registering] on [service:24]
2015-07-23 06:41:24,898 INFO [1e9f8f83-38ef-45f7-889b-ca21a70d3e4d:6200] [service:24] [service.create] [] [qtp411390898-44] [c.p.e.p.i.DefaultProcessInstanceImpl] Exiting with code [SCHEDULED] : SCHEDULED
2015-07-23 06:41:24,899 INFO [:] [] [] [] [qtp411390898-44] [c.p.e.p.i.DefaultProcessInstanceImpl] Exiting [SCHEDULED] process [service.create:6200] on resource [24]
2015-07-23 06:41:24,904 INFO [:] [] [] [] [cutorService-13] [c.p.e.p.i.DefaultProcessInstanceImpl] Attempting to run process [service.create:6200] on resource [24]
2015-07-23 06:41:24,910 INFO [c9d28021-b4f2-49d2-81b6-b23e3e3fd972:6200] [service:24] [service.
@flaccid
flaccid / gist:988b6979ab61e133af42
Created July 18, 2015 08:09
Add host (ec2) fails 'Maximum number of retries (60) exceeded'
2015-07-18 07:40:00,148 INFO [:] [] [] [] [main ] [i.c.platform.logback.LogbackStartup ] Logback configured with [jar:file:/var/lib/cattle/lib/0.5.0-SNAPSHOT-66b929b613539f377ece346405da89a7f90d9640-59208a21-12ff-4b03-b315-f88bf2ab21b1/WEB-INF/lib/cattle-framework-logback-0.5.0-SNAPSHOT.jar!/logback/logback.xml]
2015-07-18 07:40:00,177 INFO [:] [] [] [] [main ] [c.s.m.m.i.DefaultModuleDefinitionSet] Loaded module context [bootstrap] in 3150 ms
2015-07-18 07:40:00,177 INFO [:] [] [] [] [main ] [c.s.m.m.i.DefaultModuleDefinitionSet] Module Hierarchy: bootstrap
2015-07-18 07:40:00,178 INFO [:] [] [] [] [main ] [c.s.m.m.i.DefaultModuleDefinitionSet] Module Hierarchy: config-defaults
2015-07-18 07:40:00,178 INFO [:] [] [] [] [main ] [c.s.m.m.i.DefaultModuleDefinitionSet] Module Hierarchy: system
2015-07-18 07:40:00,178 INFO [:] [] [] [] [main ] [c.s.m.m.i.DefaultModuleDefinitionSet] Module Hierarchy: defaults
2015-07-18 07:40:00,178 IN
@flaccid
flaccid / gist:e23555fccdd708fa6ac6
Created June 26, 2015 05:12
docker-storage-setup fails to use /dev/xvd0, uses /dev/xda1 instead
# sh -x ./docker-storage-setup.sh
+ set -e
+ POOL_LV_NAME=docker-pool
+ DATA_LV_NAME=docker-pool
+ META_LV_NAME=docker-poolmeta
+ DOCKER_STORAGE=/etc/sysconfig/docker-storage
+ '[' -e /usr/lib/docker-storage-setup/docker-storage-setup ']'
+ source /usr/lib/docker-storage-setup/docker-storage-setup
++ DATA_SIZE=60%FREE
++ CHUNK_SIZE=512K
@flaccid
flaccid / gist:be2a9797eed183454332
Created February 25, 2015 01:03
hostname.rb provider trying everything for node['fqdn']
#
# Cookbook Name:: system
# Provider:: hostname
#
# Copyright 2012-2014, Chris Fordham
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
@flaccid
flaccid / 10-nvidia-4displays-xinerama-nvsettings.conf
Created October 31, 2014 05:10
lister - Xorg conf - 4 displays, 2 rotated in the middle
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 340.46 (buildmeister@swio-display-x86-rhel47-03) Wed Sep 24 14:38:19 PDT 2014
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 4320 0
Screen 1 "Screen1" 0 0
Screen 2 "Screen2" 3120 0
Screen 3 "Screen3" 1920 0
InputDevice "Keyboard0" "CoreKeyboard"
@flaccid
flaccid / gist:7541374
Created November 19, 2013 07:02
RightScale mechanize
# http://mechanize.rubyforge.org/
require 'mechanize'
agent = Mechanize.new
login_page = agent.get("https://my.rightscale.com/")
logged_in_page = login_page.form_with(:action => '/session') do |form|
form.email="bill.gates@microsoft.com"
form.password="bluescreen"
end.click_button
@flaccid
flaccid / librarian_chef_dsl_parser.rb
Created October 24, 2013 02:01
lightweight ruby class to parse Cheffiles
require 'net/http'
require 'uri'
class LibrarianChefDSLParser
attr_accessor :site, :cookbooks
def initialize(cheffile, &data)
@cheffile = cheffile
@cookbooks = []
data = false
@flaccid
flaccid / gist:6893173
Created October 8, 2013 22:52
nvidia-settings generated, 2 cards, 4 screens xorg.conf
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 325.15 (buildmeister@swio-display-x64-rhel04-03) Wed Jul 31 19:04:13 PDT 2013
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 3120 252
Screen 1 "Screen1" 1920 0
Screen 2 "Screen2" 0 0
Screen 3 "Screen3" 5040 601
InputDevice "Keyboard0" "CoreKeyboard"
@flaccid
flaccid / gist:6879889
Created October 8, 2013 05:28
xorg - nvidia driver, 4 displays on 2 cards
Section "Device"
Identifier "Device0"
Driver "nvidia"
BoardName "NVIDIA Corporation GT218 [GeForce 210] (rev a2)"
BusID "PCI:1:0:0"
Screen 0
EndSection
Section "Device"
Identifier "Device1"
@flaccid
flaccid / gist:5890243
Last active December 19, 2015 03:29
Play with solution for COOK-2079 providers/passenger_apache2.rb
#
# Cookbook Name:: application_ruby
# Provider:: passenger
#
# Copyright 2012, ZephirWorks
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#