Red Hat Bugzilla – Bug 461479
make submit doesn't exit on SNAKE error
Last modified: 2012-11-07 02:24:27 EST
Description of problem:
make submit will not exit if there's an error when submitting s test which contains faulty SNAKE template.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Create a new test
2. Add a SNAKE template which is not correct Python syntax
3. make SNAKESERVER=snake.test.redhat.com TESTSERVER=rhts.redhat.com submit
rhts-mk-snake-template -s snake.test.redhat.com
Kickstart template 'gui-mode.py' specified
Uploading SNAKE template 'gui-mode.py' to 'snake.test.redhat.com' ...
... rpm package is build, etc ...
exit after Added:
the line "Added : " indicates a SNAKE error (which is not sent to the client though). The template below reproduces the error. The commented import line will cause "Script" to be undefined.
from pykickstart.version import RHEL5
from installdefaults import InstallKs
from pykickstart.constants import *
#from pykickstart.parser import Script
# minimal install, procedural style
script = '''
post = Script(script, type=KS_SCRIPT_POST, inChroot=False)
Legacy RHTS is soon to be retired and replaced by Beaker. As part of
this migration process all RHTS bugs need to be re-verified against a
Beaker instance by the cut-off date
5pm Monday April 12th UTC-4.
Please confirm this bug is still relevant to Beaker by re-verifying it
against the stage deployment of Beaker https://beaker-stage.app.eng.bos.redhat.com.
To keep this bug open please comment on it
If it has not received a comment by that date the bug will be closed/wontfix.
After the cutoff date all commented bugs will be moved to the Beaker
are we going to have a `make submit' which will:
1) submit snake template to snake.devel if we have such
2) make package
3) bkr task-add *.rpm
If we do and it's based on the legacy make submit then it is still open.
make submit still doesn't work
submit: $(METADATA) snake-submit
rhts-mk-build-package -s $(TESTSERVER)
bkradd: $(METADATA) snake-submit
What exactly doesn't work? We have snake-submit as a dependency off both the legacy submit and the new bkradd.
I will be removing submit in an upcoming release.
$ make submit
rhts-mk-snake-template -s rhts.redhat.com
No SNAKE template specified, ignoring
rhts-mk-build-package -s rhts.redhat.com
Creating tarball: ...
... (builds the package) ...
Error: Unable to connect to server rhts.redhat.com
make: *** [submit] Error 1
make submit is not used anymore.. use make bkradd
does bkradd check for errors returned from SNAKE server before proceeding ? See comment #0.
Yes it does..
From the Makefile..
SNAKESERVER ?= $(TESTSERVER)
rhts-mk-snake-template -s $(SNAKESERVER)
# Does the provided $TEMPLATE file exist?
if [ -f "$TEMPLATE" ]; then
echo "Uploading SNAKE template '$TEMPLATE' to '$SNAKE_SERVER' ..."
$SNAKEKS -s $SNAKE_SERVER add $TEMPLATE
echo "SNAKE template '$TEMPLATE' not found"
Bulk reassignment of issues as Bill has moved to another team.
This bugs is closed as it is either not in the current Beaker scope or we could not find sufficient data in the bug report for consideration.
Please feel free to reopen the bug with additional information and/or business cases behind it.