Bug 1004977

Summary: suse-filelist-forbidden-sysconfig (Badness: 10000) /etc/sysconfig/corosync-qdevice is not allowed in SUSE
Product: [openSUSE] openSUSE Tumbleweed Reporter: Bin Liu <bliu>
Component: BasesystemAssignee: E-mail List <bnc-team-screening>
Status: RESOLVED INVALID QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: astieger, nwang
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Bin Liu 2016-10-17 05:57:44 UTC
When I commit corosync-2.4.1 to obs(both Leap 42.1 and Tumbleweed)
At the end, obs reports some errors:

[  169s] corosync-qdevice.i586: E: suse-filelist-forbidden-sysconfig (Badness: 10000) /etc/sysconfig/corosync-qdevice is not allowed in SUSE
[  169s] corosync-qnetd.i586: E: suse-filelist-forbidden-sysconfig (Badness: 10000) /etc/sysconfig/corosync-qnetd is not allowed in SUSE
[  169s] corosync.i586: E: suse-filelist-forbidden-sysconfig (Badness: 10000) /etc/sysconfig/corosync is not allowed in SUSE
[  169s] Please use /var/adm/fillup-templates/sysconfig.<pkgname>
[  169s] and call %fillup_and_insserv for new sysconfig files.
[  169s] 
[  169s] corosync.i586: E: suse-dbus-unauthorized-service (Badness: 10000) /etc/dbus-1/system.d/corosync-signals.conf


Can we allow the operation by adding some rules?
Comment 1 Andreas Stieger 2016-10-17 06:51:02 UTC
Follow the instructions given in the message. Do not package the file in /etc/sysconfig. Instead ..

(In reply to Bin Liu from comment #0)
> [  169s] Please use /var/adm/fillup-templates/sysconfig.<pkgname>
> [  169s] and call %fillup_and_insserv for new sysconfig files.

https://en.opensuse.org/openSUSE:Packaging_Conventions_RPM_Macros#.25fillup_and_insserv
Comment 2 Bin Liu 2016-10-21 06:35:07 UTC
(In reply to Andreas Stieger from comment #1)
> Follow the instructions given in the message. Do not package the file in
> /etc/sysconfig. Instead ..
> 
> (In reply to Bin Liu from comment #0)
> > [  169s] Please use /var/adm/fillup-templates/sysconfig.<pkgname>
> > [  169s] and call %fillup_and_insserv for new sysconfig files.
> 
> https://en.opensuse.org/openSUSE:Packaging_Conventions_RPM_Macros#.
> 25fillup_and_insserv



I tried the method, take corosync-qdevice as an example:

%post -n corosync-qdevice
%{fillup_and_insserv corosync-qdevice}

It fails to fillup if file "/etc/sysconfig/corosync-qdevice" does not exist.
 And when I use touch to create an empty file "/etc/sysconfig/corosync-qdevice", fillup operation can success. I think there is something wrong with either %fillup_and_insserv or fillup binary.
Comment 3 Bin Liu 2016-10-21 07:05:34 UTC
reopen this bug to let bug owner know the issue, please feel free to close if this is not a bug.
Comment 4 Bin Liu 2016-11-01 06:07:54 UTC
close the bug as invalid as this because the file name has "-", without "-n", it will fetch the part before "-".