Bug 1920556 - UI not getting updated when you modify entitlements quantity like add or less in subscriptions
Summary: UI not getting updated when you modify entitlements quantity like add or less...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Subscription Management
Version: 6.9.0
Hardware: x86_64
OS: Linux
high
medium
Target Milestone: 6.9.0
Assignee: Jeremy Lenz
QA Contact: Cole Higgins
URL:
Whiteboard:
: 1920536 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-01-26 15:11 UTC by Ganesh Payelkar
Modified: 2021-04-21 13:25 UTC (History)
4 users (show)

Fixed In Version: tfm-rubygem-katello-3.18.1.7-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-04-21 13:25:38 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 31854 0 High Ready For Testing WebUI not getting updated when you modify entitlements quantity like add or less in subscriptions 2021-02-15 21:17:50 UTC
Red Hat Product Errata RHSA-2021:1313 0 None None None 2021-04-21 13:25:55 UTC

Description Ganesh Payelkar 2021-01-26 15:11:48 UTC
Description of problem:

WebUI not getting updated when you modify entitlements quantity like add or less in subscriptions 

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

How reproducible:
New installation 

Steps to Reproduce:
1. Import manifest in the satellite 
2. Visit WebUI --> content --> Subscriptions Page 
3. Check the Entitlements column and edit the quantity of your required subscription [add/remove] and press the CheckMark button to proceed. 
4. It will be asked you below confirmation for changes 

   Editing Entitlements
   You're making changes to 1 entitlement(s)
5. Once you press Save, your page will be blank, until you refresh the page 

Actual results:

https://satellite.example.com/subscriptions 
page will be completely blank until you refresh, there is no progress shown for the changes. 

Expected results:

We should know the changes and their progress. 

Additional info:


==> /var/log/foreman/production.log <==
2021-01-26T20:15:55 [I|app|7ded1d57] Started GET "/foreman_tasks/api/tasks?search=organization_id%3D1+and+result%3Dpending+and+label%3DActions::Katello::Organization::ManifestImport+or+Actions::Katello::Organization::ManifestRefresh+or+Actions::Katello::Organization::ManifestDelete+or+Actions::Katello::UpstreamSubscriptions::BindEntitlements+or+Actions::Katello::UpstreamSubscriptions::UpdateEntitlement+or+Actions::Katello::UpstreamSubscriptions::RemoveEntitlements+or+Actions::Katello::UpstreamSubscriptions::UpdateEntitlements+or+Actions::Katello::Organization::SimpleContentAccess::Enable+or+Actions::Katello::Organization::SimpleContentAccess::Disable" for 127.0.0.1 at 2021-01-26 20:15:55 +0530
2021-01-26T20:15:55 [I|app|7ded1d57] Processing by ForemanTasks::Api::TasksController#index as JSON
2021-01-26T20:15:55 [I|app|7ded1d57]   Parameters: {"search"=>"organization_id=1 and result=pending and label=Actions::Katello::Organization::ManifestImport or Actions::Katello::Organization::ManifestRefresh or Actions::Katello::Organization::ManifestDelete or Actions::Katello::UpstreamSubscriptions::BindEntitlements or Actions::Katello::UpstreamSubscriptions::UpdateEntitlement or Actions::Katello::UpstreamSubscriptions::RemoveEntitlements or Actions::Katello::UpstreamSubscriptions::UpdateEntitlements or Actions::Katello::Organization::SimpleContentAccess::Enable or Actions::Katello::Organization::SimpleContentAccess::Disable"}
2021-01-26T20:15:55 [I|app|7ded1d57]   Rendering /opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-3.0.2/app/views/foreman_tasks/api/tasks/index.json.rabl within api/v2/layouts/index_layout
2021-01-26T20:15:55 [I|app|7ded1d57]   Rendered /opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-3.0.2/app/views/foreman_tasks/api/tasks/index.json.rabl within api/v2/layouts/index_layout (Duration: 12.4ms | Allocations: 6735)
2021-01-26T20:15:55 [I|app|7ded1d57] Completed 200 OK in 37ms (Views: 17.3ms | ActiveRecord: 8.6ms | Allocations: 19375)
2021-01-26T20:15:58 [I|app|7490d61c] Started PUT "/katello/api/v2/organizations/1/upstream_subscriptions" for 127.0.0.1 at 2021-01-26 20:15:58 +0530
2021-01-26T20:15:58 [I|app|7490d61c] Processing by Katello::Api::V2::UpstreamSubscriptionsController#update as JSON
2021-01-26T20:15:58 [I|app|7490d61c]   Parameters: {"pools"=>[{"id"=>"3", "quantity"=>"3"}], "api_version"=>"v2", "organization_id"=>"1", "upstream_subscription"=>{"pools"=>[{"id"=>"3", "quantity"=>"3"}]}}



