Bug 1102951

Summary: Attaching a subscription to a Content Host doesn't refresh the subscrption indicator
Product: Red Hat Satellite Reporter: Mike McCune <mmccune>
Component: Subscription ManagementAssignee: David Davis <daviddavis>
Status: CLOSED CURRENTRELEASE QA Contact: sthirugn <sthirugn>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.0.3CC: bkearney, cwelton, jmontleo, sthirugn
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/6175
Whiteboard:
Fixed In Version: Doc Type: Release Note
Doc Text:
This is a UI refresh issue. The correct data is shown when a user navigates to a new page and then returns.
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-09-11 12:20:12 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 Mike McCune 2014-05-29 21:37:53 UTC
When you use the Satellite 6 UI to attach a subscription to a registered content host the subscription remains invalid until you leave that specific content host and then visit a different one and come back.

Steps to reproduce:

1) register 2 different systems *without* an activation key and ensure that it is in an invalid subscription state

2) Login to the webui, select org and find system just registered

3) Try to add a subscription (RHEL) and get the system from RED/GREY to GREEN, not that you still get "Invalid"

4) Leave that Content Host's details page and view the 2nd system you registered in step 1

5) Go back to the original system and you should see it in the 'green' status

Comment 1 Bryan Kearney 2014-05-29 21:43:33 UTC
note.. subscription-status shows as invalid. The actual subscription is attached.

Comment 2 RHEL Program Management 2014-05-29 21:55:05 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.

Comment 4 Bryan Kearney 2014-06-13 15:04:17 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/6175 has been closed

Comment 5 David Davis 2014-06-17 13:15:59 UTC
6ffdc265e9d0062d74aa27ef41e6a17dc385c2dc

Fixes #6175 BZ1102951: Worked on updating content hosts details

Fixed a bug where content host details weren't be updated after adding or
removing a subscription. The status would still indicate invalid/valid
(respectively). I had to use $parent here as updating $scope.contentHost for
some reason did not update the webpage

Comment 7 sthirugn@redhat.com 2014-08-10 14:49:12 UTC
Failed.  After the subscriptions are attached - the content host is showing GREEN on the right pane but the left pane still shows RED.  (see screenshot).  As mentioned in the bug, if I go to some other page and come back to content-hosts page, then it shows GREEN.  So page refresh issue still remains.

Version Tested:
GA Snap 4 - Satellite-6.0.4-RHEL-6-20140806.0

* apr-util-ldap-1.3.9-3.el6_0.1.x86_64
* candlepin-0.9.19-1.el6_5.noarch
* candlepin-scl-1-5.el6_4.noarch
* candlepin-scl-quartz-2.1.5-5.el6_4.noarch
* candlepin-scl-rhino-1.7R3-1.el6_4.noarch
* candlepin-scl-runtime-1-5.el6_4.noarch
* candlepin-selinux-0.9.19-1.el6_5.noarch
* candlepin-tomcat6-0.9.19-1.el6_5.noarch
* elasticsearch-0.90.10-4.el6sat.noarch
* foreman-1.6.0.38-1.el6sat.noarch
* foreman-compute-1.6.0.38-1.el6sat.noarch
* foreman-gce-1.6.0.38-1.el6sat.noarch
* foreman-libvirt-1.6.0.38-1.el6sat.noarch
* foreman-ovirt-1.6.0.38-1.el6sat.noarch
* foreman-postgresql-1.6.0.38-1.el6sat.noarch
* foreman-proxy-1.6.0.23-1.el6sat.noarch
* foreman-selinux-1.6.0.4-1.el6sat.noarch
* foreman-vmware-1.6.0.38-1.el6sat.noarch
* katello-1.5.0-28.el6sat.noarch
* katello-ca-1.0-1.noarch
* katello-certs-tools-1.5.6-1.el6sat.noarch
* katello-installer-0.0.57-1.el6sat.noarch
* openldap-2.4.23-34.el6_5.1.x86_64
* pulp-katello-0.3-3.el6sat.noarch
* pulp-nodes-common-2.4.0-0.30.beta.el6sat.noarch
* pulp-nodes-parent-2.4.0-0.30.beta.el6sat.noarch
* pulp-puppet-plugins-2.4.0-0.30.beta.el6sat.noarch
* pulp-puppet-tools-2.4.0-0.30.beta.el6sat.noarch
* pulp-rpm-plugins-2.4.0-0.30.beta.el6sat.noarch
* pulp-selinux-2.4.0-0.30.beta.el6sat.noarch
* pulp-server-2.4.0-0.30.beta.el6sat.noarch
* python-ldap-2.3.10-1.el6.x86_64
* ruby193-rubygem-net-ldap-0.3.1-3.el6sat.noarch
* ruby193-rubygem-runcible-1.1.0-2.el6sat.noarch
* sssd-ldap-1.11.5.1-3.el6.x86_64

