Description of problem: Customer normally update the CV via Hosts - All Hosts - Edit on the Content Host row - <Select the cv> - Submit. After this change the new info still on this page and if we check on Hosts - Content Hosts - <Content Host details page> - CV we can confirm the information was updated BUT on the Content Host indeed the value still the same, after execute subscription-manager identity we can see the value still unchangeable, executing the command subscription-manager refresh didn't do difference, still the same. Attention point is, this works as explanation above until Satellite 6.2.14, on Satellite 6.3.x this doesn't work anymore. Version-Release number of selected component (if applicable): 6.3.x How reproducible: 100% Steps to Reproduce: 1. According explanation above and I'll do a complete description on the sequence 2. 3. Actual results: On the Content Host still the same Environment name, then as consequence customer change the CV but this is not reflected on the Content Host indeed. Expected results: See the CV name on the "Environment name" when executing subscription-manager identity and as consequence see the new content from repo/cv. Additional info:
Hello all Let's do the Same procedures on Satellite 6.2.14 and Satellite 6.3.0 The workflow will be - Content Host on Library # subscription-manager identity - Hosts - All Hosts - Edit - Define a new CV - Submit # subscription-manager identity - Hosts - Content Hosts - Select the Content Host - Define a new CV - Save # subscription-manager identity After steps above, we will see the "Environment name" will be updated when we do the test on Satellite 6.2.14 BUT will not work on Satellite 6.3.x and the worst point is, no warning, no issues, just didn't work. Note: If we change on *Hosts - All hosts* the information will be replicated on *Hosts - Content Hosts* and vice-versa, a new CV defined in one page will be displayed when checking the information on another one page. ## Satellite 6.2.14 // Content Host --- [root@dhcp-10-12-211-151 ~]# subscription-manager identity system identity: 777e6cc9-1c4b-40d1-b9c7-d375022ca9ad name: dhcp-10-12-211-151.hq.gsslab.rdu.redhat.com org name: ACME org ID: ACME environment name: Library [root@dhcp-10-12-211-151 ~]# --- // On Satellite, changing via Hosts - All hosts to the CV cv_rhel73 --- [root@dhcp-10-12-211-151 ~]# subscription-manager identity system identity: 777e6cc9-1c4b-40d1-b9c7-d375022ca9ad name: dhcp-10-12-211-151.hq.gsslab.rdu.redhat.com org name: ACME org ID: ACME environment name: Library/cv_rhel73 [root@dhcp-10-12-211-151 ~]# --- // On Satellite, changing via Hosts - Content Hosts to the CV cv_rhel73_10_2017 --- [root@dhcp-10-12-211-151 ~]# subscription-manager identity system identity: 777e6cc9-1c4b-40d1-b9c7-d375022ca9ad name: dhcp-10-12-211-151.hq.gsslab.rdu.redhat.com org name: ACME org ID: ACME environment name: Library/cv_rhel73_10_2017 [root@dhcp-10-12-211-151 ~]# --- Ps.: No necessary execute subscription-manager refresh, just rerun the command and we are able to see the new value. ## Satellite 6.3.0 // Content Host --- [root@dhcp-10-12-211-71 ~]# subscription-manager identity system identity: 83c724bd-9bf4-45ea-b1b9-369613c369c9 name: 83c724bd-9bf4-45ea-b1b9-369613c369c9, dhcp-10-12-211-71.hq.gsslab.rdu.redhat.com org name: ACME org ID: ACME environment name: Library [root@dhcp-10-12-211-71 ~]# --- // On Satellite, changing via Hosts - All hosts to the CV cv_rhel7 --- [root@dhcp-10-12-211-71 ~]# subscription-manager identity system identity: 83c724bd-9bf4-45ea-b1b9-369613c369c9 name: 83c724bd-9bf4-45ea-b1b9-369613c369c9, dhcp-10-12-211-71.hq.gsslab.rdu.redhat.com org name: ACME org ID: ACME environment name: Library [root@dhcp-10-12-211-71 ~]# --- Note: Change was made via webUI but on the Content Host the information still the same even after subscription-manager refresh. // On Satellite, changing via Hosts - Content Hosts to the CV cv_rhel7_xx --- [root@dhcp-10-12-211-71 ~]# subscription-manager identity system identity: 83c724bd-9bf4-45ea-b1b9-369613c369c9 name: 83c724bd-9bf4-45ea-b1b9-369613c369c9, dhcp-10-12-211-71.hq.gsslab.rdu.redhat.com org name: ACME org ID: ACME environment name: Library/cv_rhel7_xx [root@dhcp-10-12-211-71 ~]# --- Note: On this case worked as expected. Ps.: On both scenarios the Content Host was as *Unmanaged Host* Best Regards -- Waldirio M Pinheiro | Senior Software Maintenance Engineer
A workaround is to manually trigger the Host::Update action after editing the host in the Satellite: In the `foreman-rake console`: ``` ForemanTasks.async_task(Actions::Katello::Host::Update, Host.find(2)) ``` Be sure to change the command to use the proper host ID.
Created redmine issue http://projects.theforeman.org/issues/23837 from this bug
*** Bug 1584226 has been marked as a duplicate of this bug. ***
*** Bug 1601466 has been marked as a duplicate of this bug. ***
Checked again on 6.4 snap 13, content hosts got correctly updated after changing the CV for host in the ui, this applies to editing via hosts and content hosts page.
*** Bug 1634762 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/RHSA-2018:2927