My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 3564: its-bugzilla not displaying log information to gerrit error_log
1 person starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


Sign in to add a comment
 
Reported by Will.Whi...@gmail.com, Sep 15, 2015
*****************************************************************
*****                                                       *****
***** !!!! THIS BUG TRACKER IS FOR GERRIT CODE REVIEW !!!!  *****
*****                                                       *****
***** DO NOT SUBMIT BUGS FOR CHROME, ANDROID, CYANOGENMOD,  *****
***** INTERNAL ISSUES WITH YOUR COMPANY'S GERRIT SETUP, ETC.*****
*****                                                       *****
*****   THOSE ISSUES BELONG IN DIFFERENT ISSUE TRACKERS     *****
*****                                                       *****
*****************************************************************

Affected Version: 2.11.3

What steps will reproduce the problem?
1. Using gerrit version 2.11.3 I cannot enable log messages for its-bugzilla 
2. etc/gerrit.config
[commentLink "its-bugzilla"]
        match = [Bb][Uu][Gg][ ]*([1-9][0-9]*)
	association = MANDATORY
	html = <a href=\"http://xxx/bugzilla/show_bug.cgi?id=$1\">$1</a>
[its-bugzilla]
	url = http://xxx/bugzilla
	username = userid


etc/its/actions-its-bugzilla.config
[rule "log"]
	action = log-event error 

What is the expected output? What do you see instead?

I am expecting to see some kind of log output in the error_log of type ERROR that corresponds to its-bugzilla actions. When I produce a patchset. However in the logs I do not see any messages of type ERROR.


Please provide any additional information below.

I am able to login to bugzilla using the its-bugzilla specified username and password. And the commentlink which checks for a bugid is working.

Sep 16, 2015
#1 i.d.rath...@gmail.com
As there is no 2.11.3 release for its-bugzilla, which version of its-bugzilla are
you using?

If you built its-bugzilla yourself, which version of its-base did you base it on?

Did you enable the its-bugzilla plugin for the project of interest (or All-Projects)?
(see [1])


[1] http://builds.quelltextlich.at/gerrit/nightly/master/2015-09-16/docs/manual/plugins/its-bugzilla/Documentation/config-common.html#enabling-its-integration
Sep 16, 2015
#2 Will.Whi...@gmail.com
The version is 2.11. 

[2015-09-15 16:06:56,743] INFO  com.googlesource.gerrit.plugins.hooks.bz.BugzillaModule : Bugzilla is configured as ITS
[2015-09-15 16:06:57,875] INFO  com.googlesource.gerrit.plugins.hooks.bz.BugzillaItsFacade : Connected to http://xxx/bugzilla as username=xxx, use
[2015-09-15 16:06:58,559] INFO  com.googlesource.gerrit.plugins.hooks.bz.BugzillaItsFacade : Connected to Bugzilla at http://xxx/bugzilla/xmlrpc.cgi reported version is 4.2.4
[2015-09-15 16:06:58,918] INFO  com.google.gerrit.server.plugins.PluginLoader : Loaded plugin its-bugzilla, version 2.11
[2015-09-15 16:06:59,117] INFO  com.google.gerrit.server.plugins.PluginLoader : Loaded plugin replication, version v2.11.3
[2015-09-15 16:06:59,234] INFO  com.google.gerrit.server.plugins.PluginLoader : Loaded plugin reviewnotes, version v2.11.3
[2015-09-15 16:06:59,323] INFO  com.google.gerrit.server.plugins.PluginLoader : Loaded plugin singleusergroup, version v2.11.3


I have enabled the plugin for projects of interest in the All-projects.

[plugin "its-bugzilla"]
	enabled = true
	branch = refs/heads/*

Sep 16, 2015
#3 Will.Whi...@gmail.com
[root@xxx plugins]# cd its-bugzilla/
[root@xxx its-bugzilla]# git branch -av
  master                     dd135e9 [behind 3] Merge "Remove Maven build"
  stable-2.10                2c7ffca Buck: Fix build
* stable-2.11                3a7702a Build with API version 2.11
  remotes/origin/HEAD        -> origin/master
  remotes/origin/master      f64b384 Follow its-base's change of package name
  remotes/origin/stable-2.10 2c7ffca Buck: Fix build
  remotes/origin/stable-2.11 3a7702a Build with API version 2.11


[root@xxx its-bugzilla]# cd ../its-base/
[root@xxx its-base]# git branch -av
  master                     b984486 [behind 20] VelocityAdapterItsFacade: rename variable to prevent hiding
  stable-2.10                ee45745 Merge branch 'stable-2.9' into stable-2.10
* stable-2.11                77b66c4 Build with API version 2.11
  remotes/origin/HEAD        -> origin/master

Sep 16, 2015
#4 i.d.rath...@gmail.com
> [ its-base is on stable-2.11 77b66c4 ]
[...]
> branch = refs/heads/*

Per branch enablement is known to be broken in the commit you built from.
Try removing that line, and restarting gerrit afterwards.

Sep 16, 2015
#5 Will.Whi...@gmail.com
Thanks removing the line helped.
Sign in to add a comment

Powered by Google Project Hosting