Skip to content

Instantly share code, notes, and snippets.

View igable's full-sized avatar

Ian Gable igable

  • Stardog
  • Victoria, Canada
View GitHub Profile
@igable
igable / gist:716141
Created November 26, 2010 01:06
Extra conf steps for repoman on Ubuntu
ubuntu@domU-12-31-39-14-F9-6A:/etc/apache2$ sudo a2enmod ssl
Enabling module ssl.
See /usr/share/doc/apache2.2-common/README.Debian.gz on how to configure SSL and create self-signed certificates.
Run '/etc/init.d/apache2 restart' to activate new configuration!
ubuntu@domU-12-31-39-14-F9-6A:/etc/init.d$ sudo apt-get install libapache2-mod-wsgi
ubuntu@domU-12-31-39-14-F9-6A:/etc/init.d$ sudo a2enmod wsgi
@igable
igable / gist:722440
Created November 30, 2010 21:28
wriitng optparse help
#!/usr/bin/python
#
#
#
# This script watches a TeX file for changes and then runs the
# latex compiler rubber is the file has changed. It then pop open
# the mac pdf viewer Preview.
#
#
sabadoo:repoman igable$ ec2-get-console-output i-98edc1f5
i-98edc1f5
2010-12-09T18:20:43+0000
[ 0.000000] Linux version 2.6.18-xenU-ec2-v1.0 (root@domU-12-31-39-00-49-B3) (gcc version 4.0.2 20051125 (Red Hat 4.0.2-8)) #2 SMP Tue Feb 19 10:51:53 EST 2008
[ 0.000000] BIOS-provided physical RAM map:
[ 0.000000] Xen: 0000000000000000 - 000000006d400000 (usable)
[ 0.000000] 1020MB HIGHMEM available.
[ 0.000000] 727MB LOWMEM available.
[ 0.000000] NX (Execute Disable) protection: active
[ 0.000000] Allocating PCI resources starting at 70000000 (gap: 6d400000:92c00000)
[igable@elephant vmrepo]$ repoman describe-image bbrA52-2-cvmfs
uploaded: Mon Dec 20 19:19:36 2010
read_only: False
uuid: 153879640c6e11e098b20024e846fbc8
name: bbrA52-2-cvmfs
unauthenticated_access: True
checksum: {u'type': None, u'value': None}
os_variant: scientificlinux5_5
[igable@elephant ~]$ repoman describe-image bbrA52-2-cvmfs
uploaded: Mon Dec 20 21:20:38 2010
read_only: False
uuid: fde63f6a0c7e11e09df70024e846fbc8
name: bbrA52-2-cvmfs
unauthenticated_access: True
checksum: {u'type': None, u'value': None}
os_variant: scientificlinux5_5
[igable@elephant ~]$ repoman modify-image bbrA52-2-cvmfs --name bbrA52-2-cvmfs.gz
Updating image bbrA52-2-cvmfs with metadata:
name: bbrA52-2-cvmfs
Updating metadata.
Metadata modification complete.
[igable@elephant ~]$
[igable@elephant ~]$
[igable@elephant ~]$ repoman list-images
Images for user igable:
bbrA52-2-cvmfs
$ vagrant box add scientificlinux-60 http://vmrepo.heprc.uvic.ca/scientificlinux-60.box
$ mkdir sl6-test
$ cd sl6-test/
$ vagrant init scientificlinux-60
$ vagrant up
$ vagrant ssh
#tcp tunning
net.core.rmem_max = 16777216
net.core.wmem_max = 16777216
net.ipv4.tcp_rmem = 4096 87380 16777216
net.ipv4.tcp_wmem = 4096 65536 16777216
net.ipv4.tcp_congestion_control=htcp
@igable
igable / fdt_lustre_exception
Created November 5, 2011 23:28
Exception when writing to a Lustre FS with FDT. FDT server run on the machine with the mounted LustreFS
Nov 5, 2011 4:23:01 PM lia.util.net.copy.FileWriterSession getChannel
WARNING: [ FileWriterSession ] Cannot lock file: /xyratex/ianfdt/ssd/atlas/group10.perf-tau.00182787.Egamma-AOD.f382_m866.01-01-02.D3PD.110608134836_TauMEDIUM/.group10.perf-tau.22321_009494.TauMEDIUM._00001.root; will try to write without lock taken. Cause:
java.io.IOException: Function not implemented
at sun.nio.ch.FileChannelImpl.lock0(Native Method)
at sun.nio.ch.FileChannelImpl.lock(FileChannelImpl.java:832)
at java.nio.channels.FileChannel.lock(FileChannel.java:860)
at lia.util.net.copy.FileWriterSession.getChannel(FileWriterSession.java:126)
at lia.util.net.copy.disk.DiskWriterTask.run(DiskWriterTask.java:151)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
@igable
igable / lookup_service.log
Created December 9, 2011 22:39
Multiple Instances of this error message are found in the perfSonar-PS 3.2.1 Toolkit Loopup Service log
2011/12/09 17:25:35 (3070) INFO> daemon.pl:567 main::psService - Received incoming connection from: 161.45.190.11
2011/12/09 17:25:35 (9330) ERROR> XMLDB.pm:322 perfSONAR_PS::DB::XMLDB::openDB - Error "Error: Cannot call XmlManager::createTransaction when transactions are not initialized in /opt/perfsonar_ps/lookup_service/bin/../lib/perfSONAR_PS/DB/XMLDB.pm, line 287".
2011/12/09 17:25:35 (9330) WARN> gLS.pm:387 perfSONAR_PS::Services::LS::gLS::prepareDatabase - Waiting on DBXML error.
2011/12/09 17:25:40 (9330) ERROR> XMLDB.pm:322 perfSONAR_PS::DB::XMLDB::openDB - Error "Error: Cannot call XmlManager::createTransaction when transactions are not initialized in /opt/perfsonar_ps/lookup_service/bin/../lib/perfSONAR_PS/DB/XMLDB.pm, line 287".
2011/12/09 17:25:40 (9330) WARN> gLS.pm:387 perfSONAR_PS::Services::LS::gLS::prepareDatabase - Waiting on DBXML error.
2011/12/09 17:25:45 (9330) ERROR> XMLDB.pm:322 perfSONAR_PS::DB::XMLDB::openDB - Error "Error: Cannot call XmlManager::createTran