Bug 1400890 - [RFE] hosted-engine --set-shared-config should allow modifying fqdn in hosted-engine.conf
Summary: [RFE] hosted-engine --set-shared-config should allow modifying fqdn in hosted...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-hosted-engine-setup
Version: 4.0.5
Hardware: All
OS: Linux
medium
medium
Target Milestone: ovirt-4.2.0
: ---
Assignee: Simone Tiraboschi
QA Contact: Nikolai Sednev
URL:
Whiteboard:
Depends On: 1457357 1482194
Blocks: 1458709 1481123
TreeView+ depends on / blocked
 
Reported: 2016-12-02 09:06 UTC by Ulhas Surse
Modified: 2021-09-09 12:03 UTC (History)
14 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Previously, although you could use engine-rename to change the FQDN of the Manager, the Manager still passed the old value when deploying new self-hosted engine nodes. Now, you can use hosted-engine --set-shared-config to modify the FQDN in hosted-engine.conf.
Clone Of:
: 1481123 (view as bug list)
Environment:
Last Closed: 2018-05-15 17:32:21 UTC
oVirt Team: Integration
Target Upstream Version:
Embargoed:
gklein: testing_plan_complete-


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHV-43440 0 None None None 2021-09-09 12:03:38 UTC
Red Hat Product Errata RHBA-2018:1471 0 None None None 2018-05-15 17:34:05 UTC

Description Ulhas Surse 2016-12-02 09:06:09 UTC
3. What is the nature and description of the request?
   When we run the ovirt-engine-rename tool on hosted-engine VM, the configuration of fqdn in the host "/etc/ovirt-hosted-engine/hosted-engine.conf" file. 

# cat /etc/ovirt-hosted-engine/hosted-engine.conf
fqdn=<fqdn>  <<=======  here
vm_disk_id=f27af8d0-b8b8-402b-9114-886bc9a98759
vm_disk_vol_id=3c25f27d-91bf-416d-bc31-a0f11dc245af
vmid=88453282-193c-45d6-8944-ef8c8f8415b4
storage=<host_name>:/RHV4/HE_Data

Steps to Reproduce:
1. Implement hosted einge setup
2. rename hostname of engine with  ovirt-engine-rename tool. 
3. Check cat /etc/ovirt-hosted-engine/hosted-engine.conf


Actual results:
The hostname in hosted engine host to monitor Hosted engine VM heath remains unchanged. 

Expected results:
It should change. 

Additional info:
Workaround is to manually update the file with correct hostname.


4. Why does the customer need this? (List the business requirements here)
   To enable HA for hosted engine VM for monitoring or service. 

5. How would the customer like to achieve this? (List the functional requirements here)
   Change hostname in /etc/ovirt-hosted-engine/hosted-engine.conf file automatically after running ovirt-engine-rename or some other function. 

6. For each functional requirement listed, specify how Red Hat and the customer can test to confirm the requirement is successfully implemented.
   Yes

7. Is there already an existing RFE upstream or in Red Hat Bugzilla?
   I filed bug but team asked me to report a feature request. So here it is. 

8. Does the customer have any specific time-line dependencies and which release would they like to target (i.e. RHEL5, RHEL6)?
   No

9. Is the sales team involved in this request and do they have any additional input?
   No

10. List any affected packages or components.
    rhevm

11. Would the customer be able to assist in testing this functionality if implemented?
    Yes

Comment 14 Simone Tiraboschi 2017-05-31 14:51:22 UTC
The user should probably use 'hosted-engine --set-shared-config' with the right value for the initial answerfile but currently 'hosted-engine --set-shared-config' let the user just modify notifications related values.

Comment 15 Sandro Bonazzola 2017-06-06 11:39:42 UTC
Moving to 4.1.4 not being identified as a blocker for 4.1.3 and depending on bug #1457357 which hasn't been targeted yet.

Comment 24 Nikolai Sednev 2017-08-23 13:33:22 UTC
Moving to verified forth to https://bugzilla.redhat.com/show_bug.cgi?id=1481123#c23

Comment 25 Simone Tiraboschi 2017-09-18 17:19:27 UTC
Shorted and safest version of a fixing workaround to be used on older 4.0 systems:

dir=$(mktemp -d) && cd $dir
IMAGEPATH=$(find /rhev/data-center/ -path "*/${sdUUID}/images/${conf_image_UUID}/${conf_volume_UUID}" -type f 2>>/dev/null)
sudo -u vdsm dd if=$IMAGEPATH 2>/dev/null | tar -xvf - 2>>/dev/null
# edit fhanswers.conf and fix OVEHOSTED_NETWORK/fqdn line
# upload it back
tar --blocking-factor=40 -cO * | sudo -u vdsm dd of=$IMAGEPATH

Comment 28 errata-xmlrpc 2018-05-15 17:32:21 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, 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-2018:1471

Comment 29 Franta Kust 2019-05-16 13:07:29 UTC
BZ<2>Jira Resync


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