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 1702052

Summary: Duplicate syspurpose tasks when showing syspurpose
Product: Red Hat Satellite Reporter: Taft Sanders <tasander>
Component: Subscription ManagementAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED DUPLICATE QA Contact: jcallaha
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.4.2CC: cdonnell, csnyder
Target Milestone: UnspecifiedFlags: tasander: needinfo-
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-04-23 18:23:40 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:

Description Taft Sanders 2019-04-22 20:30:56 UTC
Description of problem:
Running 'syspurpose show' on newly registered RHEL 8 client, duplicate tasks are created returning an error to the client for a locked task.

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

How reproducible:
Everytime

Steps to Reproduce:
1. Register RHEL 8 client
2. # syspurpose show
3.

Actual results:
[root@rhel8-00 etc]# syspurpose show
{}
HTTP error (500 - Internal Server Error): Required lock is already taken by other running tasks.
Please inspect their state, fix their errors and resume them.

Required lock: update
Conflicts with tasks:
- https://sat.example.com/foreman_tasks/tasks/6c0f9645-d7b5-4471-b6b9-0ef5161e6591


Expected results:
# syspurpose show
{}

Additional info:

Comment 3 Taft Sanders 2019-04-22 20:32:54 UTC
It seems that syspurpose is duplicating the call to Satellite for the set syspurpose as shown below:

[root@rhel8-00 etc]# syspurpose show
{}                                                                        <----------------------------CALL 1
HTTP error (500 - Internal Server Error): Required lock is already taken by other running tasks. <-----CALL 2
Please inspect their state, fix their errors and resume them.

Required lock: update
Conflicts with tasks:
- https://sat.example.com/foreman_tasks/tasks/6c0f9645-d7b5-4471-b6b9-0ef5161e6591

Comment 6 Taft Sanders 2019-04-23 18:23:40 UTC
Hello,

Sorry for the duplication. This was noticed on an HTB version of RHEL8. As of the latest release this issue was not seen. Closing as duplicate of 1676982

*** This bug has been marked as a duplicate of bug 1676982 ***