Bug 1693710
Summary: | katello.facts gets invalid hostname while updating RHV hypervisor | ||
---|---|---|---|
Product: | Red Hat Enterprise Virtualization Manager | Reporter: | nijin ashok <nashok> |
Component: | imgbased | Assignee: | Yuval Turgeman <yturgema> |
Status: | CLOSED ERRATA | QA Contact: | jikwang <jikwang> |
Severity: | medium | Docs Contact: | |
Priority: | high | ||
Version: | 4.2.8-4 | CC: | cshao, dfediuck, huzhao, mtessun, ptrivedi, qiyuan, rakumar, Rhev-m-bugs, rishant.kumar, weiwang, yaniwang, ycui, yturgema |
Target Milestone: | ovirt-4.3.3 | Flags: | lsvaty:
testing_plan_complete-
|
Target Release: | 4.3.0 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2019-05-08 12:32:23 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | Node | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
nijin ashok
2019-03-28 14:07:13 UTC
How to reproduce this Bug. 1.Use a modified katello-ca-consumer-latest rpm to install by Yum. yum -y install katello-ca-consumer-host-8-243-104.host.centralci.eng.rdu2.redhat.com-1.0-1.noarch.rpm 2. It automatically generates a katello.facts file. Note: katello-ca-consumer-latest rpm can not automatically generate files before modification. My satellite version is 6.4.2. It can't generate katello.facts file. cat katello.facts {"network.hostname-override":"dhcp-10-180.nay.redhat.com"} 3. Upgrade from rhvh-4.2.5.0-20180724 to rhvh-4.2.8.3-0.20190219.0。 result: The katello.facts file has changed. cat /etc/rhsm/facts/katello.facts {"network.hostname-override":"mnt.q6aAw"} The issue is fixed in rhvh-4.3.0.5-0.20190404.0+1. Test version: Build1: rhvh-4.3.0.5-0.20190328.0 Build2: rhvh-4.3.0.5-0.20190404.0+1 Test steps: 1.Use a modified katello-ca-consumer-latest rpm to install by Yum. yum -y install katello-ca-consumer-host-8-243-104.host.centralci.eng.rdu2.redhat.com-1.0-1.noarch.rpm The content modified in A is the following: #rpmrebuiled -enp katello-ca-consumer-host-8-243-104.host.centralci.eng.rdu2.redhat.com-1.0-1.noarch.rpm Add following below line 66: FQDN=`hostname -f` if [ $? == "0" ] && [ -d /etc/rhsm/facts/ ]; then echo "{\"network.hostname-override\":\"$FQDN\"}" > /etc/rhsm/facts/katello.facts fi 2. It automatically generates a katello.facts file. cat katello.facts {"network.hostname-override":"dhcp-10-180.nay.redhat.com"} 3. Upgrade from rhvh-4.3.0.5-0.20190328.0 to rhvh-4.3.0.5-0.20190404.0+1. Test result: this file will not change. cat /etc/rhsm/facts/katello.facts {"network.hostname-override":"dhcp-10-180.nay.redhat.com"} So this bug is fixed in rhvh-4.3.0.5-0.20190404.0+1, I will change the status to VERIFIED. 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-2019:1053 sync2jira sync2jira |