Change in vdsm[master]: bootstrap: send complete bootstrap from engine

danken at redhat.com danken at redhat.com
Sun Aug 19 15:20:34 UTC 2012


Dan Kenigsberg has submitted this change and it was merged.

Change subject: bootstrap: send complete bootstrap from engine
......................................................................


bootstrap: send complete bootstrap from engine

CURRENT BEHAVIOR

vds_installer.py is part of ovirt-engine, upon bootstrap, the script is
sent to the node using ssh.

Then vds_installer.py pulls vds-bootstrap* files using HTTP from
engine.

The vds_installer.py and vds_bootstrap pulls ssh public key from engine
using HTTP.

NEW BEHAVIOR

vds_installer.py was moved into the vdsm-bootstrap and renamed to setup.

vdsm-bootstrap repository was updated to create directory per bootstrap
interface with 'setup' script.

ovirt-engine copies public key to node in similar way of firewall rules.

At bootstrap time, engine create tar archive from the bootstrap
directory, cache it and pipe the archive into node in order to extract
it and run the setup script.

No HTTP communication is needed.

No conflict with existing files.

BACKWARD COMPATIBILITY

Leave vds_bootstrap.py, vds_bootstrap_complete.py, deployUtil.py to be
used by older engines. This should be removed in future.

SCRIPTS MODIFICATIONS

Set umask 0077 so only running user can access files.

Change-Id: I01ddee19cbb65341ed22435ed9e735a0ad3c2abd
Signed-off-by: Alon Bar-Lev <alonbl at redhat.com>
---
M .gitignore
M vds_bootstrap/Makefile.am
A vds_bootstrap/setup
M vds_bootstrap/vds_bootstrap.py
M vdsm.spec.in
M vdsm_reg/Makefile.am
M vdsm_reg/deployUtil.py.in
7 files changed, 444 insertions(+), 28 deletions(-)

Approvals:
  Alon Bar-Lev: Verified
  Dan Kenigsberg: Looks good to me, approved


--
To view, visit http://gerrit.ovirt.org/6962
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I01ddee19cbb65341ed22435ed9e735a0ad3c2abd
Gerrit-PatchSet: 17
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Alon Bar-Lev <alonbl at redhat.com>
Gerrit-Reviewer: Alon Bar-Lev <alonbl at redhat.com>
Gerrit-Reviewer: Barak Azulay <bazulay at redhat.com>
Gerrit-Reviewer: Dan Kenigsberg <danken at redhat.com>
Gerrit-Reviewer: Doron Fediuck <dfediuck at redhat.com>
Gerrit-Reviewer: Douglas Schilling Landgraf <dougsland at redhat.com>
Gerrit-Reviewer: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: Ofer Schreiber <oschreib at redhat.com>
Gerrit-Reviewer: oVirt Jenkins CI Server


More information about the vdsm-patches mailing list