Script that posts Gerrit patch URL to Launchpad bugs not working
Bug #1455993 reported by
Aaron Wells
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
High
|
Aaron Wells |
Bug Description
It appears that the script that posts Gerrit patch URLs onto Launchpad bugs may be broken at the moment. This is probably related to the Gerrit upgrade that we carried out last week.
To post a comment you must log in.
Messages in the error logs. Looks like the problem is due to Python. Probably we're either missing a python library on the new server, or it's a version compatibility issue (the old server had Python 2.6 and the new server has Python 2.7).
[2015-05-18 07:09:27,284] INFO com.google. gerrit. common. ChangeHookRunne r : hook[patchset- created] exitValue:1 gerrit. common. ChangeHookRunne r : hook[patchset- created] output: Traceback (most recent call last): gerrit. common. ChangeHookRunne r : hook[patchset- created] output: File "/home/ gerrit/ mahara- scripts/ patchset- created" , line 122, in <module> gerrit. common. ChangeHookRunne r : hook[patchset- created] output: sys.exit(main()) gerrit. common. ChangeHookRunne r : hook[patchset- created] output: File "/home/ gerrit/ mahara- scripts/ patchset- created" , line 78, in main gerrit. common. ChangeHookRunne r : hook[patchset- created] output: args, unused = getopt( sys.argv[ 1:], '', gerrit_args) gerrit. common. ChangeHookRunne r : hook[patchset- created] output: File "/usr/lib/ python2. 7/getopt. py", line 88, in getopt gerrit. common. ChangeHookRunne r : hook[patchset- created] output: opts, args = do_longs(opts, args[0][2:], longopts, args[1:]) gerrit. common. ChangeHookRunne r : hook[patchset- created] output: File "/usr/lib/ python2. 7/getopt. py", line 152, in do_longs gerrit. common. ChangeHookRunne r : hook[patchset- created] output: has_arg, opt = long_has_args(opt, longopts) gerrit. common. ChangeHookRunne r : hook[patchset- created] output: File "/usr/lib/ python2. 7/getopt. py", line 169, in long_has_args gerrit. common. ChangeHookRunne r : hook[patchset- created] output: raise GetoptError('option --%s not recognized' % opt, opt) gerrit. common. ChangeHookRunne r : hook[patchset- created] output: getopt.GetoptError: option --kind not recognized
[2015-05-18 07:09:27,284] INFO com.google.
[2015-05-18 07:09:27,285] INFO com.google.
[2015-05-18 07:09:27,285] INFO com.google.
[2015-05-18 07:09:27,285] INFO com.google.
[2015-05-18 07:09:27,285] INFO com.google.
[2015-05-18 07:09:27,285] INFO com.google.
[2015-05-18 07:09:27,285] INFO com.google.
[2015-05-18 07:09:27,285] INFO com.google.
[2015-05-18 07:09:27,285] INFO com.google.
[2015-05-18 07:09:27,285] INFO com.google.
[2015-05-18 07:09:27,285] INFO com.google.
[2015-05-18 07:09:27,285] INFO com.google.
[2015-05-18 09:05:10,905] INFO com.google. gerrit. common. ChangeHookRunne r : hook[change-merged] exitValue:1 gerrit. common. ChangeHookRunne r : hook[change-merged] output: Traceback (most recent call last): gerrit. common. ChangeHookRunne r : hook[change-merged] output: File "/home/ gerrit/ mahara- scripts/ change- merged" , line 187, in <module> gerrit. common. ChangeHookRunne r : hook[change-merged] output: sys.exit(main()) gerrit. common. ChangeHookRunne r : hook[change-merged] output: File "/home/ gerrit/ mahara- scripts/ change- merged" , line 163, in main gerrit. common. ChangeHookRunne r : hook[change-merged] output: args, unused = getopt( sys.argv[ 1:], '', gerrit_args)
[2015-05-18 09:05:10,905] INFO com.google.
[2015-05-18 09:05:10,906] INFO com.google.
[2015-05-18 09:05:10,906] INFO com.google.
[2015-05-18 09:05:10,906] INFO com.google.
[2015-05-18 09:05:10,906] INFO com.google.
[2015...