Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JIRA lookup failure causes immediate death #134

Open
vdanen opened this issue Jun 2, 2017 · 1 comment
Open

JIRA lookup failure causes immediate death #134

vdanen opened this issue Jun 2, 2017 · 1 comment

Comments

@vdanen
Copy link

vdanen commented Jun 2, 2017

If you have multiple JIRA stanzas because you're looking at activity across multiple JIRA products, if there is a problem with the first one it kills did:

Traceback (most recent call last):
  File "/usr/bin/did", line 5, in <module>
    pkg_resources.run_script('did==0.9.1', 'did')
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 540, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 1455, in run_script
    execfile(script_filename, namespace, namespace)
  File "/usr/lib/python2.7/site-packages/did-0.9.1-py2.7.egg/EGG-INFO/scripts/did", line 42, in <module>
    did.cli.main()
  File "/usr/lib/python2.7/site-packages/did-0.9.1-py2.7.egg/did/cli.py", line 190, in main
    user_stats.check()
  File "/usr/lib/python2.7/site-packages/did-0.9.1-py2.7.egg/did/stats.py", line 134, in check
    stat.check()
  File "/usr/lib/python2.7/site-packages/did-0.9.1-py2.7.egg/did/stats.py", line 134, in check
    stat.check()
  File "/usr/lib/python2.7/site-packages/did-0.9.1-py2.7.egg/did/stats.py", line 79, in check
    self.fetch()
  File "/usr/lib/python2.7/site-packages/did-0.9.1-py2.7.egg/did/plugins/jira.py", line 140, in fetch
    self.stats = Issue.search(query, stats=self)
  File "/usr/lib/python2.7/site-packages/did-0.9.1-py2.7.egg/did/plugins/jira.py", line 94, in search
    result = stats.parent.session.open(
  File "/usr/lib/python2.7/site-packages/did-0.9.1-py2.7.egg/did/plugins/jira.py", line 266, in session
    self._session.open(req)
  File "/usr/lib64/python2.7/urllib2.py", line 437, in open
    response = meth(req, response)
  File "/usr/lib64/python2.7/urllib2.py", line 550, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib64/python2.7/urllib2.py", line 475, in error
    return self._call_chain(*args)
  File "/usr/lib64/python2.7/urllib2.py", line 409, in _call_chain
    result = func(*args)
  File "/usr/lib64/python2.7/urllib2.py", line 558, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 403: Forbidden

The problem is I have 30 JIRA projects and I don't know which one(s) are causing the problems because it doesn't tell me. So the request is two-fold: don't die, catch the error and move on in these cases and secondly, when it dies, please print out the name of the project so we know which one is wrong (i.e. someone renamed a project perhaps).

@sochotnicky
Copy link

FWIW, perhaps slightly related would be to provide enable something like this:
#198

With the above people don't have to have multiple JIRA configs for single JIRA instance and the queries are much faster too

psss pushed a commit to mweetman-redhat/did that referenced this issue Jan 30, 2023
This MR adds provisioning of qcow2 images via testcloud.

To test with a qcow2 from url:

    tmt run -a provision -h testcloud --image https://kojipkgs.fedoraproject.org/...

To test with a local qcow2:

    tmt run -a provision -h testcloud --image file:///home/user/fedora.qcow2

To test with latest Rawhide:

    tmt run -a provision -h testcloud --image fedora
    tmt run -a provision -h testcloud --image rawhide
    tmt run -a provision -h testcloud --image fedora-rawhide

Other mappings will come later, as it is a bit PITA to do ....

Signed-off-by: Miroslav Vadkerti <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants