Skip to content

Instantly share code, notes, and snippets.

View devcamcar's full-sized avatar

Devin Carlen devcamcar

View GitHub Profile
package main
import (
"os";
"http";
"fmt";
"rand";
"time";
)
package syslogclient
import (
"os";
"fmt";
"net";
"strings";
)
const (
@devcamcar
devcamcar / bp.sh
Created April 4, 2012 01:47 — forked from vishvananda/bp.sh
Script for backporting OpenStack branches to milestone-proposed
#!/usr/bin/env bash
# This is a little script to make backporting patches to milestone proposed.
# Instructions
# ------------
# Make sure that milestone-proposed exists and is up to date:
# git branch -D milestone-proposed
# git checkout -b milestone-proposed origin/milestone-proposed
# git pull
# Grab the file and stick it in your <project> directory:
# curl -OL https://raw.github.com/gist/2206428/bp.sh
openstack: Starting Chef Client, version 11.8.2
openstack: Compiling Cookbooks...
openstack: [2014-01-10T21:26:06+00:00] WARN: PowerShell 2.0 can only be installed on the Windows platform.
openstack: Converging 14 resources
openstack: Recipe: java::openjdk
openstack: * package[java-1.6.0-openjdk] action install
openstack: * No version specified, and no candidate version available for java-1.6.0-openjdk
openstack: ================================================================================
openstack: Error executing action `install` on resource 'package[java-1.6.0-openjdk]'
openstack: ================================================================================
SMALL_LINUX : computeTemplate{
// Mandatory. Image ID.
imageId linuxImageId
// Mandatory. Files from the local directory will be copied to this directory on the remote machine.
remoteDirectory "/home/ubuntu/gs-files"
// Mandatory. Amount of RAM available to machine.
machineMemoryMB 1600
// Mandatory. Hardware ID.
hardwareId hardwareId
// Mandatory. All files from this LOCAL directory will be copied to the remote machine directory.
<%
director_uuid = "<director uuid>"
static_ip = "<static ip>
root_domain = "#{static_ip}.xip.io"
deployment_name = 'cf'
cf_release = '171'
protocol = 'http'
common_password = '<password>'
%>
---
Director task 18
# Logfile created on 2014-05-16 00:20:48 +0000 by logger.rb/31641
I, [2014-05-16T00:20:48.405066 #2657] INFO -- : Director Version : 1.2427.0
I, [2014-05-16T00:20:48.405182 #2657] INFO -- : Enqueuing task: 18
I, [2014-05-16T00:20:51.286318 #9215] [0x109c080] INFO -- : Starting task: 18
I, [2014-05-16T00:20:51.286531 #9215] [task:18] INFO -- : Creating job
I, [2014-05-16T00:20:51.286688 #9215] [task:18] INFO -- : Reading deployment manifest
D, [2014-05-16T00:20:51.287092 #9215] [task:18] DEBUG -- : Manifest:
---
name: cf-services-contrib
director_uuid: <uuid> # CHANGE
releases:
- name: cf-services-contrib
version: 4
compilation:
workers: 3
network: default
{"timestamp":1400618616.6179645,"message":"Connecting with NATS","log_level":"debug","source":"mongodb_gateway","data":{},"thread_id":20087220,"fiber_id":39362820,"process_id":25651,"file":"/var/vcap/packages/mongodb_gateway/services/ng/mongodb/vendor/bundle/ruby/1.9.1/gems/vcap_services_base-0.2.5/lib/base/base.rb","lineno":48,"method":"initialize"}
{"timestamp":1400618617.6097863,"message":"status 403 /var/vcap/packages/mongodb_gateway/services/ng/mongodb/vendor/bundle/ruby/1.9.1/gems/cf-uaa-lib-2.0.0/lib/uaa/token_issuer.rb:141:in `implicit_grant_with_creds'|/var/vcap/packages/mongodb_gateway/services/ng/mongodb/vendor/bundle/ruby/1.9.1/gems/vcap_services_base-0.2.5/lib/base/http_handler.rb:41:in `refresh_client_auth_token'|/var/vcap/packages/mongodb_gateway/services/ng/mongodb/vendor/bundle/ruby/1.9.1/gems/vcap_services_base-0.2.5/lib/base/http_handler.rb:56:in `cc_req_hdrs'|/var/vcap/packages/mongodb_gateway/services/ng/mongodb/vendor/bundle/ruby/1.9.1/gems/vcap_services_base-0.2.5/lib/base/catalog_manag
[2014-05-21 07:54:36.532] uaa - 26388 [http-bio-8080-exec-4] .... DEBUG --- FilterChainProxy: /authorize?client_id=cf&response_type=token&redirect_uri=https%3A%2F%2Fuaa.c
loudfoundry.com%2Fredirect%2Fcf&state=64901544927e445f8a48acb7b91a3fd0 at position 5 of 7 in additional filter chain; firing Filter: 'AnonymousAuthenticationFilter'
[2014-05-21 07:54:36.532] uaa - 26388 [http-bio-8080-exec-4] .... DEBUG --- AnonymousAuthenticationFilter: Populated SecurityContextHolder with anonymous token: 'org.spri
ngframework.security.authentication.AnonymousAuthenticationToken@6faad796: Principal: anonymousUser; Credentials: [PROTECTED]; Authenticated: true; Details: org.springfra
mework.security.web.authentication.WebAuthenticationDetails@ffffa64e: RemoteIpAddress: 69.36.245.19; SessionId: null; Granted Authorities: ROLE_ANONYMOUS'
[2014-05-21 07:54:36.532] uaa - 26388 [http-bio-8080-exec-4] .... DEBUG --- FilterChainProxy: /authorize?client_id=cf&response_type=token&redirect_uri=https%3A%2F%2Fuaa.c
loudfoundry.com%2Fre