Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 472910

Summary: Missing /etc/nocpulse/NOCpulse/config/static/notif.ini
Product: [Community] Spacewalk Reporter: Miroslav Suchý <msuchy>
Component: ServerAssignee: Miroslav Suchý <msuchy>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 0.4CC: jpazdziora
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-01-22 16:30:51 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: 456552    

Description Miroslav Suchý 2008-11-25 15:51:52 UTC
Description of problem:
perl -e 'use NOCpulse::Notif::Acknowledgement'
Failed to open /etc/nocpulse/NOCpulse/config/static/notif.ini: No such file or directory at /usr/lib/perl5/vendor_perl/5.8.8/NOCpulse/Notif/NotifMailer.pm line 26
Can't call method "val" on an undefined value at /usr/lib/perl5/vendor_perl/5.8.8/NOCpulse/Notif/NotifMailer.pm line 28.
Compilation failed in require at /usr/lib/perl5/vendor_perl/5.8.8/NOCpulse/Notif/Acknowledgement.pm line 16.
BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.8.8/NOCpulse/Notif/Acknowledgement.pm line 16.
Compilation failed in require at -e line 1.
BEGIN failed--compilation aborted at -e line 1..


notif.ini -- configuration file detailing serverid (in the notification farm) and the box's address.  Currently hooked into the sysvstep framework and generated by notification system startup.

Since we do not us sysvstep for installation this file is not created.

Comment 1 Miroslav Suchý 2008-11-28 15:38:01 UTC
Note for myself:

On old Satellite (ie. previous state):
[root@sputnik-prod:~]# ls -ld /opt/notification/config/stage/config/static
lrwxrwxrwx  1 nocpulse nocpulse 12 Sep 10 15:04 /opt/notification/config/stage/config/static -> ../../static
[root@sputnik-prod:~]# ls -ld /opt/notification/config/static
drwxr-xr-x  2 nocpulse nocpulse 4096 Nov 25 17:16 /opt/notification/config/static

On current spacewalk:
[root@xen33 tmp]# ls -ld /etc/notification/static/
drwxr-xr-x 2 nocpulse nocpulse 4096 Nov 27 18:07 /etc/notification/static/
[root@xen33 tmp]# rpm -qf /etc/notification/static/
NPalert-1.125.20-1.el5

So I should change the path in NPalert packages

Comment 2 Miroslav Suchý 2008-12-01 10:36:58 UTC
Commited as 03c71cf99784e1ef9e5456237733f67a34e9aac5

Comment 3 Jan Pazdziora (Red Hat) 2009-01-15 10:20:57 UTC
The notif.ini seems to be present (albeit in different directory) and 
NOCpulse::Notif::Acknowledgement from

  # rpm -qf /usr/lib/perl5/vendor_perl/5.8.8/NOCpulse/Notif/Acknowledgement.pm
  NPalert-1.125.26-1.el5

finds it just fine:

  # perl -e 'use NOCpulse::Notif::Acknowledgement'
  # strace perl -e 'use NOCpulse::Notif::Acknowledgement' 2>&1 | grep notif.ini
  open("/etc/notification/static/notif.ini", O_RDONLY|O_LARGEFILE) = 4