Bug 869651

Summary: 3.2 - Add a method to reconfigure without init.d parameter
Product: Red Hat Enterprise Virtualization Manager Reporter: Alon Bar-Lev <alonbl>
Component: vdsmAssignee: Alon Bar-Lev <alonbl>
Status: CLOSED CURRENTRELEASE QA Contact: Ido Begun <ibegun>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 3.2.0CC: abaron, bazulay, cpelland, danken, dyasny, hateya, iheim, lpeer, oramraz, sgordon, ykaul
Target Milestone: ---Keywords: Improvement, ZStream
Target Release: 3.2.0Flags: dyasny: Triaged+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: infra
Fixed In Version: vdsm-4.10.2-7.0 Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 866889, 879942    

Description Alon Bar-Lev 2012-10-24 13:39:14 UTC
commit dd0581dfa3086135bdd3b91c762137bf953f256b
Author: Alon Bar-Lev <alonbl>
Date:   Mon Oct 22 16:16:04 2012 +0200

    packaging: add a method to reconfigure without init.d parameter
    
    systemd does not support additional service commands[1], while there can
    be argue if this is good or bad this is the fact.
    
    CURRENT IMPLEMENTATION
    
    Current bootstrap implementation uses hybrid approach while trying to
    pass "reconfigure" to init.d, and when fails, access the init.d script
    directly.
    
    This is highly none expected behavior.
    
    NEW IMPLEMENTATION
    
    Add /var/lib/vdsm/reconfigure file, if exists perform reconfiguration.
    
    This will work with any init.d system without issues.
    
    The service will be reconfigure at next start.
    
    ** We cannot remove the code from the current vdsm-bootstrap, so it able
       to reconfigure previous versions of vdsm.
    
    [1] http://www.freedesktop.org/wiki/Software/systemd/Incompatibilities
    
    Change-Id: Id4a8d5939fbefc6d3857d8083dfcf2180b9ba110
    Signed-off-by: Alon Bar-Lev <alonbl>
    Reviewed-on: http://gerrit.ovirt.org/8725
    Reviewed-by: Zhou Zheng Sheng <zhshzhou.ibm.com>
    Reviewed-by: Juan Hernandez <juan.hernandez>
    Reviewed-by: Adam Litke <agl.com>
    Reviewed-by: Dan Kenigsberg <danken>

Comment 9 Alon Bar-Lev 2012-12-01 20:42:14 UTC
modified per upstream rebase.

Comment 10 Stephen Gordon 2012-12-20 17:08:33 UTC
Setting requires_doc_text-, I'm assuming that if users need to reconfigure VDSM they should either be re-installing the machine from the management interface or contacting GSS,

Comment 12 Ido Begun 2013-03-24 10:20:45 UTC
OK - SF11

Creating /var/lib/vdsm/reconfigure does indeed cause VDSM to reconfigure on next startup.

Comment 13 Itamar Heim 2013-06-11 09:06:47 UTC
3.2 has been released

Comment 14 Itamar Heim 2013-06-11 09:06:50 UTC
3.2 has been released

Comment 15 Itamar Heim 2013-06-11 09:06:50 UTC
3.2 has been released

Comment 16 Itamar Heim 2013-06-11 09:06:50 UTC
3.2 has been released

Comment 17 Itamar Heim 2013-06-11 09:35:31 UTC
3.2 has been released