Skip to content

Instantly share code, notes, and snippets.

@nelsnelson
nelsnelson / bootstrap.sh
Last active August 29, 2015 14:10
puppet installation warnings
#! /usr/bin/env bash
# Upgrade the server, install git, update the system clock, set up a
# "jenkins" account, add user "jenkins" to sudoers, install pip packages,
# add tox via pip (because the packaged version is too old) and reboot to
# make sure you're running a current kernel:
apt-get update --fix-missing
export DEBIAN_FRONTEND=noninteractive
echo "debconf debconf/frontend select Noninteractive" | debconf-set-selections
apt-get upgrade -o Dpkg::Options::="--force-confnew" --assume-yes --fix-missing
@nelsnelson
nelsnelson / paramiko.out.txt
Created December 4, 2014 18:01
paramiko failures
2014-12-04 09:48:35,667 INFO [SSH] Connecting to [email protected]:22 with keyfile ./id_rsa
2014-12-04 09:48:50,746 ERROR [paramiko.transport] Exception: Error reading SSH protocol banner
2014-12-04 09:48:50,751 ERROR [paramiko.transport] Traceback (most recent call last):
2014-12-04 09:48:50,752 ERROR [paramiko.transport] File "/usr/local/lib/python2.7/dist-packages/paramiko/transport.py", line 1412, in run
2014-12-04 09:48:50,752 ERROR [paramiko.transport] self._check_banner()
2014-12-04 09:48:50,753 ERROR [paramiko.transport] File "/usr/local/lib/python2.7/dist-packages/paramiko/transport.py", line 1539, in _check_banner
2014-12-04 09:48:50,754 ERROR [paramiko.transport] raise SSHException('Error reading SSH protocol banner' + str(e))
2014-12-04 09:48:50,755 ERROR [paramiko.transport] SSHException: Error reading SSH protocol banner
2014-12-04 09:48:50,756 ERROR [paramiko.transport]
2014-12-04 09:48:50,759 ERROR [SSH] Remote execution error: Error reading SSH protocol banner
@nelsnelson
nelsnelson / puppet.txt
Created December 4, 2014 16:40
devstack-gate puppet install failure?
Setting up puppet-common (3.7.3-1puppetlabs1) ...
Setting up puppet (3.7.3-1puppetlabs1) ...
* Starting puppet agent
puppet not configured to start, please edit /etc/default/puppet to enable
...done.
Processing triggers for libc-bin (2.19-0ubuntu6.4) ...
Processing triggers for ureadahead (0.100.0-16) ...
Warning: Setting templatedir is deprecated. See http://links.puppetlabs.com/env-settings-deprecations
(at /usr/lib/ruby/vendor_ruby/puppet/settings.rb:1139:in `issue_deprecation_warning')
Setting up puppet (3.7.3-1puppetlabs1) ...
* Starting puppet agent
puppet not configured to start, please edit /etc/default/puppet to enable
...done.
Processing triggers for libc-bin (2.19-0ubuntu6.3) ...
Processing triggers for ureadahead (0.100.0-16) ...
/tmp/a/scripts/openstack-infra-install.sh: line 8: config/install_modules.sh: No such file or directory
cat: /root/.ssh/id_rsa.pub: No such file or directory
Warning: Setting templatedir is deprecated. See http://links.puppetlabs.com/env-settings-deprecations
@nelsnelson
nelsnelson / driver.py
Last active August 29, 2015 14:10
cached image meta data
def _get_cached_image_metadata(self, instance):
# Get the system metadata from the instance
system_meta = utils.instance_sys_meta(instance)
cached_image = utils.get_image_from_system_metadata(system_meta)
# The cached_image should at least contain the inheritable
# properties dictionary, so if there are more entries than
# only the properties entry, then such meta data is sufficient
$ tox -epy27 -- test_connect_auth_cb_exception
py27 develop-inst-nodeps: /home/nels.nelson/src/nova
py27 runtests: commands[0] | find . -type f -name *.pyc -delete
WARNING:test command found but not installed in testenv
cmd: /usr/bin/find
env: /home/nels.nelson/src/nova/.tox/py27
Maybe forgot to specify a dependency?
py27 runtests: commands[1] | bash tools/pretty_tox.sh test_connect_auth_cb_exception
WARNING:test command found but not installed in testenv
cmd: /bin/bash
$ tox -epy27 -- nova.tests.virt.libvirt.libvirt_driver
py27 develop-inst-nodeps: /home/nels.nelson/src/nova
py27 runtests: commands[0] | find . -type f -name *.pyc -delete
WARNING:test command found but not installed in testenv
cmd: /usr/bin/find
env: /home/nels.nelson/src/nova/.tox/py27
Maybe forgot to specify a dependency?
py27 runtests: commands[1] | bash tools/pretty_tox.sh nova.tests.virt.libvirt.libvirt_driver
WARNING:test command found but not installed in testenv
cmd: /bin/bash
nels.nelson@sol:~/src/devstack-gate[libvirt_type_support]$ git review -s
cc57c76 - Adding support for DEVSTACK_GATE_LIBVIRT_TYPE
be0846e - Merge "Set ZAQAR_BACKEND in localrc if present"
7eb88e1 - Merge "yum non interactive"
c9d69d8 - Set ZAQAR_BACKEND in localrc if present
3875417 - Merge "Rename config => system-config in devstack-gate"
5dca9af - yum non interactive
31ec62b - Improved error message for when branch not whitelisted in features yaml
f2749aa - Merge "Add kilo to features.yaml"
4f8668d - Merge "Havana branches are dead, remove havana from d-g"
#! /usr/bin/env bash
export REPO_URL=https://review.openstack.org/p
export WORKSPACE=/home/jenkins/workspace/testing
export ZUUL_REF=HEAD
export ZUUL_PROJECT=openstack/nova
export ZUUL_BRANCH=master
export PYTHONUNBUFFERED=true
export DEVSTACK_GATE_TIMEOUT=120
export DEVSTACK_GATE_TEMPEST=1
nels.nelson@durga:~/src/go/src/github.com/docker$ DEBUG=true ./bundles/1.3.0-dev/binary/docker-1.3.0-dev hosts create --driver="rackspace" --rackspace-username="${RS_USERNAME}" --rackspace-api-key="${RS_APIKEY}" --rackspace-region="IAD" coreos
[2014-10-28T23:15:31.822242066-05:00] [info] Creating Rackspace server [docker-host-e55f95b3c535ef3918de7f61ab6b6f7e87b8996137cb21c04b4551590449e3ab]...
[2014-10-28T23:15:31.822390350-05:00] [debug] log.go:52 Authenticating with your Rackspace credentials.
[2014-10-28T23:15:34.045733968-05:00] [debug] log.go:52 Image 'CoreOS (Alpha)' with id=325a1c78-78e1-4367-be7a-1334b088018a chosen.
[2014-10-28T23:15:34.046205136-05:00] [debug] log.go:52
[2014-10-28T23:15:34.157850653-05:00] [debug] log.go:52 Flavor '1 GB Performance' with id=performance1-1 chosen.
[2014-10-28T23:15:34.158381953-05:00] [debug] log.go:52 Creating a new SSH key [docker-host-e55f95b3c535ef3918de7f61ab6b6f7e87b8996137cb21c04b4551590449e3ab-key].
[2014-10-28T23:15:34.159035146-05:00] [debug] log.go:52 ex