Red Hat Bugzilla – Bug 1117753
CV:Deleting a CV immediately after removing its published version raises 500 ISE
Last modified: 2016-09-14 17:02:16 EDT
Created attachment 916708 [details] Logs from production.log Description of problem: I was trying a specific scenario to delete to a CV. I created a CV and published it and promote it to next env. Later, I created a new activation-key and selected same cv. Now when I tried to delete CV, UI says: To delete CV, first remove its version and move the associated entities (activation-key) to other CV or env. I followed same and removed the version. On removing the CV version, UI raises notification: "Successfully initiated removal of testcv2 version 1." After above notification, I tried to remove the CV and got following error on UI: Required lock is already taken by other running tasks. Please inspect their state, fix their errors nad resume them. Required lock: read Conflicts with tasks: - https://dhcp207-190.lab.eng.pnq.redhat.com/foreman_tasks/tasks/1b44ce3f-c919-4b87-af1c-3b9701948f69 Version-Release number of selected component (if applicable): Satellite-6.0.3-RHEL-6-20140626.1 How reproducible: always Steps to Reproduce: 1. create a CV (cv1), publish it and promote it to next env (dev) 2. create activation-key(ak), select 'dev' env and 'cv1' 3. Now try to delete CV 4. first UI will sk to delete its version. 5. Once you triggered version deletion, immediately try to delete CV too Actual results: UI raises: Required lock is already taken by other running tasks. Please inspect their state, fix their errors nad resume them. Required lock: read Conflicts with tasks: - https://dhcp207-190.lab.eng.pnq.redhat.com/foreman_tasks/tasks/1b44ce3f-c919-4b87-af1c-3b9701948f69 Expected results: UI should raise proper message, saying that deletion is still on-going or something like that and log shouldn't be filled with 500 ISE There are several other cases, related to locking, and all needs to be handled properly. Additional info:
The other issue I found and looks like relevant to this bz is: When we delete a CV version, UI raise a message: Successfully initiated deletion of <CV_name> version 1. But never gets another message after this that "Successfully removed the CV version". So when we again click "Remove version' to remove the CV, UI throws: -- Required lock is already taken by other running tasks... -- This issue is reproducible on latest nightly too.
Created redmine issue http://projects.theforeman.org/issues/9578 from this bug
Moving bugs I'm not currently working on back to NEW
Moving this to 6.2.0 because in order to fix this correctly we need to alter the LockConflict exception class in foreman-tasks to provide an object rather than a simple string. I believe the blast radius for this change is too large for the benefit we will gain by fixing this for 6.1.
Upstream bug assigned to walden@redhat.com
Upstream bug component is Tasks Plugin
PR - https://github.com/Katello/katello/pull/6040
Upstream bug component is WebUI
Moving to POST since upstream bug http://projects.theforeman.org/issues/9578 has been closed
*** Bug 1343924 has been marked as a duplicate of this bug. ***
*** Bug 1372421 has been marked as a duplicate of this bug. ***
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2016:1885