Bug 751538

Summary: fedpkg uses wrong uid
Product: [Fedora] Fedora Reporter: Michael Schwendt <bugs.michael>
Component: fedora-packagerAssignee: Dennis Gilmore <dennis>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: dcantrell, dennis, rhbugs
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-11-07 22:13:30 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Michael Schwendt 2011-11-05 10:56:51 UTC
This is in addition to the -1 for fedora-packager-0.5.9.4-1.fc16

| The new fedpkg doesn't work with my setup. It does something weird and
| uses a secondary group name as the remote user name for the SSH connection
| to the pkgs server. My pkg git user is a member of another user's group.
| Downgrading to fedpkg-0.5.9.2-2.fc16 helps.

My package user is a member of a second user's group:

$ id
uid=1010(foo) gid=1010(foo) groups=1010(foo),1000(bar) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023

$ fedpkg clone pth
Cloning into pth...
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
Traceback (most recent call last):
  File "/usr/bin/fedpkg", line 64, in <module>
    sys.exit(client.args.command())
  File "/usr/lib/python2.7/site-packages/pyrpkg/cli.py", line 886, in clone
    anon=self.args.anonymous)
  File "/usr/lib/python2.7/site-packages/pyrpkg/__init__.py", line 912, in clone
    self._run_command(cmd, cwd=path)
  File "/usr/lib/python2.7/site-packages/pyrpkg/__init__.py", line 638, in _run_command
    raise rpkgError(e)
pyrpkg.rpkgError: Command '['git', 'clone', 'ssh://bar.org/pth']' returned non-zero exit status 128


Notice how it tries to connect to ssh://bar@...

Comment 1 Michael Schwendt 2011-11-05 11:01:18 UTC
"yum downgrade fedora-packager fedpkg fedora-cert" was needed due to dependencies.

Working:

# rpm -q fedora-packager fedpkg fedora-cert
fedora-packager-0.5.9.2-2.fc16.noarch
fedpkg-0.5.9.2-2.fc16.noarch
fedora-cert-0.5.9.2-2.fc16.noarch

Not working:

 fedora-cert         noarch     0.5.9.4-1.fc16        updates-testing      32 k
 fedora-packager     noarch     0.5.9.4-1.fc16        updates-testing      38 k
 fedpkg              noarch     1.1-1.fc16            updates-testing      52 k

Comment 2 Jesse Keating 2011-11-07 22:13:30 UTC

*** This bug has been marked as a duplicate of bug 751490 ***