Bug 512732

Summary: osad SELinux Build Error on Fedora 11
Product: [Community] Spacewalk Reporter: Devan Goodwin <dgoodwin>
Component: InstallationAssignee: Jan Pazdziora (Red Hat) <jpazdziora>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: medium Docs Contact:
Priority: low    
Version: 0.6   
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-09-10 12:06:36 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: 456554    

Description Devan Goodwin 2009-07-20 15:43:14 UTC
Description of problem:

osad fails to build for Fedora 11 due to selinux issue.

Version-Release number of selected component (if applicable):

osad-5.9.16-1

How reproducible:

Very.

Steps to Reproduce:
1. Submit osad build to spacewalk Koji.
  
Actual results:

make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/builddir/build/BUILD/osad-5.9.16/logrotate'
+ /usr/bin/perl -i -pe 'BEGIN { $VER = join ".", grep /^\d+$/, split /\./, "5.9.16.1.fc11"; } s!\@\@VERSION\@\@!$VER!g;' osa-dispatcher-selinux/osa-dispatcher.te
+ for selinuxvariant in mls strict targeted
+ make -C osa-dispatcher-selinux NAME=mls -f /usr/share/selinux/devel/Makefile
cat: /selinux/mls: No such file or directory
make: Entering directory `/builddir/build/BUILD/osad-5.9.16/osa-dispatcher-selinux'
Compiling mls osa-dispatcher module
osa-dispatcher.te:34: Warning: corecmd_exec_sbin() has been deprecated, please use corecmd_exec_bin() instead.
osa-dispatcher.te":56:ERROR 'syntax error' at token 'corenet_udp_bind_lo_node' on line 5114:
corenet_udp_bind_lo_node(osa_dispatcher_t)
/usr/bin/checkmodule:  error(s) encountered while parsing configuration
/usr/bin/checkmodule:  loading policy configuration from tmp/osa-dispatcher.tmp
make: *** [tmp/osa-dispatcher.mod] Error 1
make: Leaving directory `/builddir/build/BUILD/osad-5.9.16/osa-dispatcher-selinux'
error: Bad exit status from /var/tmp/rpm-tmp.hIaWxF (%build)
RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.hIaWxF (%build)
Child returncode was: 1
EXCEPTION: Command failed. See logs for output.
 # ['bash', '--login', '-c', 'rpmbuild -bb --target noarch --nodeps builddir/build/SPECS/osad.spec']
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/mock/trace_decorator.py", line 70, in trace
    result = func(*args, **kw)
  File "/usr/lib/python2.4/site-packages/mock/util.py", line 324, in do
    raise mock.exception.Error, ("Command failed. See logs for output.\n # %s" % (command,), child.returncode)
Error: Command failed. See logs for output.
 # ['bash', '--login', '-c', 'rpmbuild -bb --target noarch --nodeps builddir/build/SPECS/osad.spec']
LEAVE do --> EXCEPTION RAISED

Comment 1 Jan Pazdziora (Red Hat) 2009-07-27 13:29:09 UTC
Fixed in master, f2ebf211b1c34f2456bbd38c6715c29b15e97ebc.

Built as osad-5.9.19-1.*.

Comment 2 Miroslav Suchý 2009-09-10 12:06:36 UTC
Spacewalk 0.6 released