spma needs proper untainting of the packager under el7
the first failed transaction can't log an error is a retry is possible.
factored out the retry code
modify the unittests after factoring out the retry code