Bug 68526

Summary: Rhnpush not working
Product: Red Hat Satellite 5 Reporter: Matt Jamison <jamisonm>
Component: ServerAssignee: Greg DeKoenigsberg <gdk>
Status: CLOSED RAWHIDE QA Contact: Fanny Augustin <fmoquete>
Severity: high Docs Contact:
Priority: medium    
Version: unspecifiedCC: alikins, cturner, mihai.ibanescu, taw
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-07-19 14:30:41 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Josef Komenda 2002-07-10 22:11:12 UTC
Description of Problem: running rhnpush on sat 1.1 results in a traceback: 

[root@sat-inst rhn]# rhnpush -v --server=http://sat-inst.test.redhat.com/APP
-u jkomenda -c channel1 /etc/sysconfig/rhn/rhns-ca-cert-1.0-1.*
Channels: channel1
Red Hat Network password:
Connecting to http://sat-inst.test.redhat.com/APP
Uploading package /etc/sysconfig/rhn/rhns-ca-cert-1.0-1.noarch.rpm

Error Message:
    Package upload failed: [Errno 13] Permission denied: '/var/satellite/rhn'
Error Class Code: 50
Error Class Info: Invalid information uploaded to the server
Explanation:
     An error has occurred while processing your request. If this problem
     persists please submit a bug report to rhn-help.
     If you choose to submit the bug report, please be sure to include
     details of what you were trying to do when this error occurred and
     details on how to reproduce this problem.

Comment 1 Mihai Ibanescu 2002-07-10 22:32:12 UTC
Fixed in CVS.

Comment 2 Josef Komenda 2002-07-11 19:11:55 UTC
Not fixed: 

[root@sat-inst root]# rhnpush -v --server=http://sat-inst.test.redhat.com/APP
-u jkomenda -c channel1 /etc/sysconfig/rhn/rhns-ca-cert-1.0-1.*
Channels: channel1
Red Hat Network password:
Connecting to http://sat-inst.test.redhat.com/APP
Uploading package /etc/sysconfig/rhn/rhns-ca-cert-1.0-1.noarch.rpm

Error Message:
    Package upload failed: [Errno 13] Permission denied: '/var/satellite'
Error Class Code: 50
Error Class Info: Invalid information uploaded to the server
Explanation:
     An error has occurred while processing your request. If this problem
     persists please submit a bug report to rhn-help.
     If you choose to submit the bug report, please be sure to include
     details of what you were trying to do when this error occurred and
     details on how to reproduce this problem.


Comment 3 Josef Komenda 2002-07-11 19:27:43 UTC
This works when you create the directory specified in the Installer, then chown
it to apache:

mkdir /var/satellite
chown apache.apache /var/satellite

Over to Adrian to have the installer handle this.

Comment 4 Josef Komenda 2002-07-11 19:34:12 UTC
Correction - over to Greg to update the docs - this is best handled post-install.

Comment 5 Josef Komenda 2002-07-11 19:37:36 UTC
The correct dir to create would be /var/satellite/redhat

Comment 6 Todd Warner 2002-07-12 14:44:28 UTC
Due to the chicken-n-egg problem of mountpoints not existing during the
install process, the installer cannot create the directory and then chown it.
Therefore the documentation _must_ describe what to do.

However, if satellite-{sync,import} is to be used prior to ever using
rhnpush, no manual intervention is needed. Either tool will create and
properly set the permissions of that directory.

By the way, I vote to change the default mountpoint to
/var/spool/rhn-satellite.

Comment 7 Josef Komenda 2002-07-16 19:43:56 UTC
Docs should read like so: 
 - mkdir /var/satellite
 - chown apache.apache /var/satellite

Comment 8 Greg DeKoenigsberg 2002-07-19 14:30:36 UTC
Will close this in the docs by requiring a channel to be imported or synched
before a custom channel may be created.