==> /var/log/foreman/production.log <==
2021-01-26T20:16:00 [I|bac|7490d61c] Task {label: Actions::Katello::UpstreamSubscriptions::UpdateEntitlements, id: af074a15-a979-48f7-8a3e-ea47d208ae54, execution_plan_id: bfd90108-bfbf-4ef9-a1c6-8e8fece64f49} state changed: planning 

==> /var/log/httpd/foreman-ssl_access_ssl.log <==
10.74.8.15 - - [26/Jan/2021:20:15:58 +0530] "PUT /katello/api/v2/organizations/1/upstream_subscriptions HTTP/1.1" 202 731 "https://satellite.example.com/subscriptions" "Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0"

==> /var/log/foreman/production.log <==
2021-01-26T20:16:01 [I|bac|] Task {label: Actions::Katello::UpstreamSubscriptions::UpdateEntitlements, id: af074a15-a979-48f7-8a3e-ea47d208ae54, execution_plan_id: bfd90108-bfbf-4ef9-a1c6-8e8fece64f49} state changed: planned 
2021-01-26T20:16:01 [I|app|]   Rendering /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.18.1.3/app/views/katello/api/v2/common/async.json.rabl within katello/api/v2/layouts/resource
2021-01-26T20:16:01 [I|app|]   Rendered /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.18.1.3/app/views/katello/api/v2/common/async.json.rabl within katello/api/v2/layouts/resource (Duration: 25.1ms | Allocations: 15406)
2021-01-26T20:16:01 [I|app|] Completed 202 Accepted in 2819ms (Views: 26.9ms | ActiveRecord: 61.3ms | Allocations: 179920)
2021-01-26T20:16:01 [I|bac|] Task {label: Actions::Katello::UpstreamSubscriptions::UpdateEntitlements, id: af074a15-a979-48f7-8a3e-ea47d208ae54, execution_plan_id: bfd90108-bfbf-4ef9-a1c6-8e8fece64f49} state changed: running 



==> /var/log/foreman/production.log <==
2021-01-26T20:17:57 [I|aud|] Organization (1) update event on manifest_refreshed_at 2021-01-26 20:07:45 +0530, 2021-01-26 20:17:57 +0530
2021-01-26T20:17:57 [I|bac|] Task {label: Actions::Katello::UpstreamSubscriptions::UpdateEntitlements, id: af074a15-a979-48f7-8a3e-ea47d208ae54, execution_plan_id: bfd90108-bfbf-4ef9-a1c6-8e8fece64f49} state changed: stopped  result: success
2021-01-26T20:17:57 [I|bac|] Task {label: Actions::Katello::UpstreamSubscriptions::UpdateEntitlements, id: af074a15-a979-48f7-8a3e-ea47d208ae54, execution_plan_id: bfd90108-bfbf-4ef9-a1c6-8e8fece64f49} state changed: stopped  result: success

Comment 2 Jeremy Lenz 2021-02-10 21:41:12 UTC
Created redmine issue https://projects.theforeman.org/issues/31854 from this bug

Comment 3 Bryan Kearney 2021-02-11 00:06:07 UTC
Upstream bug assigned to jlenz

Comment 4 Bryan Kearney 2021-02-11 00:06:09 UTC
Upstream bug assigned to jlenz

Comment 5 Partha Aji 2021-02-16 23:46:06 UTC
*** Bug 1920536 has been marked as a duplicate of this bug. ***

Comment 6 Partha Aji 2021-02-16 23:47:48 UTC
Note I marked 1920536 as a duplicate since the fix is the same. Please feel free to test the steps in the original bug.

Comment 7 Bryan Kearney 2021-02-17 04:06:18 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/31854 has been resolved.

Comment 13 errata-xmlrpc 2021-04-21 13:25:38 UTC
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 (Moderate: Satellite 6.9 Release), 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/RHSA-2021:1313


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