Skip to content

Instantly share code, notes, and snippets.

@dhellmann
dhellmann / devstack.rb
Created March 2, 2012 20:55 — forked from oubiwann/devstack.rb
Vagrant script for devstack
# -*- mode: ruby -*-
Vagrant::Config.run do |config|
sshdir = "#{ENV['HOME']}/.ssh/"
cachedir = (ENV['CACHEDIR'] or "/Users/dhellmann/Documents/Devel/openstack-vm/cache")
checkout = (ENV['COOKBOOKS'] or "/Users/dhellmann/Documents/Devel/openstack-vm/openstack-cookbooks")
# Make /vagrant an NFS mount instead of using the default setting
#config.vm.share_folder("v-root", "/vagrant", ".", :nfs => true)
@dhellmann
dhellmann / gist:2209104
Created March 26, 2012 19:41
error installing with quantum
[vagrant@127.0.0.1:2222] out: Traceback (most recent call last):
[vagrant@127.0.0.1:2222] out: File "/vagrant/Openstack-DevstackPy/stack", line 199, in main
[vagrant@127.0.0.1:2222] out: started_ok = run(args)
[vagrant@127.0.0.1:2222] out: File "/vagrant/Openstack-DevstackPy/stack", line 165, in run
[vagrant@127.0.0.1:2222] out: runner.run(persona_inst, root_dir)
[vagrant@127.0.0.1:2222] out: File "/vagrant/Openstack-DevstackPy/devstack/progs/actions.py", line 149, in run
[vagrant@127.0.0.1:2222] out: self._run(persona, root_dir, component_order, instances)
[vagrant@127.0.0.1:2222] out: File "/vagrant/Openstack-DevstackPy/devstack/progs/actions.py", line 200, in _run
[vagrant@127.0.0.1:2222] out: instances,
[vagrant@127.0.0.1:2222] out: File "/vagrant/Openstack-DevstackPy/devstack/progs/actions.py", line 113, in _run_phase
@dhellmann
dhellmann / gist:2301311
Created April 4, 2012 14:02
Mercurial 2.1.1 installation error
~ $ mktmpenv
Using real prefix '/Library/Frameworks/Python.framework/Versions/2.7'
New python executable in 9c0e1be03bb8d654/bin/python
Installing distribute....................................................................................................................................................................................done.
virtualenvwrapper.user_scripts creating /Users/dhellmann/Envs/9c0e1be03bb8d654/bin/predeactivate
virtualenvwrapper.user_scripts creating /Users/dhellmann/Envs/9c0e1be03bb8d654/bin/postdeactivate
virtualenvwrapper.user_scripts creating /Users/dhellmann/Envs/9c0e1be03bb8d654/bin/preactivate
virtualenvwrapper.user_scripts creating /Users/dhellmann/Envs/9c0e1be03bb8d654/bin/postactivate
virtualenvwrapper.user_scripts creating /Users/dhellmann/Envs/9c0e1be03bb8d654/bin/get_env_details
This is a temporary environment. It will be deleted when you run 'deactivate'.
@dhellmann
dhellmann / gist:2837084
Created May 30, 2012 15:43
ceilometer tox test failure
======================================================================
ERROR: Failure: ImportError (cannot import name Full)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/stack/ceilometer/.tox/py27/local/lib/python2.7/site-packages/nose/loader.py", line 390, in loadTestsFromName
addr.filename, addr.module)
File "/opt/stack/ceilometer/.tox/py27/local/lib/python2.7/site-packages/nose/importer.py", line 39, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/opt/stack/ceilometer/.tox/py27/local/lib/python2.7/site-packages/nose/importer.py", line 86, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
@dhellmann
dhellmann / gist:2844410
Created May 31, 2012 16:03
ceilometer meter message format, v 0.1
msg = {
'method': 'record_metering_data',
'version': '1.0',
'args': {'data': {
'source': counter.source,
'counter_type': counter.type,
'counter_volume': counter.volume,
'user_id': counter.user_id,
'project_id': counter.project_id,
'resource_id': counter.resource_id,
diff --git a/nova/db/sqlalchemy/migrate_repo/versions/111_general_aggregates.py b/nova/db/sqlalchemy/migrate_repo/versions/111_g
index 0c97112..dbbc069 100644
--- a/nova/db/sqlalchemy/migrate_repo/versions/111_general_aggregates.py
+++ b/nova/db/sqlalchemy/migrate_repo/versions/111_general_aggregates.py
@@ -43,8 +43,9 @@ def upgrade(migrate_engine):
aggregate_hosts = Table('aggregate_hosts', meta, autoload=True)
if dialect.startswith('sqlite'):
- aggregate_hosts.drop_column('host')
- aggregate_hosts.create_column(Column('host', String(255)))
@dhellmann
dhellmann / keybase.md
Created August 8, 2014 21:22
keybase.md

Keybase proof

I hereby claim:

  • I am dhellmann on github.
  • I am doughellmann (https://keybase.io/doughellmann) on keybase.
  • I have a public key whose fingerprint is E060 113F 190C D011 A8FA B18D 3B6D 06A0 C428 437A

To claim this, I am signing this object:

$ dep check
# Gopkg.lock is out of sync:
github.com/metal3-io/cluster-api-provider-baremetal/pkg/apis/baremetal/v1alpha1: imported or required, but missing from Gopkg.lock's input-imports
github.com/openshift-metalkube/kni-installer/data: imported or required, but missing from Gopkg.lock's input-imports
github.com/openshift-metalkube/kni-installer/pkg/asset: imported or required, but missing from Gopkg.lock's input-imports
github.com/openshift-metalkube/kni-installer/pkg/asset/cluster: imported or required, but missing from Gopkg.lock's input-imports
github.com/openshift-metalkube/kni-installer/pkg/asset/cluster/aws: imported or required, but missing from Gopkg.lock's input-imports
github.com/openshift-metalkube/kni-installer/pkg/asset/cluster/azure: imported or required, but missing from Gopkg.lock's input-imports
github.com/openshift-metalkube/kni-installer/pkg/asset/cluster/baremetal: imported or required, but missing from Gopkg.lock's input-imports
github.com/openshift-metalkube/kni-installer/pkg/asset/cl
$ dep ensure 2>&1 | tee dep.log
panic: runtime error: index out of range
goroutine 1 [running]:
github.com/golang/dep/gps.(*solver).findValidVersion(0xc000137200, 0xc0017226e0, 0xc001416e00, 0x31, 0x31, 0x0, 0xc001416e00)
/Users/travis/gopath/src/github.com/golang/dep/gps/solver.go:945 +0x4cc
github.com/golang/dep/gps.(*solver).backtrack(0xc000137200, 0xadbda0, 0xc000112050, 0x0, 0x0, 0x0)
/Users/travis/gopath/src/github.com/golang/dep/gps/solver.go:1079 +0xbdc
github.com/golang/dep/gps.(*solver).solve(0xc000137200, 0xadbda0, 0xc000112050, 0x5, 0xc00058f0c8, 0xc00014f548)
/Users/travis/gopath/src/github.com/golang/dep/gps/solver.go:510 +0x872
2019-05-31 12:45:09.780 12 ERROR ironic_inspector.process Traceback (most recent call last):
2019-05-31 12:45:09.780 12 ERROR ironic_inspector.process File "/usr/lib/python2.7/site-packages/ironic_inspector/process.py", line 228, in process
2019-05-31 12:45:09.780 12 ERROR ironic_inspector.process result = _process_node(node_info, node, introspection_data)
2019-05-31 12:45:09.780 12 ERROR ironic_inspector.process File "/usr/lib/python2.7/site-packages/ironic_inspector/node_cache.py", line 610, in inner
2019-05-31 12:45:09.780 12 ERROR ironic_inspector.process return func(node_info, *args, **kwargs)
2019-05-31 12:45:09.780 12 ERROR ironic_inspector.process File "/usr/lib/python2.7/site-packages/ironic_inspector/node_cache.py", line 588, in inner
2019-05-31 12:45:09.780 12 ERROR ironic_inspector.process node_info.finished(istate.Events.error, error=str(exc))
2019-05-31 12:45:09.780 12 ERROR ironic_inspector.process File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in