web/job_detail.html web/jobs.html web/job_submit.html
by Adam Stokes
web/job_detail.html | 1 +
web/job_submit.html | 2 +-
web/jobs.html | 17 ++++++++++-------
3 files changed, 12 insertions(+), 8 deletions(-)
New commits:
commit 9312533427c76c65fa21cb278b3512a2947f33fc
Author: adam stokes <ajs(a)redhat.com>
Date: Thu May 14 14:07:04 2009 -0400
- need to globalize some subroutines like reading workdir from config.
diff --git a/web/job_detail.html b/web/job_detail.html
index 913771b..eb50606 100644
--- a/web/job_detail.html
+++ b/web/job_detail.html
@@ -1,3 +1,4 @@
+<!-- mason -->
<& header.html &>
<div id="content">
<h3>Job Detail for <% $work_dir %>/<% $view_log %></h3>
diff --git a/web/job_submit.html b/web/job_submit.html
index 730225d..d1a33bc 100644
--- a/web/job_submit.html
+++ b/web/job_submit.html
@@ -1,3 +1,4 @@
+<!-- mason -->
<& header.html &>
<div id="content">
<h3>Form submitted</h3>
@@ -33,7 +34,6 @@ if ($form_file) {
</%init>
<%args>
-
$form_identifier
$form_file
$form_submitter
diff --git a/web/jobs.html b/web/jobs.html
index 9f04734..b6846ff 100644
--- a/web/jobs.html
+++ b/web/jobs.html
@@ -1,3 +1,4 @@
+<!-- mason -->
<& header.html &>
<div id="content">
<h3>Jobs</h3>
@@ -8,13 +9,15 @@
</tr>
% foreach my $item (@{$data}) {
% my ($id, $identify, $timestamp, $email) = @{$item};
-<tr>
-<td><a href="/job_detail.html?view_log=<% $identify %>/<% $timestamp %>/<% $identify %>.log">view log</a></td>
-<td><% $id %></td>
-<td><% $identify %></td>
-<td><% $timestamp %></td>
-<td><% $email %></td>
-</tr>
+% if (-f "/cores/$identify") {
+ <tr>
+ <td><a href="/job_detail.html?view_log=<% $identify %>/<% $timestamp %>/<% $identify %>.log">view log</a></td>
+ <td><% $id %></td>
+ <td><% $identify %></td>
+ <td><% $timestamp %></td>
+ <td><% $email %></td>
+ </tr>
+% }
% }
</table>
</div>
14 years, 11 months
web/job_submit.html
by Adam Stokes
web/job_submit.html | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
New commits:
commit 3819cc50e2e7cc93272fc24b9f11bf3f847b370a
Author: adam stokes <ajs(a)redhat.com>
Date: Thu May 14 12:23:50 2009 -0400
- working on job submissions, file upload in progress
diff --git a/web/job_submit.html b/web/job_submit.html
new file mode 100644
index 0000000..730225d
--- /dev/null
+++ b/web/job_submit.html
@@ -0,0 +1,42 @@
+<& header.html &>
+<div id="content">
+<h3>Form submitted</h3>
+</div>
+
+<& footer.html &>
+<%init>
+use File::Path;
+
+# create path if doesn't exist
+if ($form_identifier && ! -f "/cores/$form_identifier") {
+ mkpath("/cores/$form_identifier", {verbose => 1});
+}
+
+# File uploads
+if ($form_file) {
+ my $query = $m->cgi_object;
+
+ # get a filehandle for the uploaded file
+ my $fh = $query->upload('form_file');
+
+ # setup file
+ open FORMFILE, '>>/tmp/formfile';
+
+ # print out the contents of the uploaded file
+ while (<$fh>) {
+ print FORMFILE $_;
+ }
+ close($fh);
+
+ close FORMFILE;
+}
+</%init>
+
+<%args>
+
+$form_identifier
+$form_file
+$form_submitter
+$form_url
+</%args>
+
14 years, 11 months
4 commits - cas doc/genindex.html doc/index.html doc/index.rst doc/objects.inv doc/search.html doc/searchindex.js doc/_sources Makefile PKG-INFO
by Adam Stokes
Makefile | 2 +-
PKG-INFO | 4 ++--
cas | 2 --
doc/_sources/index.txt | 10 ++++++++++
doc/genindex.html | 8 ++++----
doc/index.html | 20 ++++++++++++++++----
doc/index.rst | 12 +++++++++++-
doc/objects.inv | 2 +-
doc/search.html | 8 ++++----
doc/searchindex.js | 2 +-
10 files changed, 50 insertions(+), 20 deletions(-)
New commits:
commit fe80cffd50a6d92f9bbc1e5468722181edd35f89
Author: Adam Stokes <adam.stokes(a)gmail.com>
Date: Wed May 6 22:53:05 2009 -0400
- updated license, version
diff --git a/PKG-INFO b/PKG-INFO
index 2e55bb2..2f8ee58 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,10 +1,10 @@
Metadata-Version: 1.0
Name: cas
-Version: 0.13
+Version: 0.14
Summary: CAS - automated core setup
Home-page: http://fedorahosted.org/cas
Author: Adam Stokes
Author-email: astokes(a)fedoraproject.org
-License: GPLv2
+License: GPLv3+
Description: Core analysis system.
Platform: Linux
commit ca39b71c992958849a6d9253b2c8f487363c5a22
Author: Adam Stokes <adam.stokes(a)gmail.com>
Date: Wed May 6 22:52:51 2009 -0400
- Nothing special
diff --git a/Makefile b/Makefile
index d914133..b1bfe91 100644
--- a/Makefile
+++ b/Makefile
@@ -36,5 +36,5 @@ clean:
@rm -rf {$(SOURCE3),$(SOURCE4)}
install:
- python setup.py install
+ @python setup.py install
@rm -rf build/lib
commit 3305fc522fde7df70d86acb1e9abe9b593fad460
Author: Adam Stokes <adam.stokes(a)gmail.com>
Date: Wed May 6 22:52:33 2009 -0400
- remove task
diff --git a/cas b/cas
index 01297f7..b6d20cc 100755
--- a/cas
+++ b/cas
@@ -207,8 +207,6 @@ class CasApplication(object):
else:
filterString = "*/%s" % (debugKernel,)
self.casLog.info("Extracting debug kernel with filter %s" % (filterString,))
- # DONE: bug in extract where vmlinux not being placed in defined
- # destination.
self.rpmTool.extract(debuginfo, self.storagePath,
filter=filterString,
return_results=False)
commit 1d361cf652e22477fdfc210e9cf78e2946f337db
Author: Adam Stokes <adam.stokes(a)gmail.com>
Date: Wed May 6 22:52:05 2009 -0400
- documentation updates
diff --git a/doc/_sources/index.txt b/doc/_sources/index.txt
index 51a1170..332f761 100644
--- a/doc/_sources/index.txt
+++ b/doc/_sources/index.txt
@@ -1,6 +1,15 @@
+.. CAS documentation master file, created by
+ sphinx-quickstart on Wed May 6 22:44:40 2009.
+ You can adapt this file completely to your liking, but it should at least
+ contain the root `toctree` directive.
+
Core Analysis System
====================
+:Author: Adam Stokes
+:Release: |release|
+:Date: |today|
+
Introduction
------------
@@ -355,3 +364,4 @@ Resources
* `Mailing list <https://fedorahosted.org/mailman/listinfo/cas>`_
* `Upstream releases <https://fedorahosted.org/releases/c/a/cas/>`_
* Checkout latest from Git, ``git clone git://git.fedorahosted.org/cas.git``
+
diff --git a/doc/genindex.html b/doc/genindex.html
index 624177a..989ebc4 100644
--- a/doc/genindex.html
+++ b/doc/genindex.html
@@ -5,7 +5,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>Index — cas v0.14 documentation</title>
+ <title>Index — CAS v0.14 documentation</title>
<link rel="stylesheet" href="_static/default.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<script type="text/javascript">
@@ -19,7 +19,7 @@
</script>
<script type="text/javascript" src="_static/jquery.js"></script>
<script type="text/javascript" src="_static/doctools.js"></script>
- <link rel="top" title="cas v0.14 documentation" href="index.html" />
+ <link rel="top" title="CAS v0.14 documentation" href="index.html" />
</head>
<body>
<div class="related">
@@ -28,7 +28,7 @@
<li class="right" style="margin-right: 10px">
<a href="" title="General Index"
accesskey="I">index</a></li>
- <li><a href="index.html">cas v0.14 documentation</a> »</li>
+ <li><a href="index.html">CAS v0.14 documentation</a> »</li>
</ul>
</div>
@@ -78,7 +78,7 @@
<li class="right" style="margin-right: 10px">
<a href="" title="General Index"
>index</a></li>
- <li><a href="index.html">cas v0.14 documentation</a> »</li>
+ <li><a href="index.html">CAS v0.14 documentation</a> »</li>
</ul>
</div>
<div class="footer">
diff --git a/doc/index.html b/doc/index.html
index 8856c99..07be194 100644
--- a/doc/index.html
+++ b/doc/index.html
@@ -5,7 +5,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>Core Analysis System — cas v0.14 documentation</title>
+ <title>Core Analysis System — CAS v0.14 documentation</title>
<link rel="stylesheet" href="_static/default.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<script type="text/javascript">
@@ -19,7 +19,7 @@
</script>
<script type="text/javascript" src="_static/jquery.js"></script>
<script type="text/javascript" src="_static/doctools.js"></script>
- <link rel="top" title="cas v0.14 documentation" href="" />
+ <link rel="top" title="CAS v0.14 documentation" href="" />
</head>
<body>
<div class="related">
@@ -28,7 +28,7 @@
<li class="right" style="margin-right: 10px">
<a href="genindex.html" title="General Index"
accesskey="I">index</a></li>
- <li><a href="">cas v0.14 documentation</a> »</li>
+ <li><a href="">CAS v0.14 documentation</a> »</li>
</ul>
</div>
@@ -39,6 +39,18 @@
<div class="section" id="core-analysis-system">
<h1>Core Analysis System<a class="headerlink" href="#core-analysis-system" title="Permalink to this headline">¶</a></h1>
+<table class="docutils field-list" frame="void" rules="none">
+<col class="field-name" />
+<col class="field-body" />
+<tbody valign="top">
+<tr class="field"><th class="field-name">Author:</th><td class="field-body">Adam Stokes</td>
+</tr>
+<tr class="field"><th class="field-name">Release:</th><td class="field-body">0.14</td>
+</tr>
+<tr class="field"><th class="field-name">Date:</th><td class="field-body">May 06, 2009</td>
+</tr>
+</tbody>
+</table>
<div class="section" id="introduction">
<h2>Introduction<a class="headerlink" href="#introduction" title="Permalink to this headline">¶</a></h2>
<img alt="_images/cas_logo.png" src="_images/cas_logo.png" />
@@ -402,7 +414,7 @@ no errors.</p>
<li class="right" style="margin-right: 10px">
<a href="genindex.html" title="General Index"
>index</a></li>
- <li><a href="">cas v0.14 documentation</a> »</li>
+ <li><a href="">CAS v0.14 documentation</a> »</li>
</ul>
</div>
<div class="footer">
diff --git a/doc/index.rst b/doc/index.rst
index 04b4f5b..332f761 100644
--- a/doc/index.rst
+++ b/doc/index.rst
@@ -1,6 +1,15 @@
+.. CAS documentation master file, created by
+ sphinx-quickstart on Wed May 6 22:44:40 2009.
+ You can adapt this file completely to your liking, but it should at least
+ contain the root `toctree` directive.
+
Core Analysis System
====================
+:Author: Adam Stokes
+:Release: |release|
+:Date: |today|
+
Introduction
------------
@@ -89,7 +98,7 @@ require smtp authentication.
``purgeLimit``: Define amount of day(s) back wish to keep physical data on
system.
-``autoPurge``: Yes/No setting if wanting **cas-admin** to auto purge stale data on
+``autoPurge``: Yes/No setting if wanting cas-admin to auto purge stale data on
each run.
``crash_32``: Primarily used on x86_64 systems to process x86 cores. If x86
@@ -355,3 +364,4 @@ Resources
* `Mailing list <https://fedorahosted.org/mailman/listinfo/cas>`_
* `Upstream releases <https://fedorahosted.org/releases/c/a/cas/>`_
* Checkout latest from Git, ``git clone git://git.fedorahosted.org/cas.git``
+
diff --git a/doc/objects.inv b/doc/objects.inv
index 2f84a03..9bf4213 100644
--- a/doc/objects.inv
+++ b/doc/objects.inv
@@ -1,3 +1,3 @@
# Sphinx inventory version 1
-# Project: cas
+# Project: CAS
# Version: 0.14
diff --git a/doc/search.html b/doc/search.html
index 7d3804b..4acbc32 100644
--- a/doc/search.html
+++ b/doc/search.html
@@ -5,7 +5,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>Search — cas v0.14 documentation</title>
+ <title>Search — CAS v0.14 documentation</title>
<link rel="stylesheet" href="_static/default.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<script type="text/javascript">
@@ -20,7 +20,7 @@
<script type="text/javascript" src="_static/jquery.js"></script>
<script type="text/javascript" src="_static/doctools.js"></script>
<script type="text/javascript" src="_static/searchtools.js"></script>
- <link rel="top" title="cas v0.14 documentation" href="index.html" />
+ <link rel="top" title="CAS v0.14 documentation" href="index.html" />
</head>
<body>
<div class="related">
@@ -29,7 +29,7 @@
<li class="right" style="margin-right: 10px">
<a href="genindex.html" title="General Index"
accesskey="I">index</a></li>
- <li><a href="index.html">cas v0.14 documentation</a> »</li>
+ <li><a href="index.html">CAS v0.14 documentation</a> »</li>
</ul>
</div>
@@ -77,7 +77,7 @@
<li class="right" style="margin-right: 10px">
<a href="genindex.html" title="General Index"
>index</a></li>
- <li><a href="index.html">cas v0.14 documentation</a> »</li>
+ <li><a href="index.html">CAS v0.14 documentation</a> »</li>
</ul>
</div>
diff --git a/doc/searchindex.js b/doc/searchindex.js
index dbffc5d..a1794fc 100644
--- a/doc/searchindex.js
+++ b/doc/searchindex.js
@@ -1 +1 @@
-Search.setIndex({desctypes:{},terms:{all:0,mnt:0,snip:0,abil:0,follow:0,disk:0,depend:0,wish:0,do_dlm_lock:0,those:0,aris:0,worth:0,sent:0,r14:0,r15:0,r12:0,r13:0,r10:0,r11:0,fals:[],faq:0,ffffffff8010e789:0,vmcore:0,upstream:0,ticket:0,relev:0,administr:0,level:0,die:0,list:0,prepar:0,pleas:0,x86_64:0,core:0,direct:0,pass:0,download:0,further:0,sub:0,section:0,abl:0,access:0,version:0,autogener:0,gener:0,here:0,address:0,path:0,sinc:0,valu:0,ffffffff80110bf5:0,rdx:0,amount:0,typic:0,rdi:0,smp_call_function_interrupt:0,chanc:0,"0000010001073f48":0,via:0,repositori:0,modul:0,prefer:0,crash_32:0,filenam:0,instal:0,feb:[],describ:0,would:0,prove:0,doubl:0,visit:0,two:0,next:0,few:0,usr:0,recommend:0,type:0,tell:0,more:0,sort:0,share:0,ffffffff803e9b80:0,ffffffff8010e81c:0,must:0,retriev:0,hous:0,setup:0,work:0,uniqu:0,can:0,root:0,sqlite:0,tar:0,process:0,smtp:0,accept:0,want:0,occur:0,multipl:0,anoth:0,snippet:0,how:0,error_exit:0,purg:0,opt:0,verifi:0,perspect:0,ffffffff80528000:0,resourc:0,"00000102000a4780":0,clone:0,reflect:0,mai:0,data:0,physic:0,fedora:0,essenti:0,issu:0,inform:0,environ:0,media:0,order:0,help:0,over:0,major:0,i386:0,hierarchi:0,paramet:0,"100f57cb030":0,requir:0,mail:0,main:0,alter:0,messag:0,crash:0,than:0,python:0,auto:0,overal:0,dai:0,initi:0,"break":0,mention:0,now:0,introduct:0,name:0,edit:0,troubleshoot:0,authent:0,kern:0,easili:0,each:0,debug:0,mean:0,continu:0,happen:0,extract:0,out:0,shown:0,network:0,ffffffff8014cc1d:0,ffffffff8011d191:0,content:0,fffffffffffffffa:0,advanc:0,orig_rax:0,given:0,base:0,releas:0,org:0,ffffffff80110e1d:0,traceback:0,keep:0,vmlinux:0,thing:0,place:0,isn:0,assign:0,first:0,origin:0,rang:0,onc:0,number:0,swapper:0,instruct:0,done:0,wrapper:0,rflag:0,differ:0,script:0,associ:0,interact:0,system:0,least:0,ffffffff80112058:0,statement:0,ffffffff8047a0a0:0,"final":0,boil:0,editor:0,option:0,debuginfo:0,tool:0,specifi:0,hassl:0,exactli:0,rsp:0,corefil:0,provid:0,remov:[],emac:0,structur:0,store:0,stale:0,ani:0,fail:0,have:0,call_function_interrupt:0,"101f3658030":0,rax:0,rsi:0,packag:0,date:0,bz2:0,lib:0,note:0,also:0,build:0,which:0,begin:0,normal:0,previou:0,compress:0,most:0,regular:0,deploi:0,"101f21efb80":0,gather:0,yum:0,determin:0,irq:0,usual:0,show:0,text:0,find:0,redirect:[],current:0,onli:0,locat:0,configur:0,solut:0,state:0,should:0,analyz:0,local:0,variou:0,cvjf:0,express:0,autom:0,repo:0,mainten:0,ellargesmp:0,enabl:0,organ:0,contain:0,where:0,wiki:0,kernel:0,set:0,dump:0,"10001073f48":0,see:0,result:0,arg:0,corrupt:0,subject:0,ffffffffa03183ff:0,detect:0,purgelimit:0,databas:0,someth:0,enough:0,approach:0,email:0,altern:0,assumpt:0,extend:0,cpu_idl:0,default_idl:0,job:0,come:0,tue:0,addit:0,last:0,admin:0,fault:0,etc:0,instanc:0,mani:0,com:0,improp:0,load:0,simpli:0,point:0,"1000107bfb0":0,rpm:0,coredump:0,"101f21efb50":0,mark:0,much:0,popul:0,quickli:0,largesmp:0,anywher:0,try_crashdump:0,"0000000000000e86":0,func:0,present:0,therefor:0,look:0,rbx:0,solid:0,mount:0,rbp:0,defin:0,abov:0,error:0,"101f21efb20":0,ffffffff8047a0b0:0,timefram:0,rip:0,need:0,archiv:0,uncom:0,conf:0,fedorahost:0,sever:0,thei:0,suggest:0,same:0,binari:0,timestamp:0,x86:0,temporari:0,user:0,"500gb":0,engin:0,stack:0,task:0,"10001073e98":0,do_invalid_op:0,exampl:0,command:0,thi:0,filesystem:0,gzip:0,everyth:0,latest:0,identifi:0,execut:0,workdirectori:0,heavili:0,previous:0,samba:0,wed:[],except:0,add:[],valid:0,match:0,bin:0,read:0,kmem:0,debuglevel:0,mod:0,"1000107bfa0":0,resid:0,like:0,specif:0,anyon:0,manual:0,resolv:0,server:0,collect:0,necessari:0,either:0,"101f21efb60":0,"101f21efc40":0,output:0,some:0,back:0,gfs_quotad:0,proper:0,tmp:0,mailserv:0,assum:0,ffffffff80529f08:0,exit:0,machin:0,intial:0,who:0,run:0,reach:0,usag:0,prerequisit:0,from:0,memori:0,unfortun:0,primarili:0,within:0,automat:0,down:0,chang:0,start_disk_dump:0,storag:0,git:0,rcx:0,log:0,wai:0,area:0,support:0,question:0,avail:0,includ:0,suit:0,"var":0,rhel:0,analysi:0,properli:0,form:0,pwd:0,line:0,"true":[],analyst:0,info:0,made:0,possibl:0,checkout:0,below:0,ffffffff80111c90:0,problem:0,similar:0,epel:0,later:0,certain:0,dure:0,pid:0,incomplet:0,exist:0,file:0,cvzf:0,fill:0,bzip2:0,"00000100f57cb030":0,when:0,other:0,ffffffff8010e7a9:0,architectur:0,benefici:0,autopurg:0,ffffffff80529fb8:0,directori:0,descript:0,"1tb":0,rpmfilter:0,cpu:0},titles:["Core Analysis System"],modules:{},descrefs:{},filenames:["index"]})
\ No newline at end of file
+Search.setIndex({desctypes:{},terms:{all:0,mnt:0,snip:0,abil:0,follow:0,disk:0,depend:0,wish:0,do_dlm_lock:0,those:0,aris:0,worth:0,sent:0,r14:0,r15:0,r12:0,r13:0,r10:0,r11:0,than:0,faq:0,ffffffff8010e789:0,vmcore:0,upstream:0,ticket:0,relev:0,administr:0,level:0,die:0,list:0,prepar:0,pleas:0,x86_64:0,core:0,direct:0,pass:0,download:0,further:0,index:[],sub:0,section:0,abl:0,access:0,version:0,autogener:0,gener:0,here:0,address:0,path:0,sinc:0,valu:0,ffffffff80110bf5:0,search:[],rdx:0,amount:0,typic:0,rdi:0,smp_call_function_interrupt:0,chanc:0,"0000010001073f48":0,via:0,prerequisit:0,modul:0,prefer:0,crash_32:0,filenam:0,instal:0,from:0,describ:0,would:0,prove:0,doubl:0,visit:0,two:0,todai:[],next:0,few:0,usr:0,recommend:0,type:0,tell:0,more:0,sort:0,wrapper:0,share:0,ffffffff803e9b80:0,"1tb":0,indic:[],must:0,retriev:0,hous:0,setup:0,work:0,uniqu:0,can:0,root:0,sqlite:0,quickstart:0,tar:0,process:0,smtp:0,accept:0,want:0,occur:0,multipl:0,anoth:0,snippet:0,how:0,error_exit:0,purg:0,opt:0,verifi:0,perspect:0,ffffffff80528000:0,resourc:0,"00000102000a4780":0,clone:0,reflect:0,mai:0,data:0,physic:0,fedora:0,essenti:0,issu:0,inform:0,environ:0,suggest:0,order:0,help:0,over:0,major:0,i386:0,hierarchi:0,paramet:0,"100f57cb030":0,requir:0,mail:0,main:0,alter:0,crash:0,thei:0,python:0,auto:0,overal:0,dai:0,initi:0,"break":0,mention:0,now:0,introduct:0,name:0,edit:0,troubleshoot:0,authent:0,kern:0,easili:0,each:0,debug:0,mean:0,continu:0,happen:0,extract:0,out:0,shown:0,network:0,ffffffff8014cc1d:0,ffffffff8011d191:0,content:0,adapt:0,fffffffffffffffa:0,advanc:0,orig_rax:0,given:0,base:0,releas:0,org:0,ffffffff80110e1d:0,traceback:0,keep:0,vmlinux:0,thing:0,place:0,isn:0,assign:0,first:0,origin:0,rang:0,onc:0,number:0,swapper:0,instruct:0,done:0,messag:0,rflag:0,differ:0,script:0,associ:0,interact:0,system:0,least:0,ffffffff80112058:0,master:0,statement:0,ffffffff8047a0a0:0,"final":0,boil:0,editor:0,option:0,debuginfo:0,tool:0,specifi:0,hassl:0,exactli:0,rsp:0,corefil:0,provid:0,emac:0,structur:0,store:0,stale:0,ani:0,fail:0,have:0,tabl:[],call_function_interrupt:0,"101f3658030":0,rax:0,rsi:0,packag:0,date:0,bz2:0,lib:0,note:0,also:0,build:0,which:0,begin:0,normal:0,previou:0,compress:0,most:0,regular:0,deploi:0,"101f21efb80":0,gather:0,yum:0,determin:0,irq:0,usual:0,show:0,text:0,find:0,current:0,onli:0,locat:0,configur:0,solut:0,state:0,should:0,analyz:0,local:0,variou:0,cvjf:0,express:0,autom:0,repo:0,mainten:0,ellargesmp:0,enabl:0,organ:0,contain:0,where:0,wiki:0,kernel:0,set:0,dump:0,"10001073f48":0,see:0,result:0,arg:0,corrupt:0,subject:0,ffffffffa03183ff:0,detect:0,purgelimit:0,databas:0,someth:0,enough:0,approach:0,email:0,altern:0,assumpt:0,extend:0,cpu_idl:0,default_idl:0,job:0,come:0,tue:0,addit:0,last:0,admin:0,fault:0,etc:0,instanc:0,mani:0,com:0,improp:0,load:0,simpli:0,point:0,"1000107bfb0":0,rpm:0,coredump:0,"101f21efb50":0,mark:0,much:0,popul:0,quickli:0,largesmp:0,anywher:0,try_crashdump:0,"0000000000000e86":0,func:0,present:0,therefor:0,look:0,rbx:0,solid:0,mount:0,rbp:0,defin:0,abov:0,error:0,"101f21efb20":0,ffffffff8047a0b0:0,timefram:0,rip:0,need:0,archiv:0,uncom:0,conf:0,fedorahost:0,sever:0,welcom:[],author:0,media:0,same:0,binari:0,timestamp:0,document:0,complet:0,x86:0,temporari:0,user:0,"500gb":0,engin:0,stack:0,task:0,"10001073e98":0,do_invalid_op:0,exampl:0,command:0,thi:0,filesystem:0,gzip:0,everyth:0,latest:0,identifi:0,execut:0,workdirectori:0,heavili:0,previous:0,samba:0,wed:0,except:0,valid:0,match:0,bin:0,read:0,kmem:0,debuglevel:0,mod:0,"1000107bfa0":0,resid:0,like:0,specif:0,anyon:0,manual:0,resolv:0,server:0,collect:0,necessari:0,either:0,"101f21efb60":0,"101f21efc40":0,output:0,page:[],some:0,back:0,toctre:0,proper:0,tmp:0,mailserv:0,assum:0,ffffffff80529f08:0,exit:0,machin:0,intial:0,who:0,run:0,reach:0,usag:0,repositori:0,memori:0,unfortun:0,primarili:0,within:0,automat:0,down:0,chang:0,start_disk_dump:0,storag:0,your:0,git:0,rcx:0,log:0,wai:0,area:0,support:0,question:0,avail:0,includ:0,suit:0,"var":0,rhel:0,analysi:0,properli:0,form:0,pwd:0,line:0,analyst:0,info:0,made:0,possibl:0,checkout:0,below:0,ffffffff80111c90:0,problem:0,similar:0,epel:0,later:0,creat:0,certain:0,dure:0,gfs_quotad:0,pid:0,incomplet:0,exist:0,file:0,cvzf:0,fill:0,bzip2:0,"00000100f57cb030":0,when:0,other:0,ffffffff8010e7a9:0,you:0,architectur:0,benefici:0,autopurg:0,ffffffff80529fb8:0,stoke:0,sphinx:0,directori:0,descript:0,adam:0,ffffffff8010e81c:0,rpmfilter:0,cpu:0},titles:["Core Analysis System"],modules:{},descrefs:{},filenames:["index"]})
\ No newline at end of file
14 years, 11 months
cas.spec
by Adam Stokes
cas.spec | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 20657116a0b65956c7fc6a09767cc158fc6f7866
Author: Adam Stokes <adam.stokes(a)gmail.com>
Date: Wed May 6 21:46:38 2009 -0400
- need to keep defattr for snippets
diff --git a/cas.spec b/cas.spec
index 665fb1c..462ae10 100644
--- a/cas.spec
+++ b/cas.spec
@@ -43,8 +43,8 @@ rm -rf ${RPM_BUILD_ROOT}
%{python_sitelib}/*
%{_mandir}/man1/cas.1.gz
%{_mandir}/man1/cas-admin.1.gz
-%dir %attr(755,root,root) %{_var}/lib/cas/snippets/
-#%defattr(755,root,root)
+%dir %{_var}/lib/cas/snippets/
+%defattr(755,root,root)
%config(noreplace) %{_var}/lib/cas/snippets/*
%doc AUTHORS LICENSE README PKG-INFO doc/*
14 years, 11 months
setup.py
by Adam Stokes
setup.py | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
New commits:
commit d8402d50b9059d396c37bb91e227d78e973b0bb1
Author: Adam Stokes <adam.stokes(a)gmail.com>
Date: Wed May 6 21:40:11 2009 -0400
- tests complete on setup.py, adjustments made
diff --git a/setup.py b/setup.py
index e6a229e..d5aba5b 100644
--- a/setup.py
+++ b/setup.py
@@ -5,14 +5,14 @@ from distutils.core import setup
import os
libpath = "/var/lib/cas"
-snippetpath = libpath + "/snippets"
+snippetpath = os.path.join(libpath,"snippets")
# Build data_files easily
data_files = []
# add static files
-data_files.append(['/etc',['cas.conf'])
-data_files.append(['/usr/share/man/man1', ['cas.1.gz','cas-admin.1.gz'])
+data_files.append(['/etc',['cas.conf']])
+data_files.append(['/usr/share/man/man1', ['cas.1.gz','cas-admin.1.gz']])
# Automate addition of snippets, simply add new snippets to default install
# and they will be included.
@@ -29,6 +29,5 @@ setup(
packages = ['cas',],
scripts = ['cas','cas-admin'],
package_dir = {'': 'lib',},
-
data_files = data_files,
)
14 years, 11 months
setup.py
by Adam Stokes
setup.py | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
New commits:
commit 04508ab2f1580108e26faf5d115bd8ccb2c409f6
Author: Adam Stokes <adam.stokes(a)gmail.com>
Date: Wed May 6 21:32:46 2009 -0400
- still working on getting setup.py more friendly
diff --git a/setup.py b/setup.py
index 8195fbe..e6a229e 100644
--- a/setup.py
+++ b/setup.py
@@ -8,12 +8,16 @@ libpath = "/var/lib/cas"
snippetpath = libpath + "/snippets"
# Build data_files easily
-snippet_files = []
+data_files = []
+
+# add static files
+data_files.append(['/etc',['cas.conf'])
+data_files.append(['/usr/share/man/man1', ['cas.1.gz','cas-admin.1.gz'])
# Automate addition of snippets, simply add new snippets to default install
# and they will be included.
for dirpath, dirnames, filenames in os.walk('snippets'):
- snippet_files.append([snippetpath, [os.path.join(dirpath, f) for f in filenames]])
+ data_files.append([snippetpath, [os.path.join(dirpath, f) for f in filenames]])
setup(
name = 'cas',
@@ -26,8 +30,5 @@ setup(
scripts = ['cas','cas-admin'],
package_dir = {'': 'lib',},
- data_files = [ ('/etc', ['cas.conf']),
- ('/usr/share/man/man1', ['cas.1.gz','cas-admin.1.gz']),
- # cas commands we'll ship
- snippet_files ],
+ data_files = data_files,
)
14 years, 11 months
2 commits - cas.spec setup.py
by Adam Stokes
cas.spec | 4 ++--
setup.py | 20 +++++++++++---------
2 files changed, 13 insertions(+), 11 deletions(-)
New commits:
commit c1f3ea229db37cdec550c83db6333c64bfb6557a
Author: Adam Stokes <adam.stokes(a)gmail.com>
Date: Wed May 6 21:23:21 2009 -0400
- made it easier to add additional default snippets
without having to worry about hand editing the setup.py
to include those
diff --git a/setup.py b/setup.py
index 5f8b134..8195fbe 100644
--- a/setup.py
+++ b/setup.py
@@ -2,11 +2,18 @@
setup.py - distutils packaging
"""
from distutils.core import setup
-
+import os
libpath = "/var/lib/cas"
snippetpath = libpath + "/snippets"
+# Build data_files easily
+snippet_files = []
+
+# Automate addition of snippets, simply add new snippets to default install
+# and they will be included.
+for dirpath, dirnames, filenames in os.walk('snippets'):
+ snippet_files.append([snippetpath, [os.path.join(dirpath, f) for f in filenames]])
setup(
name = 'cas',
@@ -20,12 +27,7 @@ setup(
package_dir = {'': 'lib',},
data_files = [ ('/etc', ['cas.conf']),
- # cas commands we'll ship
- (snippetpath, ['snippets/sys']),
- (snippetpath, ['snippets/log']),
- (snippetpath, ['snippets/memory']),
- (snippetpath, ['snippets/traceback']),
- (snippetpath, ['snippets/template']),
- (snippetpath, ['snippets/modules']),
- ('/usr/share/man/man1', ['cas.1.gz','cas-admin.1.gz']) ]
+ ('/usr/share/man/man1', ['cas.1.gz','cas-admin.1.gz']),
+ # cas commands we'll ship
+ snippet_files ],
)
commit 3aa83552bceca445e7faa0200f6a5368b1ba0094
Author: Adam Stokes <adam.stokes(a)gmail.com>
Date: Wed May 6 21:23:06 2009 -0400
- combine dir, attr macros
diff --git a/cas.spec b/cas.spec
index 462ae10..665fb1c 100644
--- a/cas.spec
+++ b/cas.spec
@@ -43,8 +43,8 @@ rm -rf ${RPM_BUILD_ROOT}
%{python_sitelib}/*
%{_mandir}/man1/cas.1.gz
%{_mandir}/man1/cas-admin.1.gz
-%dir %{_var}/lib/cas/snippets/
-%defattr(755,root,root)
+%dir %attr(755,root,root) %{_var}/lib/cas/snippets/
+#%defattr(755,root,root)
%config(noreplace) %{_var}/lib/cas/snippets/*
%doc AUTHORS LICENSE README PKG-INFO doc/*
14 years, 11 months
3 commits - cas-admin cas.conf cas.spec
by Adam Stokes
cas-admin | 10 ++++++----
cas.conf | 13 ++++++++++++-
cas.spec | 9 ++-------
3 files changed, 20 insertions(+), 12 deletions(-)
New commits:
commit 32114ef36afb58811127cd877c7dfddc4f4dc1e6
Author: Adam Stokes <adam.stokes(a)gmail.com>
Date: Wed May 6 20:30:49 2009 -0400
- glob include of existing snippets provided with build
diff --git a/cas.spec b/cas.spec
index a4adbed..462ae10 100644
--- a/cas.spec
+++ b/cas.spec
@@ -43,14 +43,9 @@ rm -rf ${RPM_BUILD_ROOT}
%{python_sitelib}/*
%{_mandir}/man1/cas.1.gz
%{_mandir}/man1/cas-admin.1.gz
-%dir /var/lib/cas/snippets/
+%dir %{_var}/lib/cas/snippets/
%defattr(755,root,root)
-%config(noreplace) /var/lib/cas/snippets/log
-%config(noreplace) /var/lib/cas/snippets/memory
-%config(noreplace) /var/lib/cas/snippets/sys
-%config(noreplace) /var/lib/cas/snippets/template
-%config(noreplace) /var/lib/cas/snippets/traceback
-%config(noreplace) /var/lib/cas/snippets/modules
+%config(noreplace) %{_var}/lib/cas/snippets/*
%doc AUTHORS LICENSE README PKG-INFO doc/*
%changelog
commit 9785212b3fcb00ae7cb6b00a0a46b66f9e560e81
Author: Adam Stokes <adam.stokes(a)gmail.com>
Date: Wed May 6 20:30:33 2009 -0400
- extend some documentation in configuration file
diff --git a/cas.conf b/cas.conf
index 963f3b7..8df8ac8 100644
--- a/cas.conf
+++ b/cas.conf
@@ -1,3 +1,14 @@
+# cas configuration file
+#
+# Things to remember:
+#
+# Acceptable boolean values
+# to enable: "1", "yes", "true", and "on"
+# to disable: "0", "no", "false", and "off"
+#
+# Required settings to be defined:
+# kernels, rpmFilter, debugs, workDirectory, database
+
[settings]
# Where kernel-debuginfo packages are stored
# NOTE: this _can_ include symlinked directories, just be careful they are
@@ -34,7 +45,7 @@ purgeLimit=90
# Enable if want to automatically check and purge data
# whenever cas-admin is run
-autoPurge=Yes
+autoPurge=no
[advanced]
# if running a x86_64 system and wish to analyze 32bit
commit ce97e84f54faa665a10a8622f934e4b7becbc5f3
Author: Adam Stokes <adam.stokes(a)gmail.com>
Date: Wed May 6 20:30:17 2009 -0400
- read configuration option for autopurge as boolean
diff --git a/cas-admin b/cas-admin
index 6824566..2e575d8 100755
--- a/cas-admin
+++ b/cas-admin
@@ -44,7 +44,7 @@ WORKDIRECTORY = config.get("settings","workDirectory")
# read maintenance options
PURGELIMIT = config.get("maintenance","purgeLimit")
-AUTOPURGE = config.get("maintenance","autoPurge")
+AUTOPURGE = config.getboolean("maintenance","autoPurge")
class CasDatabaseHandler(object):
def __init__(self, logger):
@@ -61,6 +61,8 @@ class CasDatabaseHandler(object):
def run(self):
# Uses emacs regex -- see `man find`
+ # TODO: rework kernel filtering to expand scope
+ # beyond just debuginfo rpms.
cmd = ["find", "-L", KERNELS, "-iregex", RPMFILTER]
pipe = Popen(cmd, stdout=PIPE, stderr=PIPE)
# setup count for kernels found, mainly for console output
@@ -91,6 +93,7 @@ class CasDatabaseHandler(object):
self.db.addTimestamp(id, debugKernel, timestamp)
# Cleanup extracted debugs
rmtree(dst)
+ self.casLog.info("Timestamp database built.")
return
class CasServerHandler(object):
@@ -114,7 +117,6 @@ class CasServerHandler(object):
import func.overlord.client as fc
parent_func = fc.Overlord("*")
minions = parent_func.minions
- # DONE: add only servers that respond, purge the rest
for i in minions:
scheme, netloc, path, query, frag = urlparse.urlsplit(i)
hostname, port = netloc.split(":")
@@ -204,8 +206,8 @@ class CasAdminApplication(object):
os.makedirs(DEBUGS)
# if autopurge is enabled lets clean up some stale data
- if AUTOPURGE == 'yes' or AUTOPURGE == 'y':
- self.casLog.debug('Autopurge enabled, begin cleanup')
+ if AUTOPURGE:
+ self.casLog.debug('Autopurge enabled, purging stale data')
purgeHandler = PurgeHandler(int(PURGELIMIT), self.casLog).run()
if self.purgeData:
14 years, 11 months
Changes to 'refs/tags/cas-0.14'
by Adam Stokes
Tag 'cas-0.14' created by adam stokes <ajs(a)redhat.com> at 2009-05-06 15:45 +0000
tag 0.14 branch
Changes since the dawn of time:
Adam Stokes (99):
added missing files and cas preparation work
expand cas preparation
daemon script added
webserver updates
reworked main application with handlers for proper processing and cleaner viewing.
minor bump, changed env to hardcode in python binary
make crash wrapper executable
switched to use find utility for casprint
minor bump, altered casprint to save db after dict finished processing
no threaded in casprint, causing overlaps in extraction
close fd's before child executes
finally addressed the fd leak with cpio
removing unused libs
another addition to fixing fd leak
fd handling complete, completed 3900 successful kernel tests.
re-working fingerprint as it is not capturing all debug kernels at this time
casprint updates to extraction, timestamp
all extraction is done which includes all necessary arch's and extensions
final stage of casprint
split workflow on casprint to handle both building new cas db and updating existing debug kernels.
return definitive machine type for debug kernels.
casprint properly extracts and timestamps any ELF type debug kernel provided.
reworking casprint to not store debugs locally and use the debuginfo
re-worked casprint
Reworked rpmutils library to return debug kernel results if asked Altered casprint to cleanup after itself, we are going to continue storing all related information in the debuginfo packages for now
*** empty log message ***
casprint stores proper path to vmlinux within cpio archive
rpmutils is failing to capture all extracted kernels from stdout, needs fixing
casprint seems to capture all extracted debugs and timestamp.
working copy of cas complete.
build out crash file to use the -i switch for a more automated approach.
download support added
finalized on the downloader, altered cas to accept both localfiles and urlbased files.
Added another helper method to core extraction to hopefully better detect compression types.
- license moved to gpl3
- cas server population working with func
more work to extracting of cores and processing
- build cleanup
finishing up func integration
- update man pages
- removed func requirement
- testing runs completed for running cas locally
- working on better logging facilities
- spec file update
- catch smtplib socket error since no exception is provided
- some issues rose when running cas outside of the processed directory
- FIXME: problem detecting corefile from a compressed file/archive
- hopefully fixed the problem where cores weren't detected
- some initial tests of extracting the compressed core
- trying to solve all problems that arise when running
- update README
- include shutil from python 2.6, major performance
spec cleanup
- remove uneeded python lib
- initial work to support 32bit crash on x86_64 systems
- final preparations complete to include into fedora
- enabled a deep hierachy for more than one core
- extended timestamp for directory hierarchy
- proper documentation added.
- Updated documentation to provide analyzing and troubleshooting
- start work on using mysql backend
- update sql
- no double timestamp
- add additional tables for db migration
- extend sql
- conf update
- more db changes
- starting to implement db methods into cas-admin
- more db methods
- snippet support, all crash commands are now in /var/lib/snippets (Scott Dodson)
- update spec to handle snippets addition (Scott Dodson)
- spec updates to properly require sqlite if rhel/epel
- implementing first stages of db interaction within cas-admin
- db module needs some more work, in the selection areas.
- tuples for data entry
- awesome we have to use the unsecured way to query the db because of
- first successful run using new sqlite backend and population of kernel
- server/arch addition
- work started on integrating main app with sqlite backend
- fixed exception
- change method to getElfArch for better reading (Flavio Leitner)
- getting close to finalizing cas with sqlite db
- authors file added to keep track of
- small changes to sql statement
- dont remember
- web-ui reading logs, checking statuses.
- job_detail properly reads workDirectory from config
- close table row
- better failure handling of smtp
- attempt to make logs more readable
- add file upload widget, set form enctype
- handle download exception on 404
- finally sendmail quit on failure to resolve mail server
- make sure some sort of email is set in db whether passed
- re-worked exit on exception
- add DEBUGLEVEL to logger instance
- re-work cas to work on python 2.3
- fix purge code
- man page updates
Huzaifa Sidhpurwala (1):
Initial import
adam stokes (20):
- Finalizing sqlite implementation in both
- sql changes to do a like comparison for timestamps
- fix output redirect (Flavio Leitner)
- stupid quotes
- altered regex to hopefully grab more range of kernel debugs
- attempting to fix bug in extraction of debug kernels now
- fixed crash script generation when CRASH_32 is detected. (Flavio Leitner)
- make sure hostname defined if processing 32bit on 64bit
make sure func clients are reachable when building server db
add commit routine to addServer()
small changes to documentation
adding web dir for a basic web ui
- working on simple web interface
support for purge data
debug datetime
purge code in alpha stage, initial testing proves positive
- finalizing purge/autopurge code. bugfixes to come.
- documentation update
- documentation finalizations, snippet information added.
- make sure log file is getting mailed.
uzr (10):
- documentation updates
- fixed bug to define CRASH_32 in cmd when processing
- hopefully fixed sql statemen tin gettimestampdebug
- removed chdir function and pushed it to main application
- rel bump
- typo, changed self.dst to self.storagePath
- test if defined func minion is reachable
- working on getting arguements passed to mason
- adding subprocess from python 2.6 to enable cas to
-work done on docs
14 years, 11 months
cas cas.spec doc/index.rst
by Adam Stokes
cas | 2 ++
cas.spec | 4 +++-
doc/index.rst | 2 +-
3 files changed, 6 insertions(+), 2 deletions(-)
New commits:
commit 3ac4c13d959ceb006d6d6a3e2ddc5f3f2fa27877
Author: adam stokes <ajs(a)redhat.com>
Date: Wed May 6 09:29:31 2009 -0400
- make sure log file is getting mailed.
- doc updates.
diff --git a/cas b/cas
index a376b69..01297f7 100755
--- a/cas
+++ b/cas
@@ -328,6 +328,8 @@ class CasApplication(object):
self.rpmTool.extract(debuginfo, self.storagePath,
filter=moduleFilter,
return_results=False)
+ # Just want to email the logfile to the submitter.
+ crashOutFile = os.path.join(self.storagePath, "log")
if os.path.isfile(crashOutFile) and self.email:
self.casLog.info("Crash output processed, sending email to %s" % (self.email,))
try:
diff --git a/cas.spec b/cas.spec
index d6b1423..a4adbed 100644
--- a/cas.spec
+++ b/cas.spec
@@ -3,7 +3,7 @@
Name: cas
Summary: Tool to analyze and configure core file environment
Version: 0.14
-Release: 8%{?dist}
+Release: 10%{?dist}
Source0: https://fedorahosted.org/releases/c/a/cas/%{name}-%{version}.tar.gz
License: GPLv3+
Group: Development/Libraries
@@ -56,6 +56,8 @@ rm -rf ${RPM_BUILD_ROOT}
%changelog
* Tue May 5 2009 Adam Stokes <ajs at redhat dot com> - 0.14-8
- support for purging old data
+- documentation updated to reflect updated workflow and describe
+ new features.
* Fri Apr 24 2009 Adam Stokes <ajs at redhat dot com> - 0.14-2
- Finalizing sqlite implementation
diff --git a/doc/index.rst b/doc/index.rst
index 51a1170..04b4f5b 100644
--- a/doc/index.rst
+++ b/doc/index.rst
@@ -89,7 +89,7 @@ require smtp authentication.
``purgeLimit``: Define amount of day(s) back wish to keep physical data on
system.
-``autoPurge``: Yes/No setting if wanting cas-admin to auto purge stale data on
+``autoPurge``: Yes/No setting if wanting **cas-admin** to auto purge stale data on
each run.
``crash_32``: Primarily used on x86_64 systems to process x86 cores. If x86
14 years, 11 months