Skip to content

Instantly share code, notes, and snippets.

View kitplummer's full-sized avatar
🏠
Working from home

Kit Plummer kitplummer

🏠
Working from home
View GitHub Profile
@kitplummer
kitplummer / keystore list
Last active August 29, 2015 14:02
OpenDJ Startup Logs
==> errors <==
[13/Jun/2014:16:08:26 -0500] category=CORE severity=NOTICE msgID=458891 msg=The Directory Server has sent an alert notification generated by class org.opends.server.core.DirectoryServer (alert type org.opends.server.DirectoryServerShutdown, alert ID 458893): The Directory Server has started the shutdown process. The shutdown was initiated by an instance of class org.opends.server.core.DirectoryServerShutdownHook and the reason provided for the shutdown was The Directory Server shutdown hook detected that the JVM is shutting down. This generally indicates that JVM received an external request to stop (e.g., through a kill signal)
[13/Jun/2014:16:08:29 -0500] category=BACKEND severity=NOTICE msgID=9896306 msg=The backend userRoot is now taken offline
[13/Jun/2014:16:08:29 -0500] category=CORE severity=NOTICE msgID=458955 msg=The Directory Server is now stopped
tail: server.out: file truncated
[13/Jun/2014:16:08:37 -0500] category=EXTENSIONS severity=NOTICE msgID=1507899 msg=Loaded extension fr
[root@stackbox ~(keystone_admin)]# ip netns exec qdhcp-0812b994-92cc-421f-9499-beefbbf361f9 ip addr
13: tap42fa7b70-f7: <BROADCAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN
link/ether fa:16:3e:d8:0b:1d brd ff:ff:ff:ff:ff:ff
inet 10.0.0.2/24 brd 10.0.0.255 scope global tap42fa7b70-f7
inet6 fe80::f816:3eff:fed8:b1d/64 scope link
valid_lft forever preferred_lft forever
14: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
[root@stackbox ~(keystone_admin)]# ip netns show
qrouter-18328810-7fbc-4732-af65-512d9f156f30
qdhcp-0812b994-92cc-421f-9499-beefbbf361f9
[root@stackbox ~(keystone_admin)]# ovs-vsctl show
cd325c40-a712-4226-84b9-3b5b6f917d27
Bridge br-ex
Port "eth0"
Interface "eth0"
Port br-ex
Interface br-ex
type: internal
Port "qg-04a47d87-ec"
Interface "qg-04a47d87-ec"
import groovyx.net.http.HTTPBuilder
import static groovyx.net.http.Method.GET
import static groovyx.net.http.ContentType.TEXT
def http = new HTTPBuilder( 'https://scapsync.com' )
def json = ""
http.request(GET,TEXT) { req ->
uri.path = '/search' // overrides any path in the default URL
➜ ThreadFix sh threadfix.sh start
Looking for a key in /Users/kitplummer/Code/ThreadFix/tomcat/keystore
Using pre-generated keystore.
mkdir: ./tomcat/logs: File exists
Using CATALINA_BASE: ./tomcat
Using CATALINA_HOME: ./tomcat
Using CATALINA_TMPDIR: ./tomcat/temp
Using JRE_HOME: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Using CLASSPATH: ./tomcat/bin/bootstrap.jar:./tomcat/bin/tomcat-juli.jar
Oct 8, 2013 8:40:52 AM org.apache.coyote.AbstractProtocol stop
➜ ThreadFix sh threadfix.sh start
Looking for a key in /Users/kitplummer/Code/ThreadFix/tomcat/keystore
Using pre-generated keystore.
mkdir: ./tomcat/logs: File exists
Using CATALINA_BASE: ./tomcat
Using CATALINA_HOME: ./tomcat
Using CATALINA_TMPDIR: ./tomcat/temp
Using JRE_HOME: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Using CLASSPATH: ./tomcat/bin/bootstrap.jar:./tomcat/bin/tomcat-juli.jar
Oct 8, 2013 8:37:59 AM org.apache.coyote.AbstractProtocol stop
[root@ddf2 ~]# puppet agent --test --no-daemon
Warning: Unable to fetch my node definition, but the agent run will continue:
Warning: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed: [self signed certificate in certificate chain for /CN=Puppet CA generated on stackbox at 2013-07-11 14:30:29 -0700]
Info: Retrieving plugin
Error: /File[/var/opt/lib/pe-puppet/lib]: Failed to generate additional resources using 'eval_generate: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed: [self signed certificate in certificate chain for /CN=Puppet CA generated on stackbox at 2013-07-11 14:30:29 -0700]
Error: /File[/var/opt/lib/pe-puppet/lib]: Could not evaluate: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed: [self signed certificate in certificate chain for /CN=Puppet CA generated on stackbox at 2013-07-11 14:30:29 -0700] Could not retrieve file metadata for puppet://puppet/plugins
$opensearch_sources = ["ddf1", "ddf2"]
each($opensearch_sources) |$opensearch_source| {
file { "/usr/local/${package}-${version}/deploy/OpenSearchSource.${$opensearch_source}.cfg":
mode => "0644",
group => $ddf_user,
owner => $ddf_user,
content => template("ddf/OpenSearchSource.cfg.erb"),
require => File["/usr/local/${package}-${version}"]
}
}
@kitplummer
kitplummer / openstack.groovy
Created June 12, 2013 22:01
Simple Groovy script working with OpenStack's Keystone and Compute(Nova) APIs.
@Grab(group="org.codehaus.groovy.modules.http-builder", module="http-builder", version='0.5.2')
import groovyx.net.http.RESTClient
import groovy.util.slurpersupport.GPathResult
import groovy.json.*
keystone = new RESTClient( 'http://10.0.1.49:5000/v2.0/' )
resp = keystone.post( path : 'tokens',
body : [auth:[passwordCredentials:[username: "admin", password:"stack"], tenantId: "2ba2d60c5e8d4d1b86549d988131fe48"]],