Skip to content

Instantly share code, notes, and snippets.

View terriyu's full-sized avatar

Terri Yu terriyu

View GitHub Profile
@terriyu
terriyu / ceilometer-tests-mongodb-version-failures.txt
Last active December 21, 2015 01:29
When I ran the Ceilometer test suite after pulling the latest changes, I got failures due to my MongoDB version being too old. The error was `StorageBadVersion: Need at least MongoDB 2.2`
GLOB sdist-make: /opt/stack/ceilometer/setup.py
py27 inst-nodeps: /opt/stack/ceilometer/.tox/dist/ceilometer-2013.2.a354.g1e8b2b9.zip
py27 runtests: commands[0] | bash -x /opt/stack/ceilometer/run-tests.sh
WARNING:test command found but not installed in testenv
cmd: /bin/bash
env: /opt/stack/ceilometer/.tox/py27
Maybe forgot to specify a dependency?
+ set -e
+ '[' '' = --coverage ']'
+ '[' '!' '' ']'
@terriyu
terriyu / ceilometer-tests-username-password-warnings.txt
Last active December 21, 2015 01:29
When I run the Ceilometer tests, I get many warnings of type: /opt/stack/ceilometer/.tox/py27/local/lib/python2.7/site-packages/pymongo/mongo_client.py:343: UserWarning: database name or authSource in URI is being ignored. If you wish to authenticate to ceilometer_a5ced50f742149e8b4a36041cab8946f, you must provide a username and password. "must …
$ cd /opt/stack/ceilometer
$ tox -e py27
GLOB sdist-make: /opt/stack/ceilometer/setup.py
py27 inst-nodeps: /opt/stack/ceilometer/.tox/dist/ceilometer-2013.2.a354.g1e8b2b9.zip
py27 runtests: commands[0] | bash -x /opt/stack/ceilometer/run-tests.sh
WARNING:test command found but not installed in testenv
cmd: /bin/bash
env: /opt/stack/ceilometer/.tox/py27
Maybe forgot to specify a dependency?
+ set -e
@terriyu
terriyu / diary-9aug2013.md
Created August 14, 2013 06:56
Journal for OpenStack Ceilometer work -- 9 Aug 2013

9 Aug 2013

Patches I submitted

Unused variable self.counters in storage tests

The list variable self.counters is created and appended to, in the storage test class StatisticsTest of tests/storage/base.py

However, the variable never does anything useful, as far as I can tell.

@terriyu
terriyu / stack-sh-log-permission-denied-failure.txt
Last active December 21, 2015 01:38
Devstack failed to install when I ran the stack.sh script, due to this error: IOError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/prettytable-0.7.2.egg-info/top_level.txt' [Reference: bug reports https://bugs.launchpad.net/devstack/+bug/1210376 https://bugs.launchpad.net/devstack/+bug/1210520]
2013-08-12 18:51:28 stack.sh log /opt/stack/logs/stack.sh.log.2013-08-12-185127
2013-08-12 18:51:28 + echo_summary 'Installing package prerequisites'
2013-08-12 18:51:28 + [[ -t 3 ]]
2013-08-12 18:51:28 + [[ True != \T\r\u\e ]]
2013-08-12 18:51:28 + echo -e Installing package prerequisites
2013-08-12 18:51:28 + source /home/vagrant/devstack/tools/install_prereqs.sh
2013-08-12 18:51:28 Installing package prerequisites
2013-08-12 18:51:28 ++ [[ -n '' ]]
2013-08-12 18:51:28 ++ [[ -z /home/vagrant/devstack ]]
2013-08-12 18:51:28 ++ PREREQ_RERUN_MARKER=/home/vagrant/devstack/.prereqs
@terriyu
terriyu / stack-sh-log-mongodb-failure.txt
Last active December 21, 2015 01:39
When I run ./stack.sh to install Devstack and it tries to start a MongoDB database connection for Ceilometer, I get the following error: JavaScript execution failed: Error: couldn't connect to server 127.0.0.1:27017 at src/mongo/shell/mongo.js:L112
$ ./stack.sh
2013-08-12 19:51:23 stack.sh log /opt/stack/logs/stack.sh.log.2013-08-12-195123
2013-08-12 19:51:23 + echo_summary 'Installing package prerequisites'
2013-08-12 19:51:23 + [[ -t 3 ]]
2013-08-12 19:51:23 + [[ True != \T\r\u\e ]]
2013-08-12 19:51:23 + echo -e Installing package prerequisites
2013-08-12 19:51:23 Installing package prerequisites
2013-08-12 19:51:23 + source /home/vagrant/devstack/tools/install_prereqs.sh
2013-08-12 19:51:23 ++ [[ -n '' ]]
2013-08-12 19:51:23 ++ [[ -z /home/vagrant/devstack ]]
@terriyu
terriyu / ceilometer-tests-nova-notifier-failures.txt
Last active December 21, 2015 01:39
When I run the Ceilometer unit tests, the tests for Nova notifier fail. The relevant traceback from running the Ceilometer unit tests: Traceback (most recent call last): File "/opt/stack/ceilometer/.tox/py27/local/lib/python2.7/site-packages/mock.py", line 1201, in patched return func(*args, **keywargs) File "/opt/stack/ceilometer/nova_tests/tes…
$ cd /opt/stack/ceilometer
$ tox -e py27
GLOB sdist-make: /opt/stack/ceilometer/setup.py
py27 inst-nodeps: /opt/stack/ceilometer/.tox/dist/ceilometer-2013.2.a378.g90ad86c.zip
py27 runtests: commands[0] | bash -x /opt/stack/ceilometer/run-tests.sh
WARNING:test command found but not installed in testenv
cmd: /bin/bash
env: /opt/stack/ceilometer/.tox/py27
Maybe forgot to specify a dependency?
+ set -e
@terriyu
terriyu / diary-12aug2013.md
Last active December 21, 2015 01:48
Journal for OpenStack Ceilometer work -- 12 Aug 2013

