I've been using the onnv-gk-tools tools for a while when I setup a
project gate for an internal Solaris project.  Recently I was forced to
update my system to snv_161 and rebase the project gate to snv_162.  At
this point several things are not working.

Here's my situation: I've done hg merge in a rebase repo (it's a copy of
onnv-clone and I pulled the changsets from the project gate into it).
When I try to push from the rebase repo to the project repo I see:

$ hg push mitresync-gate                                     
pushing to ssh://mi...@beln.us.oracle.com//export/gates/mit-1.8-resync-gate
searching for changes
Are you sure you wish to push? [y/N]: y
remote: adding changesets
remote: adding manifests
remote: adding file changes
remote: added 788 changesets with 8689 changes to 6823 files
remote: caching changes for gatehooks...
remote: ...changes cached
remote: Sanity checking your push...
remote: *** ERROR: Merge turd
remote: error: pretxnchangegroup.1 hook raised an exception: 'getgrnam(): name 
not found: gk'
remote: transaction abort!
remote: rollback completed
remote: ** unknown exception encountered, details follow
remote: ** report bug details to http://mercurial.selenic.com/bts/
remote: ** or mercur...@selenic.com
remote: ** Mercurial Distributed SCM (version 1.3.1)
remote: ** Extensions loaded: hook
remote: Traceback (most recent call last):
remote:   File "/usr/bin/hg", line 27, in <module>
remote:     mercurial.dispatch.run()
remote:   File "/usr/lib/python2.6/vendor-packages/mercurial/dispatch.py", line 
16, in run
remote:     sys.exit(dispatch(sys.argv[1:]))
remote:   File "/usr/lib/python2.6/vendor-packages/mercurial/dispatch.py", line 
27, in dispatch
remote:     return _runcatch(u, args)
remote:   File "/usr/lib/python2.6/vendor-packages/mercurial/dispatch.py", line 
43, in _runcatch
remote:     return _dispatch(ui, args)
remote:   File "/usr/lib/python2.6/vendor-packages/mercurial/dispatch.py", line 
449, in _dispatch
remote:     return runcommand(lui, repo, cmd, fullargs, ui, options, d)
remote:   File "/usr/lib/python2.6/vendor-packages/mercurial/dispatch.py", line 
317, in runcommand
remote:     ret = _runcommand(ui, options, cmd, d)
remote:   File "/usr/lib/python2.6/vendor-packages/mercurial/dispatch.py", line 
501, in _runcommand
remote:     return checkargs()
remote:   File "/usr/lib/python2.6/vendor-packages/mercurial/dispatch.py", line 
454, in checkargs
remote:     return cmdfunc()
remote:   File "/usr/lib/python2.6/vendor-packages/mercurial/dispatch.py", line 
448, in <lambda>
remote:     d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
remote:   File "/usr/lib/python2.6/vendor-packages/mercurial/util.py", line 
402, in check
remote:     return func(*args, **kwargs)
remote:   File "/usr/lib/python2.6/vendor-packages/mercurial/commands.py", line 
2752, in serve
remote:     s.serve_forever()
remote:   File "/usr/lib/python2.6/vendor-packages/mercurial/sshserver.py", 
line 42, in serve_forever
remote:     while self.serve_one(): pass
remote:   File "/usr/lib/python2.6/vendor-packages/mercurial/sshserver.py", 
line 52, in serve_one
remote:     while self.serve_one(): pass
remote:   File "/usr/lib/python2.6/vendor-packages/mercurial/sshserver.py", 
line 52, in serve_one
remote:     if impl: impl()
remote:   File "/usr/lib/python2.6/vendor-packages/mercurial/sshserver.py", 
line 206, in do_unbundle
remote:     r = self.repo.addchangegroup(fp, 'serve', self.client_url())
remote:   File "/usr/lib/python2.6/vendor-packages/mercurial/localrepo.py", 
line 2085, in addchangegroup
remote:     url=url, pending=p)
remote:   File "/usr/lib/python2.6/vendor-packages/mercurial/localrepo.py", 
line 139, in hook
remote:     return hook.hook(self.ui, self, name, throw, **args)
remote:   File "/usr/lib/python2.6/vendor-packages/mercurial/hook.py", line 
119, in hook
remote:     r = _pythonhook(ui, repo, name, hname, hookfn, args, throw) or r
remote:   File "/usr/lib/python2.6/vendor-packages/mercurial/hook.py", line 52, 
in _pythonhook
remote:     r = obj(ui=ui, repo=repo, hooktype=name, **args)
remote:   File "/export/gates/onnv-gk-tools/hook/sanity.py", line 135, in sanity
remote:     if utility.check_tag_user(ui) is False:
remote:   File "/export/gates/onnv-gk-tools/lib/utility.py", line 164, in 
check_tag_user
remote:     ret = hguser_is_gk(ui)
remote:   File "/export/gates/onnv-gk-tools/lib/utility.py", line 130, in 
hguser_is_gk
remote:     allowed = grp.getgrnam("gk")[3]
remote: KeyError: 'getgrnam(): name not found: gk'
abort: unexpected response: empty string

Note that I setup the project gate using the gate tools I found in this
repo: ssh://a...@hg.opensolaris.org/hg/scm-migration/onnv-gk-tools

The most recent changeset I have in the onnv-gk-tools  repo is:

changeset:   73:21fc8c6498c7
tag:         qparent
user:        John Beck <John.Beck>
date:        Wed Jan 19 14:24:32 2011 -0800
description:
        add '{rev}:' (i.e., ordinal revision number) to cset info displayed for 
pulls

The system I'm hosting the project gate on is running snv_161.  Do I
need to update the onnv-gk-tools?  Also given this is a project gate
(not ON) I notice the gate hooks are complaining about a merge turd.
Should I disable this check (I have pretxnchangegroup.1 =
python:hook.sanity.sanity in the hgrc for the project gate)?

Note the changeset I tried to push looks like:

hangeset:   14585:cb497cad6fb1
tag:         rebase-snv_162
tag:         qbase
tag:         tip
tag:         qtip
parent:      14507:1e0ba117ed03
parent:      14584:7ab3ad2eb5c1
user:        Will Fiveash <will.five...@oracle.com>
date:        Tue Mar 29 13:58:29 2011 -0500
description:
        rebase to snv_162

-- 
Will Fiveash
Oracle
http://opensolaris.org/os/project/kerberos/
Sent using mutt, a sweet, text based e-mail app <http://www.mutt.org/>
_______________________________________________
tools-discuss mailing list
tools-discuss@opensolaris.org

Reply via email to