Skip to content

Instantly share code, notes, and snippets.

View terriyu's full-sized avatar

Terri Yu terriyu

View GitHub Profile
@terriyu
terriyu / assert-index-information-debug.txt
Last active December 19, 2015 19:18
If I put in an `assert False, self.db.meter.index_information()` statement in the `get_samples()` function inside `ceilometer/storage/impl_mongodb.py`, I see that the value of `index_information()` is correct: {u'_id_': {u'key': [(u'_id', 1)], u'v': 1}, u'timestamp_idx': {u'key': [(u'timestamp', -1)], u'v': 1}, u'meter_idx': {u'key': [(u'resourc…
This file has been truncated, but you can view the full file.
$ tox -e py27
GLOB sdist-make: /opt/stack/ceilometer/setup.py
py27 inst-nodeps: /opt/stack/ceilometer/.tox/dist/ceilometer-2013.2.a211.gb778415.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
+ bash tools/init_testr_if_needed.sh
@terriyu
terriyu / dmesg-memory.txt
Created July 23, 2013 17:29
Troubleshooting MongoDB connection problems, checking for out-of-memory errors in the kernel, but "dmesg | grep -i memory" doesn't return anything out-of-the-ordinary.
$ dmesg | grep -i memory
[ 0.000000] initial memory mapped : 0 - 20000000
[ 0.000000] Base memory trampoline at [ffff88000009a000] 9a000 size 20480
[ 0.000000] init_memory_mapping: 0000000000000000-000000007fff0000
[ 0.000000] PM: Registered nosave memory: 000000000009f000 - 00000000000a0000
[ 0.000000] PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
[ 0.000000] PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
[ 0.000000] Memory: 2033420k/2097088k available (6566k kernel code, 452k absent, 63216k reserved, 6637k data, 920k init)
[ 0.000000] please try 'cgroup_disable=memory' option if you don't want memory cgroups
[ 0.021585] Initializing cgroup subsys memory
@terriyu
terriyu / vagrant-df.txt
Created July 23, 2013 17:56
Troubleshooting MongoDB connection problems, checking for out-of-memory errors in the kernel, but running "df" in the vagrant VM doesn't return anything out-of-the-ordinary.
$ df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/precise64-root 82711212 11900608 66668320 16% /
udev 1016708 4 1016704 1% /dev
tmpfs 410308 296 410012 1% /run
none 5120 0 5120 0% /run/lock
none 1025768 0 1025768 0% /run/shm
cgroup 1025768 0 1025768 0% /sys/fs/cgroup
/dev/sda1 233191 24974 195776 12% /boot
/vagrant 30963708 25486872 5476836 83% /vagrant
@terriyu
terriyu / diary-15jul2013.md
Last active December 20, 2015 03:39
Journal for OpenStack Ceilometer work -- 15 Jul 2013
@terriyu
terriyu / diary-16jul2013.md
Created July 23, 2013 20:02
Journal for OpenStack Ceilometer work -- 16 Jul 2013

16 Jul 2013

OPW meeting

Attended the OPW meeting and introduced myself. Brought up my idea to have all the interns play an online game together and it seemed well-received. There will probably be 3 more meetings after this one.

Blog

@terriyu
terriyu / diary-17jul2013.md
Created July 23, 2013 20:02
Journal for OpenStack Ceilometer work -- 17 Jul 2013

17 Jul 2013

Creating new channels on IRC

I learned that I can create my own channels on IRC. To this on Freenode, I just do

/join ##channelname
@terriyu
terriyu / no-sort-error-database-x-12000.txt
Last active December 20, 2015 06:59
Previously, newly merged Ceilometer code broke my test to throw a sorting error when there is no index. After jd's patch "Change Ia2ff201c: Disable mongod prealloc, wait for it to start" was merged (+ possibly other changes), seems like my test is working again. If I make the test database 12000 times larger, I don't get any sorting error. The t…
$ tox -e py27 -- tests.storage.test_impl_mongodb.RawSampleTest.test_get_samples_in_default_order
GLOB sdist-make: /opt/stack/ceilometer/setup.py
py27 inst-nodeps: /opt/stack/ceilometer/.tox/dist/ceilometer-2013.2.a263.g33b691f.zip
py27 runtests: commands[0] | bash -x /opt/stack/ceilometer/run-tests.sh tests.storage.test_impl_mongodb.RawSampleTest.test_get_samples_in_default_order
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
+ '[' tests.storage.test_impl_mongodb.RawSampleTest.test_get_samples_in_default_order = --coverage ']'
@terriyu
terriyu / sorting-error-database-x-15000.txt
Last active December 20, 2015 06:59
Previously, newly merged Ceilometer code broke my test to throw a sorting error when there is no index. After jd's patch "Change Ia2ff201c: Disable mongod prealloc, wait for it to start" was merged (+ possibly other changes), seems like my test is working again. If I make the test database 15000 times larger, I do get a sorting error and it take…
$ tox -e py27 -- tests.storage.test_impl_mongodb.RawSampleTest.test_get_samples_in_default_order
GLOB sdist-make: /opt/stack/ceilometer/setup.py
py27 inst-nodeps: /opt/stack/ceilometer/.tox/dist/ceilometer-2013.2.a263.g33b691f.zip
py27 runtests: commands[0] | bash -x /opt/stack/ceilometer/run-tests.sh tests.storage.test_impl_mongodb.RawSampleTest.test_get_samples_in_default_order
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
+ '[' tests.storage.test_impl_mongodb.RawSampleTest.test_get_samples_in_default_order = --coverage ']'
@terriyu
terriyu / diary-23jul2013.md
Last active December 20, 2015 07:08
Journal for OpenStack Ceilometer work -- 23 Jul 2013
@terriyu
terriyu / ifconfig.txt
Created August 9, 2013 23:26
Checking the networking configuration inside my Vagrant VM running Ubuntu 12.04
$ ifconfig
eth0 Link encap:Ethernet HWaddr 08:00:27:88:0c:a6
inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fe88:ca6/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:143744 errors:0 dropped:0 overruns:0 frame:0
TX packets:110109 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:95178928 (95.1 MB) TX bytes:15596188 (15.5 MB)