Change in ovirt-engine[master]: bootstrap: send complete bootstrap from engine

dfediuck at redhat.com dfediuck at redhat.com
Mon Aug 20 14:52:16 UTC 2012


Doron Fediuck 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.

CONFIGURATION

New: BootstrapCommand
Control which command is sent during bootstrap.

New: BootstrapCacheRefreshInterval
Control the interval of testing if cache is valid.

New: BootstrapPackageDirectory
Directory to pack and send to node.

New: BootstrapPackageName
Cache archive name (basename).

New: SSHKeyAlias
Engine SSH key alias

MODIFICATIONS

Use umask 0077 when transferring installations so accessible only to
logged on user.

Change-Id: I6f4a09ca9e66f0c9f5f4f7b283a5f43986b7e603
Signed-off-by: Alon Bar-Lev <alonbl at redhat.com>
---
M Makefile
D backend/manager/conf/vds_installer.py
M backend/manager/dbscripts/upgrade/pre_upgrade/0000_config.sql
M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/VdsInstaller.java
M backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/config/Config.java
M backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/config/ConfigValues.java
M backend/manager/modules/root/src/main/webapp/WEB-INF/web.xml
M backend/manager/modules/utils/pom.xml
M backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/FileUtil.java
A backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/hostinstall/CachedTar.java
A backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/hostinstall/Tar.java
M backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/hostinstall/VdsInstallerSSH.java
M backend/manager/modules/utils/src/test/java/org/ovirt/engine/core/utils/hostinstall/VdsInstallerSSHTest.java
M packaging/fedora/engine-service.py
M packaging/fedora/setup/engine-setup.py
M packaging/fedora/spec/ovirt-engine.spec.in
M pom.xml
17 files changed, 611 insertions(+), 545 deletions(-)

Approvals:
  Doron Fediuck: Verified; Looks good to me, approved


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

Gerrit-MessageType: merged
Gerrit-Change-Id: I6f4a09ca9e66f0c9f5f4f7b283a5f43986b7e603
Gerrit-PatchSet: 20
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Alon Bar-Lev <alonbl at redhat.com>
Gerrit-Reviewer: Alex Lourie <alourie at redhat.com>
Gerrit-Reviewer: Alon Bar-Lev <alonbl at redhat.com>
Gerrit-Reviewer: Barak Azulay <bazulay 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 Engine-commits mailing list