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 1715958

Summary: OSP15 overcloud nodes registration to Satellite 6.5 fails while running subscription-manager list --available with HTTP error (500 - Internal Server Error): Required lock is already taken by other running tasks
Product: Red Hat Satellite Reporter: Marius Cornea <mcornea>
Component: RegistrationAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED WONTFIX QA Contact: Stephen Wadeley <swadeley>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.5.0CC: dbecker, emacchi, inecas, mburns, morazi
Target Milestone: UnspecifiedKeywords: Triaged
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:
: 1724719 (view as bug list) Environment:
Last Closed: 2020-07-06 14:40:42 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
foreman-debug none

Description Marius Cornea 2019-05-31 18:19:11 UTC
Description of problem:

OSP15 overcloud nodes registration to Satellite 6.5 fails while running subscription-manager list --available with HTTP error (500 - Internal Server Error): Required lock is already taken by other running tasks

Version-Release number of selected component (if applicable):
ansible-role-redhat-subscription-1.0.3-0.20190423160356.50120ad.el8ost.noarch
ansible-2.8.0-1.el8ae.noarch

How reproducible:
100%

Steps to Reproduce:

1. Deploy overcloud with nodes registered to Satellite 6.5

Actual results:

Deployment fails because Satellite returns:

 HTTP error (500 - Internal Server Error): Required lock is already taken by other running tasks.\nPlease inspect their state, fix their errors and resume them.\n\nRequired lock: update\nConflicts with tasks:\n- https://sealusa10.mobius.lab.eng.rdu2.redhat.com/foreman_tasks/tasks/7fac8bef-6b39-4482-bc5c-25e924c25c32" 

when the node is running 'subscription-manager list --available'

Checking the task on the Satellite server we can see it takes 4 seconds to finish so we should probably implement a retry mechanism to allow long running task to complete on Satellite side. 

Expected results:

Overcloud nodes registration completes successfully.

Additional info:

Attaching /var/lib/mistral/overcloud/ansible.log

Comment 2 Marius Cornea 2019-05-31 19:47:01 UTC
Moving this bug to satellite as this is an issue that started showing up when testing OSP15 integration with Satellite 6.5. The issue didn't show up with previous releases of Satellite.

Comment 5 Marius Cornea 2019-06-04 00:24:59 UTC
This is easy reproducible by running 2 subsequent subscription-manager commands, e.g:

[root@controller-0 heat-admin]# subscription-manager status; subscription-manager repos --list-enabled
+-------------------------------------------+
   System Status Details
+-------------------------------------------+
Overall Status: Current

System Purpose Status: Not Specified

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://sealusa10.mobius.lab.eng.rdu2.redhat.com/foreman_tasks/tasks/380eda6e 6750 4cf5 95c2 7ce91e54d9a9

There were no available repositories matching the specified criteria.
[root@controller-0 heat-admin]# subscription-manager status; subscription-manager repos --list-enabled
+-------------------------------------------+
   System Status Details
+-------------------------------------------+
Overall Status: Current

System Purpose Status: Not Specified

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://sealusa10.mobius.lab.eng.rdu2.redhat.com/foreman_tasks/tasks/a4e1791e 9bd7 47b7 9b4c b5298aa99224

There were no available repositories matching the specified criteria.
[root@controller-0 heat-admin]# subscription-manager status; subscription-manager repos --list-enabled
+-------------------------------------------+
   System Status Details
+-------------------------------------------+
Overall Status: Current

System Purpose Status: Not Specified

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://sealusa10.mobius.lab.eng.rdu2.redhat.com/foreman_tasks/tasks/85a08010 ff7d 4862 b443 410c0299c079

There were no available repositories matching the specified criteria.

Comment 7 Marius Cornea 2019-06-04 18:31:42 UTC
Created attachment 1577246 [details]
foreman-debug

Comment 11 Bryan Kearney 2020-06-09 15:01:06 UTC
The Satellite Team is attempting to provide an accurate backlog of bugzilla requests which we feel will be resolved in the next few releases. We do not believe this bugzilla will meet that criteria, and have plans to close it out in 1 month. This is not a reflection on the validity of the request, but a reflection of the many priorities for the product. If you have any concerns about this, feel free to contact Red Hat Technical Support or your account team. If we do not hear from you, we will close this bug out. Thank you.

Comment 12 Bryan Kearney 2020-07-06 14:40:42 UTC
Thank you for your interest in Satellite 6. We have evaluated this request, and while we recognize that it is a valid request, we do not expect this to be implemented in the product in the foreseeable future. This is due to other priorities for the product, and not a reflection on the request itself. We are therefore closing this out as WONTFIX. If you have any concerns about this, please do not reopen. Instead, feel free to contact Red Hat Technical Support. Thank you.