Skip to content

Instantly share code, notes, and snippets.

dpetzel

Block or report user

Report or block dpetzel

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:5700316
09:50:27 [@ 2-rundeck-jobref][CONFIG] [workflow] Begin step: 2,rundeck-jobref
09:50:27 [@ 2-rundeck-jobref][CONFIG] 2: Workflow step executing: com.dtolabs.rundeck.execution.ExecutionItemFactory$5@46652fe2
09:50:27 [user@NODE1 1-NodeDispatch-exec][WARNING] Caught an exception, leaving main loop due to Socket closed
09:50:27 [@ 2-rundeck-jobref][SEVERE] No nodes matched for the filters: NodeSet{includes={name=${node.name}, dominant=false, }}
09:50:27 [petzeld@localhost ][CONFIG] [workflow] Finish execution: rundeck-workflow-node-first: [Workflow , Node failures: {NODE1=[]}: exception: groovy.lang.GroovyRuntimeException: Could not find matching constructor for: com.dtolabs.rundeck.core.execution.workflow.steps.StepException(com.dtolabs.rundeck.execution.JobReferenceFailureReason, java.lang.String)]
09:50:27 [null@null null null][SEVERE] Could not find matching constructor for: com.dtolabs.rundeck.core.execution.workflow.steps.StepException(com.dtolabs.rundeck.execution.JobReferenceFailureReason, java.lang
View gist:4727746
1.1.1.1 [2013-02-06T17:51:04-08:00] INFO: Processing chef_gem[minitest-chef-handler] action nothing (minitest-handler::default line 7)
1.1.1.1 [2013-02-06T17:51:05-08:00] INFO: Processing chef_gem[minitest-chef-handler] action install (minitest-handler::default line 7)
1.1.1.1 [2013-02-06T17:51:19-08:00] ERROR: chef_gem[minitest-chef-handler] (minitest-handler::default line 7) has had an error
1.1.1.1 [2013-02-06T17:51:19-08:00] ERROR: Running exception handlers
1.1.1.1 [2013-02-06T17:51:19-08:00] FATAL: Saving node information to /var/chef/cache/failed-run-data.json
1.1.1.1 [2013-02-06T17:51:19-08:00] ERROR: Exception handlers complete
1.1.1.1 [2013-02-06T17:51:19-08:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
1.1.1.1 [2013-02-06T17:51:19-08:00] FATAL: Gem::Installer::ExtensionBuildError: chef_gem[minitest-chef-handler] (minitest-handler::default line 7)
had an error: Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
1.1.1.1
@dpetzel
dpetzel / zenoss_data_points
Created Oct 19, 2012
Report on Zenoss Data Points
View zenoss_data_points
#Report Datapoints Per Collector
from pprint import pprint
results = {"total_devices": 0, "total_datapoints": 0}
for monitor_name in dmd.Monitors.getPerformanceMonitorNames():
if monitor_name not in results:
results[monitor_name] = {}
monitor = dmd.Monitors.getPerformanceMonitor(monitor_name)
results[monitor_name]['device_count'] = len(monitor.getDevices())
results["total_devices"] += results[monitor_name]['device_count']
dp_count = 0
View generic_zenoss_Vagrantfile.rb
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant::Config.run do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
config.vm.define :core3 do |core3_config|
core3_config.vm.box = "core3"
@dpetzel
dpetzel / git_cheat_sheet.rst
Created Sep 8, 2012
My personal cheat sheet of git commands
View git_cheat_sheet.rst

My Personal Git Cheat Sheet

Purpose

Since I keep googling these over and over.....

Definitions

@dpetzel
dpetzel / gist:3647626
Created Sep 5, 2012
minitest-chef-handler dependency failures
View gist:3647626
[2012-09-05T16:28:18-07:00] INFO: Processing chef_gem[minitest-chef-handler] action install (minitest-handler::default line 8)
[2012-09-05T16:28:18-07:00] DEBUG: chef_gem[minitest-chef-handler] detected omnibus installation in /opt/chef/embedded/bin
[2012-09-05T16:28:18-07:00] DEBUG: chef_gem[minitest-chef-handler] using gem from running ruby environment
[2012-09-05T16:28:18-07:00] DEBUG: chef_gem[minitest-chef-handler] no installed version found for minitest-chef-handler (>= 0)
[2012-09-05T16:28:38-07:00] DEBUG: found gem minitest-chef-handler version 0.6.1 for platform ruby from http://rubygems.org/
[2012-09-05T16:28:38-07:00] ERROR: chef_gem[minitest-chef-handler] (minitest-handler::default line 8) has had an error
[2012-09-05T16:28:38-07:00] ERROR: Running exception handlers
[2012-09-05T16:28:38-07:00] ERROR: Exception handlers complete
[2012-09-05T16:28:38-07:00] DEBUG: Re-raising exception: Gem::DependencyError - chef_gem[minitest-chef-handler] (minitest-handler::default line 8) had an error: Gem::Depe
View gist:2974494
def _commit_change(self, safe=False):
"""
A wrapper around transaction.commit so we can catch, log, retry
@type safe: Boolean
@param safe: Indicates if a safe commit is required.
Sometimes its OK if the commit fails. When set to false,
will raise an exception, instead of just logging it
@rtype: Boolean
@return: Boolean indicating result of commit attempt
"""
View gist:2974078
def _increment_zenpack_and_export(self):
"""
Increment the version and export the zenpack egg
"""
for pack in dmd.ZenPackManager.packs():
if pack.id == self.zenpack:
log.debug("Previous ZenPack Version was {0}".format(pack.version))
pack.version = float(pack.version) + ZENPACK_INCREMENT_STEP
self._commit_change()
log.debug("New ZenPack Version is {0}".format(pack.version))
@dpetzel
dpetzel / gist:2475974
Created Apr 24, 2012
Core 4 Alpha on Ubuntu
View gist:2475974
zenoss@ubuntu:~$ zendmd
Welcome to the Zenoss dmd command shell!
'dmd' is bound to the DataRoot. 'zhelp()' to get a list of commands.
Use TAB-TAB to see a list of zendmd related commands.
Tab completion also works for objects -- hit tab after an object name and '.'
(eg dmd. + tab-key).
>>> print version()
Zenoss: Zenoss 4.1.70 r26443
OS: Linux (x86_64) 2.6.32 (Linux ubuntu 2.6.32-38-generic #83-Ubuntu SMP Wed Jan 4 11:12:07 UTC 2012 x86_64)
Zope: Zope 2.13.8
@dpetzel
dpetzel / gist:2053902
Created Mar 17, 2012
Detect If Running Chef Solo
View gist:2053902
unless Chef::Config[:solo]
....
end
You can’t perform that action at this time.