Bug 760892 - Config file import fails with PostgreSQL Integrity Error
Summary: Config file import fails with PostgreSQL Integrity Error
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Spacewalk
Classification: Community
Component: Server
Version: 1.5
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Michael Mráka
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: space16
TreeView+ depends on / blocked
 
Reported: 2011-12-07 09:53 UTC by Mark Round
Modified: 2011-12-22 16:47 UTC (History)
1 user (show)

Fixed In Version: spacewalk-backend-1.6.54-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-12-22 16:47:48 UTC
Embargoed:


Attachments (Terms of Use)
Traceback received when importing configuration file. (45.73 KB, text/plain)
2011-12-07 09:53 UTC, Mark Round
no flags Details

Description Mark Round 2011-12-07 09:53:41 UTC
Created attachment 541806 [details]
Traceback received when importing configuration file.

Description of problem:

When attempting to import any configuration file from a client, the following error is produced (a full traceback is included below) :

IntegrityError: new row for relation "rhnconfiginfo" violates check constraint "vn_rhnconfiginfo_selinux_ctx"

SELinux is disabled on the server and client. 

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

1.5, latest from YUM repository as of 7th December 2011. I have tested with CentOS 5 and 6 clients, the server is running on CentOS 5. All are x86_64 builds.

How reproducible:

Use the PostgreSQL backend, and attempt to import a configuration file from a client.
  
Actual results:

Traceback produced, and "Fatal error in Python code occured [[6]]" displayed in the web UI when viewing the scheduled job status.

Expected results:

File should be imported correctly.

Additional info:

See attachment for full traceback email received from the spacewalk server when attempting to import a configuration file (/etc/motd).

Comment 1 Michael Mráka 2011-12-07 15:44:08 UTC
Issue has been fixed in spacewalk master by
commit 447475269def57f0cbd0073d02ca5c167079e67c
    760892 - set selinux=None if selinux is disabled

Comment 2 Milan Zázrivec 2011-12-22 16:47:48 UTC
Spacewalk 1.6 has been released.


Note You need to log in before you can comment on or make changes to this bug.