Skip to content

Instantly share code, notes, and snippets.

$ testr list-tests tempest.api.compute.servers.test_servers
running=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-500} \
OS_TEST_LOCK_PATH=${OS_TEST_LOCK_PATH:-${TMPDIR:-'/tmp'}} \
${PYTHON:-python} -m subunit.run discover -t ./ ${OS_TEST_PATH:-./tempest/test_discover} --list
tempest.api.compute.servers.test_servers.ServersTestJSON.test_create_server_with_admin_password[gate]
tempest.api.compute.servers.test_servers.ServersTestJSON.test_create_server_with_ipv6_addr_only[gate]
tempest.api.compute.servers.test_servers.ServersTestJSON.test_create_server_x[gate]
tempest.api.compute.servers.test_servers.ServersTestJSON.test_create_specify_keypair[gate]
# Sample ``local.conf`` for user-configurable variables in ``stack.sh``
# NOTE: Copy this file to the root ``devstack`` directory for it to
# work properly.
# ``local.conf`` is a user-maintained setings file that is sourced from ``stackrc``.
# This gives it the ability to override any variables set in ``stackrc``.
# Also, most of the settings in ``stack.sh`` are written to only be set if no
# value has already been set; this lets ``local.conf`` effectively override the
# default values.
# Sample ``local.conf`` for user-configurable variables in ``stack.sh``
# NOTE: Copy this file to the root ``devstack`` directory for it to
# work properly.
# ``local.conf`` is a user-maintained setings file that is sourced from ``stackrc``.
# This gives it the ability to override any variables set in ``stackrc``.
# Also, most of the settings in ``stack.sh`` are written to only be set if no
# value has already been set; this lets ``local.conf`` effectively override the
# default values.
[Results]
containers = 30
flavor = 64 MB Container
image = Debian 7 LXC
[create]
mean = 7.24
min = 5.68
max = 31.49
$ testr run tempest.api.compute.servers.test_servers.ServersTestJSON.test_update_server_name
running=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-500} \
OS_TEST_LOCK_PATH=${OS_TEST_LOCK_PATH:-${TMPDIR:-'/tmp'}} \
${PYTHON:-python} -m subunit.run discover -t ./ ${OS_TEST_PATH:-./tempest/test_discover} --list
running=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-500} \
OS_TEST_LOCK_PATH=${OS_TEST_LOCK_PATH:-${TMPDIR:-'/tmp'}} \
@nelsnelson
nelsnelson / pip.log
Last active August 29, 2015 14:06
Yet another devstack failure
Downloading/unpacking pip
Getting page https://pypi.python.org/simple/pip/
Could not fetch URL https://pypi.python.org/simple/pip/: connection error: [Errno 1] _ssl.c:510: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
Will skip URL https://pypi.python.org/simple/pip/ when looking for download links for pip
Getting page https://pypi.python.org/simple/
Could not fetch URL https://pypi.python.org/simple/: connection error: HTTPSConnectionPool(host='pypi.python.org', port=443): Max retries exceeded with url: /simple/ (Caused by <class 'httplib.CannotSendRequest'>: )
Will skip URL https://pypi.python.org/simple/ when looking for download links for pip
Cannot fetch index base URL https://pypi.python.org/simple/
URLs to search for versions for pip:
* https://pypi.python.org/simple/pip/
# sudo jgem install --local /tmp/passenger-4.0.50.gem
Building native extensions. This could take a while...
/usr/java/jruby-1.7.15/lib/ruby/shared/rubygems/ext/ext_conf_builder.rb:43 warning: Tempfile#unlink or delete called on open file; ignoring
ERROR: Error installing /tmp/passenger-4.0.50.gem:
ERROR: Failed to build gem native extension.
/usr/java/jruby/bin/jruby extconf.rb
Attempting to download https://oss-binaries.phusionpassenger.com/binaries/passenger/by_release/4.0.50/rubyext-jruby-1.9.3-java-linux.tar.gz into /usr/java/jruby-1.7.15/lib/ruby/gems/shared/gems/passenger-4.0.50/download_cache
*** Could not download https://oss-binaries.phusionpassenger.com/binaries/passenger/by_release/4.0.50/rubyext-jruby-1.9.3-java-linux.tar.gz: The requested URL returned error: 404 Not Found
Attempting to download https://s3.amazonaws.com/phusion-passenger/binaries/passenger/by_release/4.0.50/rubyext-jruby-1.9.3-java-linux.tar.gz into /usr/java/jruby-1.7.15/lib/ruby/gems/shared/gems/passenger-4.0.50/downloa
pushd /opt/stack/tempest
[[ -d .testrepository ]] || { echo "Initializing tempest workspace"; testr init; }
ps -eaf | grep -v grep | grep qemu-nbd
pgrep -f qemu-nbd | xargs -n1 echo sudo kill -9
ls /dev/nbd* | xargs -n1 sudo qemu-nbd --disconnect
sed -i 's/\#suspend\=true/#suspend=true\nsuspend=false/' /opt/stack/tempest/etc/tempest.conf
sed -i 's/\#rescue\=true/#rescue=true\nrescue=false/' /opt/stack/tempest/etc/tempest.conf
sed -i 's/\#xml_api_v2\=true/#xml_api_v2=true\nxml_api_v2=false/' /opt/stack/tempest/etc/tempest.conf
ssh.remote_exec(proxy.accessIPv4, proxy.adminPass,
('export TERM=xterm-256color; '
'export PATH="$PATH:/sbin:/usr/sbin";'
'apt-get install -y apt-utils dialog '
'libterm-readline-perl-perl ssh-client '
'>/root/ssh-client.install.out'))
@nelsnelson
nelsnelson / local.conf
Last active August 29, 2015 14:06
local.conf
# Sample ``local.conf`` for user-configurable variables in ``stack.sh``
# NOTE: Copy this file to the root ``devstack`` directory for it to
# work properly.
# ``local.conf`` is a user-maintained setings file that is sourced from ``stackrc``.
# This gives it the ability to override any variables set in ``stackrc``.
# Also, most of the settings in ``stack.sh`` are written to only be set if no
# value has already been set; this lets ``local.conf`` effectively override the
# default values.