Bug 1554283
| Summary: | [downstream clone - 4.1.11] hosted-engine --get-shared-config rewrites all the hosted-engine configuration files loosing spm id | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Virtualization Manager | Reporter: | RHV bug bot <rhv-bugzilla-bot> | 
| Component: | ovirt-hosted-engine-ha | Assignee: | Martin Sivák <msivak> | 
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Nikolai Sednev <nsednev> | 
| Severity: | urgent | Docs Contact: | |
| Priority: | urgent | ||
| Version: | unspecified | CC: | bugs, dfediuck, eedri, eheftman, lsurette, lsvaty, mavital, mgoldboi, msivak, stirabos, ykaul | 
| Target Milestone: | ovirt-4.1.11 | Keywords: | Triaged, ZStream | 
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | ovirt-hosted-engine-ha-2.1.11-1.el7ev | Doc Type: | Rebase: Bug Fixes and Enhancements | 
| Doc Text: | Previously, /etc/hosted-engine/hosted-engine.conf was overwritten each time hosted-engine --get-shared-config was used due to a problem distinguishing between reload and refresh.
In this release, hosted-engine --get-shared-config and hosted-engine --set-shared-config contain new options that enable local values to be correctly distinguished from shared values. The following configuration "types" (--type) were changed/added:
- he_conf is now represented by he_local (local /etc)
- he_shared (shared version of he_local used for newly deployed hosts) | Story Points: | --- | 
| Clone Of: | 1543988 | Environment: | |
| Last Closed: | 2019-02-22 08:35:05 UTC | Type: | --- | 
| Regression: | --- | Mount Type: | --- | 
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | Integration | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 1543988 | ||
| Bug Blocks: | |||
| 
        
          Description
        
        
          RHV bug bot
        
        
        
        
        
          2018-03-12 10:18:10 UTC
        
       This looks by far worst than I though. /etc/ovirt-hosted-engine/hosted-engine.conf got also rewrote by the copy on the shared storage and so all the host where hosted-engine --get-shared-config get executed will end with host_id=1 causing an spm collision almost for sure. (Originally by Simone Tiraboschi) This looks by far worst than I though. /etc/ovirt-hosted-engine/hosted-engine.conf got also rewrote by the copy on the shared storage and so all the host where hosted-engine --get-shared-config get executed will end with host_id=1 causing an spm collision almost for sure. (Originally by Simone Tiraboschi) I think it affects 4.1 as well. (Originally by Simone Tiraboschi) All the patches are included in ovirt-hosted-engine-ha-2.1.11-1.el7ev and https://brewweb.engineering.redhat.com/brew/buildinfo?buildID=661953 has this in its changelog. ovirt-hosted-engine-ha-2.1.11-1.el7ev is in https://errata.devel.redhat.com/advisory/32648 but it skipped this bug, maybe something wrong in the changelog syntax. Postponing to 4.1.11 for allowing QE time to properly verifying this, despite the fix is already including in 4.1.10. Looks like its too early for this bug to reach QA, forth to our conversation with Anton, 4.1.11 is not yet scheduled. Moving back to assigned. To modified. Nikolai, have you seen comment #9? (In reply to Martin Sivák from comment #13) > Nikolai, have you seen comment #9? No, I didn't. Anyway I will test it on 4.1.11 instead of 4.1.10 forth to that comment. Moving now to ON_QA: no other builds are required for 4.1.11 since the fix was already in 4.1.10. Forth to discussion with Simone, moving this bug to verified. Tested on these components: ovirt-hosted-engine-setup-2.1.4.2-1.el7ev.noarch ovirt-hosted-engine-ha-2.1.11-1.el7ev.noarch rhvm-appliance-4.1.20180125.0-1.el7.noarch Red Hat Enterprise Linux Server release 7.5 (Maipo) Linux 3.10.0-862.el7.x86_64 #1 SMP Wed Mar 21 18:14:51 EDT 2018 x86_64 x86_64 x86_64 GNU/Linux 1.Deployed 2 ha-hosts. 2.Set global maintenance. 3.SHE-VM is running on first host. 4."cat /etc/ovirt-hosted-engine/hosted-engine.conf | grep host_id" host_id=2 5."hosted-engine --set-shared-config gateway <some pingable IP> --type=he_shared" 6."rm -f /var/run/ovirt-hosted-engine-ha/vm.conf". 7."ls -l /var/run/ovirt-hosted-engine-ha/vm.conf" -rw-r--r--. 1 vdsm kvm 2369 Apr 12 18:29 /var/run/ovirt-hosted-engine-ha/vm.conf 8."cat /etc/ovirt-hosted-engine/hosted-engine.conf | grep host_id" host_id=2. |