Skip to content

Instantly share code, notes, and snippets.

View StephenKing's full-sized avatar

Steffen Gebert StephenKing

View GitHub Profile
@StephenKing
StephenKing / fuel.txt
Created June 12, 2015 08:48
Fuel Error during deployment
Failed to execute hook 'shell' Failed to run command cd / && fa_build_image --log-file /var/log/fuel-agent-env-1.log --data_driver nailgun_build_image --input_data '{"image_data": {"/boot": {"container": "gzip", "uri": "http://10.20.0.2:8080/targetimages/env_1_ubuntu_1404_amd64-boot.img.gz", "format": "ext2"}, "/": {"container": "gzip", "uri": "http://10.20.0.2:8080/targetimages/env_1_ubuntu_1404_amd64.img.gz", "format": "ext4"}}, "output": "/var/www/nailgun/targetimages", "repos": [{"name": "ubuntu", "section": "main universe multiverse", "uri": "http://de.archive.ubuntu.com/ubuntu/", "priority": null, "suite": "trusty", "type": "deb"}, {"name": "ubuntu-updates", "section": "main universe multiverse", "uri": "http://de.archive.ubuntu.com/ubuntu/", "priority": null, "suite": "trusty-updates", "type": "deb"}, {"name": "ubuntu-security", "section": "main universe multiverse", "uri": "http://de.archive.ubuntu.com/ubuntu/", "priority": null, "suite": "trusty-security", "type": "deb"}, {"name": "mos", "section": "
@StephenKing
StephenKing / gist:e1b899045d5d56b803d9
Created October 20, 2015 21:30
ONOS feature:list
onos> feature:list
Name | Version | Installed | Repository | Description
--------------------------------------------------------------------------------------------------------------------------------------------------------------------
onos-app-virtualbng | 1.3.1-SNAPSHOT | | onos-app-virtualbng-1.3.1-SNAPSHOT | A virtual Broadband Network Gateway(BNG) applicati
onos-openflow | 1.4.0-SNAPSHOT | | onos-openflow-1.4.0-SNAPSHOT | OpenFlow protocol southbound providers
framework-security | 3.0.3 | | standard-3.0.3 | OSGi Security for Karaf
standard | 3.0.3 | x | standard-3.0.3 | Karaf standard feature
aries-annotation | 3.0.3 | | standard-3.0.3 | Aries A
@StephenKing
StephenKing / gist:3787171
Created September 26, 2012 10:12
Gerrit thread dump
Full thread dump OpenJDK 64-Bit Server VM (14.0-b16 mixed mode):
"HTTP-25" prio=10 tid=0x00007f76d06d1000 nid=0x3b0c waiting on condition [0x00007f76cfdfc000]
java.lang.Thread.State: TIMED_WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x00007f77843eea38> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:226)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2081)
at java.util.concurrent.ArrayBlockingQueue.poll(ArrayBlockingQueue.java:370)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:479)
@StephenKing
StephenKing / gist:3782518
Created September 25, 2012 15:13
Gerrit authentication
<?php
class AccountSync {
protected $apiKey;
protected $pdo;
protected $accountIds = array();
protected $statements = array();
public function __construct($apiKey) {
$this->apiKey = $apiKey;
@StephenKing
StephenKing / gist:3312956
Created August 10, 2012 09:33
Chef application_java log
[Fri, 10 Aug 2012 11:26:39 +0200] INFO: *** Chef 0.10.8 ***
[Fri, 10 Aug 2012 11:26:39 +0200] DEBUG: Building node object for typo3-chef-repo.dev
[Fri, 10 Aug 2012 11:26:39 +0200] DEBUG: Extracting run list from JSON attributes provided on command line
[Fri, 10 Aug 2012 11:26:39 +0200] INFO: Setting the run_list to ["recipe[minitest-handler]", "role[debian]", "role[vagrant]", "role[gitblit]"] from JSON
[Fri, 10 Aug 2012 11:26:39 +0200] DEBUG: Applying attributes from json file
[Fri, 10 Aug 2012 11:26:39 +0200] DEBUG: Platform is debian version 6.0.5
[Fri, 10 Aug 2012 11:26:39 +0200] INFO: Run List is [recipe[minitest-handler], role[debian], role[vagrant], role[gitblit]]
[Fri, 10 Aug 2012 11:26:39 +0200] INFO: Run List expands to [minitest-handler, apt, chef_handler, base, locales, ntp, openssh, git, rsync, screen, postfix, postfix::aliases, java, tomcat, ant, application, gitblit]
[Fri, 10 Aug 2012 11:26:39 +0200] INFO: Starting Chef Run for typo3-chef-repo.dev
[Fri, 10 Aug 2012 11:26:39 +0200] INFO: Running
@StephenKing
StephenKing / mininet-hackaton.py
Last active September 29, 2015 14:45
ONOS Hackaton
#!/usr/bin/python
"""
Create a network where different switches are connected to
different controllers, by creating a custom Switch() subclass.
"""
from mininet.net import Mininet
from mininet.node import OVSSwitch, Controller, RemoteController
from mininet.log import setLogLevel
@StephenKing
StephenKing / sysadmin.rb
Created December 27, 2011 13:00
Users cookbook with enforcement to choose password upon first login
#
# Cookbook Name:: users
# Recipe:: sysadmins
#
# Copyright 2009-2011, Opscode, Inc.
#
# 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
#
@StephenKing
StephenKing / nec-egress.pcapng
Last active September 17, 2015 09:37
NEC PF5240 MPLS pop operation results in frames lacking Ethernet header
[2015-07-26 16:00:49,397] INFO com.googlesource.gerrit.plugins.replication.ReplicationQueue : Push to https://github.com/TYPO3-ci/TYPO3.CMS-pre-merge-tests.git references: [RemoteRefUpdate[remoteName=refs/heads/TYPO3_6-2, NOT_ATTEMPTED, (null)...a780e46ad709bcf5df9253182c620cec8c748bc4, srcRef=refs/heads/TYPO3_6-2, forceUpdate, message=null], RemoteRefUpdate[remoteName=refs/heads/TYPO3_7-3, NOT_ATTEMPTED, (null)...395b56f469e6e6742367ecfbad8638fb1dc95727, srcRef=refs/heads/TYPO3_7-3, forceUpdate, message=null], RemoteRefUpdate[remoteName=refs/heads/master, NOT_ATTEMPTED, (null)...f676de115f4c693b84975fe53fca029bef5e0f5c, srcRef=refs/heads/master, forceUpdate, message=null], RemoteRefUpdate[remoteName=refs/tags/6.2.14, NOT_ATTEMPTED, (null)...2e7ea604c4ee75bb50d7df9b63d6d1add8b2e1a6, srcRef=refs/tags/6.2.14, forceUpdate, message=null], RemoteRefUpdate[remoteName=refs/tags/7.3.1, NOT_ATTEMPTED, (null)...d9a158029d23662857ed87336492dd8a9860844d, srcRef=refs/tags/7.3.1,
@StephenKing
StephenKing / gist:e4c7a7d0ec1786ac8c9d
Created June 15, 2015 11:18
WrongPartitionSchemeError: /boot partition has not been created for some reasons
2015-06-15 11:17:41 INFO fuel_agent.cmd.agent
2015-06-15 11:17:41 INFO fuel_agent.cmd.agent WrongPartitionSchemeError: /boot partition has not been created for some reasons
2015-06-15 11:17:41 INFO fuel_agent.cmd.agent File "/usr/lib/python2.6/site-packages/fuel_agent/drivers/nailgun.py", line 334, in parse_partition_scheme
2015-06-15 11:17:41 INFO fuel_agent.cmd.agent self.partition_scheme = self.parse_partition_scheme()
2015-06-15 11:17:41 INFO fuel_agent.cmd.agent File "/usr/lib/python2.6/site-packages/fuel_agent/drivers/nailgun.py", line 80, in __init__
2015-06-15 11:17:41 INFO fuel_agent.cmd.agent self.driver = utils.get_driver(CONF.data_driver)(data)
2015-06-15 11:17:41 INFO fuel_agent.cmd.agent File "/usr/lib/python2.6/site-packages/fuel_agent/manager.py", line 99, in __init__
2015-06-15 11:17:41 INFO fuel_agent.cmd.agent mgr = manager.Manager(data)
2015-06-15 11:17:41 INFO fuel_agent.cmd.agent File "/usr/lib/python2.6/site-packages/fuel_agent/cmd/agent.py", line 92, in main
2015-06