Bug #18642
closedChanging the "Name" on content-host from web-ui does not update content-host name through-out the katello server.
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1417953
Description of problem:
Changing the "Name" on content-host from web-ui does not update content-host name through out the katello server.
Version-Release number of selected component (if applicable):
How reproducible:
Steps to Reproduce:
1. Consider that the hostname of a system is 'Content-host1' is registered with katello server.
2. Now the hostname of this system has been changed to 'Content-host3' so in order to make changes on katello sever, go to the Katello UI and navigated to Hosts -> Content Hosts, select "Content-host1" and updated the name in the basic information tab to 'Content-host3'.
3. The infromation is changed on the web-ui, but hammer output still pull old name .
---
hammer content-host list --organization Broadcast --content-view-id 10
-------------------------------------|-----------------|-------------------
ID | NAME | INSTALLABLE ERRATA
-------------------------------------|-----------------|-------------------
63bf9f9b-6a25-454f-beaf-66b1e186971e | Content-host22 | 0
86a5cb3d-860b-4b7a-b563-981a4f62ed5d | Content-host11 | 0
81b514bc-5abe-492b-9ab9-2ae21fa28083 | Content-host5 | 0
945fed76-4c3b-41e3-8622-d40dbe61d2ba | Content-host1 | 0 <====== no change still old name
-------------------------------------|-----------------|-------------------
---
Actual results:
It seem that some tables are not updated for 'name' field when changed the name from web-ui.
Expected results:
The updated name should be available in all the tables on the katello server.
Additional info:
1. On satelltie server some hammer command pull proper data:
===
hammer host info --name Content-host3
Id: 32
Name: Content-host3 <===new name
Organisation: Broadcast
Puppet CA Id:
Puppet Master Id:
Cert name: Content-host3
Managed: no
Installed at:
Last report:
===