12 Aug 2013

Questions

Beyond unit testing

I wanted to know more about other kinds of testing besides unit testing, for example, coverage testing. Unit testing is the lowest level type of test, but there are higher level tests like integration or validation/verification

@terriyu
terriyu / ceilometer-alarm-test-failures.txt
Last active December 21, 2015 01:48
When I run the ceilometer test suite, I get many failures in the alarm threshold evaluation tests. The error message is: NameError: global name '_' is not defined [Reference: bug report https://bugs.launchpad.net/ceilometer/+bug/1211975]
$ cd /opt/stack/ceilometer
$ tox -e py27
GLOB sdist-make: /opt/stack/ceilometer/setup.py
py27 inst-nodeps: /opt/stack/ceilometer/.tox/dist/ceilometer-2013.2.a379.g486f723.zip
py27 runtests: commands[0] | bash -x /opt/stack/ceilometer/run-tests.sh
WARNING:test command found but not installed in testenv
cmd: /bin/bash
env: /opt/stack/ceilometer/.tox/py27
Maybe forgot to specify a dependency?
+ set -e
@terriyu
terriyu / tox-output-groupby-tests.txt
Last active December 21, 2015 01:48
These are the Ceilometer test results for my 2nd patchset containing storage tests for a group by feature. [Reference: Patch Set 2 of https://review.openstack.org/#/c/41597/]
$ cd /opt/stack/ceilometer
$ tox -e py27 -- storage
GLOB sdist-make: /opt/stack/ceilometer/setup.py
py27 inst-nodeps: /opt/stack/ceilometer/.tox/dist/ceilometer-2013.2.a380.g83df81b.zip
py27 runtests: commands[0] | bash -x /opt/stack/ceilometer/run-tests.sh storage
WARNING:test command found but not installed in testenv
cmd: /bin/bash
env: /opt/stack/ceilometer/.tox/py27
Maybe forgot to specify a dependency?
+ set -e
@terriyu
terriyu / ceilometer-test-results-mongodb-username-warnings.txt
Last active December 21, 2015 02:49
I ran the Ceilometer test suite after cherry-picking sileht's patch https://review.openstack.org/#/c/41719/ My goal was to check if the patch eliminates all the annoying MongoDB username/password warnings. Seems like all the warnings were eliminated except for 3.
$ cd /opt/stack/ceilometer
$ tox -e py27
GLOB sdist-make: /opt/stack/ceilometer/setup.py
py27 inst-nodeps: /opt/stack/ceilometer/.tox/dist/ceilometer-2013.2.a380.gaf61876.zip
py27 runtests: commands[0] | bash -x /opt/stack/ceilometer/run-tests.sh
WARNING:test command found but not installed in testenv
cmd: /bin/bash
env: /opt/stack/ceilometer/.tox/py27
Maybe forgot to specify a dependency?
+ set -e