Bug 653889

Summary: httpd is missing file for map KeyToSatId
Product: [Community] Spacewalk Reporter: Sandro Mathys <sandro>
Component: InstallationAssignee: Jan Pazdziora (Red Hat) <jpazdziora>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: urgent Docs Contact:
Priority: low    
Version: 1.2   
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: 2010-11-19 16:16:32 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:
Bug Depends On:    
Bug Blocks: 623772    
Attachments:
Description Flags
proposed patch, changing the path in the erroneus config file none

Description Sandro Mathys 2010-11-16 11:53:05 UTC
Description of problem:
After an upgrade from spacewalk 1.1, httpd is missing the file /etc/rhn/satellite-httpd/conf/satidmap.pl

Version-Release number of selected component (if applicable):
http://koji.spacewalkproject.org/spacewalk/split/spacewalk-5E/server/spacewalk-5E-1.2/x86_64/os/

How reproducible:
Only tried upgrading once

Steps to Reproduce:
1. Upgrade following https://fedorahosted.org/spacewalk/wiki/HowToUpgrade
2. rhn-satellite start (part of the above howto)
3. Read printed output
  
Actual results:
Starting httpd: Syntax error on line 7 of /etc/rhn/satellite-httpd/conf/rhn/rhn_monitoring.conf:
RewriteMap: file for map KeyToSatId not found:/etc/rhn/satellite-httpd/conf/satidmap.pl
                                                           [FAILED]


Expected results:
Starting httpd:                                            [  OK  ]


Additional info:
# ls /etc/rhn/satellite-httpd/conf/satidmap.pl
ls: /etc/rhn/satellite-httpd/conf/satidmap.pl: No such file or directory

# yum provides */satidmap.pl | grep satidmap.pl
Filename    : /usr/share/rhn/satidmap.pl

Comment 1 Sandro Mathys 2010-11-16 11:54:20 UTC
Created attachment 460816 [details]
proposed patch, changing the path in the erroneus config file

Comment 2 Jan Pazdziora (Red Hat) 2010-11-16 12:25:14 UTC
The file /etc/rhn/satellite-httpd/conf/rhn/rhn_monitoring.conf in spacewalk-config-1.2.7-1.el5.noarch.rpm contains

RewriteMap KeyToSatId prg:/usr/share/rhn/satidmap.pl

Can you check that you have spacewalk-config updated, and why it does not have the correct content?

Comment 3 Jan Pazdziora (Red Hat) 2010-11-16 12:38:35 UTC
Upon upgrade the new config file was stored in /etc/rhn/satellite-httpd/conf/rhn/rhn_monitoring.conf.rpmnew since the OP had some changes in the original rhn_monitoring.conf file.

I've not updated HowToUpgrade, noting to check .rpmnew files.

This is really NOTABUG but let's move to ON_QA to recheck.

Comment 4 Jan Pazdziora (Red Hat) 2010-11-19 16:16:32 UTC
With Spacewalk 1.2 released, marking as CLOSED CURRENTRELEASE.

https://www.redhat.com/archives/spacewalk-list/2010-November/msg00111.html