Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1078746

Summary: PGError while deleting a user: "column katello_content_view_histories.user_id does not exist"
Product: Red Hat Satellite Reporter: Sachin Ghai <sghai>
Component: Users & RolesAssignee: Justin Sherrill <jsherril>
Status: CLOSED CURRENTRELEASE QA Contact: Sachin Ghai <sghai>
Severity: medium Docs Contact:
Priority: high    
Version: 6.0.3CC: bbuckingham, omaciel
Target Milestone: UnspecifiedKeywords: Regression, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/4746
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-02 14:05:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
PG error on user deletion none

Description Sachin Ghai 2014-03-20 09:31:04 UTC
Created attachment 876754 [details]
PG error on user deletion

Description of problem:
Create a user without selecting org, (otherwise you will get another issue 1073428).

After create, delete the same user.. And you will get PG Error on UI

Version-Release number of selected component (if applicable):
sat6 summit release snap4
rubygem-katello_api-0.0.8-2.el6sat.noarch
ruby193-rubygem-katello-1.5.0-22.el6sat.noarch
katello-repos-1.5.1-1.git.14.0868bd1.el6.noarch
rubygem-hammer_cli_katello-0.0.3-5.el6sat.noarch
katello-1.5.0-18.el6sat.noarch
katello-certs-tools-1.5.5-1.el6sat.noarch
katello-installer-0.0.28-1.el6sat.noarch
pulp-katello-plugins-0.2-1.el6sat.noarch
katello-ca-1.0-1.noarch
katello-apache-1.0-1.noarch
foreman-selinux-1.5.0-0.develop.el6sat.noarch
rubygem-hammer_cli_foreman-0.0.18-7.el6sat.noarch
foreman-proxy-1.5.3-1.el6sat.noarch
ruby193-rubygem-foreman-tasks-0.4.0-5.el6sat.noarch
rubygem-foreman_api-0.1.11-3.el6sat.noarch
rubygem-hammer_cli_foreman_tasks-0.0.1-4.el6sat.noarch
foreman-postgresql-1.5.0.9-1.el6sat.noarch
foreman-1.5.0.9-1.el6sat.noarch
foreman-release-1.5.0-0.develop.201403182248gitdf471c7.el6.noarch

How reproducible:
always

Steps to Reproduce:
1. create a user, without selecting any org
2. delete it
3.

Actual results:
Warning!
PGError: ERROR: column katello_content_view_histories.user_id does not exist LINE 1: ...s".* FROM "katello_content_view_histories" WHERE "katello_c... ^ : SELECT "katello_content_view_histories".* FROM "katello_content_view_histories" WHERE "katello_content_view_histories"."user_id" = 27

Expected results:
user should be deleted successfully

Additional info:

Comment 3 Sachin Ghai 2014-03-27 06:16:01 UTC
Getting with snap4 and compose2 build too.

Comment 4 Dominic Cleal 2014-05-20 15:30:02 UTC
*** Bug 1079649 has been marked as a duplicate of this bug. ***

Comment 5 Brad Buckingham 2014-05-27 18:26:29 UTC
It looks like this issue was solved by the following PR; therefore, going to move it to ON_QA for verification:

https://github.com/Katello/katello/pull/3878

Comment 6 Sachin Ghai 2014-05-28 06:41:54 UTC
Verified with latest snap sat6 beta snap6 -
(Satellite-6.0.3-RHEL-6-20140523.0)

I can delete user successfully.

Comment 7 Bryan Kearney 2014-07-02 14:05:57 UTC
This was delivered with 6.0.3, which is the Satellite 6 Beta.