Skip to content

Instantly share code, notes, and snippets.

View remitaffin's full-sized avatar

Remi Taffin remitaffin

View GitHub Profile
@remitaffin
remitaffin / gist:7b7d85b99a2988e4bfc4
Created April 20, 2015 22:41
ReplicaSet status()
MongoDB shell version: 2.6.5
connecting to: production
NoodleRS:PRIMARY> rs.status()
{
"set" : "NoodleRS",
"date" : ISODate("2015-04-20T22:41:12Z"),
"myState" : 1,
"members" : [
{
"_id" : 0,
@remitaffin
remitaffin / gist:24a0ead469ae8f0955c2
Created April 20, 2015 22:38
sudo service datadog-agent info
===================
Collector (v 5.2.2)
===================
Status date: 2015-04-20 22:39:31 (13s ago)
Pid: 13470
Platform: Linux-3.2.0-61-virtual-x86_64-with-debian-wheezy-sid
Python Version: 2.7.9
Logs: <stderr>, /var/log/datadog/collector.log, syslog:/dev/log
@remitaffin
remitaffin / gist:cfea9a4f79061f86392e
Created April 20, 2015 22:37
Last 300 lines of prod_mongo_primary (this server has replication on)
File "/opt/datadog-agent/agent/util.py", line 326, in get_tags
iam_role = urllib2.urlopen(EC2.URL + "/iam/security-credentials").read().strip()
File "/opt/datadog-agent/embedded/lib/python2.7/urllib2.py", line 154, in urlopen
return opener.open(url, data, timeout)
File "/opt/datadog-agent/embedded/lib/python2.7/urllib2.py", line 437, in open
response = meth(req, response)
File "/opt/datadog-agent/embedded/lib/python2.7/urllib2.py", line 550, in http_response
'http', request, response, code, msg, hdrs)
File "/opt/datadog-agent/embedded/lib/python2.7/urllib2.py", line 475, in error
return self._call_chain(*args)
vagrant@ubuntu-14:/noodle/dbor_wip$ sudo apt-get install libffi-dev libssl-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libssl-dev is already the newest version.
libssl-dev set to manually installed.
The following NEW packages will be installed:
libffi-dev
0 upgraded, 1 newly installed, 0 to remove and 167 not upgraded.
Need to get 99.8 kB of archives.
jenkins@ip-10-178-152-180:~/jobs/11_run_noodleapi_tests/workspace/jenkins$ fig run -T noodleapi bash -c "sleep 2 && python /usr/local/lib/python2.7/dist-packages/pytest.py --ds=settings.test -n 6 -s -m 'not mongotest' --maxfail=1"
============================= test session starts ==============================
platform linux2 -- Python 2.7.3 -- py-1.4.26 -- pytest-2.6.4
plugins: xdist, django
gw0 I / gw1 I / gw2 I / gw3 I / gw4 I / gw5 I
gw0 [816] / gw1 [816] / gw2 [816] / gw3 [816] / gw4 [816] / gw5 [816]
scheduling tests via LoadScheduling
..........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................F
jenkins@ip-10-225-132-11:~/jobs/run_noodleapi_tests/workspace/jenkins$ fig run -T noodleapi bash -c "sleep 2 && python /usr/local/lib/python2.7/dist-packages/pytest.py --ds=settings.test -n 6 -s -m 'not mongotest' --maxfail 1"
============================= test session starts ==============================
platform linux2 -- Python 2.7.3 -- py-1.4.26 -- pytest-2.6.4
plugins: xdist, django
gw0 I / gw1 I / gw2 I / gw3 I / gw4 I / gw5 I
gw0 [815] / gw1 [815] / gw2 [815] / gw3 [815] / gw4 [815] / gw5 [815]
scheduling tests via LoadScheduling
................................................................................................................................................................................................................................................................................................................................................FINTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "/usr/local/lib/python2.7/dist-packages/_pytest/main.py", line 84, in
jenkins@ip-10-225-132-11:~/jobs/run_noodleapi_tests/workspace/jenkins$ fig run -T noodleapi bash -c "sleep 2 && python /usr/local/lib/python2.7/dist-packages/pytest.py --ds=settings.test -n 6 -s -m 'not mongotest' --maxfail 1"
============================= test session starts ==============================
platform linux2 -- Python 2.7.3 -- py-1.4.26 -- pytest-2.6.4
plugins: xdist, django
gw0 I / gw1 I / gw2 I / gw3 I / gw4 I / gw5 I
gw0 [371] / gw1 [371] / gw2 [371] / gw3 [371] / gw4 [371] / gw5 [371]
scheduling tests via LoadScheduling
............................................................................................................................................................................................................................................................................................................................................................FINTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "/usr/local/lib/python2.7/dist-packages/_pytest/main.py",
jenkins@ip-10-225-132-11:~/jobs/run_noodleapi_tests/workspace/jenkins$ fig run -T noodleapi bash -c "sleep 2 && python /usr/local/lib/python2.7/dist-packages/pytest.py --ds=settings.test -n 6 -s -m 'not mongotest'"
============================= test session starts ==============================
platform linux2 -- Python 2.7.3 -- py-1.4.26 -- pytest-2.6.4
plugins: xdist, django
gw0 I / gw1 I / gw2 I / gw3 I / gw4 I / gw5 I
gw0 [371] / gw1 [371] / gw2 [371] / gw3 [371] / gw4 [371] / gw5 [371]
scheduling tests via LoadScheduling
FFFFFFFFFF...F.........F.F.F..........F.F.....F.F.....F..FFFFFFFFFFFFF..F.......F...FFFFFFFFFFFFFFFFFFFFF.FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF...FFFF.FFF.FF......F.....................F.........FFF..FF..F.F......FFFF..FFF.F..F....F.....F..F......FFFF.F.FFFF..FFFF...FFFF.F.FF.FFF..FF.FF..FF.F.FFF.FF.FFFF...FFF.F.FFFFF..FFF.F.F...F..........................F.F..FFF.F.F..FFF.
=================================== FAILURES ===================================
@remitaffin
remitaffin / gist:98f57e2fe889b8c52587
Created March 27, 2015 14:22
6 Processes without mongo
jenkins@ip-10-178-152-180:~/jobs/11_run_noodleapi_tests/workspace/jenkins$ fig run -T noodleapi bash -c "sleep 2 && python /usr/local/lib/python2.7/dist-packages/pytest.py --ds=settings.test -n 6 -s -m 'not mongotest' --maxfail 1"
============================= test session starts ==============================
platform linux2 -- Python 2.7.3 -- py-1.4.26 -- pytest-2.6.4
plugins: xdist, django
gw0 I / gw1 I / gw2 I / gw3 I / gw4 I / gw5 I
gw0 [806] / gw1 [806] / gw2 [806] / gw3 [806] / gw4 [806] / gw5 [806]
scheduling tests via LoadScheduling
...........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
jenkins@ip-10-178-152-180:~/jobs/11_run_noodleapi_tests/workspace/jenkins$ fig run -T noodleapi bash -c "sleep 2 && python /usr/local/lib/python2.7/dist-packages/pytest.py --ds=settings.test -n 5 -s -m 'not mongotest'"
============================= test session starts ==============================
platform linux2 -- Python 2.7.3 -- py-1.4.26 -- pytest-2.6.4
plugins: xdist, django
gw0 I / gw1 I / gw2 I / gw3 I / gw4 I
gw0 [806] / gw1 [806] / gw2 [806] / gw3 [806] / gw4 [806]
scheduling tests via LoadScheduling
..................................................................................................................................................................................................................................................................................................................F........................................................................................................................................................................................................