Skip to content

Commit

Permalink
anvil: collect simengine logs for the specific run
Browse files Browse the repository at this point in the history
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
  • Loading branch information
fabbione committed Mar 2, 2024
1 parent 968b799 commit fe997fb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ci-setup-anvil-bm-vm
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,10 @@ cd $HOME/ci-tools

# collecting all build info
rm -rf $DEPLOYDIR/logs/
mkdir -p $DEPLOYDIR/logs/$BUILD_NUMBER/
mkdir -p $DEPLOYDIR/logs/$BUILD_NUMBER/simengine

cp /var/log/simengine/info.log $DEPLOYDIR/logs/$BUILD_NUMBER/simengine/simengine-daemon.log
tar zcvp -f $DEPLOYDIR/logs/$BUILD_NUMBER/simengine/process_logs.tar.gz /tmp/simengine/

cp $DEPLOYDIR/configs/anvil_striker_auto.cfg $DEPLOYDIR/logs/$BUILD_NUMBER/anvil_striker_auto.cfg

Expand Down
6 changes: 6 additions & 0 deletions ci-setup-anvil-simengine
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,12 @@ simengine-cli model power-link -s122 -d132 # [an-ups03]={port-2}==>[an-a01dr01
simengine-cli model power-link -s58 -d91 # [an-pdu01]={port-8}=>{psu-1}=>[an-striker01]
simengine-cli model power-link -s68 -d101 # [an-pdu02]={port-8}=>{psu-1}=>[an-striker02]

# Clean all logs and tempdirs before starting
rm -rf /tmp/simengine
mkdir -p /tmp/simengine
rm -f /var/log/simengine/info.log
touch /var/log/simengine/info.log

systemctl start simengine-core

exit 0

0 comments on commit fe997fb

Please sign in to comment.