Skip to content

Instantly share code, notes, and snippets.

View n1zyy's full-sized avatar
:octocat:

Matt W. n1zyy

:octocat:
  • Boston, MA
  • 22:45 (UTC -04:00)
View GitHub Profile
@n1zyy
n1zyy / gist:2898232
Created June 8, 2012 21:40
F17 aeolus-configure failure
[root@dhcp-187-232 ~]# aeolus-configure
Launching aeolus configuration recipe...
/usr/share/rubygems/rubygems/custom_require.rb:36:in `require': iconv will be deprecated in the future, use String#encode instead.
/usr/share/ruby/vendor_ruby/puppet/provider/service/freebsd.rb:8: warning: class variable access from toplevel
/usr/share/ruby/vendor_ruby/puppet/provider/service/freebsd.rb:9: warning: class variable access from toplevel
/usr/share/ruby/vendor_ruby/puppet/provider/service/freebsd.rb:10: warning: class variable access from toplevel
/usr/share/ruby/vendor_ruby/puppet/provider/service/bsd.rb:12: warning: class variable access from toplevel
notice: /Stage[main]/Aeolus::Image-factory/File[/var/tmp/imagefactory-mock]/ensure: created
notice: /File[/etc/imagefactory/imagefactory.conf]/mode: mode changed '0644' to '0600'
notice: /Stage[main]/Aeolus::Image-factory/Augeas[imagefactory.conf]/returns: executed successfully
@n1zyy
n1zyy / gist:2870181
Created June 4, 2012 18:57
aeolus-configure failure on fresh F16 install
[root@dell-pe1855-02 ~]# aeolus-configure
Launching aeolus configuration recipe...
notice: /File[/usr/share/aeolus-conductor/config/settings.yml]/content: content changed '{md5}5f984898775145f23d80d2322d360373' to '{md5}de2cfdfe3bf8120d418f646b839d6edc'
notice: /File[/usr/share/aeolus-conductor/config/initializers/secret_token.rb]/ensure: defined content as '{md5}b3d9e8424504f4ce3d388f4bbea56226'
notice: /File[/rsyslog]/ensure: created
notice: /File[/rsyslog/work]/ensure: created
notice: /File[/etc/ntp/step-tickers]/content: content changed '{md5}32fdc5cdf3f181e7b6987410cf607d15' to '{md5}2dfb9420ebf32c7d97f86526fe6c21e8'
notice: /File[/etc/ntp.conf]/content: content changed '{md5}e5de90852f279b2f85f9aa47160a2598' to '{md5}2dfb9420ebf32c7d97f86526fe6c21e8'
notice: /Stage[main]/Ntp::Client/Service[ntpd]/ensure: ensure changed 'stopped' to 'running'
notice: /Stage[main]/Ntp::Client/Service[ntpd]: Triggered 'refresh' from 2 events
commit 854e33f35b11c358221ecc5f0ddae167c818e816
Author: Jirka Tomasek <[email protected]>
Date: Mon Jun 4 17:45:55 2012 +0200
Converge-ui gelato/master merge
This patchset brings converge-ui into master. Patchset reverts reverted gelato branch merge, adds Brian McLaughlin's gelato patches, implements RM 3364, 3368 and partially 3
0001-Revert-Revert-Merge-branch-gelato.patch
@n1zyy
n1zyy / gist:2705689
Created May 15, 2012 22:41
dbomatic error - from /var/log/aeolus-conductor/dbomatic.log
2012-05-15 18:59:31 INFO Deltacloud refresh completed
2012-05-15 18:59:38 ERROR /usr/share/aeolus-conductor/dbomatic/dbomatic:143:in `exit': exit
2012-05-15 18:59:38 ERROR from /usr/share/aeolus-conductor/dbomatic/dbomatic:143
2012-05-15 18:59:38 ERROR from /usr/share/aeolus-conductor/dbomatic/dbomatic:286:in `call'
2012-05-15 18:59:38 ERROR from /usr/share/aeolus-conductor/dbomatic/dbomatic:286:in `sleep'
2012-05-15 18:59:38 ERROR from /usr/share/aeolus-conductor/dbomatic/dbomatic:286:in `run_parallel'
2012-05-15 18:59:38 ERROR from /usr/share/aeolus-conductor/dbomatic/dbomatic:292:in `refresh_instances'
2012-05-15 18:59:38 ERROR from /usr/share/aeolus-conductor/dbomatic/dbomatic:324
2012-05-15 18:59:38 INFO Deltacloud refresh completed
2012-05-15 18:59:56 INFO DBOmatic starting up
@n1zyy
n1zyy / gist:2704219
Created May 15, 2012 19:01
Deployment create quasi-API
## Create a deployable
## This does NOT explicitly support anything but the web UI.
## It may not work to authenticity token issues.
# Getting catalog_id, hardware_profile values is an exercise for the reader
# deployable[name] is whatever you want to name the deployable
# create_from_image is the image UUID
# save=Save checks the submit button; you shouldn't need this (?)
# utf8=✓ checks for UTF8 support; can probably skip
# Open question is whether this will work without an authenticity token
@n1zyy
n1zyy / gist:2654324
Created May 10, 2012 16:31
OpenStack CredentialDefinitions
# We'll need this a couple times, so grab it up front:
# find_by_name is case-sensitive, at least on PostgreSQL
p_type = ProviderType.find_by_name('Openstack')
# Create a Username credential definition
CredentialDefinition.create!({
:name => 'username',
:label => 'Username',
:input_type => 'text',
:provider_type => p_type
$ curl -k --user admin:admin https://sat-perf-04/katello/api/organizations/ACME_Corporation/environments.json
{"displayMessage":"PGError: ERROR: column environments.format does not exist\nLINE 1: SELECT \"environments\".* FROM \"environments\" WHERE \"environme...\n ^\n: SELECT \"environments\".* FROM \"environments\" WHERE \"environments\".\"format\" = 'json' AND \"environments\".\"organization_id\" = 1","errors":["PGError: ERROR: column environments.format does not exist\nLINE 1: SELECT \"environments\".* FROM \"environments\" WHERE \"environme...\n ^\n: SELECT \"environments\".* FROM \"environments\" WHERE \"environments\".\"format\" = 'json' AND \"environments\".\"organization_id\" = 1"]}
$ rpm -qa | grep deltacloud
rubygem-deltacloud-client-0.4.0-1.fc16.noarch
deltacloud-core-openstack-0.5.0-2.fc16.noarch
deltacloud-core-0.5.0-2.fc16.noarch
deltacloud-core-rackspace-0.5.0-2.fc16.noarch
$ rpm -qa | grep cloudserver
rubygem-cloudservers-0.4.2-1.fc16.noarch
python-cloudservers-1.2-3.fc16.noarch
@n1zyy
n1zyy / gist:2431166
Created April 20, 2012 19:21
Deltacloud + OpenStack
# First, make sure you have openstack support...
# $ $ deltacloudd --drivers | grep openstack
# * openstack
#
# You may have to create one first...
# X-Deltacloud-Provider should be something like:
# http://virtblade12.example.com:8774/v1.1/
p = Provider.find_by_name 'openstack'
@n1zyy
n1zyy / gist:1854736
Created February 17, 2012 18:29
BZ 794759 comparison
#
# Quick test of my patch for https://bugzilla.redhat.com/show_bug.cgi?id=794759
#
# PoolFamily statistics
stime = Time.now.to_f
100.times do
pf = PoolFamily.find_by_name 'default'
pf.statistics
end