Comment 8 David Davis 2014-08-11 13:00:30 UTC
It looks like that status icon was added at the end of June (after this fix was made):

https://github.com/Katello/katello/commit/7e86b53e#diff-8d1fe504fb4c8c0ff058edda520089f9R17

Comment 9 David Davis 2014-08-11 13:13:41 UTC
I'll look into what needs to be done here. If it's easy, I'll handle it with another fix. If it's not, I recommend we open a separate bug.

Comment 10 David Davis 2014-08-11 16:28:46 UTC
New PR to deal with the new status icon:

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

Comment 13 sthirugn@redhat.com 2014-08-14 05:00:16 UTC
Verified.  Now the subscription status is refresh both in right and left panes.

Version Tested:
GA Snap 5 - Satellite-6.0.4-RHEL-6-20140813.2

* apr-util-ldap-1.3.9-3.el6_0.1.x86_64
* candlepin-0.9.23-1.el6_5.noarch
* candlepin-common-1.0.1-1.el6_5.noarch
* candlepin-scl-1-5.el6_4.noarch
* candlepin-scl-quartz-2.1.5-5.el6_4.noarch
* candlepin-scl-rhino-1.7R3-1.el6_4.noarch
* candlepin-scl-runtime-1-5.el6_4.noarch
* candlepin-selinux-0.9.23-1.el6_5.noarch
* candlepin-tomcat6-0.9.23-1.el6_5.noarch
* elasticsearch-0.90.10-4.el6sat.noarch
* foreman-1.6.0.40-1.el6sat.noarch
* foreman-compute-1.6.0.40-1.el6sat.noarch
* foreman-gce-1.6.0.40-1.el6sat.noarch
* foreman-libvirt-1.6.0.40-1.el6sat.noarch
* foreman-ovirt-1.6.0.40-1.el6sat.noarch
* foreman-postgresql-1.6.0.40-1.el6sat.noarch
* foreman-proxy-1.6.0.27-1.el6sat.noarch
* foreman-selinux-1.6.0.6-1.el6sat.noarch
* foreman-vmware-1.6.0.40-1.el6sat.noarch
* katello-1.5.0-28.el6sat.noarch
* katello-ca-1.0-1.noarch
* katello-certs-tools-1.5.6-1.el6sat.noarch
* katello-installer-0.0.59-1.el6sat.noarch
* openldap-2.4.23-34.el6_5.1.x86_64
* openldap-devel-2.4.23-34.el6_5.1.x86_64
* pulp-katello-0.3-3.el6sat.noarch
* pulp-nodes-common-2.4.0-0.30.beta.el6sat.noarch
* pulp-nodes-parent-2.4.0-0.30.beta.el6sat.noarch
* pulp-puppet-plugins-2.4.0-0.30.beta.el6sat.noarch
* pulp-puppet-tools-2.4.0-0.30.beta.el6sat.noarch
* pulp-rpm-plugins-2.4.0-0.30.beta.el6sat.noarch
* pulp-selinux-2.4.0-0.30.beta.el6sat.noarch
* pulp-server-2.4.0-0.30.beta.el6sat.noarch
* python-ldap-2.3.10-1.el6.x86_64
* ruby193-rubygem-net-ldap-0.3.1-3.el6sat.noarch
* ruby193-rubygem-runcible-1.1.0-2.el6sat.noarch

Comment 14 Bryan Kearney 2014-09-11 12:20:12 UTC
This was delivered with Satellite 6.0 which was released on 10 September 2014.